diff options
Diffstat (limited to 'src/lib/gnsrecord/Makefile.am')
-rw-r--r-- | src/lib/gnsrecord/Makefile.am | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/src/lib/gnsrecord/Makefile.am b/src/lib/gnsrecord/Makefile.am new file mode 100644 index 000000000..9872ff74b --- /dev/null +++ b/src/lib/gnsrecord/Makefile.am | |||
@@ -0,0 +1,110 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include ${MHD_CFLAGS} | ||
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 | noinst_PROGRAMS = \ | ||
16 | gnunet-gnsrecord-tvg | ||
17 | |||
18 | |||
19 | check_PROGRAMS = \ | ||
20 | test_gnsrecord_crypto \ | ||
21 | test_gnsrecord_serialization \ | ||
22 | test_gnsrecord_lsd0001testvectors \ | ||
23 | test_gnsrecord_block_expiration \ | ||
24 | perf_gnsrecord_crypto | ||
25 | |||
26 | if ENABLE_TEST_RUN | ||
27 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
28 | TESTS = \ | ||
29 | $(check_PROGRAMS) \ | ||
30 | $(check_SCRIPTS) | ||
31 | endif | ||
32 | |||
33 | lib_LTLIBRARIES = \ | ||
34 | libgnunetgnsrecord.la \ | ||
35 | libgnunetgnsrecordjson.la | ||
36 | |||
37 | gnunet_gnsrecord_tvg_SOURCES = \ | ||
38 | gnunet-gnsrecord-tvg.c \ | ||
39 | gnsrecord_crypto.h | ||
40 | gnunet_gnsrecord_tvg_LDADD = \ | ||
41 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
42 | libgnunetgnsrecord.la \ | ||
43 | $(GN_LIBINTL) | ||
44 | |||
45 | |||
46 | libgnunetgnsrecord_la_SOURCES = \ | ||
47 | gnsrecord.c \ | ||
48 | gnsrecord_serialization.c \ | ||
49 | gnsrecord_crypto.c \ | ||
50 | gnsrecord_misc.c | ||
51 | libgnunetgnsrecord_la_LIBADD = \ | ||
52 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
53 | $(LIBGCRYPT_LIBS) \ | ||
54 | -lsodium \ | ||
55 | $(GN_LIBINTL) | ||
56 | libgnunetgnsrecord_la_LDFLAGS = \ | ||
57 | $(GN_LIB_LDFLAGS) \ | ||
58 | -version-info 0:0:0 | ||
59 | |||
60 | libgnunetgnsrecordjson_la_SOURCES = \ | ||
61 | json_gnsrecord.c | ||
62 | libgnunetgnsrecordjson_la_LIBADD = \ | ||
63 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
64 | libgnunetgnsrecord.la \ | ||
65 | -ljansson \ | ||
66 | $(GN_LIBINTL) | ||
67 | libgnunetgnsrecordjson_la_LDFLAGS = \ | ||
68 | $(GN_LIB_LDFLAGS) \ | ||
69 | -version-info 0:0:0 | ||
70 | |||
71 | EXTRA_DIST = \ | ||
72 | $(check_SCRIPTS) | ||
73 | |||
74 | test_gnsrecord_lsd0001testvectors_SOURCES = \ | ||
75 | test_gnsrecord_testvectors.c | ||
76 | test_gnsrecord_lsd0001testvectors_LDADD = \ | ||
77 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
78 | libgnunetgnsrecord.la \ | ||
79 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
80 | |||
81 | |||
82 | test_gnsrecord_serialization_SOURCES = \ | ||
83 | test_gnsrecord_serialization.c | ||
84 | test_gnsrecord_serialization_LDADD = \ | ||
85 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
86 | libgnunetgnsrecord.la \ | ||
87 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
88 | |||
89 | test_gnsrecord_block_expiration_SOURCES = \ | ||
90 | test_gnsrecord_block_expiration.c | ||
91 | test_gnsrecord_block_expiration_LDADD = \ | ||
92 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
93 | libgnunetgnsrecord.la \ | ||
94 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
95 | |||
96 | |||
97 | test_gnsrecord_crypto_SOURCES = \ | ||
98 | test_gnsrecord_crypto.c | ||
99 | test_gnsrecord_crypto_LDADD = \ | ||
100 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
101 | libgnunetgnsrecord.la \ | ||
102 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
103 | |||
104 | |||
105 | perf_gnsrecord_crypto_SOURCES = \ | ||
106 | perf_gnsrecord_crypto.c | ||
107 | perf_gnsrecord_crypto_LDADD = \ | ||
108 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
109 | libgnunetgnsrecord.la \ | ||
110 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||