aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:15:14 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-12-17 12:15:14 +0000
commit2479f4e482192d6c00ed573547bc0c472bf6c53b (patch)
treeffa7a402bfc1bfc88e285fbdbcd9ff2b8bb98a30
parentf1a2a3459ee87b77ab6a15c879c6c10f4ef9c4f8 (diff)
glib check
-rw-r--r--src/sysmon/Makefile.am28
1 files changed, 20 insertions, 8 deletions
diff --git a/src/sysmon/Makefile.am b/src/sysmon/Makefile.am
index 0e87a627f4..07c0800f46 100644
--- a/src/sysmon/Makefile.am
+++ b/src/sysmon/Makefile.am
@@ -1,9 +1,17 @@
-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/
+INCLUDES = -I$(top_srcdir)/src/include -I/usr/include/libgtop-2.0/
pkgcfgdir= $(pkgdatadir)/config.d/
libexecdir= $(pkglibdir)/libexec/
+if HAVE_GLIB2
+ GN_LIBTOP = -lgtop-2.0
+ GN_SYSMON = gnunet_service_sysmon
+ GN_SYSMON_TEST_INIT = test_glibtop
+ GN_SYSMON_TEST_PROCESS = test_glibtop_process
+ GN_SYSMON_TEST_NETWORK = test_glibtop_network
+endif
+
pkgcfg_DATA = \
sysmon.conf
@@ -16,18 +24,21 @@ if USE_COVERAGE
endif
libexec_PROGRAMS = \
- gnunet_service_sysmon
+ $(GN_SYSMON)
check_PROGRAMS = \
- test_glibtop \
- test_glibtop_process \
- test_glibtop_network
+ $(GN_SYSMON_TEST_INIT) \
+ $(GN_SYSMON_TEST_PROCESS) \
+ $(GN_SYSMON_TEST_NETWORK)
+
+if HAVE_GLIB2
gnunet_service_sysmon_SOURCES = \
gnunet-service-sysmon.c
gnunet_service_sysmon_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
+ $(GN_LIBTOP) \
$(GN_LIBINTL)
test_glibtop_SOURCES = \
@@ -35,7 +46,7 @@ test_glibtop_SOURCES = \
test_glibtop_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
- -lgtop-2.0 \
+ $(GN_LIBTOP) \
$(GN_LIBINTL)
test_glibtop_process_SOURCES = \
@@ -43,7 +54,7 @@ test_glibtop_process_SOURCES = \
test_glibtop_process_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
- -lgtop-2.0 \
+ $(GN_LIBTOP) \
$(GN_LIBINTL)
test_glibtop_network_SOURCES = \
@@ -51,8 +62,9 @@ test_glibtop_network_SOURCES = \
test_glibtop_network_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/statistics/libgnunetstatistics.la \
- -lgtop-2.0 \
+ $(GN_LIBTOP) \
$(GN_LIBINTL)
+endif
if ENABLE_TEST_RUN