use cast in _gnutls_hash_fast
[gnutls:gnutls.git] / libdane / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2012 KU Leuven
3 #
4 # Author: Nikos Mavrogiannopoulos
5 #
6 # This file is part of libdane.
7 #
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.
12 #
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.
17 #
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/>
20
21 ACLOCAL_AMFLAGS = -I ../m4 -I ../gl/m4
22
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          \
31         -I$(srcdir)/../lib
32
33 SUBDIRS = includes
34
35 libgnutls_dane_la_LDFLAGS = -no-undefined
36
37 lib_LTLIBRARIES = libgnutls-dane.la
38
39 libgnutls_dane_la_SOURCES = dane.c dane-params.c errors.c libdane.map
40
41 libgnutls_dane_la_LIBADD = ../gl/libgnu.la \
42         ../lib/libgnutls.la
43
44 libgnutls_dane_la_LDFLAGS += -version-info $(LT_DANE_CURRENT):$(LT_DANE_REVISION):$(LT_DANE_AGE)
45
46 libgnutls_dane_la_LIBADD += $(LIBSOCKET) $(UNBOUND_LIBS)
47
48 if HAVE_LD_VERSION_SCRIPT
49 libgnutls_dane_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libdane.map
50 else
51 libgnutls_dane_la_LDFLAGS += -export-symbols-regex '^(dane).*'
52 endif
53
54 pkgconfigdir = $(libdir)/pkgconfig
55 pkgconfig_DATA = gnutls-dane.pc
56 DISTCLEANFILES = $(pkgconfig_DATA)
57
58 if HAVE_LD_OUTPUT_DEF
59 libgnutls_dane_la_LDFLAGS += \
60         -Wl,--output-def,libgnutls-dane-$(DLL_VERSION).def
61 libgnutls_dane-$(DLL_VERSION).def: libgnutls-dane.la
62
63 defexecdir = $(bindir)
64 defexec_DATA = libgnutls-dane-$(DLL_VERSION).def
65 DISTCLEANFILES += $(defexec_DATA)
66 endif