1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
7 GN_LIBMHD = -lmicrohttpd
8 HTTP_PLUGIN_LA = libgnunet_plugin_transport_http.la
9 # HTTP_PLUGIN_TEST = test_plugin_transport_http
10 HTTP_API_TEST = test_transport_api_http
11 HTTP_REL_TEST = test_transport_api_reliability_http
12 HTTP_QUOTA_TEST = test_quota_compliance_http \
13 test_quota_compliance_http_asymmetric_recv_constant
14 HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la
15 # HTTPS_PLUGIN_TEST = test_plugin_transport_https
16 HTTPS_API_TEST = test_transport_api_https
17 HTTPS_REL_TEST = test_transport_api_reliability_https
18 HTTPS_QUOTA_TEST = test_quota_compliance_https \
19 test_quota_compliance_https_asymmetric_recv_constant
23 AM_CFLAGS = --coverage -O0
28 WLAN_BIN = gnunet-transport-wlan-helper
29 WLAN_BIN_DUMMY = gnunet-transport-wlan-helper-dummy
30 WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
31 WLAN_API_TEST = test_transport_api_wlan
32 WLAN_REL_TEST = test_transport_api_reliability_wlan
33 WLAN_UREL_TEST = test_transport_api_unreliability_wlan
39 chown root:root $(bindir)/gnunet-transport-wlan-helper || true
40 chmod u+s $(bindir)/gnunet-transport-wlan-helper || true
46 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
47 UNIX_PLUGIN_TEST = test_transport_api_unix
48 UNIX_REL_TEST = test_transport_api_unreliability_unix
49 UNIX_QUOTA_TEST = test_quota_compliance_unix \
50 test_quota_compliance_unix_asymmetric_recv_constant
53 #noinst_PROGRAMS = ${check_PROGRAMS}
56 libgnunettransport.la \
57 libgnunettransportnew.la
59 libgnunettransportnew_la_SOURCES = \
60 transport_api_new.c transport.h \
61 transport_api_blacklist.c \
62 transport_api_address_lookup.c
63 libgnunettransportnew_la_LIBADD = \
64 $(top_builddir)/src/hello/libgnunethello.la \
65 $(top_builddir)/src/util/libgnunetutil.la \
67 libgnunettransportnew_la_LDFLAGS = \
68 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
71 libgnunettransport_la_SOURCES = \
72 transport_api.c transport.h \
73 transport_api_blacklist.c \
74 transport_api_address_lookup.c
75 libgnunettransport_la_LIBADD = \
76 $(top_builddir)/src/hello/libgnunethello.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
79 libgnunettransport_la_LDFLAGS = \
80 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
87 gnunet-service-transport \
91 gnunet-transport-certificate-creation
94 gnunet_transport_wlan_helper_SOURCES = \
96 wlan/crctable_osdep.h \
97 wlan/helper_common.c wlan/helper_common.h \
99 wlan/ieee80211_radiotap.h \
100 wlan/loopback_helper.h \
101 wlan/radiotap-parser.c wlan/radiotap-parser.h \
102 gnunet-transport-wlan-helper.c gnunet-transport-wlan-helper.h
104 gnunet_transport_wlan_helper_dummy_SOURCES = \
105 wlan/radiotap-parser.c \
106 wlan/helper_common.c \
107 test_plugin_transport_wlan_dummy.c
109 gnunet_transport_wlan_helper_LDADD = \
110 $(top_builddir)/src/util/libgnunetutil.la
112 gnunet_transport_wlan_helper_dummy_LDADD = \
113 $(top_builddir)/src/util/libgnunetutil.la
115 gnunet_transport_SOURCES = \
117 gnunet_transport_LDADD = \
118 $(top_builddir)/src/transport/libgnunettransportnew.la \
119 $(top_builddir)/src/util/libgnunetutil.la \
121 gnunet_transport_DEPENDENCIES = \
122 libgnunettransportnew.la
128 gnunet_service_transport_SOURCES = \
129 gnunet-service-transport.c transport_ats.c
130 gnunet_service_transport_LDADD = \
131 $(top_builddir)/src/hello/libgnunethello.la \
132 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
133 $(top_builddir)/src/statistics/libgnunetstatistics.la \
134 $(top_builddir)/src/util/libgnunetutil.la \
138 plugin_LTLIBRARIES = \
139 libgnunet_plugin_transport_tcp.la \
140 libgnunet_plugin_transport_udp.la \
145 libgnunet_plugin_transport_template.la
147 libgnunet_plugin_transport_tcp_la_SOURCES = \
148 plugin_transport_tcp.c
149 libgnunet_plugin_transport_tcp_la_LIBADD = \
150 $(top_builddir)/src/hello/libgnunethello.la \
151 $(top_builddir)/src/statistics/libgnunetstatistics.la \
152 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
153 $(top_builddir)/src/nat/libgnunetnat.la \
154 $(top_builddir)/src/util/libgnunetutil.la
155 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
158 libgnunet_plugin_transport_template_la_SOURCES = \
159 plugin_transport_template.c
160 libgnunet_plugin_transport_template_la_LIBADD = \
161 $(top_builddir)/src/util/libgnunetutil.la
162 libgnunet_plugin_transport_template_la_LDFLAGS = \
165 libgnunet_plugin_transport_wlan_la_SOURCES = \
166 plugin_transport_wlan.c plugin_transport_wlan.h
167 libgnunet_plugin_transport_wlan_la_LIBADD = \
168 $(top_builddir)/src/hello/libgnunethello.la \
169 $(top_builddir)/src/statistics/libgnunetstatistics.la \
170 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
171 $(top_builddir)/src/util/libgnunetutil.la
172 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
175 libgnunet_plugin_transport_udp_la_SOURCES = \
176 plugin_transport_udp.c
177 libgnunet_plugin_transport_udp_la_LIBADD = \
178 $(top_builddir)/src/hello/libgnunethello.la \
179 $(top_builddir)/src/statistics/libgnunetstatistics.la \
180 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
181 $(top_builddir)/src/nat/libgnunetnat.la \
182 $(top_builddir)/src/util/libgnunetutil.la
183 libgnunet_plugin_transport_udp_la_LDFLAGS = \
186 libgnunet_plugin_transport_unix_la_SOURCES = \
187 plugin_transport_unix.c
188 libgnunet_plugin_transport_unix_la_LIBADD = \
189 $(top_builddir)/src/hello/libgnunethello.la \
190 $(top_builddir)/src/statistics/libgnunetstatistics.la \
191 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
192 $(top_builddir)/src/util/libgnunetutil.la
193 libgnunet_plugin_transport_unix_la_LDFLAGS = \
196 libgnunet_plugin_transport_http_la_SOURCES = \
197 plugin_transport_http.c
198 libgnunet_plugin_transport_http_la_LIBADD = \
199 $(top_builddir)/src/hello/libgnunethello.la \
200 $(top_builddir)/src/statistics/libgnunetstatistics.la \
201 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
203 $(top_builddir)/src/nat/libgnunetnat.la \
204 $(top_builddir)/src/util/libgnunetutil.la
205 libgnunet_plugin_transport_http_la_LDFLAGS = \
208 libgnunet_plugin_transport_http_la_CFLAGS = \
210 libgnunet_plugin_transport_http_la_CPPFLAGS = \
213 libgnunet_plugin_transport_https_la_SOURCES = \
214 plugin_transport_http.c
215 libgnunet_plugin_transport_https_la_LIBADD = \
216 $(top_builddir)/src/hello/libgnunethello.la \
217 $(top_builddir)/src/statistics/libgnunetstatistics.la \
218 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
220 $(top_builddir)/src/nat/libgnunetnat.la \
221 $(top_builddir)/src/util/libgnunetutil.la
222 libgnunet_plugin_transport_https_la_LDFLAGS = \
225 libgnunet_plugin_transport_https_la_CFLAGS = \
226 $(CFLAGS) -DBUILD_HTTPS
227 libgnunet_plugin_transport_https_la_CPPFLAGS = \
231 TRANSPORT_BENCHMARKS = \
237 $(TRANSPORT_BENCHMARKS) \
238 test_transport_api_tcp \
239 test_transport_api_tcp_nat \
240 test_transport_api_udp \
241 $(UNIX_PLUGIN_TEST) \
242 test_transport_api_udp_nat \
243 $(HTTP_PLUGIN_TEST) \
245 $(HTTPS_PLUGIN_TEST) \
247 test_transport_api_multi \
248 test_transport_api_reliability_tcp \
249 test_transport_api_reliability_tcp_nat \
250 test_transport_api_unreliability_udp \
254 test_transport_api_multiaddress_tcp \
255 test_quota_compliance_tcp \
256 test_quota_compliance_tcp_asymmetric_recv_constant \
257 test_quota_compliance_udp \
258 test_quota_compliance_udp_asymmetric_recv_constant \
261 $(HTTPS_QUOTA_TEST) \
270 test_transport_api_tcp \
271 test_transport_api_tcp_nat \
272 test_transport_api_udp \
273 $(UNIX_PLUGIN_TEST) \
274 test_transport_api_udp_nat \
275 $(HTTP_PLUGIN_TEST) \
277 $(HTTPS_PLUGIN_TEST) \
279 test_transport_api_multiaddress_tcp \
280 test_transport_api_multi \
281 test_transport_api_reliability_tcp \
282 test_transport_api_reliability_tcp_nat \
283 test_transport_api_unreliability_udp \
287 test_quota_compliance_tcp \
288 test_quota_compliance_tcp_asymmetric_recv_constant \
289 test_quota_compliance_udp \
290 test_quota_compliance_udp_asymmetric_recv_constant \
293 $(HTTPS_QUOTA_TEST) \
299 test_transport_ats_SOURCES = \
301 test_transport_ats_LDADD = -lm \
302 $(top_builddir)/src/transport/libgnunettransportnew.la \
303 $(top_builddir)/src/statistics/libgnunetstatistics.la \
304 $(top_builddir)/src/testing/libgnunettesting.la \
305 $(top_builddir)/src/util/libgnunetutil.la
307 perf_transport_ats_SOURCES = \
309 perf_transport_ats_LDADD = \
311 $(top_builddir)/src/util/libgnunetutil.la
313 test_transport_api_tcp_SOURCES = \
315 test_transport_api_tcp_LDADD = \
316 $(top_builddir)/src/transport/libgnunettransportnew.la \
317 $(top_builddir)/src/hello/libgnunethello.la \
318 $(top_builddir)/src/util/libgnunetutil.la
320 test_transport_api_tcp_nat_SOURCES = \
322 test_transport_api_tcp_nat_LDADD = \
323 $(top_builddir)/src/transport/libgnunettransportnew.la \
324 $(top_builddir)/src/hello/libgnunethello.la \
325 $(top_builddir)/src/util/libgnunetutil.la
327 test_transport_api_reliability_tcp_SOURCES = \
328 test_transport_api_reliability.c
329 test_transport_api_reliability_tcp_LDADD = \
330 $(top_builddir)/src/transport/libgnunettransportnew.la \
331 $(top_builddir)/src/hello/libgnunethello.la \
332 $(top_builddir)/src/util/libgnunetutil.la
334 test_transport_api_multiaddress_tcp_SOURCES = \
335 test_transport_api_multiaddress.c
336 test_transport_api_multiaddress_tcp_LDADD = \
337 $(top_builddir)/src/transport/libgnunettransportnew.la \
338 $(top_builddir)/src/hello/libgnunethello.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 test_transport_api_reliability_tcp_nat_SOURCES = \
342 test_transport_api_reliability.c
343 test_transport_api_reliability_tcp_nat_LDADD = \
344 $(top_builddir)/src/transport/libgnunettransportnew.la \
345 $(top_builddir)/src/hello/libgnunethello.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 test_transport_api_reliability_wlan_SOURCES = \
349 test_transport_api_reliability.c
350 test_transport_api_reliability_wlan_LDADD = \
351 $(top_builddir)/src/transport/libgnunettransportnew.la \
352 $(top_builddir)/src/hello/libgnunethello.la \
353 $(top_builddir)/src/util/libgnunetutil.la
355 test_transport_api_unreliability_wlan_SOURCES = \
356 test_transport_api_unreliability.c
357 test_transport_api_unreliability_wlan_LDADD = \
358 $(top_builddir)/src/transport/libgnunettransportnew.la \
359 $(top_builddir)/src/hello/libgnunethello.la \
360 $(top_builddir)/src/util/libgnunetutil.la
362 test_transport_api_udp_SOURCES = \
364 test_transport_api_udp_LDADD = \
365 $(top_builddir)/src/transport/libgnunettransportnew.la \
366 $(top_builddir)/src/hello/libgnunethello.la \
367 $(top_builddir)/src/util/libgnunetutil.la
369 test_transport_api_udp_nat_SOURCES = \
371 test_transport_api_udp_nat_LDADD = \
372 $(top_builddir)/src/transport/libgnunettransportnew.la \
373 $(top_builddir)/src/hello/libgnunethello.la \
374 $(top_builddir)/src/util/libgnunetutil.la
376 test_transport_api_unix_SOURCES = \
378 test_transport_api_unix_LDADD = \
379 $(top_builddir)/src/transport/libgnunettransportnew.la \
380 $(top_builddir)/src/hello/libgnunethello.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 #test_plugin_transport_http_SOURCES = \
384 # test_plugin_transport_http.c
385 #test_plugin_transport_http_LDADD = \
386 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
388 # $(top_builddir)/src/hello/libgnunethello.la \
389 # $(top_builddir)/src/util/libgnunetutil.la
391 test_transport_api_http_SOURCES = \
393 test_transport_api_http_LDADD = \
394 $(top_builddir)/src/transport/libgnunettransportnew.la \
395 $(top_builddir)/src/hello/libgnunethello.la \
396 $(top_builddir)/src/util/libgnunetutil.la
398 test_transport_api_reliability_http_SOURCES = \
399 test_transport_api_reliability.c
400 test_transport_api_reliability_http_LDADD = \
401 $(top_builddir)/src/transport/libgnunettransportnew.la \
402 $(top_builddir)/src/hello/libgnunethello.la \
403 $(top_builddir)/src/util/libgnunetutil.la
405 #test_plugin_transport_https_SOURCES = \
406 # test_plugin_transport_https.c
407 #test_plugin_transport_https_LDADD = \
408 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
410 # $(top_builddir)/src/hello/libgnunethello.la \
411 # $(top_builddir)/src/util/libgnunetutil.la
413 test_transport_api_https_SOURCES = \
415 test_transport_api_https_LDADD = \
416 $(top_builddir)/src/transport/libgnunettransportnew.la \
417 $(top_builddir)/src/hello/libgnunethello.la \
418 $(top_builddir)/src/util/libgnunetutil.la
420 test_transport_api_reliability_https_SOURCES = \
421 test_transport_api_reliability.c
422 test_transport_api_reliability_https_LDADD = \
423 $(top_builddir)/src/transport/libgnunettransportnew.la \
424 $(top_builddir)/src/hello/libgnunethello.la \
425 $(top_builddir)/src/util/libgnunetutil.la
427 test_transport_api_unreliability_unix_SOURCES = \
428 test_transport_api_unreliability.c
429 test_transport_api_unreliability_unix_LDADD = \
430 $(top_builddir)/src/transport/libgnunettransportnew.la \
431 $(top_builddir)/src/hello/libgnunethello.la \
432 $(top_builddir)/src/util/libgnunetutil.la
434 test_transport_api_unreliability_udp_SOURCES = \
435 test_transport_api_unreliability.c
436 test_transport_api_unreliability_udp_LDADD = \
437 $(top_builddir)/src/transport/libgnunettransportnew.la \
438 $(top_builddir)/src/hello/libgnunethello.la \
439 $(top_builddir)/src/util/libgnunetutil.la
442 test_transport_api_wlan_SOURCES = \
444 test_transport_api_wlan_LDADD = \
445 $(top_builddir)/src/transport/libgnunettransportnew.la \
446 $(top_builddir)/src/hello/libgnunethello.la \
447 $(top_builddir)/src/util/libgnunetutil.la
450 test_quota_compliance_tcp_SOURCES = \
451 test_quota_compliance.c
452 test_quota_compliance_tcp_LDADD = \
453 $(top_builddir)/src/transport/libgnunettransportnew.la \
454 $(top_builddir)/src/hello/libgnunethello.la \
455 $(top_builddir)/src/util/libgnunetutil.la
457 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
458 test_quota_compliance.c
459 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
460 $(top_builddir)/src/transport/libgnunettransportnew.la \
461 $(top_builddir)/src/hello/libgnunethello.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
465 # test_quota_compliance.c
466 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
467 # $(top_builddir)/src/transport/libgnunettransportnew.la \
468 # $(top_builddir)/src/util/libgnunetutil.la
470 test_quota_compliance_http_SOURCES = \
471 test_quota_compliance.c
472 test_quota_compliance_http_LDADD = \
473 $(top_builddir)/src/transport/libgnunettransportnew.la \
474 $(top_builddir)/src/hello/libgnunethello.la \
475 $(top_builddir)/src/util/libgnunetutil.la
477 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
478 test_quota_compliance.c
479 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
480 $(top_builddir)/src/transport/libgnunettransportnew.la \
481 $(top_builddir)/src/hello/libgnunethello.la \
482 $(top_builddir)/src/util/libgnunetutil.la
484 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
485 # test_quota_compliance.c
486 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
487 # $(top_builddir)/src/transport/libgnunettransportnew.la \
488 # $(top_builddir)/src/util/libgnunetutil.la
490 test_quota_compliance_https_SOURCES = \
491 test_quota_compliance.c
492 test_quota_compliance_https_LDADD = \
493 $(top_builddir)/src/transport/libgnunettransportnew.la \
494 $(top_builddir)/src/hello/libgnunethello.la \
495 $(top_builddir)/src/util/libgnunetutil.la
497 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
498 test_quota_compliance.c
499 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
500 $(top_builddir)/src/transport/libgnunettransportnew.la \
501 $(top_builddir)/src/hello/libgnunethello.la \
502 $(top_builddir)/src/util/libgnunetutil.la
504 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
505 # test_quota_compliance.c
506 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
507 # $(top_builddir)/src/transport/libgnunettransportnew.la \
508 # $(top_builddir)/src/util/libgnunetutil.la
510 test_quota_compliance_udp_SOURCES = \
511 test_quota_compliance.c
512 test_quota_compliance_udp_LDADD = \
513 $(top_builddir)/src/transport/libgnunettransportnew.la \
514 $(top_builddir)/src/hello/libgnunethello.la \
515 $(top_builddir)/src/util/libgnunetutil.la
517 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
518 test_quota_compliance.c
519 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
520 $(top_builddir)/src/transport/libgnunettransportnew.la \
521 $(top_builddir)/src/hello/libgnunethello.la \
522 $(top_builddir)/src/util/libgnunetutil.la
524 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
525 # test_quota_compliance.c
526 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
527 # $(top_builddir)/src/transport/libgnunettransportnew.la \
528 # $(top_builddir)/src/util/libgnunetutil.la
530 test_quota_compliance_unix_SOURCES = \
531 test_quota_compliance.c
532 test_quota_compliance_unix_LDADD = \
533 $(top_builddir)/src/transport/libgnunettransportnew.la \
534 $(top_builddir)/src/hello/libgnunethello.la \
535 $(top_builddir)/src/util/libgnunetutil.la
537 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
538 test_quota_compliance.c
539 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
540 $(top_builddir)/src/transport/libgnunettransportnew.la \
541 $(top_builddir)/src/hello/libgnunethello.la \
542 $(top_builddir)/src/util/libgnunetutil.la
545 test_transport_api_multi_SOURCES = \
547 test_transport_api_multi_LDADD = \
548 $(top_builddir)/src/transport/libgnunettransportnew.la \
549 $(top_builddir)/src/hello/libgnunethello.la \
550 $(top_builddir)/src/util/libgnunetutil.la
552 gnunet-transport-certificate-creation \
553 ats_mlp_p100_m400.problem \
554 test_transport_api_data.conf \
555 test_transport_api_tcp_peer1.conf \
556 test_transport_api_tcp_peer2.conf \
557 test_transport_api_udp_peer1.conf \
558 test_transport_api_udp_peer2.conf \
559 test_transport_api_unix_peer1.conf \
560 test_transport_api_unix_peer2.conf \
561 test_transport_api_udp_nat_peer1.conf \
562 test_transport_api_udp_nat_peer2.conf \
563 test_transport_api_tcp_nat_peer1.conf \
564 test_transport_api_tcp_nat_peer2.conf \
565 test_plugin_transport_data.conf \
566 test_transport_api_http_peer1.conf \
567 test_transport_api_http_peer2.conf \
568 test_transport_api_https_peer1.conf \
569 test_transport_api_https_peer2.conf \
570 test_transport_api_wlan_peer1.conf \
571 test_transport_api_wlan_peer2.conf \
572 test_transport_api_multi_peer1.conf \
573 test_transport_api_multi_peer2.conf \
574 test_transport_api_rel_http_peer1.conf \
575 test_transport_api_rel_http_peer2.conf \
576 test_transport_api_rel_https_peer1.conf \
577 test_transport_api_rel_https_peer2.conf \
578 test_plugin_transport_data_http.conf \
579 test_plugin_transport_data.conf \
580 test_quota_compliance_data.conf \
581 test_quota_compliance_tcp_peer1.conf \
582 test_quota_compliance_tcp_peer2.conf \
583 test_quota_compliance_http_peer1.conf \
584 test_quota_compliance_http_peer2.conf \
585 test_quota_compliance_https_peer1.conf \
586 test_quota_compliance_https_peer2.conf \
587 test_quota_compliance_udp_peer1.conf \
588 test_quota_compliance_udp_peer2.conf \
589 test_quota_compliance_unix_peer1.conf \
590 test_quota_compliance_unix_peer2.conf \
591 test_plugin_transport_data_udp.conf \
592 test_transport_ats_1addr.conf \
593 test_transport_ats_2addr.conf \
594 test_transport_ats_4addr.conf