fix #3869: outdated FSF address
[oweals/gnunet.git] / src / gnsrecord / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 if MINGW
11   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = --coverage -O0
16   XLIBS = -lgcov
17 endif
18
19 check_PROGRAMS = \
20  test_gnsrecord_crypto \
21  test_gnsrecord_serialization \
22  test_gnsrecord_block_expiration
23
24 if ENABLE_TEST_RUN
25 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
26 TESTS = \
27   $(check_PROGRAMS) \
28   $(check_SCRIPTS)
29 endif
30
31 lib_LTLIBRARIES = \
32   libgnunetgnsrecord.la
33
34 libgnunetgnsrecord_la_SOURCES = \
35   gnsrecord.c \
36   gnsrecord_serialization.c \
37   gnsrecord_crypto.c \
38   gnsrecord_misc.c
39 libgnunetgnsrecord_la_LIBADD = \
40   $(top_builddir)/src/dns/libgnunetdnsparser.la \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(GN_LIBINTL)
43 libgnunetgnsrecord_la_LDFLAGS = \
44   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
45   -version-info 0:0:0
46
47
48 plugin_LTLIBRARIES = \
49   libgnunet_plugin_gnsrecord_dns.la
50
51
52 libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
53   plugin_gnsrecord_dns.c
54 libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
55   $(top_builddir)/src/dns/libgnunetdnsparser.la \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(LTLIBINTL)
58 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
59  $(GN_PLUGIN_LDFLAGS)
60
61
62 EXTRA_DIST = \
63   $(check_SCRIPTS)
64
65
66 test_gnsrecord_serialization_SOURCES = \
67  test_gnsrecord_serialization.c
68 test_gnsrecord_serialization_LDADD = \
69   $(top_builddir)/src/testing/libgnunettesting.la \
70   libgnunetgnsrecord.la \
71   $(top_builddir)/src/util/libgnunetutil.la
72
73 test_gnsrecord_block_expiration_SOURCES = \
74  test_gnsrecord_block_expiration.c
75 test_gnsrecord_block_expiration_LDADD = \
76   $(top_builddir)/src/testing/libgnunettesting.la \
77   libgnunetgnsrecord.la \
78   $(top_builddir)/src/util/libgnunetutil.la
79
80
81 test_gnsrecord_crypto_SOURCES = \
82  test_gnsrecord_crypto.c
83 test_gnsrecord_crypto_LDADD = \
84   $(top_builddir)/src/testing/libgnunettesting.la \
85   libgnunetgnsrecord.la \
86   $(top_builddir)/src/util/libgnunetutil.la
87