- use window size client<->server, x4 faster
[oweals/gnunet.git] / src / mesh / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 pkgcfg_DATA = \
15   mesh.conf
16
17 plugindir = $(libdir)/gnunet
18
19 AM_CLFAGS = -g
20
21 bin_PROGRAMS = \
22  gnunet-service-mesh
23
24 lib_LTLIBRARIES = \
25   libgnunetmesh.la \
26   libgnunetmeshblock.la
27
28 plugin_LTLIBRARIES = \
29  libgnunet_plugin_block_mesh.la
30
31 libgnunet_plugin_block_mesh_la_SOURCES = \
32  plugin_block_mesh.c
33 libgnunet_plugin_block_mesh_la_LIBADD = \
34  $(top_builddir)/src/mesh/libgnunetmeshblock.la \
35  $(top_builddir)/src/block/libgnunetblock.la \
36  $(top_builddir)/src/util/libgnunetutil.la
37 libgnunet_plugin_block_mesh_la_LDFLAGS = \
38  $(GN_PLUGIN_LDFLAGS)
39 libgnunet_plugin_block_mesh_la_DEPENDENCIES = \
40  libgnunetmeshblock.la \
41  $(top_builddir)/src/block/libgnunetblock.la \
42  $(top_builddir)/src/util/libgnunetutil.la
43
44 libgnunetmesh_la_SOURCES = \
45   mesh_api.c mesh_common.c
46 libgnunetmesh_la_LIBADD = \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(XLIB) \
49   $(LTLIBINTL)
50 libgnunetmesh_la_LDFLAGS = \
51   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
52   -version-info 1:0:0
53
54 libgnunetmeshblock_la_SOURCES = \
55   mesh_block_lib.c
56 libgnunetmeshblock_la_LIBADD = \
57   $(top_builddir)/src/util/libgnunetutil.la \
58   $(XLIB) \
59   $(LTLIBINTL)
60 libgnunetmeshblock_la_LDFLAGS = \
61   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
62   -version-info 1:0:0
63
64 gnunet_service_mesh_SOURCES = \
65  gnunet-service-mesh.c \
66  mesh_tunnel_tree.c \
67  mesh_common.c
68 gnunet_service_mesh_CFLAGS = $(AM_CFLAGS)
69 gnunet_service_mesh_LDADD = \
70   $(top_builddir)/src/util/libgnunetutil.la \
71   $(top_builddir)/src/core/libgnunetcore.la \
72   $(top_builddir)/src/dht/libgnunetdht.la \
73   $(top_builddir)/src/statistics/libgnunetstatistics.la \
74   $(top_builddir)/src/block/libgnunetblock.la \
75   $(top_builddir)/src/mesh/libgnunetmeshblock.la \
76   $(top_builddir)/src/regex/libgnunetregex.la
77 gnunet_service_mesh_DEPENDENCIES = \
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   libgnunetmeshblock.la \
84   $(top_builddir)/src/regex/libgnunetregex.la
85
86 check_PROGRAMS = \
87  test_mesh_api \
88  test_mesh_tree_api \
89  test_mesh_local_1 \
90  test_mesh_local_2 \
91  test_mesh_local_traffic_fwd \
92  test_mesh_local_traffic_bck \
93  test_mesh_local_traffic_both \
94  test_mesh_2dtorus \
95  test_mesh_regex \
96  test_mesh_small_unicast \
97  test_mesh_small_multicast \
98  test_mesh_small_speed \
99  test_mesh_small_speed_ack
100
101 test_mesh_api_SOURCES = \
102  test_mesh_api.c
103 test_mesh_api_LDADD = \
104  $(top_builddir)/src/util/libgnunetutil.la \
105  $(top_builddir)/src/testing/libgnunettesting.la \
106  $(top_builddir)/src/mesh/libgnunetmesh.la
107 test_mesh_api_DEPENDENCIES = \
108   libgnunetmesh.la \
109    $(top_builddir)/src/util/libgnunetutil.la
110
111 test_mesh_tree_api_SOURCES = \
112  test_mesh_tree_api.c
113 test_mesh_tree_api_LDADD = \
114  $(top_builddir)/src/util/libgnunetutil.la \
115  $(top_builddir)/src/dht/libgnunetdht.la
116 test_mesh_tree_api_DEPENDENCIES = \
117   libgnunetmesh.la \
118   $(top_builddir)/src/dht/libgnunetdht.la
119
120 test_mesh_local_1_SOURCES = \
121  test_mesh_local_1.c
122 test_mesh_local_1_LDADD = \
123  $(top_builddir)/src/util/libgnunetutil.la \
124  $(top_builddir)/src/testing/libgnunettesting.la \
125  $(top_builddir)/src/mesh/libgnunetmesh.la
126 test_mesh_local_1_DEPENDENCIES = \
127   libgnunetmesh.la
128
129 test_mesh_local_2_SOURCES = \
130  test_mesh_local_2.c
131 test_mesh_local_2_LDADD = \
132  $(top_builddir)/src/util/libgnunetutil.la \
133  $(top_builddir)/src/testing/libgnunettesting.la \
134  $(top_builddir)/src/mesh/libgnunetmesh.la
135 test_mesh_local_2_DEPENDENCIES = \
136   libgnunetmesh.la
137
138 test_mesh_local_traffic_fwd_SOURCES = \
139  test_mesh_local_traffic.c
140 test_mesh_local_traffic_fwd_LDADD = \
141  $(top_builddir)/src/util/libgnunetutil.la \
142  $(top_builddir)/src/testing/libgnunettesting.la \
143  $(top_builddir)/src/mesh/libgnunetmesh.la
144 test_mesh_local_traffic_fwd_DEPENDENCIES = \
145   libgnunetmesh.la
146
147 test_mesh_local_traffic_bck_SOURCES = \
148  test_mesh_local_traffic.c
149 test_mesh_local_traffic_bck_LDADD = \
150  $(top_builddir)/src/util/libgnunetutil.la \
151  $(top_builddir)/src/testing/libgnunettesting.la \
152  $(top_builddir)/src/mesh/libgnunetmesh.la
153 test_mesh_local_traffic_bck_DEPENDENCIES = \
154   libgnunetmesh.la
155
156 test_mesh_local_traffic_both_SOURCES = \
157  test_mesh_local_traffic.c
158 test_mesh_local_traffic_both_LDADD = \
159  $(top_builddir)/src/util/libgnunetutil.la \
160  $(top_builddir)/src/testing/libgnunettesting.la \
161  $(top_builddir)/src/mesh/libgnunetmesh.la
162 test_mesh_local_traffic_both_DEPENDENCIES = \
163   libgnunetmesh.la
164
165
166 test_mesh_2dtorus_SOURCES = \
167  test_mesh_2dtorus.c
168 test_mesh_2dtorus_LDADD = \
169   $(top_builddir)/src/util/libgnunetutil.la \
170   $(top_builddir)/src/testing_old/libgnunettesting_old.la
171
172 test_mesh_regex_SOURCES = \
173  test_mesh_regex.c
174 test_mesh_regex_LDADD = \
175   $(top_builddir)/src/mesh/libgnunetmesh.la \
176   $(top_builddir)/src/util/libgnunetutil.la \
177   $(top_builddir)/src/testing_old/libgnunettesting_old.la
178 test_mesh_regex_DEPENDENCIES = \
179   libgnunetmesh.la
180
181
182 test_mesh_small_unicast_SOURCES = \
183  test_mesh_small.c
184 test_mesh_small_unicast_LDADD = \
185   $(top_builddir)/src/mesh/libgnunetmesh.la \
186   $(top_builddir)/src/util/libgnunetutil.la \
187   $(top_builddir)/src/testing_old/libgnunettesting_old.la
188 test_mesh_small_unicast_DEPENDENCIES = \
189   libgnunetmesh.la
190
191 test_mesh_small_multicast_SOURCES = \
192  test_mesh_small.c
193 test_mesh_small_multicast_LDADD = \
194   $(top_builddir)/src/mesh/libgnunetmesh.la \
195   $(top_builddir)/src/util/libgnunetutil.la \
196   $(top_builddir)/src/testing_old/libgnunettesting_old.la
197 test_mesh_small_multicast_DEPENDENCIES = \
198   libgnunetmesh.la
199
200 test_mesh_small_speed_SOURCES = \
201  test_mesh_small.c
202 test_mesh_small_speed_LDADD = \
203   $(top_builddir)/src/mesh/libgnunetmesh.la \
204   $(top_builddir)/src/util/libgnunetutil.la \
205   $(top_builddir)/src/testing_old/libgnunettesting_old.la
206 test_mesh_small_speed_DEPENDENCIES = \
207   libgnunetmesh.la
208
209 test_mesh_small_speed_ack_SOURCES = \
210  test_mesh_small.c
211 test_mesh_small_speed_ack_LDADD = \
212   $(top_builddir)/src/mesh/libgnunetmesh.la \
213   $(top_builddir)/src/util/libgnunetutil.la \
214   $(top_builddir)/src/testing_old/libgnunettesting_old.la
215 test_mesh_small_speed_ack_DEPENDENCIES = \
216   libgnunetmesh.la
217
218 if ENABLE_TEST_RUN
219 TESTS = test_mesh_api \
220  test_mesh_tree_api \
221  test_mesh_local_1 test_mesh_local_2 \
222  test_mesh_local_traffic_fwd \
223  test_mesh_local_traffic_bck \
224  test_mesh_local_traffic_both \
225  test_mesh_2dtorus test_mesh_regex \
226  test_mesh_small_unicast test_mesh_small_multicast
227 endif
228
229 EXTRA_DIST = \
230   test_mesh.conf \
231   test_mesh_2dtorus.conf \
232   test_mesh_small.conf \
233   test_mesh_path.conf