diff options
Diffstat (limited to 'src/setu/Makefile.am')
-rw-r--r-- | src/setu/Makefile.am | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/src/setu/Makefile.am b/src/setu/Makefile.am new file mode 100644 index 000000000..b37ceba51 --- /dev/null +++ b/src/setu/Makefile.am | |||
@@ -0,0 +1,102 @@ | |||
1 | # This Makefile.am is in the public domain | ||
2 | AM_CPPFLAGS = -I$(top_srcdir)/src/include | ||
3 | |||
4 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
5 | |||
6 | libexecdir= $(pkglibdir)/libexec/ | ||
7 | |||
8 | plugindir = $(libdir)/gnunet | ||
9 | |||
10 | pkgcfg_DATA = \ | ||
11 | setu.conf | ||
12 | |||
13 | if USE_COVERAGE | ||
14 | AM_CFLAGS = -fprofile-arcs -ftest-coverage | ||
15 | endif | ||
16 | |||
17 | if HAVE_TESTING | ||
18 | bin_PROGRAMS = \ | ||
19 | gnunet-setu-profiler | ||
20 | |||
21 | noinst_PROGRAMS = \ | ||
22 | gnunet-setu-ibf-profiler | ||
23 | endif | ||
24 | |||
25 | libexec_PROGRAMS = \ | ||
26 | gnunet-service-setu | ||
27 | |||
28 | lib_LTLIBRARIES = \ | ||
29 | libgnunetsetu.la | ||
30 | |||
31 | gnunet_setu_profiler_SOURCES = \ | ||
32 | gnunet-setu-profiler.c | ||
33 | gnunet_setu_profiler_LDADD = \ | ||
34 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
35 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
36 | libgnunetsetu.la \ | ||
37 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
38 | $(GN_LIBINTL) | ||
39 | |||
40 | |||
41 | gnunet_setu_ibf_profiler_SOURCES = \ | ||
42 | gnunet-setu-ibf-profiler.c \ | ||
43 | ibf.c | ||
44 | gnunet_setu_ibf_profiler_LDADD = \ | ||
45 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
46 | $(GN_LIBINTL) | ||
47 | |||
48 | gnunet_service_setu_SOURCES = \ | ||
49 | gnunet-service-setu.c gnunet-service-setu.h \ | ||
50 | ibf.c ibf.h \ | ||
51 | gnunet-service-setu_strata_estimator.c gnunet-service-setu_strata_estimator.h \ | ||
52 | gnunet-service-setu_protocol.h | ||
53 | gnunet_service_setu_LDADD = \ | ||
54 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
55 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
56 | $(top_builddir)/src/core/libgnunetcore.la \ | ||
57 | $(top_builddir)/src/cadet/libgnunetcadet.la \ | ||
58 | $(top_builddir)/src/block/libgnunetblock.la \ | ||
59 | libgnunetsetu.la \ | ||
60 | $(GN_LIBINTL) | ||
61 | |||
62 | libgnunetsetu_la_SOURCES = \ | ||
63 | setu_api.c setu.h | ||
64 | libgnunetsetu_la_LIBADD = \ | ||
65 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
66 | $(LTLIBINTL) | ||
67 | libgnunetsetu_la_LDFLAGS = \ | ||
68 | $(GN_LIB_LDFLAGS) | ||
69 | |||
70 | if HAVE_TESTING | ||
71 | check_PROGRAMS = \ | ||
72 | test_setu_api | ||
73 | endif | ||
74 | |||
75 | if ENABLE_TEST_RUN | ||
76 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
77 | TESTS = $(check_PROGRAMS) | ||
78 | endif | ||
79 | |||
80 | test_setu_api_SOURCES = \ | ||
81 | test_setu_api.c | ||
82 | test_setu_api_LDADD = \ | ||
83 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
84 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
85 | libgnunetsetu.la | ||
86 | |||
87 | plugin_LTLIBRARIES = \ | ||
88 | libgnunet_plugin_block_setu_test.la | ||
89 | |||
90 | libgnunet_plugin_block_setu_test_la_SOURCES = \ | ||
91 | plugin_block_setu_test.c | ||
92 | libgnunet_plugin_block_setu_test_la_LIBADD = \ | ||
93 | $(top_builddir)/src/block/libgnunetblock.la \ | ||
94 | $(top_builddir)/src/block/libgnunetblockgroup.la \ | ||
95 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
96 | $(LTLIBINTL) | ||
97 | libgnunet_plugin_block_setu_test_la_LDFLAGS = \ | ||
98 | $(GN_PLUGIN_LDFLAGS) | ||
99 | |||
100 | |||
101 | EXTRA_DIST = \ | ||
102 | test_setu.conf | ||