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 gnunet-service-mesh gnunet-service-mesh-new
32 plugin_LTLIBRARIES = \
33 libgnunet_plugin_block_mesh.la
35 libgnunet_plugin_block_mesh_la_SOURCES = \
37 libgnunet_plugin_block_mesh_la_LIBADD = \
38 $(top_builddir)/src/block/libgnunetblock.la \
39 $(top_builddir)/src/util/libgnunetutil.la
40 libgnunet_plugin_block_mesh_la_LDFLAGS = \
42 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
43 $(top_builddir)/src/block/libgnunetblock.la \
44 $(top_builddir)/src/util/libgnunetutil.la
46 libgnunetmesh_la_SOURCES = \
47 mesh_api.c mesh_common.c
48 libgnunetmesh_la_LIBADD = \
49 $(top_builddir)/src/util/libgnunetutil.la \
52 libgnunetmesh_la_LDFLAGS = \
53 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
56 gnunet_service_mesh_SOURCES = \
57 gnunet-service-mesh.c \
58 mesh_tunnel_tree.c mesh_tunnel_tree.h \
60 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
61 gnunet_service_mesh_LDADD = \
62 $(top_builddir)/src/util/libgnunetutil.la \
63 $(top_builddir)/src/core/libgnunetcore.la \
64 $(top_builddir)/src/dht/libgnunetdht.la \
65 $(top_builddir)/src/statistics/libgnunetstatistics.la \
66 $(top_builddir)/src/block/libgnunetblock.la \
67 $(top_builddir)/src/regex/libgnunetregex.la
68 gnunet_service_mesh_DEPENDENCIES = \
69 $(top_builddir)/src/util/libgnunetutil.la \
70 $(top_builddir)/src/core/libgnunetcore.la \
71 $(top_builddir)/src/dht/libgnunetdht.la \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/block/libgnunetblock.la \
74 $(top_builddir)/src/regex/libgnunetregex.la
76 gnunet_service_mesh_LDFLAGS = -lrt
79 gnunet_mesh_SOURCES = \
82 $(top_builddir)/src/mesh/libgnunetmesh.la \
83 $(top_builddir)/src/util/libgnunetutil.la
84 gnunet_mesh_DEPENDENCIES = \
87 gnunet_service_mesh_new_SOURCES = \
88 gnunet-service-mesh-new.c \
91 gnunet_service_mesh_new_CFLAGS = $(AM_CFLAGS)
92 gnunet_service_mesh_new_LDADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
94 $(top_builddir)/src/core/libgnunetcore.la \
95 $(top_builddir)/src/dht/libgnunetdht.la \
96 $(top_builddir)/src/statistics/libgnunetstatistics.la \
97 $(top_builddir)/src/block/libgnunetblock.la \
98 $(top_builddir)/src/regex/libgnunetregex.la
99 gnunet_service_mesh_new_DEPENDENCIES = \
100 $(top_builddir)/src/util/libgnunetutil.la \
101 $(top_builddir)/src/core/libgnunetcore.la \
102 $(top_builddir)/src/dht/libgnunetdht.la \
103 $(top_builddir)/src/statistics/libgnunetstatistics.la \
104 $(top_builddir)/src/block/libgnunetblock.la \
105 $(top_builddir)/src/regex/libgnunetregex.la
107 gnunet_service_mesh_new_LDFLAGS = -lrt
111 noinst_LIBRARIES = libgnunetmeshtest.a
113 libgnunetmeshtest_a_SOURCES = \
114 mesh_test_lib.c mesh_test_lib.h
115 libgnunetmeshtest_a_LIBADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/testbed/libgnunettestbed.la \
118 $(top_builddir)/src/mesh/libgnunetmesh.la
119 libgnunetmeshtest_a_DEPENDENCIES = \
128 test_mesh_local_traffic_fwd \
129 test_mesh_local_traffic_bck \
130 test_mesh_local_traffic_both \
133 test_mesh_small_unicast \
134 test_mesh_small_multicast \
135 test_mesh_small_signal \
136 test_mesh_small_speed \
137 test_mesh_small_speed_nobuf \
138 test_mesh_small_speed_min \
139 test_mesh_small_speed_backwards \
140 test_mesh_small_speed_nobuf_backwards \
141 test_mesh_small_speed_min_backwards \
142 test_mesh_small_speed_ack
144 test_mesh_api_SOURCES = \
146 test_mesh_api_LDADD = \
147 $(top_builddir)/src/util/libgnunetutil.la \
148 $(top_builddir)/src/testing/libgnunettesting.la \
149 $(top_builddir)/src/mesh/libgnunetmesh.la
150 test_mesh_api_DEPENDENCIES = \
152 $(top_builddir)/src/util/libgnunetutil.la
154 test_mesh_tree_api_SOURCES = \
156 test_mesh_tree_api_LDADD = \
157 $(top_builddir)/src/util/libgnunetutil.la \
158 $(top_builddir)/src/dht/libgnunetdht.la
159 test_mesh_tree_api_DEPENDENCIES = \
161 $(top_builddir)/src/dht/libgnunetdht.la
163 test_mesh_local_1_SOURCES = \
165 test_mesh_local_1_LDADD = \
166 $(top_builddir)/src/util/libgnunetutil.la \
167 $(top_builddir)/src/testing/libgnunettesting.la \
168 $(top_builddir)/src/mesh/libgnunetmesh.la
169 test_mesh_local_1_DEPENDENCIES = \
172 test_mesh_local_2_SOURCES = \
174 test_mesh_local_2_LDADD = \
175 $(top_builddir)/src/util/libgnunetutil.la \
176 $(top_builddir)/src/testing/libgnunettesting.la \
177 $(top_builddir)/src/mesh/libgnunetmesh.la
178 test_mesh_local_2_DEPENDENCIES = \
181 test_mesh_local_traffic_fwd_SOURCES = \
182 test_mesh_local_traffic.c
183 test_mesh_local_traffic_fwd_LDADD = \
184 $(top_builddir)/src/util/libgnunetutil.la \
185 $(top_builddir)/src/testing/libgnunettesting.la \
186 $(top_builddir)/src/mesh/libgnunetmesh.la
187 test_mesh_local_traffic_fwd_DEPENDENCIES = \
190 test_mesh_local_traffic_bck_SOURCES = \
191 test_mesh_local_traffic.c
192 test_mesh_local_traffic_bck_LDADD = \
193 $(top_builddir)/src/util/libgnunetutil.la \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/mesh/libgnunetmesh.la
196 test_mesh_local_traffic_bck_DEPENDENCIES = \
199 test_mesh_local_traffic_both_SOURCES = \
200 test_mesh_local_traffic.c
201 test_mesh_local_traffic_both_LDADD = \
202 $(top_builddir)/src/util/libgnunetutil.la \
203 $(top_builddir)/src/testing/libgnunettesting.la \
204 $(top_builddir)/src/mesh/libgnunetmesh.la
205 test_mesh_local_traffic_both_DEPENDENCIES = \
210 $(top_builddir)/src/mesh/libgnunetmeshtest.a \
211 $(top_builddir)/src/mesh/libgnunetmesh.la \
212 $(top_builddir)/src/testbed/libgnunettestbed.la \
213 $(top_builddir)/src/util/libgnunetutil.la
215 dep_mesh_test_lib = \
216 libgnunetmeshtest.a \
219 test_mesh_2dtorus_SOURCES = \
221 test_mesh_2dtorus_LDADD = $(ld_mesh_test_lib)
222 test_mesh_2dtorus_DEPENDENCIES = $(dep_mesh_test_lib)
224 test_mesh_regex_SOURCES = \
226 test_mesh_regex_LDADD = $(ld_mesh_test_lib)
227 test_mesh_regex_DEPENDENCIES = $(dep_mesh_test_lib)
229 test_mesh_small_unicast_SOURCES = \
231 test_mesh_small_unicast_LDADD = $(ld_mesh_test_lib)
232 test_mesh_small_unicast_DEPENDENCIES = $(dep_mesh_test_lib)
234 test_mesh_small_multicast_SOURCES = \
236 test_mesh_small_multicast_LDADD = $(ld_mesh_test_lib)
237 test_mesh_small_multicast_DEPENDENCIES = $(dep_mesh_test_lib)
239 test_mesh_small_signal_SOURCES = \
241 test_mesh_small_signal_LDADD = $(ld_mesh_test_lib)
242 test_mesh_small_signal_DEPENDENCIES = $(dep_mesh_test_lib)
244 test_mesh_small_speed_ack_SOURCES = \
246 test_mesh_small_speed_ack_LDADD = $(ld_mesh_test_lib)
247 test_mesh_small_speed_ack_DEPENDENCIES = $(dep_mesh_test_lib)
249 test_mesh_small_speed_SOURCES = \
251 test_mesh_small_speed_LDADD = $(ld_mesh_test_lib)
252 test_mesh_small_speed_DEPENDENCIES = $(dep_mesh_test_lib)
254 test_mesh_small_speed_min_SOURCES = \
256 test_mesh_small_speed_min_LDADD = $(ld_mesh_test_lib)
257 test_mesh_small_speed_min_DEPENDENCIES = $(dep_mesh_test_lib)
259 test_mesh_small_speed_nobuf_SOURCES = \
261 test_mesh_small_speed_nobuf_LDADD = $(ld_mesh_test_lib)
262 test_mesh_small_speed_nobuf_DEPENDENCIES = $(dep_mesh_test_lib)
264 test_mesh_small_speed_backwards_SOURCES = \
266 test_mesh_small_speed_backwards_LDADD = $(ld_mesh_test_lib)
267 test_mesh_small_speed_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
269 test_mesh_small_speed_min_backwards_SOURCES = \
271 test_mesh_small_speed_min_backwards_LDADD = $(ld_mesh_test_lib)
272 test_mesh_small_speed_min_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
274 test_mesh_small_speed_nobuf_backwards_SOURCES = \
276 test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib)
277 test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
281 TESTS = test_mesh_api \
283 test_mesh_local_1 test_mesh_local_2 \
284 test_mesh_local_traffic_fwd \
285 test_mesh_local_traffic_bck \
286 test_mesh_local_traffic_both \
287 test_mesh_2dtorus test_mesh_regex \
288 test_mesh_small_unicast test_mesh_small_multicast \
289 test_mesh_small_signal \
290 test_mesh_small_speed \
291 test_mesh_small_speed_min \
292 test_mesh_small_speed_nobuf \
293 test_mesh_small_speed_backwards \
294 test_mesh_small_speed_min_backwards
298 mesh.h mesh_protocol.h \
300 test_mesh_2dtorus.conf \