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