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 EXP_LIB = libgnunetmesh2.la
25 EXP_LIBEXEC = gnunet-service-mesh-new
29 gnunet-service-mesh $(EXP_LIBEXEC)
35 libgnunetmesh.la $(EXP_LIB)
37 plugin_LTLIBRARIES = \
38 libgnunet_plugin_block_mesh.la
40 libgnunet_plugin_block_mesh_la_SOURCES = \
42 libgnunet_plugin_block_mesh_la_LIBADD = \
43 $(top_builddir)/src/block/libgnunetblock.la \
44 $(top_builddir)/src/util/libgnunetutil.la
45 libgnunet_plugin_block_mesh_la_LDFLAGS = \
47 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
48 $(top_builddir)/src/block/libgnunetblock.la \
49 $(top_builddir)/src/util/libgnunetutil.la
51 libgnunetmesh_la_SOURCES = \
52 mesh_api.c mesh_common.c
53 libgnunetmesh_la_LIBADD = \
54 $(top_builddir)/src/util/libgnunetutil.la \
57 libgnunetmesh_la_LDFLAGS = \
58 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
61 libgnunetmesh2_la_SOURCES = \
62 mesh2_api.c mesh_common.c
63 libgnunetmesh2_la_LIBADD = \
64 $(top_builddir)/src/util/libgnunetutil.la \
67 libgnunetmesh2_la_LDFLAGS = \
68 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
72 gnunet_service_mesh_SOURCES = \
73 gnunet-service-mesh.c \
74 mesh_tunnel_tree.c mesh_tunnel_tree.h \
76 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
77 gnunet_service_mesh_LDADD = \
78 $(top_builddir)/src/util/libgnunetutil.la \
79 $(top_builddir)/src/core/libgnunetcore.la \
80 $(top_builddir)/src/dht/libgnunetdht.la \
81 $(top_builddir)/src/statistics/libgnunetstatistics.la \
82 $(top_builddir)/src/block/libgnunetblock.la \
83 $(top_builddir)/src/regex/libgnunetregex.la
84 gnunet_service_mesh_DEPENDENCIES = \
85 $(top_builddir)/src/util/libgnunetutil.la \
86 $(top_builddir)/src/core/libgnunetcore.la \
87 $(top_builddir)/src/dht/libgnunetdht.la \
88 $(top_builddir)/src/statistics/libgnunetstatistics.la \
89 $(top_builddir)/src/block/libgnunetblock.la \
90 $(top_builddir)/src/regex/libgnunetregex.la
92 gnunet_service_mesh_LDFLAGS = -lrt
95 gnunet_mesh_SOURCES = \
98 $(top_builddir)/src/mesh/libgnunetmesh.la \
99 $(top_builddir)/src/util/libgnunetutil.la
100 gnunet_mesh_DEPENDENCIES = \
103 gnunet_service_mesh_new_SOURCES = \
104 gnunet-service-mesh-new.c \
107 gnunet_service_mesh_new_CFLAGS = $(AM_CFLAGS)
108 gnunet_service_mesh_new_LDADD = \
109 $(top_builddir)/src/util/libgnunetutil.la \
110 $(top_builddir)/src/core/libgnunetcore.la \
111 $(top_builddir)/src/dht/libgnunetdht.la \
112 $(top_builddir)/src/statistics/libgnunetstatistics.la \
113 $(top_builddir)/src/block/libgnunetblock.la \
114 $(top_builddir)/src/regex/libgnunetregex.la
115 gnunet_service_mesh_new_DEPENDENCIES = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/core/libgnunetcore.la \
118 $(top_builddir)/src/dht/libgnunetdht.la \
119 $(top_builddir)/src/statistics/libgnunetstatistics.la \
120 $(top_builddir)/src/block/libgnunetblock.la \
121 $(top_builddir)/src/regex/libgnunetregex.la
123 gnunet_service_mesh_new_LDFLAGS = -lrt
127 noinst_LIBRARIES = libgnunetmeshtest.a
129 libgnunetmeshtest_a_SOURCES = \
130 mesh_test_lib.c mesh_test_lib.h
131 libgnunetmeshtest_a_LIBADD = \
132 $(top_builddir)/src/util/libgnunetutil.la \
133 $(top_builddir)/src/testbed/libgnunettestbed.la \
134 $(top_builddir)/src/mesh/libgnunetmesh.la
135 libgnunetmeshtest_a_DEPENDENCIES = \
144 test_mesh_local_traffic_fwd \
145 test_mesh_local_traffic_bck \
146 test_mesh_local_traffic_both \
149 test_mesh_small_unicast \
150 test_mesh_small_multicast \
151 test_mesh_small_signal \
152 test_mesh_small_speed \
153 test_mesh_small_speed_nobuf \
154 test_mesh_small_speed_min \
155 test_mesh_small_speed_backwards \
156 test_mesh_small_speed_nobuf_backwards \
157 test_mesh_small_speed_min_backwards \
158 test_mesh_small_speed_ack
160 test_mesh_api_SOURCES = \
162 test_mesh_api_LDADD = \
163 $(top_builddir)/src/util/libgnunetutil.la \
164 $(top_builddir)/src/testing/libgnunettesting.la \
165 $(top_builddir)/src/mesh/libgnunetmesh.la
166 test_mesh_api_DEPENDENCIES = \
168 $(top_builddir)/src/util/libgnunetutil.la
170 test_mesh_tree_api_SOURCES = \
172 test_mesh_tree_api_LDADD = \
173 $(top_builddir)/src/util/libgnunetutil.la \
174 $(top_builddir)/src/dht/libgnunetdht.la
175 test_mesh_tree_api_DEPENDENCIES = \
177 $(top_builddir)/src/dht/libgnunetdht.la
179 test_mesh_local_1_SOURCES = \
181 test_mesh_local_1_LDADD = \
182 $(top_builddir)/src/util/libgnunetutil.la \
183 $(top_builddir)/src/testing/libgnunettesting.la \
184 $(top_builddir)/src/mesh/libgnunetmesh.la
185 test_mesh_local_1_DEPENDENCIES = \
188 test_mesh_local_2_SOURCES = \
190 test_mesh_local_2_LDADD = \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/testing/libgnunettesting.la \
193 $(top_builddir)/src/mesh/libgnunetmesh.la
194 test_mesh_local_2_DEPENDENCIES = \
197 test_mesh_local_traffic_fwd_SOURCES = \
198 test_mesh_local_traffic.c
199 test_mesh_local_traffic_fwd_LDADD = \
200 $(top_builddir)/src/util/libgnunetutil.la \
201 $(top_builddir)/src/testing/libgnunettesting.la \
202 $(top_builddir)/src/mesh/libgnunetmesh.la
203 test_mesh_local_traffic_fwd_DEPENDENCIES = \
206 test_mesh_local_traffic_bck_SOURCES = \
207 test_mesh_local_traffic.c
208 test_mesh_local_traffic_bck_LDADD = \
209 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/testing/libgnunettesting.la \
211 $(top_builddir)/src/mesh/libgnunetmesh.la
212 test_mesh_local_traffic_bck_DEPENDENCIES = \
215 test_mesh_local_traffic_both_SOURCES = \
216 test_mesh_local_traffic.c
217 test_mesh_local_traffic_both_LDADD = \
218 $(top_builddir)/src/util/libgnunetutil.la \
219 $(top_builddir)/src/testing/libgnunettesting.la \
220 $(top_builddir)/src/mesh/libgnunetmesh.la
221 test_mesh_local_traffic_both_DEPENDENCIES = \
226 $(top_builddir)/src/mesh/libgnunetmeshtest.a \
227 $(top_builddir)/src/mesh/libgnunetmesh.la \
228 $(top_builddir)/src/testbed/libgnunettestbed.la \
229 $(top_builddir)/src/util/libgnunetutil.la
231 dep_mesh_test_lib = \
232 libgnunetmeshtest.a \
235 test_mesh_2dtorus_SOURCES = \
237 test_mesh_2dtorus_LDADD = $(ld_mesh_test_lib)
238 test_mesh_2dtorus_DEPENDENCIES = $(dep_mesh_test_lib)
240 test_mesh_regex_SOURCES = \
242 test_mesh_regex_LDADD = $(ld_mesh_test_lib)
243 test_mesh_regex_DEPENDENCIES = $(dep_mesh_test_lib)
245 test_mesh_small_unicast_SOURCES = \
247 test_mesh_small_unicast_LDADD = $(ld_mesh_test_lib)
248 test_mesh_small_unicast_DEPENDENCIES = $(dep_mesh_test_lib)
250 test_mesh_small_multicast_SOURCES = \
252 test_mesh_small_multicast_LDADD = $(ld_mesh_test_lib)
253 test_mesh_small_multicast_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_min_SOURCES = \
272 test_mesh_small_speed_min_LDADD = $(ld_mesh_test_lib)
273 test_mesh_small_speed_min_DEPENDENCIES = $(dep_mesh_test_lib)
275 test_mesh_small_speed_nobuf_SOURCES = \
277 test_mesh_small_speed_nobuf_LDADD = $(ld_mesh_test_lib)
278 test_mesh_small_speed_nobuf_DEPENDENCIES = $(dep_mesh_test_lib)
280 test_mesh_small_speed_backwards_SOURCES = \
282 test_mesh_small_speed_backwards_LDADD = $(ld_mesh_test_lib)
283 test_mesh_small_speed_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
285 test_mesh_small_speed_min_backwards_SOURCES = \
287 test_mesh_small_speed_min_backwards_LDADD = $(ld_mesh_test_lib)
288 test_mesh_small_speed_min_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
290 test_mesh_small_speed_nobuf_backwards_SOURCES = \
292 test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib)
293 test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
297 TESTS = test_mesh_api \
299 test_mesh_local_1 test_mesh_local_2 \
300 test_mesh_local_traffic_fwd \
301 test_mesh_local_traffic_bck \
302 test_mesh_local_traffic_both \
303 test_mesh_2dtorus test_mesh_regex \
304 test_mesh_small_unicast test_mesh_small_multicast \
305 test_mesh_small_signal \
306 test_mesh_small_speed \
307 test_mesh_small_speed_min \
308 test_mesh_small_speed_nobuf \
309 test_mesh_small_speed_backwards \
310 test_mesh_small_speed_min_backwards
314 mesh.h mesh_protocol.h \
316 test_mesh_2dtorus.conf \