diff options
Diffstat (limited to 'src/service/statistics/Makefile.am')
-rw-r--r-- | src/service/statistics/Makefile.am | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/service/statistics/Makefile.am b/src/service/statistics/Makefile.am new file mode 100644 index 000000000..42c010c54 --- /dev/null +++ b/src/service/statistics/Makefile.am | |||
@@ -0,0 +1,88 @@ | |||
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 | statistics.conf | ||
15 | |||
16 | lib_LTLIBRARIES = libgnunetstatistics.la | ||
17 | |||
18 | libgnunetstatistics_la_SOURCES = \ | ||
19 | statistics_api.c statistics.h | ||
20 | libgnunetstatistics_la_LIBADD = \ | ||
21 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
22 | $(GN_LIBINTL) $(XLIB) | ||
23 | libgnunetstatistics_la_LDFLAGS = \ | ||
24 | $(GN_LIB_LDFLAGS) \ | ||
25 | -version-info 2:0:0 | ||
26 | |||
27 | libexec_PROGRAMS = \ | ||
28 | gnunet-service-statistics | ||
29 | |||
30 | gnunet_service_statistics_SOURCES = \ | ||
31 | gnunet-service-statistics.c | ||
32 | gnunet_service_statistics_LDADD = \ | ||
33 | libgnunetstatistics.la \ | ||
34 | $(top_builddir)/src/lib/util/libgnunetutil.la \ | ||
35 | $(GN_LIBINTL) | ||
36 | |||
37 | check_PROGRAMS = \ | ||
38 | test_statistics_api \ | ||
39 | test_statistics_api_loop \ | ||
40 | test_statistics_api_watch \ | ||
41 | test_statistics_api_watch_zero_value | ||
42 | |||
43 | if ENABLE_TEST_RUN | ||
44 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
45 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) | ||
46 | endif | ||
47 | |||
48 | test_statistics_api_SOURCES = \ | ||
49 | test_statistics_api.c | ||
50 | test_statistics_api_LDADD = \ | ||
51 | libgnunetstatistics.la \ | ||
52 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
53 | |||
54 | test_statistics_api_loop_SOURCES = \ | ||
55 | test_statistics_api_loop.c | ||
56 | test_statistics_api_loop_LDADD = \ | ||
57 | libgnunetstatistics.la \ | ||
58 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
59 | |||
60 | test_statistics_api_watch_SOURCES = \ | ||
61 | test_statistics_api_watch.c | ||
62 | test_statistics_api_watch_LDADD = \ | ||
63 | libgnunetstatistics.la \ | ||
64 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
65 | |||
66 | test_statistics_api_watch_zero_value_SOURCES = \ | ||
67 | test_statistics_api_watch_zero_value.c | ||
68 | test_statistics_api_watch_zero_value_LDADD = \ | ||
69 | libgnunetstatistics.la \ | ||
70 | $(top_builddir)/src/lib/util/libgnunetutil.la | ||
71 | |||
72 | # Needs to be done with CLI | ||
73 | #if HAVE_PYTHON | ||
74 | #check_SCRIPTS = \ | ||
75 | # test_gnunet_statistics.py | ||
76 | #endif | ||
77 | # | ||
78 | #SUFFIXES = .py.in .py | ||
79 | #.py.in.py: | ||
80 | # $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/scripts/dosubst.awk < $(srcdir)/$< > $@ | ||
81 | # chmod +x $@ | ||
82 | # | ||
83 | #test_gnunet_statistics.py: test_gnunet_statistics.py.in Makefile | ||
84 | # $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/scripts/dosubst.awk < $(srcdir)/test_gnunet_statistics.py.in > test_gnunet_statistics.py | ||
85 | # chmod +x test_gnunet_statistics.py | ||
86 | # | ||
87 | EXTRA_DIST = \ | ||
88 | test_statistics_api_data.conf | ||