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 = \
108 wlan/radiotap-parser.c \
109 wlan/helper_common.c \
110 gnunet-transport-wlan-helper.c
112 gnunet_transport_wlan_helper_dummy_SOURCES = \
113 wlan/radiotap-parser.c \
114 wlan/helper_common.c \
115 test_plugin_transport_wlan_dummy.c
117 gnunet_transport_wlan_helper_LDADD = \
118 $(top_builddir)/src/util/libgnunetutil.la
120 gnunet_transport_wlan_helper_dummy_LDADD = \
121 $(top_builddir)/src/util/libgnunetutil.la
123 gnunet_nat_client_SOURCES = \
126 gnunet_transport_SOURCES = \
128 gnunet_transport_LDADD = \
129 $(top_builddir)/src/transport/libgnunettransportnew.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
132 gnunet_transport_DEPENDENCIES = \
133 libgnunettransportnew.la
139 gnunet_service_transport_SOURCES = \
140 gnunet-service-transport.c
141 gnunet_service_transport_LDADD = \
142 $(top_builddir)/src/hello/libgnunethello.la \
143 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
144 $(top_builddir)/src/statistics/libgnunetstatistics.la \
145 $(top_builddir)/src/util/libgnunetutil.la \
149 plugin_LTLIBRARIES = \
150 libgnunet_plugin_transport_tcp.la \
151 libgnunet_plugin_transport_udp.la \
156 libgnunet_plugin_transport_template.la
157 # TODO: add nat, etc.
159 libgnunet_plugin_transport_tcp_la_SOURCES = \
160 plugin_transport_tcp.c
161 libgnunet_plugin_transport_tcp_la_LIBADD = \
162 $(top_builddir)/src/hello/libgnunethello.la \
163 $(top_builddir)/src/statistics/libgnunetstatistics.la \
164 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
165 $(top_builddir)/src/nat/libgnunetnat.la \
166 $(top_builddir)/src/util/libgnunetutil.la
167 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
170 libgnunet_plugin_transport_template_la_SOURCES = \
171 plugin_transport_template.c
172 libgnunet_plugin_transport_template_la_LIBADD = \
173 $(top_builddir)/src/util/libgnunetutil.la
174 libgnunet_plugin_transport_template_la_LDFLAGS = \
177 libgnunet_plugin_transport_wlan_la_SOURCES = \
178 plugin_transport_wlan.c
179 libgnunet_plugin_transport_wlan_la_LIBADD = \
180 $(top_builddir)/src/hello/libgnunethello.la \
181 $(top_builddir)/src/statistics/libgnunetstatistics.la \
182 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
183 $(top_builddir)/src/util/libgnunetutil.la
184 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
187 libgnunet_plugin_transport_udp_la_SOURCES = \
188 plugin_transport_udp.c
189 libgnunet_plugin_transport_udp_la_LIBADD = \
190 $(top_builddir)/src/hello/libgnunethello.la \
191 $(top_builddir)/src/statistics/libgnunetstatistics.la \
192 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
193 $(top_builddir)/src/util/libgnunetutil.la
194 libgnunet_plugin_transport_udp_la_LDFLAGS = \
197 libgnunet_plugin_transport_unix_la_SOURCES = \
198 plugin_transport_unix.c
199 libgnunet_plugin_transport_unix_la_LIBADD = \
200 $(top_builddir)/src/hello/libgnunethello.la \
201 $(top_builddir)/src/statistics/libgnunetstatistics.la \
202 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
203 $(top_builddir)/src/util/libgnunetutil.la
204 libgnunet_plugin_transport_unix_la_LDFLAGS = \
207 libgnunet_plugin_transport_http_la_SOURCES = \
208 plugin_transport_http.c
209 libgnunet_plugin_transport_http_la_LIBADD = \
210 $(top_builddir)/src/hello/libgnunethello.la \
211 $(top_builddir)/src/statistics/libgnunetstatistics.la \
212 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
214 $(top_builddir)/src/util/libgnunetutil.la
215 libgnunet_plugin_transport_http_la_LDFLAGS = \
218 libgnunet_plugin_transport_https_la_CFLAGS = \
220 libgnunet_plugin_transport_https_la_CPPFLAGS = \
223 libgnunet_plugin_transport_https_la_SOURCES = \
224 plugin_transport_http.c
225 libgnunet_plugin_transport_https_la_LIBADD = \
226 $(top_builddir)/src/hello/libgnunethello.la \
227 $(top_builddir)/src/statistics/libgnunetstatistics.la \
228 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
230 $(top_builddir)/src/util/libgnunetutil.la
231 libgnunet_plugin_transport_https_la_LDFLAGS = \
234 libgnunet_plugin_transport_https_la_CFLAGS = \
235 $(CFLAGS) -DBUILD_HTTPS
236 libgnunet_plugin_transport_https_la_CPPFLAGS = \
243 test_transport_api_tcp \
244 test_transport_api_tcp_nat \
245 test_transport_api_udp \
246 $(UNIX_PLUGIN_TEST) \
247 test_transport_api_udp_nat \
248 $(HTTP_PLUGIN_TEST) \
250 $(HTTPS_PLUGIN_TEST) \
252 test_transport_api_multi \
253 test_transport_api_reliability_tcp \
254 test_transport_api_reliability_tcp_nat \
255 test_transport_api_unreliability_udp \
259 test_quota_compliance_tcp \
260 test_quota_compliance_tcp_asymmetric_recv_constant \
261 test_quota_compliance_udp \
262 test_quota_compliance_udp_asymmetric_recv_constant \
265 $(HTTPS_QUOTA_TEST) \
269 # TODO: add tests for nat, etc.
275 test_transport_api_tcp \
276 test_transport_api_tcp_nat \
277 test_transport_api_udp \
278 $(UNIX_PLUGIN_TEST) \
279 test_transport_api_udp_nat \
280 $(HTTP_PLUGIN_TEST) \
282 $(HTTPS_PLUGIN_TEST) \
284 test_transport_api_multi \
285 test_transport_api_reliability_tcp \
286 test_transport_api_reliability_tcp_nat \
287 test_transport_api_unreliability_udp \
291 test_quota_compliance_tcp \
292 test_quota_compliance_tcp_asymmetric_recv_constant \
293 test_quota_compliance_udp \
294 test_quota_compliance_udp_asymmetric_recv_constant \
297 $(HTTPS_QUOTA_TEST) \
303 test_transport_ats_SOURCES = \
305 test_transport_ats_LDADD = -lm \
306 $(top_builddir)/src/transport/libgnunettransportnew.la \
307 $(top_builddir)/src/statistics/libgnunetstatistics.la \
308 $(top_builddir)/src/testing/libgnunettesting.la \
309 $(top_builddir)/src/util/libgnunetutil.la
311 perf_transport_ats_SOURCES = \
313 perf_transport_ats_LDADD = \
315 $(top_builddir)/src/util/libgnunetutil.la
317 test_transport_api_tcp_SOURCES = \
319 test_transport_api_tcp_LDADD = \
320 $(top_builddir)/src/transport/libgnunettransportnew.la \
321 $(top_builddir)/src/hello/libgnunethello.la \
322 $(top_builddir)/src/util/libgnunetutil.la
324 test_transport_api_tcp_nat_SOURCES = \
326 test_transport_api_tcp_nat_LDADD = \
327 $(top_builddir)/src/transport/libgnunettransportnew.la \
328 $(top_builddir)/src/hello/libgnunethello.la \
329 $(top_builddir)/src/util/libgnunetutil.la
331 test_transport_api_reliability_tcp_SOURCES = \
332 test_transport_api_reliability.c
333 test_transport_api_reliability_tcp_LDADD = \
334 $(top_builddir)/src/transport/libgnunettransportnew.la \
335 $(top_builddir)/src/hello/libgnunethello.la \
336 $(top_builddir)/src/util/libgnunetutil.la
338 test_transport_api_reliability_tcp_nat_SOURCES = \
339 test_transport_api_reliability.c
340 test_transport_api_reliability_tcp_nat_LDADD = \
341 $(top_builddir)/src/transport/libgnunettransportnew.la \
342 $(top_builddir)/src/hello/libgnunethello.la \
343 $(top_builddir)/src/util/libgnunetutil.la
345 test_transport_api_reliability_wlan_SOURCES = \
346 test_transport_api_reliability.c
347 test_transport_api_reliability_wlan_LDADD = \
348 $(top_builddir)/src/transport/libgnunettransportnew.la \
349 $(top_builddir)/src/hello/libgnunethello.la \
350 $(top_builddir)/src/util/libgnunetutil.la
352 test_transport_api_unreliability_wlan_SOURCES = \
353 test_transport_api_unreliability.c
354 test_transport_api_unreliability_wlan_LDADD = \
355 $(top_builddir)/src/transport/libgnunettransportnew.la \
356 $(top_builddir)/src/hello/libgnunethello.la \
357 $(top_builddir)/src/util/libgnunetutil.la
359 test_transport_api_udp_SOURCES = \
361 test_transport_api_udp_LDADD = \
362 $(top_builddir)/src/transport/libgnunettransportnew.la \
363 $(top_builddir)/src/hello/libgnunethello.la \
364 $(top_builddir)/src/util/libgnunetutil.la
366 test_transport_api_udp_nat_SOURCES = \
368 test_transport_api_udp_nat_LDADD = \
369 $(top_builddir)/src/transport/libgnunettransportnew.la \
370 $(top_builddir)/src/hello/libgnunethello.la \
371 $(top_builddir)/src/util/libgnunetutil.la
373 test_transport_api_unix_SOURCES = \
375 test_transport_api_unix_LDADD = \
376 $(top_builddir)/src/transport/libgnunettransportnew.la \
377 $(top_builddir)/src/hello/libgnunethello.la \
378 $(top_builddir)/src/util/libgnunetutil.la
380 test_plugin_transport_http_SOURCES = \
381 test_plugin_transport_http.c
382 test_plugin_transport_http_LDADD = \
383 $(top_builddir)/src/statistics/libgnunetstatistics.la \
385 $(top_builddir)/src/hello/libgnunethello.la \
386 $(top_builddir)/src/util/libgnunetutil.la
388 test_transport_api_http_SOURCES = \
390 test_transport_api_http_LDADD = \
391 $(top_builddir)/src/transport/libgnunettransportnew.la \
392 $(top_builddir)/src/hello/libgnunethello.la \
393 $(top_builddir)/src/util/libgnunetutil.la
395 test_transport_api_reliability_http_SOURCES = \
396 test_transport_api_reliability.c
397 test_transport_api_reliability_http_LDADD = \
398 $(top_builddir)/src/transport/libgnunettransportnew.la \
399 $(top_builddir)/src/hello/libgnunethello.la \
400 $(top_builddir)/src/util/libgnunetutil.la
402 test_plugin_transport_https_SOURCES = \
403 test_plugin_transport_https.c
404 test_plugin_transport_https_LDADD = \
405 $(top_builddir)/src/statistics/libgnunetstatistics.la \
407 $(top_builddir)/src/hello/libgnunethello.la \
408 $(top_builddir)/src/util/libgnunetutil.la
410 test_transport_api_https_SOURCES = \
412 test_transport_api_https_LDADD = \
413 $(top_builddir)/src/transport/libgnunettransportnew.la \
414 $(top_builddir)/src/hello/libgnunethello.la \
415 $(top_builddir)/src/util/libgnunetutil.la
417 test_transport_api_reliability_https_SOURCES = \
418 test_transport_api_reliability.c
419 test_transport_api_reliability_https_LDADD = \
420 $(top_builddir)/src/transport/libgnunettransportnew.la \
421 $(top_builddir)/src/hello/libgnunethello.la \
422 $(top_builddir)/src/util/libgnunetutil.la
424 test_transport_api_unreliability_unix_SOURCES = \
425 test_transport_api_unreliability.c
426 test_transport_api_unreliability_unix_LDADD = \
427 $(top_builddir)/src/transport/libgnunettransportnew.la \
428 $(top_builddir)/src/hello/libgnunethello.la \
429 $(top_builddir)/src/util/libgnunetutil.la
431 test_transport_api_unreliability_udp_SOURCES = \
432 test_transport_api_unreliability.c
433 test_transport_api_unreliability_udp_LDADD = \
434 $(top_builddir)/src/transport/libgnunettransportnew.la \
435 $(top_builddir)/src/hello/libgnunethello.la \
436 $(top_builddir)/src/util/libgnunetutil.la
440 test_transport_api_wlan_SOURCES = \
442 test_transport_api_wlan_LDADD = \
443 $(top_builddir)/src/transport/libgnunettransportnew.la \
444 $(top_builddir)/src/hello/libgnunethello.la \
445 $(top_builddir)/src/util/libgnunetutil.la
449 test_quota_compliance_tcp_SOURCES = \
450 test_quota_compliance.c
451 test_quota_compliance_tcp_LDADD = \
452 $(top_builddir)/src/transport/libgnunettransportnew.la \
453 $(top_builddir)/src/hello/libgnunethello.la \
454 $(top_builddir)/src/util/libgnunetutil.la
456 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
457 test_quota_compliance.c
458 test_quota_compliance_tcp_asymmetric_recv_constant_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_send_constant_SOURCES = \
464 # test_quota_compliance.c
465 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
466 # $(top_builddir)/src/transport/libgnunettransportnew.la \
467 # $(top_builddir)/src/util/libgnunetutil.la
469 test_quota_compliance_http_SOURCES = \
470 test_quota_compliance.c
471 test_quota_compliance_http_LDADD = \
472 $(top_builddir)/src/transport/libgnunettransportnew.la \
473 $(top_builddir)/src/hello/libgnunethello.la \
474 $(top_builddir)/src/util/libgnunetutil.la
476 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
477 test_quota_compliance.c
478 test_quota_compliance_http_asymmetric_recv_constant_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_send_constant_SOURCES = \
484 # test_quota_compliance.c
485 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
486 # $(top_builddir)/src/transport/libgnunettransportnew.la \
487 # $(top_builddir)/src/util/libgnunetutil.la
489 test_quota_compliance_https_SOURCES = \
490 test_quota_compliance.c
491 test_quota_compliance_https_LDADD = \
492 $(top_builddir)/src/transport/libgnunettransportnew.la \
493 $(top_builddir)/src/hello/libgnunethello.la \
494 $(top_builddir)/src/util/libgnunetutil.la
496 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
497 test_quota_compliance.c
498 test_quota_compliance_https_asymmetric_recv_constant_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_send_constant_SOURCES = \
504 # test_quota_compliance.c
505 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
506 # $(top_builddir)/src/transport/libgnunettransportnew.la \
507 # $(top_builddir)/src/util/libgnunetutil.la
509 test_quota_compliance_udp_SOURCES = \
510 test_quota_compliance.c
511 test_quota_compliance_udp_LDADD = \
512 $(top_builddir)/src/transport/libgnunettransportnew.la \
513 $(top_builddir)/src/hello/libgnunethello.la \
514 $(top_builddir)/src/util/libgnunetutil.la
516 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
517 test_quota_compliance.c
518 test_quota_compliance_udp_asymmetric_recv_constant_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_send_constant_SOURCES = \
524 # test_quota_compliance.c
525 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
526 # $(top_builddir)/src/transport/libgnunettransportnew.la \
527 # $(top_builddir)/src/util/libgnunetutil.la
529 test_quota_compliance_unix_SOURCES = \
530 test_quota_compliance.c
531 test_quota_compliance_unix_LDADD = \
532 $(top_builddir)/src/transport/libgnunettransportnew.la \
533 $(top_builddir)/src/hello/libgnunethello.la \
534 $(top_builddir)/src/util/libgnunetutil.la
536 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
537 test_quota_compliance.c
538 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
539 $(top_builddir)/src/transport/libgnunettransportnew.la \
540 $(top_builddir)/src/hello/libgnunethello.la \
541 $(top_builddir)/src/util/libgnunetutil.la
544 test_transport_api_multi_SOURCES = \
546 test_transport_api_multi_LDADD = \
547 $(top_builddir)/src/transport/libgnunettransportnew.la \
548 $(top_builddir)/src/hello/libgnunethello.la \
549 $(top_builddir)/src/util/libgnunetutil.la
551 gnunet-transport-certificate-creation \
552 ats_mlp_p100_m400.problem \
553 test_transport_api_data.conf \
554 test_transport_api_tcp_peer1.conf \
555 test_transport_api_tcp_peer2.conf \
556 test_transport_api_udp_peer1.conf \
557 test_transport_api_udp_peer2.conf \
558 test_transport_api_unix_peer1.conf \
559 test_transport_api_unix_peer2.conf \
560 test_transport_api_udp_nat_peer1.conf \
561 test_transport_api_udp_nat_peer2.conf \
562 test_transport_api_tcp_nat_peer1.conf \
563 test_transport_api_tcp_nat_peer2.conf \
564 test_plugin_transport_data.conf \
565 test_transport_api_http_peer1.conf \
566 test_transport_api_http_peer2.conf \
567 test_transport_api_https_peer1.conf \
568 test_transport_api_https_peer2.conf \
569 test_transport_api_wlan_peer1.conf \
570 test_transport_api_wlan_peer2.conf \
571 test_transport_api_multi_peer1.conf \
572 test_transport_api_multi_peer2.conf \
573 test_transport_api_rel_http_peer1.conf \
574 test_transport_api_rel_http_peer2.conf \
575 test_transport_api_rel_https_peer1.conf \
576 test_transport_api_rel_https_peer2.conf \
577 test_plugin_transport_data_http.conf \
578 test_plugin_transport_data.conf \
579 test_quota_compliance_data.conf \
580 test_quota_compliance_tcp_peer1.conf \
581 test_quota_compliance_tcp_peer2.conf \
582 test_quota_compliance_http_peer1.conf \
583 test_quota_compliance_http_peer2.conf \
584 test_quota_compliance_https_peer1.conf \
585 test_quota_compliance_https_peer2.conf \
586 test_quota_compliance_udp_peer1.conf \
587 test_quota_compliance_udp_peer2.conf \
588 test_quota_compliance_unix_peer1.conf \
589 test_quota_compliance_unix_peer2.conf