1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7 NATBIN = gnunet-nat-server gnunet-nat-client
8 NATSERVER = gnunet-nat-server-windows.c
9 NATCLIENT = gnunet-nat-client-windows.c
11 NATSERVER = gnunet-nat-server.c
12 NATCLIENT = gnunet-nat-client.c
16 GN_LIBMHD = -lmicrohttpd
17 HTTP_PLUGIN_LA = libgnunet_plugin_transport_http.la
18 HTTP_PLUGIN_TEST = test_plugin_transport_http
19 HTTP_API_TEST = test_transport_api_http
20 HTTP_REL_TEST = test_transport_api_reliability_http
21 HTTP_QUOTA_TEST = test_quota_compliance_http \
22 test_quota_compliance_http_asymmetric_recv_constant
23 HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la
24 HTTPS_PLUGIN_TEST = test_plugin_transport_https
25 HTTPS_API_TEST = test_transport_api_https
26 HTTPS_REL_TEST = test_transport_api_reliability_https
27 HTTPS_QUOTA_TEST = test_quota_compliance_https \
28 test_quota_compliance_https_asymmetric_recv_constant
32 AM_CFLAGS = --coverage -O0
37 WANBIN = gnunet-transport-wlan-helper
38 WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
43 NATBIN = gnunet-nat-server gnunet-nat-client
45 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
46 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
51 #noinst_PROGRAMS = ${check_PROGRAMS}
56 libgnunettransport_la_SOURCES = \
57 transport_api.c transport.h \
58 transport_api_blacklist.c \
59 transport_api_address_lookup.c
60 libgnunettransport_la_LIBADD = \
61 $(top_builddir)/src/hello/libgnunethello.la \
62 $(top_builddir)/src/util/libgnunetutil.la \
64 libgnunettransport_la_LDFLAGS = \
65 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
72 gnunet-service-transport $(NATBIN)
75 gnunet-transport-certificate-creation
77 gnunet_nat_server_SOURCES = \
80 gnunet_transport_wlan_helper_SOURCES = \
81 gnunet-transport-wlan-helper.c
82 gnunet_transport_wlan_helper_LDADD = \
85 gnunet_nat_client_SOURCES = \
88 gnunet_transport_SOURCES = \
90 gnunet_transport_LDADD = \
91 $(top_builddir)/src/transport/libgnunettransport.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_service_transport_SOURCES = \
96 gnunet-service-transport.c plugin_transport.h
97 gnunet_service_transport_LDADD = \
98 $(top_builddir)/src/hello/libgnunethello.la \
99 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
100 $(top_builddir)/src/statistics/libgnunetstatistics.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
105 plugin_LTLIBRARIES = \
106 libgnunet_plugin_transport_tcp.la \
107 libgnunet_plugin_transport_udp.la \
111 libgnunet_plugin_transport_template.la
112 # TODO: add nat, etc.
114 libgnunet_plugin_transport_tcp_la_SOURCES = \
115 plugin_transport_tcp.c
116 libgnunet_plugin_transport_tcp_la_LIBADD = \
117 $(top_builddir)/src/hello/libgnunethello.la \
118 $(top_builddir)/src/statistics/libgnunetstatistics.la \
119 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
120 $(top_builddir)/src/nat/libgnunetnat.la \
121 $(top_builddir)/src/util/libgnunetutil.la
122 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
125 libgnunet_plugin_transport_template_la_SOURCES = \
126 plugin_transport_template.c
127 libgnunet_plugin_transport_template_la_LIBADD = \
128 $(top_builddir)/src/util/libgnunetutil.la
129 libgnunet_plugin_transport_template_la_LDFLAGS = \
134 libgnunet_plugin_transport_wlan_la_SOURCES = \
135 plugin_transport_wlan.c
136 libgnunet_plugin_transport_wlan_la_LIBADD = \
137 $(top_builddir)/src/hello/libgnunethello.la \
138 $(top_builddir)/src/statistics/libgnunetstatistics.la \
139 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
140 $(top_builddir)/src/util/libgnunetutil.la
141 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
146 libgnunet_plugin_transport_udp_la_SOURCES = \
147 plugin_transport_udp.c
148 libgnunet_plugin_transport_udp_la_LIBADD = \
149 $(top_builddir)/src/hello/libgnunethello.la \
150 $(top_builddir)/src/statistics/libgnunetstatistics.la \
151 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
152 $(top_builddir)/src/util/libgnunetutil.la
153 libgnunet_plugin_transport_udp_la_LDFLAGS = \
156 #libgnunet_plugin_transport_udp_nat_la_SOURCES = \
157 # plugin_transport_udp_nat.c
158 #libgnunet_plugin_transport_udp_nat_la_LIBADD = \
159 # $(top_builddir)/src/hello/libgnunethello.la \
160 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
161 # $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
162 # $(top_builddir)/src/util/libgnunetutil.la
163 #libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \
164 # $(GN_PLUGIN_LDFLAGS)
167 libgnunet_plugin_transport_http_la_SOURCES = \
168 plugin_transport_http.c
169 libgnunet_plugin_transport_http_la_LIBADD = \
170 $(top_builddir)/src/hello/libgnunethello.la \
171 $(top_builddir)/src/statistics/libgnunetstatistics.la \
172 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
174 $(top_builddir)/src/util/libgnunetutil.la
175 libgnunet_plugin_transport_http_la_LDFLAGS = \
179 libgnunet_plugin_transport_https_la_SOURCES = \
180 plugin_transport_http.c
181 libgnunet_plugin_transport_https_la_LIBADD = \
182 $(top_builddir)/src/hello/libgnunethello.la \
183 $(top_builddir)/src/statistics/libgnunetstatistics.la \
184 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
186 $(top_builddir)/src/util/libgnunetutil.la
187 libgnunet_plugin_transport_https_la_LDFLAGS = \
190 libgnunet_plugin_transport_https_la_CFLAGS = \
191 $(CFLAGS) -DBUILD_HTTPS
195 test_transport_api_tcp \
196 test_transport_api_tcp_nat \
197 test_transport_api_udp \
198 test_transport_api_udp_nat \
199 $(HTTP_PLUGIN_TEST) \
201 $(HTTPS_PLUGIN_TEST) \
203 test_transport_api_multi \
204 test_transport_api_reliability_tcp \
205 test_transport_api_reliability_tcp_nat \
206 test_transport_api_reliability_udp \
209 test_quota_compliance_tcp \
210 test_quota_compliance_tcp_asymmetric_recv_constant \
211 test_quota_compliance_udp \
212 test_quota_compliance_udp_asymmetric_recv_constant \
215 # TODO: add tests for nat, etc.
219 test_transport_api_tcp \
220 test_transport_api_tcp_nat \
221 test_transport_api_udp \
222 test_transport_api_udp_nat \
223 $(HTTP_PLUGIN_TEST) \
225 $(HTTPS_PLUGIN_TEST) \
227 test_transport_api_multi \
228 test_transport_api_reliability_tcp \
229 test_transport_api_reliability_tcp_nat \
232 test_quota_compliance_tcp \
233 test_quota_compliance_tcp_asymmetric_recv_constant \
234 test_quota_compliance_udp \
235 test_quota_compliance_udp_asymmetric_recv_constant \
240 test_transport_api_tcp_SOURCES = \
242 test_transport_api_tcp_LDADD = \
243 $(top_builddir)/src/transport/libgnunettransport.la \
244 $(top_builddir)/src/util/libgnunetutil.la
246 test_transport_api_tcp_nat_SOURCES = \
248 test_transport_api_tcp_nat_LDADD = \
249 $(top_builddir)/src/transport/libgnunettransport.la \
250 $(top_builddir)/src/util/libgnunetutil.la
252 test_transport_api_reliability_tcp_SOURCES = \
253 test_transport_api_reliability.c
254 test_transport_api_reliability_tcp_LDADD = \
255 $(top_builddir)/src/transport/libgnunettransport.la \
256 $(top_builddir)/src/util/libgnunetutil.la
258 test_transport_api_reliability_tcp_nat_SOURCES = \
259 test_transport_api_reliability.c
260 test_transport_api_reliability_tcp_nat_LDADD = \
261 $(top_builddir)/src/transport/libgnunettransport.la \
262 $(top_builddir)/src/util/libgnunetutil.la
264 test_transport_api_reliability_udp_SOURCES = \
265 test_transport_api_reliability.c
266 test_transport_api_reliability_udp_LDADD = \
267 $(top_builddir)/src/transport/libgnunettransport.la \
268 $(top_builddir)/src/util/libgnunetutil.la
270 test_transport_api_udp_SOURCES = \
272 test_transport_api_udp_LDADD = \
273 $(top_builddir)/src/transport/libgnunettransport.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 test_transport_api_udp_nat_SOURCES = \
278 test_transport_api_udp_nat_LDADD = \
279 $(top_builddir)/src/transport/libgnunettransport.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_plugin_transport_http_SOURCES = \
283 test_plugin_transport_http.c
284 test_plugin_transport_http_LDADD = \
285 $(top_builddir)/src/transport/libgnunettransport.la \
286 $(top_builddir)/src/statistics/libgnunetstatistics.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_transport_api_http_SOURCES = \
292 test_transport_api_http_LDADD = \
293 $(top_builddir)/src/transport/libgnunettransport.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_transport_api_reliability_http_SOURCES = \
297 test_transport_api_reliability.c
298 test_transport_api_reliability_http_LDADD = \
299 $(top_builddir)/src/transport/libgnunettransport.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_plugin_transport_https_SOURCES = \
303 test_plugin_transport_https.c
304 test_plugin_transport_https_LDADD = \
305 $(top_builddir)/src/transport/libgnunettransport.la \
306 $(top_builddir)/src/statistics/libgnunetstatistics.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 test_transport_api_https_SOURCES = \
312 test_transport_api_https_LDADD = \
313 $(top_builddir)/src/transport/libgnunettransport.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_transport_api_reliability_https_SOURCES = \
317 test_transport_api_reliability.c
318 test_transport_api_reliability_https_LDADD = \
319 $(top_builddir)/src/transport/libgnunettransport.la \
320 $(top_builddir)/src/util/libgnunetutil.la
322 test_quota_compliance_tcp_SOURCES = \
323 test_quota_compliance.c
324 test_quota_compliance_tcp_LDADD = \
325 $(top_builddir)/src/transport/libgnunettransport.la \
326 $(top_builddir)/src/util/libgnunetutil.la
328 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
329 test_quota_compliance.c
330 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
331 $(top_builddir)/src/transport/libgnunettransport.la \
332 $(top_builddir)/src/util/libgnunetutil.la
334 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
335 # test_quota_compliance.c
336 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
337 # $(top_builddir)/src/transport/libgnunettransport.la \
338 # $(top_builddir)/src/util/libgnunetutil.la
340 test_quota_compliance_http_SOURCES = \
341 test_quota_compliance.c
342 test_quota_compliance_http_LDADD = \
343 $(top_builddir)/src/transport/libgnunettransport.la \
344 $(top_builddir)/src/util/libgnunetutil.la
346 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
347 test_quota_compliance.c
348 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
349 $(top_builddir)/src/transport/libgnunettransport.la \
350 $(top_builddir)/src/util/libgnunetutil.la
352 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
353 # test_quota_compliance.c
354 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
355 # $(top_builddir)/src/transport/libgnunettransport.la \
356 # $(top_builddir)/src/util/libgnunetutil.la
358 test_quota_compliance_https_SOURCES = \
359 test_quota_compliance.c
360 test_quota_compliance_https_LDADD = \
361 $(top_builddir)/src/transport/libgnunettransport.la \
362 $(top_builddir)/src/util/libgnunetutil.la
364 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
365 test_quota_compliance.c
366 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
367 $(top_builddir)/src/transport/libgnunettransport.la \
368 $(top_builddir)/src/util/libgnunetutil.la
370 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
371 # test_quota_compliance.c
372 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
373 # $(top_builddir)/src/transport/libgnunettransport.la \
374 # $(top_builddir)/src/util/libgnunetutil.la
376 test_quota_compliance_udp_SOURCES = \
377 test_quota_compliance.c
378 test_quota_compliance_udp_LDADD = \
379 $(top_builddir)/src/transport/libgnunettransport.la \
380 $(top_builddir)/src/util/libgnunetutil.la
382 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
383 test_quota_compliance.c
384 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
385 $(top_builddir)/src/transport/libgnunettransport.la \
386 $(top_builddir)/src/util/libgnunetutil.la
388 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
389 # test_quota_compliance.c
390 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
391 # $(top_builddir)/src/transport/libgnunettransport.la \
392 # $(top_builddir)/src/util/libgnunetutil.la
394 test_transport_api_multi_SOURCES = \
396 test_transport_api_multi_LDADD = \
397 $(top_builddir)/src/transport/libgnunettransport.la \
398 $(top_builddir)/src/util/libgnunetutil.la
402 test_transport_api_data.conf \
403 test_transport_api_tcp_peer1.conf \
404 test_transport_api_tcp_peer2.conf \
405 test_transport_api_udp_peer1.conf \
406 test_transport_api_udp_peer2.conf \
407 test_transport_api_udp_nat_peer1.conf \
408 test_transport_api_udp_nat_peer2.conf \
409 test_transport_api_tcp_nat_peer1.conf \
410 test_transport_api_tcp_nat_peer2.conf \
411 test_plugin_transport_data.conf \
412 test_transport_api_http_peer1.conf \
413 test_transport_api_http_peer2.conf \
414 test_transport_api_https_peer1.conf \
415 test_transport_api_https_peer2.conf \
416 test_transport_api_multi_peer1.conf \
417 test_transport_api_multi_peer2.conf \
418 test_transport_api_rel_http_peer1.conf \
419 test_transport_api_rel_http_peer2.conf \
420 test_transport_api_rel_https_peer1.conf \
421 test_transport_api_rel_https_peer2.conf \
422 test_plugin_transport_data_http.conf \
423 test_plugin_transport_data.conf \
424 test_quota_compliance_data.conf \
425 test_quota_compliance_tcp_peer1.conf \
426 test_quota_compliance_tcp_peer2.conf \
427 test_quota_compliance_http_peer1.conf \
428 test_quota_compliance_http_peer2.conf \
429 test_quota_compliance_https_peer1.conf \
430 test_quota_compliance_https_peer2.conf \
431 test_quota_compliance_udp_peer1.conf \
432 test_quota_compliance_udp_peer2.conf