- restructure
[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 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
28 bin_PROGRAMS = \
29   $(ll_binaries) \
30   gnunet-testbed-profiler
31
32 gnunet_service_testbed_SOURCES = \
33   gnunet-service-testbed.h \
34   gnunet-service-testbed.c \
35   gnunet-service-testbed_peers.c \
36   gnunet-service-testbed_cache.c \
37   gnunet-service-testbed_oc.c \
38   gnunet-service-testbed_cpustatus.c
39 gnunet_service_testbed_LDADD = $(XLIB) \
40  $(top_builddir)/src/util/libgnunetutil.la \
41  $(top_builddir)/src/core/libgnunetcore.la \
42  $(top_builddir)/src/hello/libgnunethello.la \
43  $(top_builddir)/src/transport/libgnunettransport.la \
44  $(top_builddir)/src/testing/libgnunettesting.la \
45  $(top_builddir)/src/testbed/libgnunettestbed.la \
46  $(top_builddir)/src/arm/libgnunetarm.la \
47  $(LTLIBINTL) -lz
48 gnunet_service_testbed_DEPENDENCIES = \
49  libgnunettestbed.la
50
51 gnunet_testbed_profiler_SOURCES = \
52   gnunet-testbed-profiler.c
53 gnunet_testbed_profiler_LDADD = $(XLIB) \
54  $(top_builddir)/src/util/libgnunetutil.la \
55  $(top_builddir)/src/testbed/libgnunettestbed.la
56 gnunet_testbed_profiler_DEPENDENCIES = \
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_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
71 gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
72  $(top_builddir)/src/util/libgnunetutil.la \
73  $(top_builddir)/src/testbed/libgnunettestbed.la
74 gnunet_testbed_mpi_spawn_DEPENDENCIES = \
75  $(top_builddir)/src/util/libgnunetutil.la \
76  libgnunettestbed.la
77
78 lib_LTLIBRARIES = \
79   libgnunettestbed.la
80
81 libgnunettestbed_la_SOURCES = \
82   testbed_api.c testbed_api.h testbed.h \
83   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
84   testbed_api_operations.c testbed_api_operations.h \
85   testbed_api_peers.c testbed_api_peers.h \
86   testbed_api_services.c \
87   testbed_api_statistics.c \
88   testbed_api_testbed.c \
89   testbed_api_test.c \
90   testbed_api_topology.c testbed_api_topology.h \
91   testbed_api_sd.c testbed_api_sd.h
92 libgnunettestbed_la_LIBADD = $(XLIB) \
93  $(top_builddir)/src/core/libgnunetcore.la \
94  $(top_builddir)/src/statistics/libgnunetstatistics.la \
95  $(top_builddir)/src/transport/libgnunettransport.la \
96  $(top_builddir)/src/hello/libgnunethello.la \
97  -lm \
98  $(top_builddir)/src/util/libgnunetutil.la \
99  $(top_builddir)/src/testing/libgnunettesting.la \
100  $(LTLIBINTL)
101 libgnunettestbed_la_LDFLAGS = \
102  $(GN_LIB_LDFLAGS) \
103  -version-info 0:0:0
104
105 check_PROGRAMS = \
106   test_testbed_api_hosts \
107   test_gnunet_helper_testbed \
108   test_testbed_api_controllerlink \
109   test_testbed_api_2peers_1controller \
110   test_testbed_api_3peers_3controllers \
111   test_testbed_api \
112   test_testbed_api_sd \
113   test_testbed_api_operations \
114   test_testbed_api_testbed_run \
115   test_testbed_api_test \
116   test_testbed_api_test_timeout \
117   test_testbed_api_peers_manage_services \
118   test_testbed_api_topology \
119   test_testbed_api_topology_clique \
120   test_testbed_api_testbed_run_topologyrandom \
121   test_testbed_api_testbed_run_topologyline \
122   test_testbed_api_testbed_run_topologyclique \
123   test_testbed_api_testbed_run_topologyring \
124   test_testbed_api_testbed_run_topologysmallworldring \
125   test_testbed_api_testbed_run_topology2dtorus \
126   test_testbed_api_testbed_run_topologysmallworld \
127   test_testbed_api_testbed_run_topologyfromfile \
128   test_testbed_api_testbed_run_topologyscalefree \
129   test_testbed_api_statistics
130
131 if ENABLE_TEST_RUN
132  TESTS = \
133   test_testbed_api \
134   test_testbed_api_sd \
135   test_testbed_api_operations \
136   test_testbed_api_hosts \
137   test_gnunet_helper_testbed \
138   test_testbed_api_2peers_1controller \
139   test_testbed_api_controllerlink \
140   test_testbed_api_3peers_3controllers \
141   test_testbed_api_testbed_run \
142   test_testbed_api_test \
143   test_testbed_api_test_timeout \
144   test_testbed_api_statistics \
145   test_testbed_api_peers_manage_services \
146   test_testbed_api_topology \
147   test_testbed_api_topology_clique \
148   test_testbed_api_testbed_run_topologyrandom \
149   test_testbed_api_testbed_run_topologyline \
150   test_testbed_api_testbed_run_topologyclique \
151   test_testbed_api_testbed_run_topologyring \
152   test_testbed_api_testbed_run_topology2dtorus \
153   test_testbed_api_testbed_run_topologysmallworld \
154   test_testbed_api_testbed_run_topologysmallworldring \
155   test_testbed_api_testbed_run_topologyfromfile \
156   test_testbed_api_testbed_run_topologyscalefree
157 endif
158
159 test_testbed_api_hosts_SOURCES = \
160  test_testbed_api_hosts.c
161 test_testbed_api_hosts_LDADD = \
162  $(top_builddir)/src/util/libgnunetutil.la \
163  libgnunettestbed.la
164
165 test_testbed_api_SOURCES = \
166  test_testbed_api.c
167 test_testbed_api_LDADD = \
168  $(top_builddir)/src/util/libgnunetutil.la \
169  $(top_builddir)/src/testing/libgnunettesting.la \
170  $(top_builddir)/src/dht/libgnunetdht.la \
171  libgnunettestbed.la
172
173 test_testbed_api_sd_SOURCES = \
174  test_testbed_api_sd.c
175 test_testbed_api_sd_LDADD = \
176  $(top_builddir)/src/util/libgnunetutil.la \
177  libgnunettestbed.la
178
179 test_testbed_api_2peers_1controller_SOURCES = \
180  test_testbed_api_2peers_1controller.c
181 test_testbed_api_2peers_1controller_LDADD = \
182  $(top_builddir)/src/util/libgnunetutil.la \
183  $(top_builddir)/src/testing/libgnunettesting.la \
184  libgnunettestbed.la
185
186 test_testbed_api_3peers_3controllers_SOURCES = \
187  test_testbed_api_3peers_3controllers.c
188 test_testbed_api_3peers_3controllers_LDADD = \
189  $(top_builddir)/src/util/libgnunetutil.la \
190  $(top_builddir)/src/testing/libgnunettesting.la \
191  libgnunettestbed.la
192
193 test_testbed_api_operations_SOURCES = \
194  test_testbed_api_operations.c
195 test_testbed_api_operations_LDADD = \
196  $(top_builddir)/src/util/libgnunetutil.la \
197  libgnunettestbed.la
198
199 test_testbed_api_controllerlink_SOURCES = \
200  test_testbed_api_controllerlink.c
201 test_testbed_api_controllerlink_LDADD = \
202  $(top_builddir)/src/util/libgnunetutil.la \
203  libgnunettestbed.la
204
205 test_testbed_api_testbed_run_SOURCES = \
206  test_testbed_api_testbed_run.c
207 test_testbed_api_testbed_run_LDADD = \
208  $(top_builddir)/src/util/libgnunetutil.la \
209  libgnunettestbed.la
210
211 test_testbed_api_test_SOURCES = \
212  test_testbed_api_test.c
213 test_testbed_api_test_LDADD = \
214  $(top_builddir)/src/util/libgnunetutil.la \
215  libgnunettestbed.la
216
217 test_testbed_api_test_timeout_SOURCES = \
218  test_testbed_api_test_timeout.c
219 test_testbed_api_test_timeout_LDADD = \
220  $(top_builddir)/src/util/libgnunetutil.la \
221  libgnunettestbed.la
222
223 test_testbed_api_topology_SOURCES = \
224  test_testbed_api_topology.c
225 test_testbed_api_topology_LDADD = \
226  $(top_builddir)/src/util/libgnunetutil.la \
227  libgnunettestbed.la
228
229 test_testbed_api_topology_clique_SOURCES = \
230  test_testbed_api_topology_clique.c
231 test_testbed_api_topology_clique_LDADD = \
232  $(top_builddir)/src/util/libgnunetutil.la \
233  libgnunettestbed.la
234
235 test_gnunet_helper_testbed_SOURCES = \
236  test_gnunet_helper_testbed.c
237 test_gnunet_helper_testbed_LDADD = \
238  $(top_builddir)/src/util/libgnunetutil.la \
239  libgnunettestbed.la \
240  -lz
241
242 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
243  test_testbed_api_testbed_run.c
244 test_testbed_api_testbed_run_topologyrandom_LDADD = \
245  $(top_builddir)/src/util/libgnunetutil.la \
246  libgnunettestbed.la
247
248 test_testbed_api_testbed_run_topologyline_SOURCES = \
249  test_testbed_api_testbed_run.c
250 test_testbed_api_testbed_run_topologyline_LDADD = \
251  $(top_builddir)/src/util/libgnunetutil.la \
252  libgnunettestbed.la
253
254 test_testbed_api_testbed_run_topologyclique_SOURCES = \
255  test_testbed_api_testbed_run.c
256 test_testbed_api_testbed_run_topologyclique_LDADD = \
257  $(top_builddir)/src/util/libgnunetutil.la \
258  libgnunettestbed.la
259
260 test_testbed_api_testbed_run_topologyring_SOURCES = \
261  test_testbed_api_testbed_run.c
262 test_testbed_api_testbed_run_topologyring_LDADD = \
263  $(top_builddir)/src/util/libgnunetutil.la \
264  libgnunettestbed.la
265
266 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
267  test_testbed_api_testbed_run.c
268 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
269  $(top_builddir)/src/util/libgnunetutil.la \
270  libgnunettestbed.la
271
272 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
273  test_testbed_api_testbed_run.c
274 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
275  $(top_builddir)/src/util/libgnunetutil.la \
276  libgnunettestbed.la
277
278 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
279  test_testbed_api_testbed_run.c
280 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
281  $(top_builddir)/src/util/libgnunetutil.la \
282  libgnunettestbed.la
283
284 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
285  test_testbed_api_testbed_run.c
286 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
287  $(top_builddir)/src/util/libgnunetutil.la \
288  libgnunettestbed.la
289
290 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
291  test_testbed_api_testbed_run.c
292 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
293  $(top_builddir)/src/util/libgnunetutil.la \
294  libgnunettestbed.la
295
296 test_testbed_api_statistics_SOURCES = \
297  test_testbed_api_statistics.c
298 test_testbed_api_statistics_LDADD = \
299  $(top_builddir)/src/util/libgnunetutil.la \
300  libgnunettestbed.la
301
302 test_testbed_api_peers_manage_services_SOURCES = \
303  test_testbed_api_peers_manage_services.c
304 test_testbed_api_peers_manage_services_LDADD = \
305  $(top_builddir)/src/util/libgnunetutil.la \
306  libgnunettestbed.la
307
308 EXTRA_DIST = \
309   test_testbed_api.conf \
310   test_testbed_api_test_timeout.conf \
311   test_testbed_api_testbed_run_topologyring.conf \
312   test_testbed_api_testbed_run_topologyclique.conf \
313   test_testbed_api_testbed_run_topologyline.conf \
314   test_testbed_api_testbed_run_topologyrandom.conf \
315   test_testbed_api_testbed_run_topologysmallworldring.conf \
316   test_testbed_api_testbed_run_topology2dtorus.conf \
317   test_testbed_api_testbed_run_topologysmallworld.conf \
318   test_testbed_api_testbed_run_topologyfromfile.conf \
319   test_testbed_api_testbed_run_topologyscalefree.conf \
320   overlay_topology.txt \
321   sample_hosts.txt \
322   sample.job