1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 # Free Software Foundation, Inc.
5 # Author: Nikos Mavrogiannopoulos
7 # This file is part of GnuTLS-EXTRA.
9 # GnuTLS-extra is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation; either version 3 of the
12 # License, or (at your option) any later version.
14 # GnuTLS-extra is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with GnuTLS-EXTRA; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4
26 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
28 -I$(srcdir)/../lib/gl \
29 -I$(builddir)/../lib/gl \
31 -I$(builddir)/../lib/includes \
32 -I$(srcdir)/../lib/includes \
33 -I$(srcdir)/includes \
37 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = gnutls-extra.pc
45 DISTCLEANFILES = $(pkgconfig_DATA)
47 defexecdir = $(bindir)
50 lib_LTLIBRARIES = libgnutls-extra.la
52 libgnutls_extra_la_SOURCES = libgnutls-extra.map gnutls_extra.c fipsmd5.c
54 libgnutls_openssl_la_LDFLAGS = -no-undefined
59 lib_LTLIBRARIES += libgnutls-openssl.la
61 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h \
64 libgnutls_openssl_la_LIBADD = ../lib/gl/liblgnu.la $(LIBSOCKET) \
67 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_SSL_CURRENT):$(LT_SSL_REVISION):$(LT_SSL_AGE)
70 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
72 libgnutls_openssl_la_LDFLAGS += $(LTLIBTASN1)
76 libgnutls_openssl_la_LDFLAGS += \
77 -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
78 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
84 libgnutls_extra_la_LIBADD = $(LIBSOCKET)
85 libgnutls_extra_la_LDFLAGS = -no-undefined
89 libgnutls_extra_la_SOURCES += \
90 ext_inner_application.h ext_inner_application.c gnutls_ia.c
93 libgnutls_extra_la_LIBADD += $(LTLIBGCRYPT)
99 libgnutls_extra_la_LDFLAGS += \
100 -Wl,--output-def,libgnutls-extra-$(DLL_VERSION).def
101 defexec_DATA += libgnutls-extra-$(DLL_VERSION).def
104 DISTCLEANFILES += $(defexec_DATA)
106 libgnutls_extra_la_LDFLAGS += \
107 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
110 libgnutls_extra_la_LIBADD += ../lib/gl/liblgnu.la gl/libxgnu.la \
113 if HAVE_LD_VERSION_SCRIPT
114 libgnutls_extra_la_LDFLAGS += \
115 -Wl,--version-script=$(srcdir)/libgnutls-extra.map
117 libgnutls_extra_la_LDFLAGS += -export-symbols-regex '^(gnutls_).*'