diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-17 12:15:14 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-12-17 12:15:14 +0000 |
commit | 2479f4e482192d6c00ed573547bc0c472bf6c53b (patch) | |
tree | ffa7a402bfc1bfc88e285fbdbcd9ff2b8bb98a30 /src/sysmon | |
parent | f1a2a3459ee87b77ab6a15c879c6c10f4ef9c4f8 (diff) | |
download | gnunet-2479f4e482192d6c00ed573547bc0c472bf6c53b.tar.gz gnunet-2479f4e482192d6c00ed573547bc0c472bf6c53b.zip |
glib check
Diffstat (limited to 'src/sysmon')
-rw-r--r-- | src/sysmon/Makefile.am | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/src/sysmon/Makefile.am b/src/sysmon/Makefile.am index 0e87a627f..07c0800f4 100644 --- a/src/sysmon/Makefile.am +++ b/src/sysmon/Makefile.am | |||
@@ -1,9 +1,17 @@ | |||
1 | INCLUDES = -I$(top_srcdir)/src/include -I/usr/include/glib-2.0 -I/usr/include -I/usr/lib/x86_64-linux-gnu/glib-2.0/include/ -I/usr/include/libgtop-2.0/ | 1 | INCLUDES = -I$(top_srcdir)/src/include -I/usr/include/libgtop-2.0/ |
2 | 2 | ||
3 | pkgcfgdir= $(pkgdatadir)/config.d/ | 3 | pkgcfgdir= $(pkgdatadir)/config.d/ |
4 | 4 | ||
5 | libexecdir= $(pkglibdir)/libexec/ | 5 | libexecdir= $(pkglibdir)/libexec/ |
6 | 6 | ||
7 | if HAVE_GLIB2 | ||
8 | GN_LIBTOP = -lgtop-2.0 | ||
9 | GN_SYSMON = gnunet_service_sysmon | ||
10 | GN_SYSMON_TEST_INIT = test_glibtop | ||
11 | GN_SYSMON_TEST_PROCESS = test_glibtop_process | ||
12 | GN_SYSMON_TEST_NETWORK = test_glibtop_network | ||
13 | endif | ||
14 | |||
7 | pkgcfg_DATA = \ | 15 | pkgcfg_DATA = \ |
8 | sysmon.conf | 16 | sysmon.conf |
9 | 17 | ||
@@ -16,18 +24,21 @@ if USE_COVERAGE | |||
16 | endif | 24 | endif |
17 | 25 | ||
18 | libexec_PROGRAMS = \ | 26 | libexec_PROGRAMS = \ |
19 | gnunet_service_sysmon | 27 | $(GN_SYSMON) |
20 | 28 | ||
21 | check_PROGRAMS = \ | 29 | check_PROGRAMS = \ |
22 | test_glibtop \ | 30 | $(GN_SYSMON_TEST_INIT) \ |
23 | test_glibtop_process \ | 31 | $(GN_SYSMON_TEST_PROCESS) \ |
24 | test_glibtop_network | 32 | $(GN_SYSMON_TEST_NETWORK) |
33 | |||
34 | if HAVE_GLIB2 | ||
25 | 35 | ||
26 | gnunet_service_sysmon_SOURCES = \ | 36 | gnunet_service_sysmon_SOURCES = \ |
27 | gnunet-service-sysmon.c | 37 | gnunet-service-sysmon.c |
28 | gnunet_service_sysmon_LDADD = \ | 38 | gnunet_service_sysmon_LDADD = \ |
29 | $(top_builddir)/src/util/libgnunetutil.la \ | 39 | $(top_builddir)/src/util/libgnunetutil.la \ |
30 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 40 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
41 | $(GN_LIBTOP) \ | ||
31 | $(GN_LIBINTL) | 42 | $(GN_LIBINTL) |
32 | 43 | ||
33 | test_glibtop_SOURCES = \ | 44 | test_glibtop_SOURCES = \ |
@@ -35,7 +46,7 @@ test_glibtop_SOURCES = \ | |||
35 | test_glibtop_LDADD = \ | 46 | test_glibtop_LDADD = \ |
36 | $(top_builddir)/src/util/libgnunetutil.la \ | 47 | $(top_builddir)/src/util/libgnunetutil.la \ |
37 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 48 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
38 | -lgtop-2.0 \ | 49 | $(GN_LIBTOP) \ |
39 | $(GN_LIBINTL) | 50 | $(GN_LIBINTL) |
40 | 51 | ||
41 | test_glibtop_process_SOURCES = \ | 52 | test_glibtop_process_SOURCES = \ |
@@ -43,7 +54,7 @@ test_glibtop_process_SOURCES = \ | |||
43 | test_glibtop_process_LDADD = \ | 54 | test_glibtop_process_LDADD = \ |
44 | $(top_builddir)/src/util/libgnunetutil.la \ | 55 | $(top_builddir)/src/util/libgnunetutil.la \ |
45 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 56 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
46 | -lgtop-2.0 \ | 57 | $(GN_LIBTOP) \ |
47 | $(GN_LIBINTL) | 58 | $(GN_LIBINTL) |
48 | 59 | ||
49 | test_glibtop_network_SOURCES = \ | 60 | test_glibtop_network_SOURCES = \ |
@@ -51,8 +62,9 @@ test_glibtop_network_SOURCES = \ | |||
51 | test_glibtop_network_LDADD = \ | 62 | test_glibtop_network_LDADD = \ |
52 | $(top_builddir)/src/util/libgnunetutil.la \ | 63 | $(top_builddir)/src/util/libgnunetutil.la \ |
53 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 64 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
54 | -lgtop-2.0 \ | 65 | $(GN_LIBTOP) \ |
55 | $(GN_LIBINTL) | 66 | $(GN_LIBINTL) |
67 | endif | ||
56 | 68 | ||
57 | 69 | ||
58 | if ENABLE_TEST_RUN | 70 | if ENABLE_TEST_RUN |