-remove debug message
[oweals/gnunet.git] / 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 if WITH_LL
13   CC = mpicc
14   ll_binaries = \
15     gnunet-mpi-test \
16     gnunet-testbed-ll-master \
17     gnunet-testbed-ll-monitor
18 endif
19
20 libexecdir= $(pkglibdir)/libexec/
21
22 pkgcfgdir= $(pkgdatadir)/config.d/
23
24 pkgcfg_DATA = \
25   testbed.conf
26
27 libexec_PROGRAMS = \
28   gnunet-service-testbed \
29   gnunet-helper-testbed
30
31 bin_PROGRAMS = \
32   $(ll_binaries)
33
34 noinst_PROGRAMS = \
35   gnunet-testbed-profiler
36
37 gnunet_service_testbed_SOURCES = \
38   gnunet-service-testbed.c \
39   gnunet-service-testbed.h \
40   gnunet-service-testbed_cache.c \
41   gnunet-service-testbed_oc.c
42 gnunet_service_testbed_LDADD = $(XLIB) \
43  $(top_builddir)/src/util/libgnunetutil.la \
44  $(top_builddir)/src/core/libgnunetcore.la \
45  $(top_builddir)/src/hello/libgnunethello.la \
46  $(top_builddir)/src/transport/libgnunettransport.la \
47  $(top_builddir)/src/testing/libgnunettesting.la \
48  $(top_builddir)/src/testbed/libgnunettestbed.la \
49  $(LTLIBINTL) -lz
50 gnunet_service_testbed_DEPENDENCIES = \
51   libgnunettestbed.la
52
53 gnunet_testbed_profiler_SOURCES = \
54   gnunet-testbed-profiler.c
55 gnunet_testbed_profiler_LDADD = $(XLIB) \
56  $(top_builddir)/src/util/libgnunetutil.la \
57  libgnunettestbed.la
58
59 gnunet_helper_testbed_SOURCES = \
60   gnunet-helper-testbed.c
61 gnunet_helper_testbed_LDADD = $(XLIB) \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(top_builddir)/src/testing/libgnunettesting.la \
64  libgnunettestbed.la \
65  $(LTLIBINTL) -lz
66 gnunet_helper_testbed_DEPENDENCIES = \
67   gnunet-service-testbed.$(OBJEXT) \
68   libgnunettestbed.la
69
70 gnunet_testbed_ll_master_SOURCES = \
71   gnunet_testbed_ll_master.c
72 gnunet_testbed_ll_master_LDADD = $(XLIB) \
73  $(top_builddir)/src/util/libgnunetutil.la \
74  $(LTLIBINTL) -lz -lllapi
75
76 gnunet_testbed_ll_monitor_SOURCES = \
77   gnunet_testbed_ll_monitor.c
78 gnunet_testbed_ll_monitor_LDADD = $(XLIB) \
79  $(LTLIBINTL) -lz -lllapi
80
81 gnunet_mpi_test_SOURCES = gnunet_mpi_test.c
82 gnunet_mpi_test_LDADD = \
83  $(top_builddir)/src/util/libgnunetutil.la
84
85 lib_LTLIBRARIES = \
86   libgnunettestbed.la
87
88 libgnunettestbed_la_SOURCES = \
89   testbed_api.c testbed_api.h testbed.h \
90   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
91   testbed_api_operations.c testbed_api_operations.h \
92   testbed_api_peers.c testbed_api_peers.h \
93   testbed_api_services.c \
94   testbed_api_statistics.c \
95   testbed_api_testbed.c \
96   testbed_api_test.c \
97   testbed_api_topology.c testbed_api_topology.h \
98   testbed_api_sd.c testbed_api_sd.h
99 libgnunettestbed_la_LIBADD = $(XLIB) \
100  $(top_builddir)/src/core/libgnunetcore.la \
101  $(top_builddir)/src/statistics/libgnunetstatistics.la \
102  $(top_builddir)/src/transport/libgnunettransport.la \
103  $(top_builddir)/src/hello/libgnunethello.la \
104  -lm \
105  $(top_builddir)/src/util/libgnunetutil.la \
106  $(top_builddir)/src/testing/libgnunettesting.la \
107  $(LTLIBINTL)
108 libgnunettestbed_la_LDFLAGS = \
109  $(GN_LIB_LDFLAGS) \
110  -version-info 0:0:0
111
112 check_PROGRAMS = \
113   test_testbed_api_hosts \
114   test_testbed_api_controllerlink \
115   test_testbed_api_2peers_1controller \
116   test_testbed_api_3peers_3controllers \
117   test_testbed_api \
118   test_testbed_api_sd \
119   test_testbed_api_operations \
120   test_testbed_api_testbed_run \
121   test_testbed_api_test \
122   test_gnunet_helper_testbed \
123   test_testbed_api_topology \
124   test_testbed_api_topology_clique \
125   test_testbed_api_testbed_run_topologyrandom \
126   test_testbed_api_testbed_run_topologyline \
127   test_testbed_api_testbed_run_topologyclique \
128   test_testbed_api_testbed_run_topologyring \
129   test_testbed_api_testbed_run_topologysmallworldring \
130   test_testbed_api_testbed_run_topology2dtorus \
131   test_testbed_api_testbed_run_topologysmallworld \
132   test_testbed_api_testbed_run_topologyfromfile \
133   test_testbed_api_testbed_run_topologyscalefree
134
135 if ENABLE_TEST_RUN
136  TESTS = \
137   test_testbed_api \
138   test_testbed_api_sd \
139   test_testbed_api_operations \
140   test_testbed_api_hosts \
141   test_gnunet_helper_testbed \
142   test_testbed_api_2peers_1controller \
143   test_testbed_api_controllerlink \
144   test_testbed_api_3peers_3controllers \
145   test_testbed_api_testbed_run \
146   test_testbed_api_test \
147   test_testbed_api_topology \
148   test_testbed_api_topology_clique \
149   test_testbed_api_testbed_run_topologyrandom \
150   test_testbed_api_testbed_run_topologyline \
151   test_testbed_api_testbed_run_topologyclique \
152   test_testbed_api_testbed_run_topologyring \
153   test_testbed_api_testbed_run_topology2dtorus \
154   test_testbed_api_testbed_run_topologysmallworld \
155   test_testbed_api_testbed_run_topologysmallworldring \
156   test_testbed_api_testbed_run_topologyfromfile \
157   test_testbed_api_testbed_run_topologyscalefree
158 endif
159
160 test_testbed_api_hosts_SOURCES = \
161  test_testbed_api_hosts.c
162 test_testbed_api_hosts_LDADD = \
163  $(top_builddir)/src/util/libgnunetutil.la \
164  libgnunettestbed.la
165
166 test_testbed_api_SOURCES = \
167  test_testbed_api.c
168 test_testbed_api_LDADD = \
169  $(top_builddir)/src/util/libgnunetutil.la \
170  $(top_builddir)/src/testing/libgnunettesting.la \
171  $(top_builddir)/src/dht/libgnunetdht.la \
172  libgnunettestbed.la
173
174 test_testbed_api_sd_SOURCES = \
175  test_testbed_api_sd.c
176 test_testbed_api_sd_LDADD = \
177  $(top_builddir)/src/util/libgnunetutil.la \
178  libgnunettestbed.la
179
180 test_testbed_api_2peers_1controller_SOURCES = \
181  test_testbed_api_2peers_1controller.c
182 test_testbed_api_2peers_1controller_LDADD = \
183  $(top_builddir)/src/util/libgnunetutil.la \
184  $(top_builddir)/src/testing/libgnunettesting.la \
185  libgnunettestbed.la
186
187 test_testbed_api_3peers_3controllers_SOURCES = \
188  test_testbed_api_3peers_3controllers.c
189 test_testbed_api_3peers_3controllers_LDADD = \
190  $(top_builddir)/src/util/libgnunetutil.la \
191  $(top_builddir)/src/testing/libgnunettesting.la \
192  libgnunettestbed.la
193
194 test_testbed_api_operations_SOURCES = \
195  test_testbed_api_operations.c
196 test_testbed_api_operations_LDADD = \
197  $(top_builddir)/src/util/libgnunetutil.la \
198  libgnunettestbed.la
199
200 test_testbed_api_controllerlink_SOURCES = \
201  test_testbed_api_controllerlink.c
202 test_testbed_api_controllerlink_LDADD = \
203  $(top_builddir)/src/util/libgnunetutil.la \
204  libgnunettestbed.la
205
206 test_testbed_api_testbed_run_SOURCES = \
207  test_testbed_api_testbed_run.c
208 test_testbed_api_testbed_run_LDADD = \
209  $(top_builddir)/src/util/libgnunetutil.la \
210  libgnunettestbed.la
211
212 test_testbed_api_test_SOURCES = \
213  test_testbed_api_test.c
214 test_testbed_api_test_LDADD = \
215  $(top_builddir)/src/util/libgnunetutil.la \
216  libgnunettestbed.la
217
218 test_testbed_api_topology_SOURCES = \
219  test_testbed_api_topology.c
220 test_testbed_api_topology_LDADD = \
221  $(top_builddir)/src/util/libgnunetutil.la \
222  libgnunettestbed.la
223
224 test_testbed_api_topology_clique_SOURCES = \
225  test_testbed_api_topology_clique.c
226 test_testbed_api_topology_clique_LDADD = \
227  $(top_builddir)/src/util/libgnunetutil.la \
228  libgnunettestbed.la
229
230 test_gnunet_helper_testbed_SOURCES = \
231  test_gnunet_helper_testbed.c
232 test_gnunet_helper_testbed_LDADD = \
233  $(top_builddir)/src/util/libgnunetutil.la \
234  libgnunettestbed.la \
235  -lz
236
237 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
238  test_testbed_api_testbed_run.c
239 test_testbed_api_testbed_run_topologyrandom_LDADD = \
240  $(top_builddir)/src/util/libgnunetutil.la \
241  libgnunettestbed.la
242
243 test_testbed_api_testbed_run_topologyline_SOURCES = \
244  test_testbed_api_testbed_run.c
245 test_testbed_api_testbed_run_topologyline_LDADD = \
246  $(top_builddir)/src/util/libgnunetutil.la \
247  libgnunettestbed.la
248
249 test_testbed_api_testbed_run_topologyclique_SOURCES = \
250  test_testbed_api_testbed_run.c
251 test_testbed_api_testbed_run_topologyclique_LDADD = \
252  $(top_builddir)/src/util/libgnunetutil.la \
253  libgnunettestbed.la
254
255 test_testbed_api_testbed_run_topologyring_SOURCES = \
256  test_testbed_api_testbed_run.c
257 test_testbed_api_testbed_run_topologyring_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la \
259  libgnunettestbed.la
260
261 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
262  test_testbed_api_testbed_run.c
263 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
264  $(top_builddir)/src/util/libgnunetutil.la \
265  libgnunettestbed.la
266
267 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
268  test_testbed_api_testbed_run.c
269 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
270  $(top_builddir)/src/util/libgnunetutil.la \
271  libgnunettestbed.la
272
273 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
274  test_testbed_api_testbed_run.c
275 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
276  $(top_builddir)/src/util/libgnunetutil.la \
277  libgnunettestbed.la
278
279 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
280  test_testbed_api_testbed_run.c
281 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
282  $(top_builddir)/src/util/libgnunetutil.la \
283  libgnunettestbed.la
284
285 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
286  test_testbed_api_testbed_run.c
287 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
288  $(top_builddir)/src/util/libgnunetutil.la \
289  libgnunettestbed.la
290
291 EXTRA_DIST = \
292   test_testbed_api.conf \
293   test_testbed_api_testbed_run_topologyring.conf \
294   test_testbed_api_testbed_run_topologyclique.conf \
295   test_testbed_api_testbed_run_topologyline.conf \
296   test_testbed_api_testbed_run_topologyrandom.conf \
297   test_testbed_api_testbed_run_topologysmallworldring.conf \
298   test_testbed_api_testbed_run_topology2dtorus.conf \
299   test_testbed_api_testbed_run_topologysmallworld.conf \
300   test_testbed_api_testbed_run_topologyfromfile.conf \
301   test_testbed_api_testbed_run_topologyscalefree.conf \
302   overlay_topology.txt \
303   sample_hosts.txt \
304   sample.job