fixed memory leak with HELLO
[oweals/gnunet.git] / src / testbed / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 pkgcfg_DATA = \
15   testbed.conf
16
17 bin_PROGRAMS = \
18   gnunet-service-testbed \
19   gnunet-testbed-helper
20
21 gnunet_service_testbed_SOURCES = \
22   gnunet-service-testbed.c
23 gnunet_service_testbed_LDADD = $(XLIB) \
24  $(top_builddir)/src/util/libgnunetutil.la \
25  $(top_builddir)/src/core/libgnunetcore.la \
26  $(top_builddir)/src/hello/libgnunethello.la \
27  $(top_builddir)/src/transport/libgnunettransport.la \
28  $(top_builddir)/src/testing/libgnunettesting.la \
29  $(top_builddir)/src/testbed/libgnunettestbed.la \
30  $(LTLIBINTL) -lz
31 gnunet_service_testbed_DEPENDENCIES = \
32   libgnunettestbed.la
33
34 gnunet_testbed_helper_SOURCES = \
35   gnunet-testbed-helper.c
36 gnunet_testbed_helper_LDADD = $(XLIB) \
37  $(top_builddir)/src/util/libgnunetutil.la \
38  $(top_builddir)/src/testing/libgnunettesting.la \
39  libgnunettestbed.la \
40  $(LTLIBINTL) -lz
41 gnunet_testbed_helper_DEPENDENCIES = \
42   gnunet-service-testbed.$(OBJEXT) \
43   libgnunettestbed.la
44
45 lib_LTLIBRARIES = \
46   libgnunettestbed.la
47
48 libgnunettestbed_la_SOURCES = \
49   testbed_api.c testbed_api.h testbed.h \
50   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
51   testbed_api_operations.c testbed_api_operations.h \
52   testbed_api_peers.c testbed_api_peers.h \
53   testbed_api_services.c \
54   testbed_api_testbed.c \
55   testbed_api_test.c \
56   testbed_api_topology.c
57 libgnunettestbed_la_LIBADD = $(XLIB) \
58  $(top_builddir)/src/core/libgnunetcore.la \
59  $(top_builddir)/src/statistics/libgnunetstatistics.la \
60  $(top_builddir)/src/transport/libgnunettransport.la \
61  $(top_builddir)/src/hello/libgnunethello.la \
62  -lm \
63  $(top_builddir)/src/util/libgnunetutil.la \
64  $(top_builddir)/src/testing/libgnunettesting.la \
65  $(LTLIBINTL)
66 libgnunettestbed_la_LDFLAGS = \
67  $(GN_LIB_LDFLAGS) \
68  -version-info 0:0:0
69
70 check_PROGRAMS = \
71  test_testbed_api_hosts \
72  test_testbed_api_2peers \
73  test_testbed_api \
74  test_testbed_api_operations \
75  test_gnunet_testbed_helper
76
77 if ENABLE_TEST_RUN
78  TESTS = \
79   test_testbed_api \
80   test_testbed_api_hosts \
81   test_testbed_api_2peers \
82   test_testbed_api_operations \
83   test_gnunet_testbed_helper
84 endif
85
86 test_testbed_api_hosts_SOURCES = \
87  test_testbed_api_hosts.c
88 test_testbed_api_hosts_LDADD = \
89  $(top_builddir)/src/util/libgnunetutil.la \
90  libgnunettestbed.la
91
92 test_testbed_api_SOURCES = \
93  test_testbed_api.c
94 test_testbed_api_LDADD = \
95  $(top_builddir)/src/util/libgnunetutil.la \
96  $(top_builddir)/src/testing/libgnunettesting.la \
97  libgnunettestbed.la
98
99 test_testbed_api_2peers_SOURCES = \
100  test_testbed_api_2peers.c
101 test_testbed_api_2peers_LDADD = \
102  $(top_builddir)/src/util/libgnunetutil.la \
103  $(top_builddir)/src/testing/libgnunettesting.la \
104  libgnunettestbed.la
105
106 test_testbed_api_operations_SOURCES = \
107  test_testbed_api_operations.c
108 test_testbed_api_operations_LDADD = \
109  $(top_builddir)/src/util/libgnunetutil.la \
110  libgnunettestbed.la
111
112 test_gnunet_testbed_helper_SOURCES = \
113  test_gnunet_testbed_helper.c
114 test_gnunet_testbed_helper_LDADD = \
115  $(top_builddir)/src/util/libgnunetutil.la \
116  libgnunettestbed.la \
117  -lz