removing remenants of abstract unix domain socket handling, this finishes addressing...
[oweals/gnunet.git] / src / testbed / Makefile.am
1 AM_CPPFLAGS = -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 ENABLE_LL
13   ll_binaries = \
14     gnunet-testbed-mpi-spawn
15 endif
16
17 libexecdir= $(pkglibdir)/libexec/
18
19 pkgcfgdir= $(pkgdatadir)/config.d/
20
21 pkgcfg_DATA = \
22   testbed.conf
23
24 libexec_PROGRAMS = \
25   gnunet-service-testbed \
26   gnunet-helper-testbed \
27   gnunet-service-testbed-logger \
28   gnunet-daemon-testbed-blacklist
29
30 bin_PROGRAMS = \
31   $(ll_binaries) \
32   gnunet-testbed-profiler
33
34 gnunet_service_testbed_SOURCES = \
35   gnunet-service-testbed.h \
36   gnunet-service-testbed.c \
37   gnunet-service-testbed_links.c \
38   gnunet-service-testbed_peers.c \
39   gnunet-service-testbed_cache.c \
40   gnunet-service-testbed_oc.c \
41   gnunet-service-testbed_cpustatus.c \
42   gnunet-service-testbed_meminfo.c \
43   gnunet-service-testbed_meminfo.h \
44   gnunet-service-testbed_barriers.c \
45   gnunet-service-testbed_barriers.h \
46   gnunet-service-testbed_connectionpool.c \
47   gnunet-service-testbed_connectionpool.h
48 gnunet_service_testbed_LDADD = $(XLIB) \
49  $(top_builddir)/src/util/libgnunetutil.la \
50  $(top_builddir)/src/core/libgnunetcore.la \
51  $(top_builddir)/src/hello/libgnunethello.la \
52  $(top_builddir)/src/transport/libgnunettransport.la \
53  $(top_builddir)/src/testing/libgnunettesting.la \
54  $(top_builddir)/src/testbed/libgnunettestbed.la \
55  $(top_builddir)/src/arm/libgnunetarm.la \
56  $(LTLIBINTL) $(Z_LIBS)
57 gnunet_service_testbed_DEPENDENCIES = \
58  libgnunettestbed.la
59
60 gnunet_service_testbed_logger_SOURCES = \
61   gnunet-service-testbed-logger.c
62 gnunet_service_testbed_logger_LDADD = \
63  $(top_builddir)/src/util/libgnunetutil.la
64 gnunet_service_testbed_logger_DEPENDENCIES = \
65  $(top_builddir)/src/util/libgnunetutil.la
66
67 gnunet_testbed_profiler_SOURCES = \
68   gnunet-testbed-profiler.c
69 gnunet_testbed_profiler_LDADD = $(XLIB) \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(top_builddir)/src/testbed/libgnunettestbed.la
72 gnunet_testbed_profiler_DEPENDENCIES = \
73  $(top_builddir)/src/util/libgnunetutil.la \
74  libgnunettestbed.la
75
76 gnunet_helper_testbed_SOURCES = \
77   gnunet-helper-testbed.c
78 gnunet_helper_testbed_LDADD = $(XLIB) \
79  $(top_builddir)/src/util/libgnunetutil.la \
80  $(top_builddir)/src/testing/libgnunettesting.la \
81  libgnunettestbed.la \
82  $(LTLIBINTL) $(Z_LIBS)
83 gnunet_helper_testbed_DEPENDENCIES = \
84   gnunet-service-testbed.$(OBJEXT) \
85   libgnunettestbed.la
86
87 gnunet_daemon_testbed_blacklist_SOURCES = gnunet-daemon-testbed-blacklist.c
88 gnunet_daemon_testbed_blacklist_LDADD = $(XLIB) \
89  $(top_builddir)/src/transport/libgnunettransport.la \
90  $(top_builddir)/src/util/libgnunetutil.la \
91  $(LTLIBINTL)
92 gnunet_daemon_testbed_blacklist_DEPENDENCIES = \
93  $(top_builddir)/src/transport/libgnunettransport.la \
94  $(top_builddir)/src/util/libgnunetutil.la
95
96 gnunet_testbed_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
97 gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
98  $(top_builddir)/src/util/libgnunetutil.la \
99  $(top_builddir)/src/testbed/libgnunettestbed.la
100 gnunet_testbed_mpi_spawn_DEPENDENCIES = \
101  $(top_builddir)/src/util/libgnunetutil.la \
102  libgnunettestbed.la
103
104 lib_LTLIBRARIES = \
105   libgnunettestbed.la \
106   libgnunettestbedlogger.la
107
108 libgnunettestbed_la_SOURCES = \
109   testbed_api.c testbed_api.h testbed.h \
110   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
111   testbed_api_operations.c testbed_api_operations.h \
112   testbed_api_peers.c testbed_api_peers.h \
113   testbed_api_services.c \
114   testbed_api_statistics.c \
115   testbed_api_testbed.c \
116   testbed_api_test.c \
117   testbed_api_topology.c testbed_api_topology.h \
118   testbed_api_sd.c testbed_api_sd.h \
119   testbed_api_barriers.c 
120 libgnunettestbed_la_LIBADD = $(XLIB) \
121  $(top_builddir)/src/core/libgnunetcore.la \
122  $(top_builddir)/src/statistics/libgnunetstatistics.la \
123  $(top_builddir)/src/transport/libgnunettransport.la \
124  $(top_builddir)/src/hello/libgnunethello.la \
125  -lm \
126  $(top_builddir)/src/util/libgnunetutil.la \
127  $(top_builddir)/src/testing/libgnunettesting.la \
128  $(LTLIBINTL)
129 libgnunettestbed_la_LDFLAGS = \
130  $(GN_LIB_LDFLAGS) \
131  -version-info 0:0:0
132
133 libgnunettestbedlogger_la_SOURCES = \
134   testbed_logger_api.c
135 libgnunettestbedlogger_la_LIBADD = $(XLIB) \
136  $(top_builddir)/src/util/libgnunetutil.la \
137  $(LTLIBINTL)
138 libgnunettestbedlogger_la_LDFLAGS = \
139  $(GN_LIB_LDFLAGS) \
140  -version-info 0:0:0
141
142 check_PROGRAMS = \
143   test_testbed_api_hosts \
144   test_testbed_logger_api \
145   test_gnunet_helper_testbed \
146   test_testbed_api_controllerlink \
147   test_testbed_api_2peers_1controller \
148   test_testbed_api_3peers_3controllers \
149   test_testbed_api \
150   test_testbed_api_sd \
151   test_testbed_api_operations \
152   test_testbed_api_testbed_run \
153   test_testbed_api_test \
154   test_testbed_api_test_timeout \
155   test_testbed_api_peer_reconfiguration \
156   test_testbed_api_peers_manage_services \
157   test_testbed_api_topology \
158   test_testbed_api_topology_clique \
159   test_testbed_api_testbed_run_topologyrandom \
160   test_testbed_api_testbed_run_topologyline \
161   test_testbed_api_testbed_run_topologyclique \
162   test_testbed_api_testbed_run_topologyring \
163   test_testbed_api_testbed_run_topologysmallworldring \
164   test_testbed_api_testbed_run_topology2dtorus \
165   test_testbed_api_testbed_run_topologysmallworld \
166   test_testbed_api_testbed_run_topologyfromfile \
167   test_testbed_api_testbed_run_topologyscalefree \
168   test_testbed_api_testbed_run_waitforever \
169   test_testbed_api_statistics \
170   gnunet-service-test-barriers \
171   test_testbed_api_barriers
172
173 if ENABLE_TEST_RUN
174  TESTS = \
175   test_testbed_api \
176   test_testbed_logger_api \
177   test_testbed_api_sd \
178   test_testbed_api_operations \
179   test_testbed_api_hosts \
180   test_gnunet_helper_testbed \
181   test_testbed_api_2peers_1controller \
182   test_testbed_api_controllerlink \
183   test_testbed_api_3peers_3controllers \
184   test_testbed_api_testbed_run \
185   test_testbed_api_test \
186   test_testbed_api_test_timeout \
187   test_testbed_api_statistics \
188   test_testbed_api_peer_reconfiguration \
189   test_testbed_api_peers_manage_services \
190   test_testbed_api_topology \
191   test_testbed_api_topology_clique \
192   test_testbed_api_testbed_run_topologyrandom \
193   test_testbed_api_testbed_run_topologyline \
194   test_testbed_api_testbed_run_topologyclique \
195   test_testbed_api_testbed_run_topologyring \
196   test_testbed_api_testbed_run_topology2dtorus \
197   test_testbed_api_testbed_run_topologysmallworld \
198   test_testbed_api_testbed_run_topologysmallworldring \
199   test_testbed_api_testbed_run_topologyfromfile \
200   test_testbed_api_testbed_run_topologyscalefree \
201   test_testbed_api_barriers
202 endif
203
204 test_testbed_api_hosts_SOURCES = \
205  test_testbed_api_hosts.c
206 test_testbed_api_hosts_LDADD = \
207  $(top_builddir)/src/util/libgnunetutil.la \
208  libgnunettestbed.la
209
210 test_testbed_api_SOURCES = \
211  test_testbed_api.c
212 test_testbed_api_LDADD = \
213  $(top_builddir)/src/util/libgnunetutil.la \
214  $(top_builddir)/src/testing/libgnunettesting.la \
215  $(top_builddir)/src/arm/libgnunetarm.la \
216  libgnunettestbed.la
217
218 test_testbed_logger_api_SOURCES = \
219  test_testbed_logger_api.c
220 test_testbed_logger_api_LDADD = \
221  $(top_builddir)/src/util/libgnunetutil.la \
222  $(top_builddir)/src/testing/libgnunettesting.la \
223  libgnunettestbedlogger.la
224
225 test_testbed_api_sd_SOURCES = \
226  test_testbed_api_sd.c
227 test_testbed_api_sd_LDADD = \
228  $(top_builddir)/src/util/libgnunetutil.la \
229  libgnunettestbed.la
230
231 test_testbed_api_2peers_1controller_SOURCES = \
232  test_testbed_api_2peers_1controller.c
233 test_testbed_api_2peers_1controller_LDADD = \
234  $(top_builddir)/src/util/libgnunetutil.la \
235  $(top_builddir)/src/testing/libgnunettesting.la \
236  libgnunettestbed.la
237
238 test_testbed_api_3peers_3controllers_SOURCES = \
239  test_testbed_api_3peers_3controllers.c
240 test_testbed_api_3peers_3controllers_LDADD = \
241  $(top_builddir)/src/util/libgnunetutil.la \
242  $(top_builddir)/src/testing/libgnunettesting.la \
243  libgnunettestbed.la
244
245 test_testbed_api_operations_SOURCES = \
246  test_testbed_api_operations.c
247 test_testbed_api_operations_LDADD = \
248  $(top_builddir)/src/util/libgnunetutil.la \
249  libgnunettestbed.la
250
251 test_testbed_api_controllerlink_SOURCES = \
252  test_testbed_api_controllerlink.c
253 test_testbed_api_controllerlink_LDADD = \
254  $(top_builddir)/src/util/libgnunetutil.la \
255  libgnunettestbed.la
256
257 test_testbed_api_testbed_run_SOURCES = \
258  test_testbed_api_testbed_run.c
259 test_testbed_api_testbed_run_LDADD = \
260  $(top_builddir)/src/util/libgnunetutil.la \
261  libgnunettestbed.la
262
263 test_testbed_api_test_SOURCES = \
264  test_testbed_api_test.c
265 test_testbed_api_test_LDADD = \
266  $(top_builddir)/src/util/libgnunetutil.la \
267  libgnunettestbed.la
268
269 test_testbed_api_test_timeout_SOURCES = \
270  test_testbed_api_test_timeout.c
271 test_testbed_api_test_timeout_LDADD = \
272  $(top_builddir)/src/util/libgnunetutil.la \
273  libgnunettestbed.la
274
275 test_testbed_api_topology_SOURCES = \
276  test_testbed_api_topology.c
277 test_testbed_api_topology_LDADD = \
278  $(top_builddir)/src/util/libgnunetutil.la \
279  libgnunettestbed.la
280
281 test_testbed_api_topology_clique_SOURCES = \
282  test_testbed_api_topology_clique.c
283 test_testbed_api_topology_clique_LDADD = \
284  $(top_builddir)/src/util/libgnunetutil.la \
285  libgnunettestbed.la
286
287 test_gnunet_helper_testbed_SOURCES = \
288  test_gnunet_helper_testbed.c
289 test_gnunet_helper_testbed_LDADD = \
290  $(top_builddir)/src/util/libgnunetutil.la \
291  libgnunettestbed.la \
292  $(Z_LIBS)
293
294 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
295  test_testbed_api_testbed_run.c
296 test_testbed_api_testbed_run_topologyrandom_LDADD = \
297  $(top_builddir)/src/util/libgnunetutil.la \
298  libgnunettestbed.la
299
300 test_testbed_api_testbed_run_topologyline_SOURCES = \
301  test_testbed_api_testbed_run.c
302 test_testbed_api_testbed_run_topologyline_LDADD = \
303  $(top_builddir)/src/util/libgnunetutil.la \
304  libgnunettestbed.la
305
306 test_testbed_api_testbed_run_topologyclique_SOURCES = \
307  test_testbed_api_testbed_run.c
308 test_testbed_api_testbed_run_topologyclique_LDADD = \
309  $(top_builddir)/src/util/libgnunetutil.la \
310  libgnunettestbed.la
311
312 test_testbed_api_testbed_run_topologyring_SOURCES = \
313  test_testbed_api_testbed_run.c
314 test_testbed_api_testbed_run_topologyring_LDADD = \
315  $(top_builddir)/src/util/libgnunetutil.la \
316  libgnunettestbed.la
317
318 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
319  test_testbed_api_testbed_run.c
320 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
321  $(top_builddir)/src/util/libgnunetutil.la \
322  libgnunettestbed.la
323
324 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
325  test_testbed_api_testbed_run.c
326 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
327  $(top_builddir)/src/util/libgnunetutil.la \
328  libgnunettestbed.la
329
330 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
331  test_testbed_api_testbed_run.c
332 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
333  $(top_builddir)/src/util/libgnunetutil.la \
334  libgnunettestbed.la
335
336 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
337  test_testbed_api_testbed_run.c
338 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
339  $(top_builddir)/src/util/libgnunetutil.la \
340  libgnunettestbed.la
341
342 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
343  test_testbed_api_testbed_run.c
344 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
345  $(top_builddir)/src/util/libgnunetutil.la \
346  libgnunettestbed.la
347
348 test_testbed_api_testbed_run_waitforever_SOURCES = \
349  test_testbed_api_testbed_run.c
350 test_testbed_api_testbed_run_waitforever_LDADD = \
351  $(top_builddir)/src/util/libgnunetutil.la \
352  libgnunettestbed.la
353
354 test_testbed_api_statistics_SOURCES = \
355  test_testbed_api_statistics.c
356 test_testbed_api_statistics_LDADD = \
357  $(top_builddir)/src/util/libgnunetutil.la \
358  libgnunettestbed.la
359
360 test_testbed_api_peers_manage_services_SOURCES = \
361  test_testbed_api_peers_manage_services.c
362 test_testbed_api_peers_manage_services_LDADD = \
363  $(top_builddir)/src/util/libgnunetutil.la \
364  libgnunettestbed.la
365
366 test_testbed_api_peer_reconfiguration_SOURCES = \
367  test_testbed_api_peer_reconfiguration.c
368 test_testbed_api_peer_reconfiguration_LDADD = \
369  $(top_builddir)/src/util/libgnunetutil.la \
370  libgnunettestbed.la
371
372 test_testbed_api_barriers_SOURCES = \
373  test_testbed_api_barriers.c \
374  test_testbed_api_barriers.h
375 test_testbed_api_barriers_LDADD = \
376  $(top_builddir)/src/util/libgnunetutil.la \
377  libgnunettestbed.la
378 test_testbed_api_barriers_DEPENDENCIES = \
379  gnunet-service-test-barriers
380
381 gnunet_service_test_barriers_SOURCES = \
382   gnunet-service-test-barriers.c \
383   test_testbed_api_barriers.h
384 gnunet_service_test_barriers_LDADD = \
385  $(top_builddir)/src/util/libgnunetutil.la \
386  libgnunettestbed.la
387
388 EXTRA_DIST = \
389   test_testbed_api.conf \
390   test_testbed_api_test_timeout.conf \
391   test_testbed_api_testbed_run_topologyring.conf \
392   test_testbed_api_testbed_run_topologyclique.conf \
393   test_testbed_api_testbed_run_topologyline.conf \
394   test_testbed_api_testbed_run_topologyrandom.conf \
395   test_testbed_api_testbed_run_topologysmallworldring.conf \
396   test_testbed_api_testbed_run_topology2dtorus.conf \
397   test_testbed_api_testbed_run_topologysmallworld.conf \
398   test_testbed_api_testbed_run_topologyfromfile.conf \
399   test_testbed_api_testbed_run_topologyscalefree.conf \
400   test_testbed_api_barriers.conf.in \
401   overlay_topology.txt \
402   sample_hosts.txt \
403   sample.job