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 = 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
15 pkgcfg_DATA = \
16   sysmon.conf
17
18 if MINGW
19  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
20 endif
21
22 if USE_COVERAGE
23   AM_CFLAGS = -fprofile-arcs -ftest-coverage
24 endif
25
26 libexec_PROGRAMS = \
27  $(GN_SYSMON)
28
29 check_PROGRAMS = \
30  $(GN_SYSMON_TEST_INIT) \
31  $(GN_SYSMON_TEST_PROCESS) \
32  $(GN_SYSMON_TEST_NETWORK)
33
34 if HAVE_GLIB2
35  
36 gnunet_service_sysmon_SOURCES = \
37  gnunet-service-sysmon.c         
38 gnunet_service_sysmon_LDADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(top_builddir)/src/statistics/libgnunetstatistics.la \
41   $(GN_LIBTOP) \
42   $(GN_LIBINTL)
43
44 test_glibtop_SOURCES = \
45  test_glibtop.c      
46 test_glibtop_LDADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(top_builddir)/src/statistics/libgnunetstatistics.la \
49   $(GN_LIBTOP) \
50   $(GN_LIBINTL)
51
52 test_glibtop_process_SOURCES = \
53  test_glibtop_process.c      
54 test_glibtop_process_LDADD = \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(top_builddir)/src/statistics/libgnunetstatistics.la \
57   $(GN_LIBTOP) \
58   $(GN_LIBINTL)
59
60 test_glibtop_network_SOURCES = \
61  test_glibtop_network.c      
62 test_glibtop_network_LDADD = \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(top_builddir)/src/statistics/libgnunetstatistics.la \
65   $(GN_LIBTOP) \
66   $(GN_LIBINTL)
67 endif
68
69
70 if ENABLE_TEST_RUN
71 TESTS = $(check_PROGRAMS)
72 endif