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 WLAN_BIN = gnunet-transport-wlan-helper
38 WLAN_BIN_DUMMY = gnunet-transport-wlan-helper-dummy
39 WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
40 WLAN_API_TEST = test_transport_api_wlan
41 WLAN_REL_TEST = test_transport_api_reliability_wlan
42 WLAN_UREL_TEST = test_transport_api_unreliability_wlan
47 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
48 UNIX_PLUGIN_TEST = test_transport_api_unix
49 UNIX_REL_TEST = test_transport_api_unreliability_unix
50 UNIX_QUOTA_TEST = test_quota_compliance_unix \
51 test_quota_compliance_unix_asymmetric_recv_constant
55 NATBIN = gnunet-nat-server gnunet-nat-client
57 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
58 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
63 #noinst_PROGRAMS = ${check_PROGRAMS}
66 libgnunettransport.la \
67 libgnunettransportnew.la
69 libgnunettransportnew_la_SOURCES = \
70 transport_api_new.c transport.h \
71 transport_api_blacklist.c \
72 transport_api_address_lookup.c
73 libgnunettransportnew_la_LIBADD = \
74 $(top_builddir)/src/hello/libgnunethello.la \
75 $(top_builddir)/src/util/libgnunetutil.la \
77 libgnunettransportnew_la_LDFLAGS = \
78 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
81 libgnunettransport_la_SOURCES = \
82 transport_api.c transport.h \
83 transport_api_blacklist.c \
84 transport_api_address_lookup.c
85 libgnunettransport_la_LIBADD = \
86 $(top_builddir)/src/hello/libgnunethello.la \
87 $(top_builddir)/src/util/libgnunetutil.la \
89 libgnunettransport_la_LDFLAGS = \
90 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
97 gnunet-service-transport $(NATBIN) \
101 gnunet-transport-certificate-creation
103 gnunet_nat_server_SOURCES = \
107 gnunet_transport_wlan_helper_SOURCES = \
109 wlan/crctable_osdep.h \
110 wlan/helper_common.c wlan/helper_common.h \
112 wlan/ieee80211_radiotap.h \
113 wlan/loopback_helper.h \
114 wlan/radiotap-parser.c wlan/radiotap-parser.h \
115 gnunet-transport-wlan-helper.c gnunet-transport-wlan-helper.h
117 gnunet_transport_wlan_helper_dummy_SOURCES = \
118 wlan/radiotap-parser.c \
119 wlan/helper_common.c \
120 test_plugin_transport_wlan_dummy.c
122 gnunet_transport_wlan_helper_LDADD = \
123 $(top_builddir)/src/util/libgnunetutil.la
125 gnunet_transport_wlan_helper_dummy_LDADD = \
126 $(top_builddir)/src/util/libgnunetutil.la
128 gnunet_nat_client_SOURCES = \
131 gnunet_transport_SOURCES = \
133 gnunet_transport_LDADD = \
134 $(top_builddir)/src/transport/libgnunettransportnew.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
137 gnunet_transport_DEPENDENCIES = \
138 libgnunettransportnew.la
144 gnunet_service_transport_SOURCES = \
145 gnunet-service-transport.c
146 gnunet_service_transport_LDADD = \
147 $(top_builddir)/src/hello/libgnunethello.la \
148 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
149 $(top_builddir)/src/statistics/libgnunetstatistics.la \
150 $(top_builddir)/src/util/libgnunetutil.la \
154 plugin_LTLIBRARIES = \
155 libgnunet_plugin_transport_tcp.la \
156 libgnunet_plugin_transport_udp.la \
161 libgnunet_plugin_transport_template.la
162 # TODO: add nat, etc.
164 libgnunet_plugin_transport_tcp_la_SOURCES = \
165 plugin_transport_tcp.c
166 libgnunet_plugin_transport_tcp_la_LIBADD = \
167 $(top_builddir)/src/hello/libgnunethello.la \
168 $(top_builddir)/src/statistics/libgnunetstatistics.la \
169 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
170 $(top_builddir)/src/nat/libgnunetnat.la \
171 $(top_builddir)/src/util/libgnunetutil.la
172 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
175 libgnunet_plugin_transport_template_la_SOURCES = \
176 plugin_transport_template.c
177 libgnunet_plugin_transport_template_la_LIBADD = \
178 $(top_builddir)/src/util/libgnunetutil.la
179 libgnunet_plugin_transport_template_la_LDFLAGS = \
182 libgnunet_plugin_transport_wlan_la_SOURCES = \
183 plugin_transport_wlan.c plugin_transport_wlan.h
184 libgnunet_plugin_transport_wlan_la_LIBADD = \
185 $(top_builddir)/src/hello/libgnunethello.la \
186 $(top_builddir)/src/statistics/libgnunetstatistics.la \
187 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
188 $(top_builddir)/src/util/libgnunetutil.la
189 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
192 libgnunet_plugin_transport_udp_la_SOURCES = \
193 plugin_transport_udp.c
194 libgnunet_plugin_transport_udp_la_LIBADD = \
195 $(top_builddir)/src/hello/libgnunethello.la \
196 $(top_builddir)/src/statistics/libgnunetstatistics.la \
197 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
198 $(top_builddir)/src/util/libgnunetutil.la
199 libgnunet_plugin_transport_udp_la_LDFLAGS = \
202 libgnunet_plugin_transport_unix_la_SOURCES = \
203 plugin_transport_unix.c
204 libgnunet_plugin_transport_unix_la_LIBADD = \
205 $(top_builddir)/src/hello/libgnunethello.la \
206 $(top_builddir)/src/statistics/libgnunetstatistics.la \
207 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
208 $(top_builddir)/src/util/libgnunetutil.la
209 libgnunet_plugin_transport_unix_la_LDFLAGS = \
212 libgnunet_plugin_transport_http_la_SOURCES = \
213 plugin_transport_http.c
214 libgnunet_plugin_transport_http_la_LIBADD = \
215 $(top_builddir)/src/hello/libgnunethello.la \
216 $(top_builddir)/src/statistics/libgnunetstatistics.la \
217 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
219 $(top_builddir)/src/util/libgnunetutil.la
220 libgnunet_plugin_transport_http_la_LDFLAGS = \
223 libgnunet_plugin_transport_http_la_CFLAGS = \
225 libgnunet_plugin_transport_http_la_CPPFLAGS = \
228 libgnunet_plugin_transport_https_la_SOURCES = \
229 plugin_transport_http.c
230 libgnunet_plugin_transport_https_la_LIBADD = \
231 $(top_builddir)/src/hello/libgnunethello.la \
232 $(top_builddir)/src/statistics/libgnunetstatistics.la \
233 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
235 $(top_builddir)/src/util/libgnunetutil.la
236 libgnunet_plugin_transport_https_la_LDFLAGS = \
239 libgnunet_plugin_transport_https_la_CFLAGS = \
240 $(CFLAGS) -DBUILD_HTTPS
241 libgnunet_plugin_transport_https_la_CPPFLAGS = \
245 TRANSPORT_BENCHMARKS = \
251 $(TRANSPORT_BENCHMARKS) \
252 test_transport_api_tcp \
253 test_transport_api_tcp_nat \
254 test_transport_api_udp \
255 $(UNIX_PLUGIN_TEST) \
256 test_transport_api_udp_nat \
257 $(HTTP_PLUGIN_TEST) \
259 $(HTTPS_PLUGIN_TEST) \
261 test_transport_api_multi \
262 test_transport_api_reliability_tcp \
263 test_transport_api_reliability_tcp_nat \
264 test_transport_api_unreliability_udp \
268 test_quota_compliance_tcp \
269 test_quota_compliance_tcp_asymmetric_recv_constant \
270 test_quota_compliance_udp \
271 test_quota_compliance_udp_asymmetric_recv_constant \
274 $(HTTPS_QUOTA_TEST) \
278 # TODO: add tests for nat, etc.
284 test_transport_api_tcp \
285 test_transport_api_tcp_nat \
286 test_transport_api_udp \
287 $(UNIX_PLUGIN_TEST) \
288 test_transport_api_udp_nat \
289 $(HTTP_PLUGIN_TEST) \
291 $(HTTPS_PLUGIN_TEST) \
293 test_transport_api_multi \
294 test_transport_api_reliability_tcp \
295 test_transport_api_reliability_tcp_nat \
296 test_transport_api_unreliability_udp \
300 test_quota_compliance_tcp \
301 test_quota_compliance_tcp_asymmetric_recv_constant \
302 test_quota_compliance_udp \
303 test_quota_compliance_udp_asymmetric_recv_constant \
306 $(HTTPS_QUOTA_TEST) \
312 test_transport_ats_SOURCES = \
314 test_transport_ats_LDADD = -lm \
315 $(top_builddir)/src/transport/libgnunettransportnew.la \
316 $(top_builddir)/src/statistics/libgnunetstatistics.la \
317 $(top_builddir)/src/testing/libgnunettesting.la \
318 $(top_builddir)/src/util/libgnunetutil.la
320 perf_transport_ats_SOURCES = \
322 perf_transport_ats_LDADD = \
324 $(top_builddir)/src/util/libgnunetutil.la
326 test_transport_api_tcp_SOURCES = \
328 test_transport_api_tcp_LDADD = \
329 $(top_builddir)/src/transport/libgnunettransportnew.la \
330 $(top_builddir)/src/hello/libgnunethello.la \
331 $(top_builddir)/src/util/libgnunetutil.la
333 test_transport_api_tcp_nat_SOURCES = \
335 test_transport_api_tcp_nat_LDADD = \
336 $(top_builddir)/src/transport/libgnunettransportnew.la \
337 $(top_builddir)/src/hello/libgnunethello.la \
338 $(top_builddir)/src/util/libgnunetutil.la
340 test_transport_api_reliability_tcp_SOURCES = \
341 test_transport_api_reliability.c
342 test_transport_api_reliability_tcp_LDADD = \
343 $(top_builddir)/src/transport/libgnunettransportnew.la \
344 $(top_builddir)/src/hello/libgnunethello.la \
345 $(top_builddir)/src/util/libgnunetutil.la
347 test_transport_api_reliability_tcp_nat_SOURCES = \
348 test_transport_api_reliability.c
349 test_transport_api_reliability_tcp_nat_LDADD = \
350 $(top_builddir)/src/transport/libgnunettransportnew.la \
351 $(top_builddir)/src/hello/libgnunethello.la \
352 $(top_builddir)/src/util/libgnunetutil.la
354 test_transport_api_reliability_wlan_SOURCES = \
355 test_transport_api_reliability.c
356 test_transport_api_reliability_wlan_LDADD = \
357 $(top_builddir)/src/transport/libgnunettransportnew.la \
358 $(top_builddir)/src/hello/libgnunethello.la \
359 $(top_builddir)/src/util/libgnunetutil.la
361 test_transport_api_unreliability_wlan_SOURCES = \
362 test_transport_api_unreliability.c
363 test_transport_api_unreliability_wlan_LDADD = \
364 $(top_builddir)/src/transport/libgnunettransportnew.la \
365 $(top_builddir)/src/hello/libgnunethello.la \
366 $(top_builddir)/src/util/libgnunetutil.la
368 test_transport_api_udp_SOURCES = \
370 test_transport_api_udp_LDADD = \
371 $(top_builddir)/src/transport/libgnunettransportnew.la \
372 $(top_builddir)/src/hello/libgnunethello.la \
373 $(top_builddir)/src/util/libgnunetutil.la
375 test_transport_api_udp_nat_SOURCES = \
377 test_transport_api_udp_nat_LDADD = \
378 $(top_builddir)/src/transport/libgnunettransportnew.la \
379 $(top_builddir)/src/hello/libgnunethello.la \
380 $(top_builddir)/src/util/libgnunetutil.la
382 test_transport_api_unix_SOURCES = \
384 test_transport_api_unix_LDADD = \
385 $(top_builddir)/src/transport/libgnunettransportnew.la \
386 $(top_builddir)/src/hello/libgnunethello.la \
387 $(top_builddir)/src/util/libgnunetutil.la
389 test_plugin_transport_http_SOURCES = \
390 test_plugin_transport_http.c
391 test_plugin_transport_http_LDADD = \
392 $(top_builddir)/src/statistics/libgnunetstatistics.la \
394 $(top_builddir)/src/hello/libgnunethello.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_transport_api_http_SOURCES = \
399 test_transport_api_http_LDADD = \
400 $(top_builddir)/src/transport/libgnunettransportnew.la \
401 $(top_builddir)/src/hello/libgnunethello.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 test_transport_api_reliability_http_SOURCES = \
405 test_transport_api_reliability.c
406 test_transport_api_reliability_http_LDADD = \
407 $(top_builddir)/src/transport/libgnunettransportnew.la \
408 $(top_builddir)/src/hello/libgnunethello.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_plugin_transport_https_SOURCES = \
412 test_plugin_transport_https.c
413 test_plugin_transport_https_LDADD = \
414 $(top_builddir)/src/statistics/libgnunetstatistics.la \
416 $(top_builddir)/src/hello/libgnunethello.la \
417 $(top_builddir)/src/util/libgnunetutil.la
419 test_transport_api_https_SOURCES = \
421 test_transport_api_https_LDADD = \
422 $(top_builddir)/src/transport/libgnunettransportnew.la \
423 $(top_builddir)/src/hello/libgnunethello.la \
424 $(top_builddir)/src/util/libgnunetutil.la
426 test_transport_api_reliability_https_SOURCES = \
427 test_transport_api_reliability.c
428 test_transport_api_reliability_https_LDADD = \
429 $(top_builddir)/src/transport/libgnunettransportnew.la \
430 $(top_builddir)/src/hello/libgnunethello.la \
431 $(top_builddir)/src/util/libgnunetutil.la
433 test_transport_api_unreliability_unix_SOURCES = \
434 test_transport_api_unreliability.c
435 test_transport_api_unreliability_unix_LDADD = \
436 $(top_builddir)/src/transport/libgnunettransportnew.la \
437 $(top_builddir)/src/hello/libgnunethello.la \
438 $(top_builddir)/src/util/libgnunetutil.la
440 test_transport_api_unreliability_udp_SOURCES = \
441 test_transport_api_unreliability.c
442 test_transport_api_unreliability_udp_LDADD = \
443 $(top_builddir)/src/transport/libgnunettransportnew.la \
444 $(top_builddir)/src/hello/libgnunethello.la \
445 $(top_builddir)/src/util/libgnunetutil.la
448 test_transport_api_wlan_SOURCES = \
450 test_transport_api_wlan_LDADD = \
451 $(top_builddir)/src/transport/libgnunettransportnew.la \
452 $(top_builddir)/src/hello/libgnunethello.la \
453 $(top_builddir)/src/util/libgnunetutil.la
456 test_quota_compliance_tcp_SOURCES = \
457 test_quota_compliance.c
458 test_quota_compliance_tcp_LDADD = \
459 $(top_builddir)/src/transport/libgnunettransportnew.la \
460 $(top_builddir)/src/hello/libgnunethello.la \
461 $(top_builddir)/src/util/libgnunetutil.la
463 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
464 test_quota_compliance.c
465 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
466 $(top_builddir)/src/transport/libgnunettransportnew.la \
467 $(top_builddir)/src/hello/libgnunethello.la \
468 $(top_builddir)/src/util/libgnunetutil.la
470 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
471 # test_quota_compliance.c
472 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
473 # $(top_builddir)/src/transport/libgnunettransportnew.la \
474 # $(top_builddir)/src/util/libgnunetutil.la
476 test_quota_compliance_http_SOURCES = \
477 test_quota_compliance.c
478 test_quota_compliance_http_LDADD = \
479 $(top_builddir)/src/transport/libgnunettransportnew.la \
480 $(top_builddir)/src/hello/libgnunethello.la \
481 $(top_builddir)/src/util/libgnunetutil.la
483 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
484 test_quota_compliance.c
485 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
486 $(top_builddir)/src/transport/libgnunettransportnew.la \
487 $(top_builddir)/src/hello/libgnunethello.la \
488 $(top_builddir)/src/util/libgnunetutil.la
490 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
491 # test_quota_compliance.c
492 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
493 # $(top_builddir)/src/transport/libgnunettransportnew.la \
494 # $(top_builddir)/src/util/libgnunetutil.la
496 test_quota_compliance_https_SOURCES = \
497 test_quota_compliance.c
498 test_quota_compliance_https_LDADD = \
499 $(top_builddir)/src/transport/libgnunettransportnew.la \
500 $(top_builddir)/src/hello/libgnunethello.la \
501 $(top_builddir)/src/util/libgnunetutil.la
503 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
504 test_quota_compliance.c
505 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
506 $(top_builddir)/src/transport/libgnunettransportnew.la \
507 $(top_builddir)/src/hello/libgnunethello.la \
508 $(top_builddir)/src/util/libgnunetutil.la
510 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
511 # test_quota_compliance.c
512 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
513 # $(top_builddir)/src/transport/libgnunettransportnew.la \
514 # $(top_builddir)/src/util/libgnunetutil.la
516 test_quota_compliance_udp_SOURCES = \
517 test_quota_compliance.c
518 test_quota_compliance_udp_LDADD = \
519 $(top_builddir)/src/transport/libgnunettransportnew.la \
520 $(top_builddir)/src/hello/libgnunethello.la \
521 $(top_builddir)/src/util/libgnunetutil.la
523 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
524 test_quota_compliance.c
525 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
526 $(top_builddir)/src/transport/libgnunettransportnew.la \
527 $(top_builddir)/src/hello/libgnunethello.la \
528 $(top_builddir)/src/util/libgnunetutil.la
530 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
531 # test_quota_compliance.c
532 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
533 # $(top_builddir)/src/transport/libgnunettransportnew.la \
534 # $(top_builddir)/src/util/libgnunetutil.la
536 test_quota_compliance_unix_SOURCES = \
537 test_quota_compliance.c
538 test_quota_compliance_unix_LDADD = \
539 $(top_builddir)/src/transport/libgnunettransportnew.la \
540 $(top_builddir)/src/hello/libgnunethello.la \
541 $(top_builddir)/src/util/libgnunetutil.la
543 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
544 test_quota_compliance.c
545 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
546 $(top_builddir)/src/transport/libgnunettransportnew.la \
547 $(top_builddir)/src/hello/libgnunethello.la \
548 $(top_builddir)/src/util/libgnunetutil.la
551 test_transport_api_multi_SOURCES = \
553 test_transport_api_multi_LDADD = \
554 $(top_builddir)/src/transport/libgnunettransportnew.la \
555 $(top_builddir)/src/hello/libgnunethello.la \
556 $(top_builddir)/src/util/libgnunetutil.la
558 gnunet-transport-certificate-creation \
559 ats_mlp_p100_m400.problem \
560 test_transport_api_data.conf \
561 test_transport_api_tcp_peer1.conf \
562 test_transport_api_tcp_peer2.conf \
563 test_transport_api_udp_peer1.conf \
564 test_transport_api_udp_peer2.conf \
565 test_transport_api_unix_peer1.conf \
566 test_transport_api_unix_peer2.conf \
567 test_transport_api_udp_nat_peer1.conf \
568 test_transport_api_udp_nat_peer2.conf \
569 test_transport_api_tcp_nat_peer1.conf \
570 test_transport_api_tcp_nat_peer2.conf \
571 test_plugin_transport_data.conf \
572 test_transport_api_http_peer1.conf \
573 test_transport_api_http_peer2.conf \
574 test_transport_api_https_peer1.conf \
575 test_transport_api_https_peer2.conf \
576 test_transport_api_wlan_peer1.conf \
577 test_transport_api_wlan_peer2.conf \
578 test_transport_api_multi_peer1.conf \
579 test_transport_api_multi_peer2.conf \
580 test_transport_api_rel_http_peer1.conf \
581 test_transport_api_rel_http_peer2.conf \
582 test_transport_api_rel_https_peer1.conf \
583 test_transport_api_rel_https_peer2.conf \
584 test_plugin_transport_data_http.conf \
585 test_plugin_transport_data.conf \
586 test_quota_compliance_data.conf \
587 test_quota_compliance_tcp_peer1.conf \
588 test_quota_compliance_tcp_peer2.conf \
589 test_quota_compliance_http_peer1.conf \
590 test_quota_compliance_http_peer2.conf \
591 test_quota_compliance_https_peer1.conf \
592 test_quota_compliance_https_peer2.conf \
593 test_quota_compliance_udp_peer1.conf \
594 test_quota_compliance_udp_peer2.conf \
595 test_quota_compliance_unix_peer1.conf \
596 test_quota_compliance_unix_peer2.conf \
597 test_plugin_transport_data_udp.conf \
598 test_transport_ats_1addr.conf \
599 test_transport_ats_2addr.conf \
600 test_transport_ats_4addr.conf