Bump versions.
[gnutls.git] / libextra / Makefile.am
blob28200c22b113a1d08dbf2b6a07ca6a88e79d4887
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
21 # 02110-1301, USA.
23 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I ../lib/m4 -I ../lib/gl/m4
25 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
26 AM_CPPFLAGS = \
27         -I$(srcdir)/../lib/gl           \
28         -I$(builddir)/../lib/gl         \
29         -I$(srcdir)/gl                  \
30         -I$(builddir)/../lib/includes   \
31         -I$(srcdir)/../lib/includes     \
32         -I$(srcdir)/includes            \
33         -I$(srcdir)/../lib
35 if ENABLE_MINITASN1
36 AM_CPPFLAGS += -I$(srcdir)/../lib/minitasn1
37 endif
39 SUBDIRS = gl includes
41 # Pkg-config script.
42 pkgconfigdir = $(libdir)/pkgconfig
43 pkgconfig_DATA = gnutls-extra.pc
44 DISTCLEANFILES = $(pkgconfig_DATA)
46 defexecdir = $(bindir)
47 defexec_DATA = 
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
55 # OpenSSL
57 if ENABLE_OPENSSL
58 lib_LTLIBRARIES += libgnutls-openssl.la
60 libgnutls_openssl_la_SOURCES = gnutls_openssl.c openssl_compat.h        \
61         openssl_compat.c
63 libgnutls_openssl_la_LIBADD = ../lib/gl/liblgnu.la $(LIBSOCKET) \
64         ../lib/libgnutls.la
66 libgnutls_openssl_la_LDFLAGS += -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
68 if ENABLE_MINITASN1
69 libgnutls_openssl_la_LIBADD += ../lib/minitasn1/libminitasn1.la
70 else
71 libgnutls_openssl_la_LDFLAGS += $(LTLIBTASN1)
72 endif
74 if HAVE_LD_OUTPUT_DEF
75 libgnutls_openssl_la_LDFLAGS += \
76         -Wl,--output-def,libgnutls-openssl-$(DLL_VERSION).def
77 defexec_DATA += libgnutls-openssl-$(DLL_VERSION).def
78 endif
79 endif
81 # OpenPGP
83 libgnutls_extra_la_LIBADD = $(LIBSOCKET)
84 libgnutls_extra_la_LDFLAGS = -no-undefined
86 # TLS/IA
88 libgnutls_extra_la_SOURCES += \
89         ext_inner_application.h ext_inner_application.c gnutls_ia.c
91 # Rest
93 if HAVE_LD_OUTPUT_DEF
94 libgnutls_extra_la_LDFLAGS += \
95         -Wl,--output-def,libgnutls-extra-$(DLL_VERSION).def
96 defexec_DATA += libgnutls-extra-$(DLL_VERSION).def
97 endif
99 DISTCLEANFILES += $(defexec_DATA)
101 libgnutls_extra_la_LDFLAGS += \
102         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
103         $(LZO_LIBS)
105 libgnutls_extra_la_LIBADD += ../lib/gl/liblgnu.la gl/libxgnu.la \
106         ../lib/libgnutls.la
108 if HAVE_LD_VERSION_SCRIPT
109 libgnutls_extra_la_LDFLAGS += \
110         -Wl,--version-script=$(srcdir)/libgnutls-extra.map
111 else
112 libgnutls_extra_la_LDFLAGS += -export-symbols-regex '^(gnutls_).*'
113 endif