1 INCLUDES = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
14 libexecdir= $(pkglibdir)/libexec/
19 plugindir = $(libdir)/gnunet
24 noinst_LIB_EXP = libgnunetmesh2test.a
25 EXP_LIB = libgnunetmesh2.la
26 EXP_LIBEXEC = gnunet-service-mesh-new
29 test_mesh2_small_forward \
30 test_mesh2_small_signal \
31 test_mesh2_small_speed \
32 test_mesh2_small_speed_ack \
33 test_mesh2_small_speed_nobuf \
34 test_mesh2_small_speed_backwards \
35 test_mesh2_small_speed_nobuf_backwards
39 gnunet-service-mesh $(EXP_LIBEXEC)
45 libgnunetmesh.la $(EXP_LIB)
47 plugin_LTLIBRARIES = \
48 libgnunet_plugin_block_mesh.la
50 libgnunet_plugin_block_mesh_la_SOURCES = \
52 libgnunet_plugin_block_mesh_la_LIBADD = \
53 $(top_builddir)/src/block/libgnunetblock.la \
54 $(top_builddir)/src/util/libgnunetutil.la
55 libgnunet_plugin_block_mesh_la_LDFLAGS = \
57 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
58 $(top_builddir)/src/block/libgnunetblock.la \
59 $(top_builddir)/src/util/libgnunetutil.la
61 libgnunetmesh_la_SOURCES = \
62 mesh_api.c mesh_common.c
63 libgnunetmesh_la_LIBADD = \
64 $(top_builddir)/src/util/libgnunetutil.la \
67 libgnunetmesh_la_LDFLAGS = \
68 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
71 libgnunetmesh2_la_SOURCES = \
72 mesh2_api.c mesh_common.c
73 libgnunetmesh2_la_LIBADD = \
74 $(top_builddir)/src/util/libgnunetutil.la \
77 libgnunetmesh2_la_LDFLAGS = \
78 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
82 gnunet_service_mesh_SOURCES = \
83 gnunet-service-mesh.c \
84 mesh_tunnel_tree.c mesh_tunnel_tree.h \
86 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
87 gnunet_service_mesh_LDADD = \
88 $(top_builddir)/src/statistics/libgnunetstatistics.la \
89 $(top_builddir)/src/regex/libgnunetregex.la \
90 $(top_builddir)/src/util/libgnunetutil.la \
91 $(top_builddir)/src/core/libgnunetcore.la \
92 $(top_builddir)/src/dht/libgnunetdht.la \
93 $(top_builddir)/src/block/libgnunetblock.la
94 gnunet_service_mesh_DEPENDENCIES = \
95 $(top_builddir)/src/util/libgnunetutil.la \
96 $(top_builddir)/src/core/libgnunetcore.la \
97 $(top_builddir)/src/dht/libgnunetdht.la \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
99 $(top_builddir)/src/block/libgnunetblock.la \
100 $(top_builddir)/src/regex/libgnunetregex.la
102 gnunet_service_mesh_LDFLAGS = -lrt
105 gnunet_mesh_SOURCES = \
107 gnunet_mesh_LDADD = \
108 $(top_builddir)/src/mesh/libgnunetmesh.la \
109 $(top_builddir)/src/util/libgnunetutil.la
110 gnunet_mesh_DEPENDENCIES = \
113 gnunet_service_mesh_new_SOURCES = \
114 gnunet-service-mesh-new.c \
117 gnunet_service_mesh_new_CFLAGS = $(AM_CFLAGS)
118 gnunet_service_mesh_new_LDADD = \
119 $(top_builddir)/src/util/libgnunetutil.la \
120 $(top_builddir)/src/core/libgnunetcore.la \
121 $(top_builddir)/src/dht/libgnunetdht.la \
122 $(top_builddir)/src/statistics/libgnunetstatistics.la \
123 $(top_builddir)/src/block/libgnunetblock.la
124 gnunet_service_mesh_new_DEPENDENCIES = \
125 $(top_builddir)/src/util/libgnunetutil.la \
126 $(top_builddir)/src/core/libgnunetcore.la \
127 $(top_builddir)/src/dht/libgnunetdht.la \
128 $(top_builddir)/src/statistics/libgnunetstatistics.la \
129 $(top_builddir)/src/block/libgnunetblock.la
131 gnunet_service_mesh_new_LDFLAGS = -lrt
135 noinst_LIBRARIES = libgnunetmeshtest.a $(noinst_LIB_EXP)
138 libgnunetmeshtest_a_SOURCES = \
139 mesh_test_lib.c mesh_test_lib.h
140 libgnunetmeshtest_a_LIBADD = \
141 $(top_builddir)/src/util/libgnunetutil.la \
142 $(top_builddir)/src/testbed/libgnunettestbed.la \
143 $(top_builddir)/src/mesh/libgnunetmesh.la
144 libgnunetmeshtest_a_DEPENDENCIES = \
147 libgnunetmesh2test_a_SOURCES = \
148 mesh2_test_lib.c mesh2_test_lib.h
149 libgnunetmesh2test_a_LIBADD = \
150 $(top_builddir)/src/util/libgnunetutil.la \
151 $(top_builddir)/src/testbed/libgnunettestbed.la \
152 $(top_builddir)/src/mesh/libgnunetmesh2.la
153 libgnunetmesh2test_a_DEPENDENCIES = \
162 test_mesh_local_traffic_fwd \
163 test_mesh_local_traffic_bck \
164 test_mesh_local_traffic_both \
166 test_mesh_small_unicast \
167 test_mesh_small_signal \
168 test_mesh_small_speed \
169 test_mesh_small_speed_nobuf \
170 test_mesh_small_speed_backwards \
171 test_mesh_small_speed_nobuf_backwards \
172 test_mesh_small_speed_ack \
176 test_mesh_api_SOURCES = \
178 test_mesh_api_LDADD = \
179 $(top_builddir)/src/util/libgnunetutil.la \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 $(top_builddir)/src/mesh/libgnunetmesh.la
182 test_mesh_api_DEPENDENCIES = \
184 $(top_builddir)/src/util/libgnunetutil.la
186 test_mesh_tree_api_SOURCES = \
188 test_mesh_tree_api_LDADD = \
189 $(top_builddir)/src/util/libgnunetutil.la \
190 $(top_builddir)/src/dht/libgnunetdht.la
191 test_mesh_tree_api_DEPENDENCIES = \
193 $(top_builddir)/src/dht/libgnunetdht.la
195 test_mesh_local_1_SOURCES = \
197 test_mesh_local_1_LDADD = \
198 $(top_builddir)/src/util/libgnunetutil.la \
199 $(top_builddir)/src/testing/libgnunettesting.la \
200 $(top_builddir)/src/mesh/libgnunetmesh.la
201 test_mesh_local_1_DEPENDENCIES = \
204 test_mesh_local_2_SOURCES = \
206 test_mesh_local_2_LDADD = \
207 $(top_builddir)/src/util/libgnunetutil.la \
208 $(top_builddir)/src/testing/libgnunettesting.la \
209 $(top_builddir)/src/mesh/libgnunetmesh.la
210 test_mesh_local_2_DEPENDENCIES = \
213 test_mesh_local_traffic_fwd_SOURCES = \
214 test_mesh_local_traffic.c
215 test_mesh_local_traffic_fwd_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/testing/libgnunettesting.la \
218 $(top_builddir)/src/mesh/libgnunetmesh.la
219 test_mesh_local_traffic_fwd_DEPENDENCIES = \
222 test_mesh_local_traffic_bck_SOURCES = \
223 test_mesh_local_traffic.c
224 test_mesh_local_traffic_bck_LDADD = \
225 $(top_builddir)/src/util/libgnunetutil.la \
226 $(top_builddir)/src/testing/libgnunettesting.la \
227 $(top_builddir)/src/mesh/libgnunetmesh.la
228 test_mesh_local_traffic_bck_DEPENDENCIES = \
231 test_mesh_local_traffic_both_SOURCES = \
232 test_mesh_local_traffic.c
233 test_mesh_local_traffic_both_LDADD = \
234 $(top_builddir)/src/util/libgnunetutil.la \
235 $(top_builddir)/src/testing/libgnunettesting.la \
236 $(top_builddir)/src/mesh/libgnunetmesh.la
237 test_mesh_local_traffic_both_DEPENDENCIES = \
242 $(top_builddir)/src/mesh/libgnunetmeshtest.a \
243 $(top_builddir)/src/mesh/libgnunetmesh.la \
244 $(top_builddir)/src/testbed/libgnunettestbed.la \
245 $(top_builddir)/src/util/libgnunetutil.la
247 dep_mesh_test_lib = \
248 libgnunetmeshtest.a \
251 test_mesh_2dtorus_SOURCES = \
253 test_mesh_2dtorus_LDADD = $(ld_mesh_test_lib)
254 test_mesh_2dtorus_DEPENDENCIES = $(dep_mesh_test_lib)
256 test_mesh_small_unicast_SOURCES = \
258 test_mesh_small_unicast_LDADD = $(ld_mesh_test_lib)
259 test_mesh_small_unicast_DEPENDENCIES = $(dep_mesh_test_lib)
261 test_mesh_small_signal_SOURCES = \
263 test_mesh_small_signal_LDADD = $(ld_mesh_test_lib)
264 test_mesh_small_signal_DEPENDENCIES = $(dep_mesh_test_lib)
266 test_mesh_small_speed_ack_SOURCES = \
268 test_mesh_small_speed_ack_LDADD = $(ld_mesh_test_lib)
269 test_mesh_small_speed_ack_DEPENDENCIES = $(dep_mesh_test_lib)
271 test_mesh_small_speed_SOURCES = \
273 test_mesh_small_speed_LDADD = $(ld_mesh_test_lib)
274 test_mesh_small_speed_DEPENDENCIES = $(dep_mesh_test_lib)
276 test_mesh_small_speed_nobuf_SOURCES = \
278 test_mesh_small_speed_nobuf_LDADD = $(ld_mesh_test_lib)
279 test_mesh_small_speed_nobuf_DEPENDENCIES = $(dep_mesh_test_lib)
281 test_mesh_small_speed_backwards_SOURCES = \
283 test_mesh_small_speed_backwards_LDADD = $(ld_mesh_test_lib)
284 test_mesh_small_speed_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
286 test_mesh_small_speed_nobuf_backwards_SOURCES = \
288 test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib)
289 test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
292 ld_mesh2_test_lib = \
293 $(top_builddir)/src/mesh/libgnunetmesh2test.a \
294 $(top_builddir)/src/mesh/libgnunetmesh2.la \
295 $(top_builddir)/src/testing/libgnunettesting.la \
296 $(top_builddir)/src/testbed/libgnunettestbed.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 dep_mesh2_test_lib = \
300 libgnunetmesh2test.a \
303 test_mesh2_local_SOURCES = \
305 test_mesh2_local_LDADD = $(ld_mesh2_test_lib)
306 test_mesh2_local_DEPENDENCIES = $(dep_mesh2_test_lib)
308 test_mesh2_small_forward_SOURCES = \
310 test_mesh2_small_forward_LDADD = $(ld_mesh2_test_lib)
311 test_mesh2_small_forward_DEPENDENCIES = $(dep_mesh2_test_lib)
313 test_mesh2_small_signal_SOURCES = \
315 test_mesh2_small_signal_LDADD = $(ld_mesh2_test_lib)
316 test_mesh2_small_signal_DEPENDENCIES = $(dep_mesh2_test_lib)
318 test_mesh2_small_speed_SOURCES = \
320 test_mesh2_small_speed_LDADD = $(ld_mesh2_test_lib)
321 test_mesh2_small_speed_DEPENDENCIES = $(dep_mesh2_test_lib)
323 test_mesh2_small_speed_ack_SOURCES = \
325 test_mesh2_small_speed_ack_LDADD = $(ld_mesh2_test_lib)
326 test_mesh2_small_speed_ack_DEPENDENCIES = $(dep_mesh2_test_lib)
328 test_mesh2_small_speed_nobuf_SOURCES = \
330 test_mesh2_small_speed_nobuf_LDADD = $(ld_mesh2_test_lib)
331 test_mesh2_small_speed_nobuf_DEPENDENCIES = $(dep_mesh2_test_lib)
333 test_mesh2_small_speed_backwards_SOURCES = \
335 test_mesh2_small_speed_backwards_LDADD = $(ld_mesh2_test_lib)
336 test_mesh2_small_speed_backwards_DEPENDENCIES = $(dep_mesh2_test_lib)
338 test_mesh2_small_speed_nobuf_backwards_SOURCES = \
340 test_mesh2_small_speed_nobuf_backwards_LDADD = $(ld_mesh2_test_lib)
341 test_mesh2_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh2_test_lib)
349 test_mesh_local_1 test_mesh_local_2 \
350 test_mesh_local_traffic_fwd \
351 test_mesh_local_traffic_bck \
352 test_mesh_local_traffic_both \
354 test_mesh_small_unicast \
355 test_mesh_small_signal \
356 test_mesh_small_speed \
357 test_mesh_small_speed_nobuf \
358 test_mesh_small_speed_backwards
362 mesh.h mesh_protocol.h \
364 test_mesh_2dtorus.conf \