error handling
[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 USE_COVERAGE
11   AM_CFLAGS = --coverage -O0
12   XLIBS = -lgcov
13 endif
14
15 check_PROGRAMS = \
16  test_gnsrecord_crypto \
17  test_gnsrecord_serialization \
18  test_gnsrecord_block_expiration \
19  perf_gnsrecord_crypto
20
21 if ENABLE_TEST_RUN
22 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
23 TESTS = \
24   $(check_PROGRAMS) \
25   $(check_SCRIPTS)
26 endif
27
28 lib_LTLIBRARIES = \
29   libgnunetgnsrecord.la
30
31 libgnunetgnsrecord_la_SOURCES = \
32   gnsrecord.c \
33   gnsrecord_serialization.c \
34   gnsrecord_crypto.c \
35   gnsrecord_misc.c
36 libgnunetgnsrecord_la_LIBADD = \
37   $(top_builddir)/src/util/libgnunetutil.la \
38   $(GN_LIBINTL)
39 libgnunetgnsrecord_la_LDFLAGS = \
40   $(GN_LIB_LDFLAGS)  \
41   -version-info 0:0:0
42
43
44 plugin_LTLIBRARIES = \
45   libgnunet_plugin_gnsrecord_dns.la
46
47
48 libgnunet_plugin_gnsrecord_dns_la_SOURCES = \
49   plugin_gnsrecord_dns.c
50 libgnunet_plugin_gnsrecord_dns_la_LIBADD = \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(LTLIBINTL)
53 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
54  $(GN_PLUGIN_LDFLAGS)
55
56
57 EXTRA_DIST = \
58   $(check_SCRIPTS)
59
60
61 test_gnsrecord_serialization_SOURCES = \
62  test_gnsrecord_serialization.c
63 test_gnsrecord_serialization_LDADD = \
64   $(top_builddir)/src/testing/libgnunettesting.la \
65   libgnunetgnsrecord.la \
66   $(top_builddir)/src/util/libgnunetutil.la
67
68 test_gnsrecord_block_expiration_SOURCES = \
69  test_gnsrecord_block_expiration.c
70 test_gnsrecord_block_expiration_LDADD = \
71   $(top_builddir)/src/testing/libgnunettesting.la \
72   libgnunetgnsrecord.la \
73   $(top_builddir)/src/util/libgnunetutil.la
74
75
76 test_gnsrecord_crypto_SOURCES = \
77  test_gnsrecord_crypto.c
78 test_gnsrecord_crypto_LDADD = \
79   $(top_builddir)/src/testing/libgnunettesting.la \
80   libgnunetgnsrecord.la \
81   $(top_builddir)/src/util/libgnunetutil.la
82
83
84 perf_gnsrecord_crypto_SOURCES = \
85  perf_gnsrecord_crypto.c
86 perf_gnsrecord_crypto_LDADD = \
87   $(top_builddir)/src/testing/libgnunettesting.la \
88   libgnunetgnsrecord.la \
89   $(top_builddir)/src/util/libgnunetutil.la