diff options
Diffstat (limited to 'src/statistics/Makefile.am')
-rw-r--r-- | src/statistics/Makefile.am | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/src/statistics/Makefile.am b/src/statistics/Makefile.am deleted file mode 100644 index 52f382156..000000000 --- a/src/statistics/Makefile.am +++ /dev/null | |||
@@ -1,98 +0,0 @@ | |||
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/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 | bin_PROGRAMS = \ | ||
31 | gnunet-statistics | ||
32 | |||
33 | gnunet_statistics_SOURCES = \ | ||
34 | gnunet-statistics.c | ||
35 | gnunet_statistics_LDADD = \ | ||
36 | libgnunetstatistics.la \ | ||
37 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
38 | $(GN_LIBINTL) | ||
39 | |||
40 | gnunet_service_statistics_SOURCES = \ | ||
41 | gnunet-service-statistics.c | ||
42 | gnunet_service_statistics_LDADD = \ | ||
43 | libgnunetstatistics.la \ | ||
44 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
45 | $(GN_LIBINTL) | ||
46 | |||
47 | check_PROGRAMS = \ | ||
48 | test_statistics_api \ | ||
49 | test_statistics_api_loop \ | ||
50 | test_statistics_api_watch \ | ||
51 | test_statistics_api_watch_zero_value | ||
52 | |||
53 | if ENABLE_TEST_RUN | ||
54 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | ||
55 | TESTS = $(check_PROGRAMS) $(check_SCRIPTS) | ||
56 | endif | ||
57 | |||
58 | test_statistics_api_SOURCES = \ | ||
59 | test_statistics_api.c | ||
60 | test_statistics_api_LDADD = \ | ||
61 | libgnunetstatistics.la \ | ||
62 | $(top_builddir)/src/util/libgnunetutil.la | ||
63 | |||
64 | test_statistics_api_loop_SOURCES = \ | ||
65 | test_statistics_api_loop.c | ||
66 | test_statistics_api_loop_LDADD = \ | ||
67 | libgnunetstatistics.la \ | ||
68 | $(top_builddir)/src/util/libgnunetutil.la | ||
69 | |||
70 | test_statistics_api_watch_SOURCES = \ | ||
71 | test_statistics_api_watch.c | ||
72 | test_statistics_api_watch_LDADD = \ | ||
73 | libgnunetstatistics.la \ | ||
74 | $(top_builddir)/src/util/libgnunetutil.la | ||
75 | |||
76 | test_statistics_api_watch_zero_value_SOURCES = \ | ||
77 | test_statistics_api_watch_zero_value.c | ||
78 | test_statistics_api_watch_zero_value_LDADD = \ | ||
79 | libgnunetstatistics.la \ | ||
80 | $(top_builddir)/src/util/libgnunetutil.la | ||
81 | |||
82 | if HAVE_PYTHON | ||
83 | check_SCRIPTS = \ | ||
84 | test_gnunet_statistics.py | ||
85 | endif | ||
86 | |||
87 | SUFFIXES = .py.in .py | ||
88 | .py.in.py: | ||
89 | $(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)/bin/dosubst.awk < $(srcdir)/$< > $@ | ||
90 | chmod +x $@ | ||
91 | |||
92 | test_gnunet_statistics.py: test_gnunet_statistics.py.in Makefile | ||
93 | $(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)/bin/dosubst.awk < $(srcdir)/test_gnunet_statistics.py.in > test_gnunet_statistics.py | ||
94 | chmod +x test_gnunet_statistics.py | ||
95 | |||
96 | EXTRA_DIST = \ | ||
97 | test_statistics_api_data.conf \ | ||
98 | test_gnunet_statistics.py.in | ||