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