changes
[oweals/gnunet.git] / src / sysmon / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 if HAVE_LIBGTOP
8   GN_LIBTOP = -lgtop-2.0 -lglib-2.0
9   GN_SYSMON_TEST_INIT = test_glibtop
10   GN_SYSMON_TEST_PROCESS = test_glibtop_process
11   GN_SYSMON_TEST_NETWORK = test_glibtop_network 
12 endif
13
14 pkgcfg_DATA = \
15   sysmon.conf
16
17 if MINGW
18  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
19 endif
20
21 if USE_COVERAGE
22   AM_CFLAGS = -fprofile-arcs -ftest-coverage
23 endif
24
25 libexec_PROGRAMS = \
26  gnunet_service_sysmon
27
28 check_PROGRAMS = \
29  $(GN_SYSMON_TEST_INIT) \
30  $(GN_SYSMON_TEST_PROCESS) \
31  $(GN_SYSMON_TEST_NETWORK)
32  
33 gnunet_service_sysmon_SOURCES = \
34  gnunet-service-sysmon.c         
35 gnunet_service_sysmon_LDADD = \
36   $(top_builddir)/src/util/libgnunetutil.la \
37   $(top_builddir)/src/statistics/libgnunetstatistics.la \
38   $(GN_LIBTOP) \
39   $(GN_LIBINTL)
40
41 if HAVE_GLIB2
42 test_glibtop_SOURCES = \
43  test_glibtop.c      
44 test_glibtop_LDADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(top_builddir)/src/statistics/libgnunetstatistics.la \
47   $(GN_LIBTOP) \
48   $(GN_LIBINTL)
49
50 test_glibtop_process_SOURCES = \
51  test_glibtop_process.c      
52 test_glibtop_process_LDADD = \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(top_builddir)/src/statistics/libgnunetstatistics.la \
55   $(GN_LIBTOP) \
56   $(GN_LIBINTL)
57
58 test_glibtop_network_SOURCES = \
59  test_glibtop_network.c      
60 test_glibtop_network_LDADD = \
61   $(top_builddir)/src/util/libgnunetutil.la \
62   $(top_builddir)/src/statistics/libgnunetstatistics.la \
63   $(GN_LIBTOP) \
64   $(GN_LIBINTL)
65 endif
66
67
68 if ENABLE_TEST_RUN
69 TESTS = $(check_PROGRAMS)
70 endif
71
72 EXTRA_DIST = \
73 sysmon-properties.conf