add a test for glibtop
[oweals/gnunet.git] / src / sysmon / Makefile.am
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/
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 pkgcfg_DATA = \
8   sysmon.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = -fprofile-arcs -ftest-coverage
16 endif
17
18 libexec_PROGRAMS = \
19  gnunet_daemon_sysmon
20
21 check_PROGRAMS = \
22  test_glibtop
23  
24 gnunet_daemon_sysmon_SOURCES = \
25  gnunet-daemon-sysmon.c         
26 gnunet_daemon_sysmon_LDADD = \
27   $(top_builddir)/src/util/libgnunetutil.la \
28   $(top_builddir)/src/statistics/libgnunetstatistics.la \
29   $(GN_LIBINTL)
30
31 test_glibtop_SOURCES = \
32  test_glibtop.c      
33 test_glibtop_LDADD = \
34   $(top_builddir)/src/util/libgnunetutil.la \
35   $(top_builddir)/src/statistics/libgnunetstatistics.la \
36   -lgtop-2.0 \
37   $(GN_LIBINTL)
38
39
40 if ENABLE_TEST_RUN
41 TESTS = $(check_PROGRAMS)
42 endif