diff options
Diffstat (limited to 'src/service/nse/Makefile.am')
-rw-r--r-- | src/service/nse/Makefile.am | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/src/service/nse/Makefile.am b/src/service/nse/Makefile.am new file mode 100644 index 000000000..7b89ef635 --- /dev/null +++ b/src/service/nse/Makefile.am | |||
@@ -0,0 +1,99 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | if USE_COVERAGE | ||
5 | AM_CFLAGS = --coverage -O0 | ||
6 | XLIB = -lgcov | ||
7 | endif | ||
8 | |||
9 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
10 | |||
11 | libexecdir= $(pkglibdir)/libexec/ | ||
12 | |||
13 | pkgcfg_DATA = \ | ||
14 | nse.conf | ||
15 | |||
16 | lib_LTLIBRARIES = libgnunetnse.la | ||
17 | |||
18 | libgnunetnse_la_SOURCES = \ | ||
19 | nse_api.c nse.h | ||
20 | libgnunetnse_la_LIBADD = \ | ||
21 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
22 | $(GN_LIBINTL) $(XLIB) | ||
23 | libgnunetnse_la_LDFLAGS = \ | ||
24 | $(GN_LIB_LDFLAGS) \ | ||
25 | -version-info 0:0:0 | ||
26 | |||
27 | |||
28 | libexec_PROGRAMS = \ | ||
29 | gnunet-service-nse | ||
30 | |||
31 | #noinst_PROGRAMS = \ | ||
32 | # gnunet-nse-profiler | ||
33 | |||
34 | # FIXME no testbed in TNG | ||
35 | #gnunet_nse_profiler_SOURCES = \ | ||
36 | # gnunet-nse-profiler.c | ||
37 | #gnunet_nse_profiler_LDADD = -lm \ | ||
38 | # libgnunetnse.la \ | ||
39 | # $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
40 | # $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
41 | # $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
42 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
43 | # $(GN_LIBINTL) | ||
44 | |||
45 | gnunet_service_nse_SOURCES = \ | ||
46 | gnunet-service-nse.c | ||
47 | gnunet_service_nse_LDADD = \ | ||
48 | libgnunetnse.la \ | ||
49 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
50 | $(top_builddir)/src/service/core/libgnunetcore.la \ | ||
51 | $(top_builddir)/src/service/statistics/libgnunetstatistics.la \ | ||
52 | $(LIBGCRYPT_LIBS) \ | ||
53 | -lm -lgcrypt \ | ||
54 | $(GN_LIBINTL) | ||
55 | if ENABLE_NSE_HISTOGRAM | ||
56 | gnunet_service_nse_LDADD += \ | ||
57 | $(top_builddir)/src/testbed-logger/libgnunettestbedlogger.la | ||
58 | endif | ||
59 | |||
60 | |||
61 | if HAVE_BENCHMARKS | ||
62 | MULTIPEER_TEST = test_nse_multipeer | ||
63 | endif | ||
64 | |||
65 | check_PROGRAMS = \ | ||
66 | test_nse_api \ | ||
67 | perf_kdf \ | ||
68 | $(MULTIPEER_TEST) | ||
69 | |||
70 | if ENABLE_TEST_RUN | ||
71 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
72 | TESTS = $(check_PROGRAMS) | ||
73 | endif | ||
74 | |||
75 | test_nse_api_SOURCES = \ | ||
76 | test_nse_api.c | ||
77 | test_nse_api_LDADD = \ | ||
78 | libgnunetnse.la \ | ||
79 | $(top_builddir)/src/service/testing/libgnunettesting.la \ | ||
80 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
81 | |||
82 | test_nse_multipeer_SOURCES = \ | ||
83 | test_nse_multipeer.c | ||
84 | test_nse_multipeer_LDADD = \ | ||
85 | libgnunetnse.la \ | ||
86 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
87 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
88 | -lm | ||
89 | |||
90 | perf_kdf_SOURCES = \ | ||
91 | perf_kdf.c | ||
92 | perf_kdf_LDADD = \ | ||
93 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
94 | $(LIBGCRYPT_LIBS) \ | ||
95 | -lgcrypt | ||
96 | |||
97 | EXTRA_DIST = \ | ||
98 | test_nse.conf \ | ||
99 | nse_profiler_test.conf | ||