1 AM_CPPFLAGS = -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 $(EXP_LIBEXEC)
30 libgnunetmesh.la $(EXP_LIB)
32 libgnunetmesh_la_SOURCES = \
33 mesh_api.c mesh_common.c
34 libgnunetmesh_la_LIBADD = \
35 $(top_builddir)/src/util/libgnunetutil.la \
38 libgnunetmesh_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
42 gnunet_mesh_SOURCES = \
45 $(top_builddir)/src/mesh/libgnunetmesh.la \
46 $(top_builddir)/src/util/libgnunetutil.la
47 gnunet_mesh_DEPENDENCIES = \
50 gnunet_service_mesh_SOURCES = \
51 gnunet-service-mesh_tunnel.c gnunet-service-mesh_tunnel.h \
52 gnunet-service-mesh_connection.c gnunet-service-mesh_connection.h \
53 gnunet-service-mesh_channel.c gnunet-service-mesh_channel.h \
54 gnunet-service-mesh_local.c gnunet-service-mesh_local.h \
55 gnunet-service-mesh_peer.c gnunet-service-mesh_peer.h \
56 gnunet-service-mesh_dht.c gnunet-service-mesh_dht.h \
57 gnunet-service-mesh_hello.c gnunet-service-mesh_hello.h \
58 mesh_path.c mesh_path.h \
61 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
62 gnunet_service_mesh_LDADD = \
63 $(top_builddir)/src/util/libgnunetutil.la \
64 $(top_builddir)/src/transport/libgnunettransport.la \
65 $(top_builddir)/src/core/libgnunetcore.la \
66 $(top_builddir)/src/dht/libgnunetdht.la \
67 $(top_builddir)/src/statistics/libgnunetstatistics.la \
68 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
69 $(top_builddir)/src/hello/libgnunethello.la \
70 $(top_builddir)/src/block/libgnunetblock.la
71 gnunet_service_mesh_DEPENDENCIES = \
72 $(top_builddir)/src/util/libgnunetutil.la \
73 $(top_builddir)/src/transport/libgnunettransport.la \
74 $(top_builddir)/src/core/libgnunetcore.la \
75 $(top_builddir)/src/dht/libgnunetdht.la \
76 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
78 $(top_builddir)/src/hello/libgnunethello.la \
79 $(top_builddir)/src/block/libgnunetblock.la
81 gnunet_service_mesh_LDFLAGS = -lrt
86 noinst_LIBRARIES = libgnunetmeshtest.a $(noinst_LIB_EXP)
87 noinst_PROGRAMS = gnunet-mesh-profiler
90 libgnunetmeshtest_a_SOURCES = \
91 mesh_test_lib.c mesh_test_lib.h
92 libgnunetmeshtest_a_LIBADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
94 $(top_builddir)/src/testbed/libgnunettestbed.la \
95 $(top_builddir)/src/mesh/libgnunetmesh.la
96 libgnunetmeshtest_a_DEPENDENCIES = \
103 test_mesh_small_forward \
104 test_mesh_small_signal \
105 test_mesh_small_keepalive \
106 test_mesh_small_speed \
107 test_mesh_small_speed_ack \
108 test_mesh_small_speed_backwards \
109 test_mesh_small_speed_reliable \
110 test_mesh_small_speed_reliable_backwards
114 $(top_builddir)/src/util/libgnunetutil.la \
115 $(top_builddir)/src/testing/libgnunettesting.la \
116 $(top_builddir)/src/mesh/libgnunetmeshtest.a \
117 $(top_builddir)/src/mesh/libgnunetmesh.la \
118 $(top_builddir)/src/testbed/libgnunettestbed.la \
119 $(top_builddir)/src/statistics/libgnunetstatistics.la
121 dep_mesh_test_lib = \
123 libgnunetmeshtest.a \
124 $(top_builddir)/src/statistics/libgnunetstatistics.la
127 gnunet_mesh_profiler_SOURCES = \
128 gnunet-mesh-profiler.c
129 gnunet_mesh_profiler_LDADD = $(ld_mesh_test_lib)
130 gnunet_mesh_profiler_DEPENDENCIES = $(dep_mesh_test_lib)
133 test_mesh_single_SOURCES = \
135 test_mesh_single_LDADD = $(ld_mesh_test_lib)
136 test_mesh_single_DEPENDENCIES = $(dep_mesh_test_lib)
138 test_mesh_local_SOURCES = \
140 test_mesh_local_LDADD = $(ld_mesh_test_lib)
141 test_mesh_local_DEPENDENCIES = $(dep_mesh_test_lib)
143 test_mesh_small_forward_SOURCES = \
145 test_mesh_small_forward_LDADD = $(ld_mesh_test_lib)
146 test_mesh_small_forward_DEPENDENCIES = $(dep_mesh_test_lib)
148 test_mesh_small_signal_SOURCES = \
150 test_mesh_small_signal_LDADD = $(ld_mesh_test_lib)
151 test_mesh_small_signal_DEPENDENCIES = $(dep_mesh_test_lib)
153 test_mesh_small_keepalive_SOURCES = \
155 test_mesh_small_keepalive_LDADD = $(ld_mesh_test_lib)
156 test_mesh_small_keepalive_DEPENDENCIES = $(dep_mesh_test_lib)
158 test_mesh_small_speed_SOURCES = \
160 test_mesh_small_speed_LDADD = $(ld_mesh_test_lib)
161 test_mesh_small_speed_DEPENDENCIES = $(dep_mesh_test_lib)
163 test_mesh_small_speed_ack_SOURCES = \
165 test_mesh_small_speed_ack_LDADD = $(ld_mesh_test_lib)
166 test_mesh_small_speed_ack_DEPENDENCIES = $(dep_mesh_test_lib)
168 test_mesh_small_speed_nobuf_SOURCES = \
170 test_mesh_small_speed_nobuf_LDADD = $(ld_mesh_test_lib)
171 test_mesh_small_speed_nobuf_DEPENDENCIES = $(dep_mesh_test_lib)
173 test_mesh_small_speed_backwards_SOURCES = \
175 test_mesh_small_speed_backwards_LDADD = $(ld_mesh_test_lib)
176 test_mesh_small_speed_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
178 test_mesh_small_speed_nobuf_backwards_SOURCES = \
180 test_mesh_small_speed_nobuf_backwards_LDADD = $(ld_mesh_test_lib)
181 test_mesh_small_speed_nobuf_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
183 test_mesh_small_speed_reliable_SOURCES = \
185 test_mesh_small_speed_reliable_LDADD = $(ld_mesh_test_lib)
186 test_mesh_small_speed_reliable_DEPENDENCIES = $(dep_mesh_test_lib)
188 test_mesh_small_speed_reliable_backwards_SOURCES = \
190 test_mesh_small_speed_reliable_backwards_LDADD = $(ld_mesh_test_lib)
191 test_mesh_small_speed_reliable_backwards_DEPENDENCIES = $(dep_mesh_test_lib)
195 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
201 mesh.h mesh_protocol.h \