update clang-format
[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/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/util/libgnunetutil.la \
56   $(LTLIBINTL)
57 libgnunet_plugin_gnsrecord_dns_la_LDFLAGS = \
58  $(GN_PLUGIN_LDFLAGS)
59
60
61 EXTRA_DIST = \
62   $(check_SCRIPTS)
63
64
65 test_gnsrecord_serialization_SOURCES = \
66  test_gnsrecord_serialization.c
67 test_gnsrecord_serialization_LDADD = \
68   $(top_builddir)/src/testing/libgnunettesting.la \
69   libgnunetgnsrecord.la \
70   $(top_builddir)/src/util/libgnunetutil.la
71
72 test_gnsrecord_block_expiration_SOURCES = \
73  test_gnsrecord_block_expiration.c
74 test_gnsrecord_block_expiration_LDADD = \
75   $(top_builddir)/src/testing/libgnunettesting.la \
76   libgnunetgnsrecord.la \
77   $(top_builddir)/src/util/libgnunetutil.la
78
79
80 test_gnsrecord_crypto_SOURCES = \
81  test_gnsrecord_crypto.c
82 test_gnsrecord_crypto_LDADD = \
83   $(top_builddir)/src/testing/libgnunettesting.la \
84   libgnunetgnsrecord.la \
85   $(top_builddir)/src/util/libgnunetutil.la
86
87
88 perf_gnsrecord_crypto_SOURCES = \
89  perf_gnsrecord_crypto.c
90 perf_gnsrecord_crypto_LDADD = \
91   $(top_builddir)/src/testing/libgnunettesting.la \
92   libgnunetgnsrecord.la \
93   $(top_builddir)/src/util/libgnunetutil.la