Use libtasn1 v2.4.
[gnutls.git] / libextra / Makefile.am
blob43c3c9c4276f604c3c6b015b9ad403502ab1a06c
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
22 # 02110-1301, USA.
24 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4
26 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
27 AM_CPPFLAGS = \
28         -I$(srcdir)/../lib/gl           \
29         -I$(builddir)/../lib/gl         \
30         -I$(srcdir)/gl                  \
31         -I$(builddir)/../lib/includes   \
32         -I$(srcdir)/../lib/includes     \
33         -I$(srcdir)/includes            \
34         -I$(srcdir)/../lib
36 if ENABLE_MINITASN1
37 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
38 endif
40 SUBDIRS = gl includes
42 # Pkg-config script.
43 pkgconfigdir = $(libdir)/pkgconfig
44 pkgconfig_DATA = gnutls-extra.pc
45 DISTCLEANFILES = $(pkgconfig_DATA)
47 defexecdir = $(bindir)
48 defexec_DATA = 
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
56 # OpenSSL
58 if ENABLE_OPENSSL
59 lib_LTLIBRARIES += libgnutls-openssl.la
61 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h        \
62         openssl_compat.c
64 libgnutls_openssl_la_LIBADD = ../lib/gl/liblgnu.la $(LIBSOCKET) \
65         ../lib/libgnutls.la
67 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
69 if ENABLE_MINITASN1
70 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
71 else
72 libgnutls_openssl_la_LDFLAGS += $(LTLIBTASN1)
73 endif
75 if HAVE_LD_OUTPUT_DEF
76 libgnutls_openssl_la_LDFLAGS += \
77         -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
78 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
79 endif
80 endif
82 # OpenPGP
84 libgnutls_extra_la_LIBADD = $(LIBSOCKET)
85 libgnutls_extra_la_LDFLAGS = -no-undefined
87 # TLS/IA
89 libgnutls_extra_la_SOURCES += \
90         ext_inner_application.h ext_inner_application.c gnutls_ia.c
92 # Rest
94 if HAVE_LD_OUTPUT_DEF
95 libgnutls_extra_la_LDFLAGS += \
96         -Wl,--output-def,libgnutls-extra-$(DLL_VERSION).def
97 defexec_DATA += libgnutls-extra-$(DLL_VERSION).def
98 endif
100 DISTCLEANFILES += $(defexec_DATA)
102 libgnutls_extra_la_LDFLAGS += \
103         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
104         $(LZO_LIBS)
106 libgnutls_extra_la_LIBADD += ../lib/gl/liblgnu.la gl/libxgnu.la \
107         ../lib/libgnutls.la
109 if HAVE_LD_VERSION_SCRIPT
110 libgnutls_extra_la_LDFLAGS += \
111         -Wl,--version-script=$(srcdir)/libgnutls-extra.map
112 else
113 libgnutls_extra_la_LDFLAGS += -export-symbols-regex '^(gnutls_).*'
114 endif