1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of GNUTLS-EXTRA.
8 # GNUTLS-EXTRA is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 3 of the
11 # License, or (at your option) any later version.
13 # GNUTLS-EXTRA is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNUTLS-EXTRA; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4
25 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
27 -I$(srcdir)/../lib/gl \
28 -I$(builddir)/../lib/gl \
30 -I$(builddir)/../lib/includes \
31 -I$(srcdir)/../lib/includes \
32 -I$(srcdir)/includes \
36 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
42 pkgconfigdir = $(libdir)/pkgconfig
43 pkgconfig_DATA = gnutls-extra.pc
44 DISTCLEANFILES = $(pkgconfig_DATA)
46 defexecdir = $(bindir)
49 lib_LTLIBRARIES = libgnutls-extra.la
51 libgnutls_extra_la_SOURCES = libgnutls-extra.map gnutls_extra.c fipsmd5.c
53 libgnutls_openssl_la_LDFLAGS = -no-undefined
58 lib_LTLIBRARIES += libgnutls-openssl.la
60 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h \
63 libgnutls_openssl_la_LIBADD = ../lib/gl/liblgnu.la $(LIBSOCKET) \
66 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
69 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
71 libgnutls_openssl_la_LDFLAGS += $(LTLIBTASN1)
75 libgnutls_openssl_la_LDFLAGS += \
76 -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
77 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
83 libgnutls_extra_la_LIBADD = $(LIBSOCKET)
84 libgnutls_extra_la_LDFLAGS = -no-undefined
88 libgnutls_extra_la_SOURCES += \
89 ext_inner_application.h ext_inner_application.c gnutls_ia.c
94 libgnutls_extra_la_LDFLAGS += \
95 -Wl,--output-def,libgnutls-extra-$(DLL_VERSION).def
96 defexec_DATA += libgnutls-extra-$(DLL_VERSION).def
99 DISTCLEANFILES += $(defexec_DATA)
101 libgnutls_extra_la_LDFLAGS += \
102 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
105 libgnutls_extra_la_LIBADD += ../lib/gl/liblgnu.la gl/libxgnu.la \
108 if HAVE_LD_VERSION_SCRIPT
109 libgnutls_extra_la_LDFLAGS += \
110 -Wl,--version-script=$(srcdir)/libgnutls-extra.map
112 libgnutls_extra_la_LDFLAGS += -export-symbols-regex '^(gnutls_).*'