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