some more text for TPMs
[gnutls.git] / libdane / Makefile.am
blob87a9413daf9704f0d0f725961ad1f0a90d40fb99
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2012 KU Leuven
4 # Author: Nikos Mavrogiannopoulos
6 # This file is part of libdane.
8 # libdane 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 Lesser General Public License
19 # along with this program.  If not, see <http://www.gnu.org/licenses/>
21 ACLOCAL_AMFLAGS = -I ../m4 -I ../gl/m4
23 AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
24 AM_CPPFLAGS = \
25         -I$(srcdir)/../gl                       \
26         -I$(builddir)/../gl                     \
27         -I$(builddir)/../lib/includes   \
28         -I$(srcdir)/../lib/includes     \
29         -I$(srcdir)/includes            \
30         -I$(builddir)/includes
32 SUBDIRS = includes
34 defexecdir = $(bindir)
35 defexec_DATA = 
38 libdane_la_LDFLAGS = -no-undefined
40 if ENABLE_DANE
41 lib_LTLIBRARIES = libdane.la
43 libdane_la_SOURCES = dane.c errors.c libdane.map
45 libdane_la_LIBADD = ../gl/libgnu.la \
46         ../lib/libgnutls.la
48 libdane_la_LDFLAGS += -version-info $(LT_DANE_CURRENT):$(LT_DANE_REVISION):$(LT_DANE_AGE)
50 libdane_la_LIBADD += $(LIBSOCKET) $(UNBOUND_LIBS)
52 if HAVE_LD_VERSION_SCRIPT
53 libdane_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libdane.map
54 else
55 libdane_la_LDFLAGS += -export-symbols-regex '^(dane).*'
56 endif
58 if HAVE_LD_OUTPUT_DEF
59 libdane_la_LDFLAGS += \
60         -Wl,--output-def,libdane-$(DLL_VERSION).def
61 libdane-$(DLL_VERSION).def: libdane.la
62 defexec_DATA += libdane-$(DLL_VERSION).def
63 endif
64 endif
66 DISTCLEANFILES = $(defexec_DATA)