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)
27 -I$(builddir)/../lib/includes \
28 -I$(srcdir)/../lib/includes \
29 -I$(srcdir)/includes \
30 -I$(builddir)/includes \
35 libgnutls_dane_la_LDFLAGS = -no-undefined
37 lib_LTLIBRARIES = libgnutls-dane.la
39 libgnutls_dane_la_SOURCES = dane.c dane-params.c errors.c libdane.map
41 libgnutls_dane_la_LIBADD = ../gl/libgnu.la \
44 libgnutls_dane_la_LDFLAGS += -version-info $(LT_DANE_CURRENT):$(LT_DANE_REVISION):$(LT_DANE_AGE)
46 libgnutls_dane_la_LIBADD += $(LIBSOCKET) $(UNBOUND_LIBS)
48 if HAVE_LD_VERSION_SCRIPT
49 libgnutls_dane_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libdane.map
51 libgnutls_dane_la_LDFLAGS += -export-symbols-regex '^(dane).*'
54 pkgconfigdir = $(libdir)/pkgconfig
55 pkgconfig_DATA = gnutls-dane.pc
56 DISTCLEANFILES = $(pkgconfig_DATA)
59 libgnutls_dane_la_LDFLAGS += \
60 -Wl,--output-def,libgnutls-dane-$(DLL_VERSION).def
61 libgnutls_dane-$(DLL_VERSION).def: libgnutls-dane.la
63 defexecdir = $(bindir)
64 defexec_DATA = libgnutls-dane-$(DLL_VERSION).def
65 DISTCLEANFILES += $(defexec_DATA)