reduce loop counters to more practical levels
[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  perf_gnsrecord_crypto
24
25 if ENABLE_TEST_RUN
26 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
27 TESTS = \
28   $(check_PROGRAMS) \
29   $(check_SCRIPTS)
30 endif
31
32 lib_LTLIBRARIES = \
33   libgnunetgnsrecord.la
34
35 libgnunetgnsrecord_la_SOURCES = \
36   gnsrecord.c \
37   gnsrecord_serialization.c \
38   gnsrecord_crypto.c \
39   gnsrecord_misc.c
40 libgnunetgnsrecord_la_LIBADD = \
41   $(top_builddir)/src/dns/libgnunetdnsparser.la \
42   $(top_builddir)/src/util/libgnunetutil.la \
43   $(GN_LIBINTL)
44 libgnunetgnsrecord_la_LDFLAGS = \
45   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
46   -version-info 0:0:0
47
48
49 plugin_LTLIBRARIES = \
50   libgnunet_plugin_gnsrecord_dns.la
51
52
53 libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
54   plugin_gnsrecord_dns.c
55 libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
56   $(top_builddir)/src/dns/libgnunetdnsparser.la \
57   $(top_builddir)/src/util/libgnunetutil.la \
58   $(LTLIBINTL)
59 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
60  $(GN_PLUGIN_LDFLAGS)
61
62
63 EXTRA_DIST = \
64   $(check_SCRIPTS)
65
66
67 test_gnsrecord_serialization_SOURCES = \
68  test_gnsrecord_serialization.c
69 test_gnsrecord_serialization_LDADD = \
70   $(top_builddir)/src/testing/libgnunettesting.la \
71   libgnunetgnsrecord.la \
72   $(top_builddir)/src/util/libgnunetutil.la
73
74 test_gnsrecord_block_expiration_SOURCES = \
75  test_gnsrecord_block_expiration.c
76 test_gnsrecord_block_expiration_LDADD = \
77   $(top_builddir)/src/testing/libgnunettesting.la \
78   libgnunetgnsrecord.la \
79   $(top_builddir)/src/util/libgnunetutil.la
80
81
82 test_gnsrecord_crypto_SOURCES = \
83  test_gnsrecord_crypto.c
84 test_gnsrecord_crypto_LDADD = \
85   $(top_builddir)/src/testing/libgnunettesting.la \
86   libgnunetgnsrecord.la \
87   $(top_builddir)/src/util/libgnunetutil.la
88
89
90 perf_gnsrecord_crypto_SOURCES = \
91  perf_gnsrecord_crypto.c
92 perf_gnsrecord_crypto_LDADD = \
93   $(top_builddir)/src/testing/libgnunettesting.la \
94   libgnunetgnsrecord.la \
95   $(top_builddir)/src/util/libgnunetutil.la