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
33 gnunet-service-mesh $(EXP_LIBEXEC)
39 libgnunetmesh.la $(EXP_LIB)
41 plugin_LTLIBRARIES = \
42 libgnunet_plugin_block_mesh.la
44 libgnunet_plugin_block_mesh_la_SOURCES = \
46 libgnunet_plugin_block_mesh_la_LIBADD = \
47 $(top_builddir)/src/block/libgnunetblock.la \
48 $(top_builddir)/src/util/libgnunetutil.la
49 libgnunet_plugin_block_mesh_la_LDFLAGS = \
51 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
52 $(top_builddir)/src/block/libgnunetblock.la \
53 $(top_builddir)/src/util/libgnunetutil.la
55 libgnunetmesh_la_SOURCES = \
56 mesh_api.c mesh_common.c
57 libgnunetmesh_la_LIBADD = \
58 $(top_builddir)/src/util/libgnunetutil.la \
61 libgnunetmesh_la_LDFLAGS = \
62 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
65 libgnunetmesh2_la_SOURCES = \
66 mesh2_api.c mesh_common.c
67 libgnunetmesh2_la_LIBADD = \
68 $(top_builddir)/src/util/libgnunetutil.la \
71 libgnunetmesh2_la_LDFLAGS = \
72 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
76 gnunet_service_mesh_SOURCES = \
77 gnunet-service-mesh.c \
78 mesh_tunnel_tree.c mesh_tunnel_tree.h \
80 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
81 gnunet_service_mesh_LDADD = \
82 $(top_builddir)/src/statistics/libgnunetstatistics.la \
83 $(top_builddir)/src/regex/libgnunetregex.la \
84 $(top_builddir)/src/util/libgnunetutil.la \
85 $(top_builddir)/src/core/libgnunetcore.la \
86 $(top_builddir)/src/dht/libgnunetdht.la \
87 $(top_builddir)/src/block/libgnunetblock.la
88 gnunet_service_mesh_DEPENDENCIES = \
89 $(top_builddir)/src/util/libgnunetutil.la \
90 $(top_builddir)/src/core/libgnunetcore.la \
91 $(top_builddir)/src/dht/libgnunetdht.la \
92 $(top_builddir)/src/statistics/libgnunetstatistics.la \
93 $(top_builddir)/src/block/libgnunetblock.la \
94 $(top_builddir)/src/regex/libgnunetregex.la
96 gnunet_service_mesh_LDFLAGS = -lrt
99 gnunet_mesh_SOURCES = \
101 gnunet_mesh_LDADD = \
102 $(top_builddir)/src/mesh/libgnunetmesh.la \
103 $(top_builddir)/src/util/libgnunetutil.la
104 gnunet_mesh_DEPENDENCIES = \
107 gnunet_service_mesh_new_SOURCES = \
108 gnunet-service-mesh-new.c \
111 gnunet_service_mesh_new_CFLAGS = $(AM_CFLAGS)
112 gnunet_service_mesh_new_LDADD = \
113 $(top_builddir)/src/util/libgnunetutil.la \
114 $(top_builddir)/src/core/libgnunetcore.la \
115 $(top_builddir)/src/dht/libgnunetdht.la \
116 $(top_builddir)/src/statistics/libgnunetstatistics.la \
117 $(top_builddir)/src/block/libgnunetblock.la
118 gnunet_service_mesh_new_DEPENDENCIES = \
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
125 gnunet_service_mesh_new_LDFLAGS = -lrt
129 noinst_LIBRARIES = libgnunetmeshtest.a $(noinst_LIB_EXP)
132 libgnunetmeshtest_a_SOURCES = \
133 mesh_test_lib.c mesh_test_lib.h
134 libgnunetmeshtest_a_LIBADD = \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 $(top_builddir)/src/testbed/libgnunettestbed.la \
137 $(top_builddir)/src/mesh/libgnunetmesh.la
138 libgnunetmeshtest_a_DEPENDENCIES = \
141 libgnunetmesh2test_a_SOURCES = \
142 mesh2_test_lib.c mesh2_test_lib.h
143 libgnunetmesh2test_a_LIBADD = \
144 $(top_builddir)/src/util/libgnunetutil.la \
145 $(top_builddir)/src/testbed/libgnunettestbed.la \
146 $(top_builddir)/src/mesh/libgnunetmesh2.la
147 libgnunetmesh2test_a_DEPENDENCIES = \
156 test_mesh_local_traffic_fwd \
157 test_mesh_local_traffic_bck \
158 test_mesh_local_traffic_both \
160 test_mesh_small_unicast \
161 test_mesh_small_signal \
162 test_mesh_small_speed \
163 test_mesh_small_speed_nobuf \
164 test_mesh_small_speed_backwards \
165 test_mesh_small_speed_nobuf_backwards \
166 test_mesh_small_speed_ack \
170 test_mesh_api_SOURCES = \
172 test_mesh_api_LDADD = \
173 $(top_builddir)/src/util/libgnunetutil.la \
174 $(top_builddir)/src/testing/libgnunettesting.la \
175 $(top_builddir)/src/mesh/libgnunetmesh.la
176 test_mesh_api_DEPENDENCIES = \
178 $(top_builddir)/src/util/libgnunetutil.la
180 test_mesh_tree_api_SOURCES = \
182 test_mesh_tree_api_LDADD = \
183 $(top_builddir)/src/util/libgnunetutil.la \
184 $(top_builddir)/src/dht/libgnunetdht.la
185 test_mesh_tree_api_DEPENDENCIES = \
187 $(top_builddir)/src/dht/libgnunetdht.la
189 test_mesh_local_1_SOURCES = \
191 test_mesh_local_1_LDADD = \
192 $(top_builddir)/src/util/libgnunetutil.la \
193 $(top_builddir)/src/testing/libgnunettesting.la \
194 $(top_builddir)/src/mesh/libgnunetmesh.la
195 test_mesh_local_1_DEPENDENCIES = \
198 test_mesh_local_2_SOURCES = \
200 test_mesh_local_2_LDADD = \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/testing/libgnunettesting.la \
203 $(top_builddir)/src/mesh/libgnunetmesh.la
204 test_mesh_local_2_DEPENDENCIES = \
207 test_mesh_local_traffic_fwd_SOURCES = \
208 test_mesh_local_traffic.c
209 test_mesh_local_traffic_fwd_LDADD = \
210 $(top_builddir)/src/util/libgnunetutil.la \
211 $(top_builddir)/src/testing/libgnunettesting.la \
212 $(top_builddir)/src/mesh/libgnunetmesh.la
213 test_mesh_local_traffic_fwd_DEPENDENCIES = \
216 test_mesh_local_traffic_bck_SOURCES = \
217 test_mesh_local_traffic.c
218 test_mesh_local_traffic_bck_LDADD = \
219 $(top_builddir)/src/util/libgnunetutil.la \
220 $(top_builddir)/src/testing/libgnunettesting.la \
221 $(top_builddir)/src/mesh/libgnunetmesh.la
222 test_mesh_local_traffic_bck_DEPENDENCIES = \
225 test_mesh_local_traffic_both_SOURCES = \
226 test_mesh_local_traffic.c
227 test_mesh_local_traffic_both_LDADD = \
228 $(top_builddir)/src/util/libgnunetutil.la \
229 $(top_builddir)/src/testing/libgnunettesting.la \
230 $(top_builddir)/src/mesh/libgnunetmesh.la
231 test_mesh_local_traffic_both_DEPENDENCIES = \
236 $(top_builddir)/src/mesh/libgnunetmeshtest.a \
237 $(top_builddir)/src/mesh/libgnunetmesh.la \
238 $(top_builddir)/src/testbed/libgnunettestbed.la \
239 $(top_builddir)/src/util/libgnunetutil.la
241 dep_mesh_test_lib = \
242 libgnunetmeshtest.a \
245 test_mesh_2dtorus_SOURCES = \
247 test_mesh_2dtorus_LDADD = $(ld_mesh_test_lib)
248 test_mesh_2dtorus_DEPENDENCIES = $(dep_mesh_test_lib)
250 test_mesh_small_unicast_SOURCES = \
252 test_mesh_small_unicast_LDADD = $(ld_mesh_test_lib)
253 test_mesh_small_unicast_DEPENDENCIES = $(dep_mesh_test_lib)
255 test_mesh_small_signal_SOURCES = \
257 test_mesh_small_signal_LDADD = $(ld_mesh_test_lib)
258 test_mesh_small_signal_DEPENDENCIES = $(dep_mesh_test_lib)
260 test_mesh_small_speed_ack_SOURCES = \
262 test_mesh_small_speed_ack_LDADD = $(ld_mesh_test_lib)
263 test_mesh_small_speed_ack_DEPENDENCIES = $(dep_mesh_test_lib)
265 test_mesh_small_speed_SOURCES = \
267 test_mesh_small_speed_LDADD = $(ld_mesh_test_lib)
268 test_mesh_small_speed_DEPENDENCIES = $(dep_mesh_test_lib)
270 test_mesh_small_speed_nobuf_SOURCES = \
272 test_mesh_small_speed_nobuf_LDADD = $(ld_mesh_test_lib)
273 test_mesh_small_speed_nobuf_DEPENDENCIES = $(dep_mesh_test_lib)
275 test_mesh_small_speed_backwards_SOURCES = \
277 test_mesh_small_speed_backwards_LDADD = $(ld_mesh_test_lib)
278 test_mesh_small_speed_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
280 test_mesh_small_speed_nobuf_backwards_SOURCES = \
282 test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib)
283 test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
286 ld_mesh2_test_lib = \
287 $(top_builddir)/src/mesh/libgnunetmesh2test.a \
288 $(top_builddir)/src/mesh/libgnunetmesh2.la \
289 $(top_builddir)/src/testing/libgnunettesting.la \
290 $(top_builddir)/src/testbed/libgnunettestbed.la \
291 $(top_builddir)/src/util/libgnunetutil.la
293 dep_mesh2_test_lib = \
294 libgnunetmesh2test.a \
297 test_mesh2_local_SOURCES = \
299 test_mesh2_local_LDADD = $(ld_mesh2_test_lib)
300 test_mesh2_local_DEPENDENCIES = $(dep_mesh2_test_lib)
302 test_mesh2_small_forward_SOURCES = \
304 test_mesh2_small_forward_LDADD = $(ld_mesh2_test_lib)
305 test_mesh2_small_forward_DEPENDENCIES = $(dep_mesh2_test_lib)
313 test_mesh_local_1 test_mesh_local_2 \
314 test_mesh_local_traffic_fwd \
315 test_mesh_local_traffic_bck \
316 test_mesh_local_traffic_both \
318 test_mesh_small_unicast \
319 test_mesh_small_signal \
320 test_mesh_small_speed \
321 test_mesh_small_speed_nobuf \
322 test_mesh_small_speed_backwards
326 mesh.h mesh_protocol.h \
328 test_mesh_2dtorus.conf \