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}
68 libgnunettransport_la_SOURCES = \
69 transport_api.c transport.h \
70 transport_api_blacklist.c \
71 transport_api_address_lookup.c
72 libgnunettransport_la_LIBADD = \
73 $(top_builddir)/src/hello/libgnunethello.la \
74 $(top_builddir)/src/util/libgnunetutil.la \
76 libgnunettransport_la_LDFLAGS = \
77 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
84 gnunet-service-transport $(NATBIN) \
88 gnunet-transport-certificate-creation
90 gnunet_nat_server_SOURCES = \
94 gnunet_transport_wlan_helper_SOURCES = \
95 wlan/radiotap-parser.c \
96 wlan/helper_common.c \
97 gnunet-transport-wlan-helper.c
99 gnunet_transport_wlan_helper_dummy_SOURCES = \
100 wlan/radiotap-parser.c \
101 wlan/helper_common.c \
102 test_plugin_transport_wlan_dummy.c
104 gnunet_transport_wlan_helper_LDADD = \
105 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_transport_wlan_helper_dummy_LDADD = \
109 $(top_builddir)/src/util/libgnunetutil.la \
112 gnunet_nat_client_SOURCES = \
115 gnunet_transport_SOURCES = \
117 gnunet_transport_LDADD = \
118 $(top_builddir)/src/transport/libgnunettransport.la \
119 $(top_builddir)/src/util/libgnunetutil.la \
121 gnunet_transport_DEPENDENCIES = \
122 libgnunettransport.la
128 gnunet_service_transport_SOURCES = \
129 gnunet-service-transport.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 \
137 gnunet_service_transport_DEPENDENCIES = \
138 libgnunettransport.la
140 plugin_LTLIBRARIES = \
141 libgnunet_plugin_transport_tcp.la \
142 libgnunet_plugin_transport_udp.la \
147 libgnunet_plugin_transport_template.la
148 # TODO: add nat, etc.
150 libgnunet_plugin_transport_tcp_la_SOURCES = \
151 plugin_transport_tcp.c
152 libgnunet_plugin_transport_tcp_la_LIBADD = \
153 $(top_builddir)/src/hello/libgnunethello.la \
154 $(top_builddir)/src/statistics/libgnunetstatistics.la \
155 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
156 $(top_builddir)/src/nat/libgnunetnat.la \
157 $(top_builddir)/src/util/libgnunetutil.la
158 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
161 libgnunet_plugin_transport_template_la_SOURCES = \
162 plugin_transport_template.c
163 libgnunet_plugin_transport_template_la_LIBADD = \
164 $(top_builddir)/src/util/libgnunetutil.la
165 libgnunet_plugin_transport_template_la_LDFLAGS = \
168 libgnunet_plugin_transport_wlan_la_SOURCES = \
169 plugin_transport_wlan.c
170 libgnunet_plugin_transport_wlan_la_LIBADD = \
171 $(top_builddir)/src/hello/libgnunethello.la \
172 $(top_builddir)/src/statistics/libgnunetstatistics.la \
173 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
174 $(top_builddir)/src/util/libgnunetutil.la
175 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
178 libgnunet_plugin_transport_udp_la_SOURCES = \
179 plugin_transport_udp.c
180 libgnunet_plugin_transport_udp_la_LIBADD = \
181 $(top_builddir)/src/hello/libgnunethello.la \
182 $(top_builddir)/src/statistics/libgnunetstatistics.la \
183 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
184 $(top_builddir)/src/util/libgnunetutil.la
185 libgnunet_plugin_transport_udp_la_LDFLAGS = \
188 libgnunet_plugin_transport_unix_la_SOURCES = \
189 plugin_transport_unix.c
190 libgnunet_plugin_transport_unix_la_LIBADD = \
191 $(top_builddir)/src/hello/libgnunethello.la \
192 $(top_builddir)/src/statistics/libgnunetstatistics.la \
193 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
194 $(top_builddir)/src/util/libgnunetutil.la
195 libgnunet_plugin_transport_unix_la_LDFLAGS = \
198 libgnunet_plugin_transport_http_la_SOURCES = \
199 plugin_transport_http.c
200 libgnunet_plugin_transport_http_la_LIBADD = \
201 $(top_builddir)/src/hello/libgnunethello.la \
202 $(top_builddir)/src/statistics/libgnunetstatistics.la \
203 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
205 $(top_builddir)/src/util/libgnunetutil.la
206 libgnunet_plugin_transport_http_la_LDFLAGS = \
210 libgnunet_plugin_transport_https_la_SOURCES = \
211 plugin_transport_http.c
212 libgnunet_plugin_transport_https_la_LIBADD = \
213 $(top_builddir)/src/hello/libgnunethello.la \
214 $(top_builddir)/src/statistics/libgnunetstatistics.la \
215 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
217 $(top_builddir)/src/util/libgnunetutil.la
218 libgnunet_plugin_transport_https_la_LDFLAGS = \
221 libgnunet_plugin_transport_https_la_CFLAGS = \
222 $(CFLAGS) -DBUILD_HTTPS
228 test_transport_api_tcp \
229 test_transport_api_tcp_nat \
230 test_transport_api_udp \
231 $(UNIX_PLUGIN_TEST) \
232 test_transport_api_udp_nat \
233 $(HTTP_PLUGIN_TEST) \
235 $(HTTPS_PLUGIN_TEST) \
237 test_transport_api_multi \
238 test_transport_api_reliability_tcp \
239 test_transport_api_reliability_tcp_nat \
240 test_transport_api_unreliability_udp \
244 test_quota_compliance_tcp \
245 test_quota_compliance_tcp_asymmetric_recv_constant \
246 test_quota_compliance_udp \
247 test_quota_compliance_udp_asymmetric_recv_constant \
250 $(HTTPS_QUOTA_TEST) \
254 # TODO: add tests for nat, etc.
260 test_transport_api_tcp \
261 test_transport_api_tcp_nat \
262 test_transport_api_udp \
263 $(UNIX_PLUGIN_TEST) \
264 test_transport_api_udp_nat \
265 $(HTTP_PLUGIN_TEST) \
267 $(HTTPS_PLUGIN_TEST) \
269 test_transport_api_multi \
270 test_transport_api_reliability_tcp \
271 test_transport_api_reliability_tcp_nat \
272 test_transport_api_unreliability_udp \
276 test_quota_compliance_tcp \
277 test_quota_compliance_tcp_asymmetric_recv_constant \
278 test_quota_compliance_udp \
279 test_quota_compliance_udp_asymmetric_recv_constant \
282 $(HTTPS_QUOTA_TEST) \
288 test_transport_ats_SOURCES = \
290 test_transport_ats_LDADD = -lm \
291 $(top_builddir)/src/transport/libgnunettransport.la \
292 $(top_builddir)/src/statistics/libgnunetstatistics.la \
293 $(top_builddir)/src/testing/libgnunettesting.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 perf_transport_ats_SOURCES = \
298 perf_transport_ats_LDADD = \
299 $(top_builddir)/src/transport/libgnunettransport.la \
300 $(top_builddir)/src/statistics/libgnunetstatistics.la \
301 $(top_builddir)/src/testing/libgnunettesting.la \
303 $(top_builddir)/src/util/libgnunetutil.la
305 test_transport_api_tcp_SOURCES = \
307 test_transport_api_tcp_LDADD = \
308 $(top_builddir)/src/transport/libgnunettransport.la \
309 $(top_builddir)/src/hello/libgnunethello.la \
310 $(top_builddir)/src/util/libgnunetutil.la
312 test_transport_api_tcp_nat_SOURCES = \
314 test_transport_api_tcp_nat_LDADD = \
315 $(top_builddir)/src/transport/libgnunettransport.la \
316 $(top_builddir)/src/hello/libgnunethello.la \
317 $(top_builddir)/src/util/libgnunetutil.la
319 test_transport_api_reliability_tcp_SOURCES = \
320 test_transport_api_reliability.c
321 test_transport_api_reliability_tcp_LDADD = \
322 $(top_builddir)/src/transport/libgnunettransport.la \
323 $(top_builddir)/src/hello/libgnunethello.la \
324 $(top_builddir)/src/util/libgnunetutil.la
326 test_transport_api_reliability_tcp_nat_SOURCES = \
327 test_transport_api_reliability.c
328 test_transport_api_reliability_tcp_nat_LDADD = \
329 $(top_builddir)/src/transport/libgnunettransport.la \
330 $(top_builddir)/src/hello/libgnunethello.la \
331 $(top_builddir)/src/util/libgnunetutil.la
333 test_transport_api_reliability_wlan_SOURCES = \
334 test_transport_api_reliability.c
335 test_transport_api_reliability_wlan_LDADD = \
336 $(top_builddir)/src/transport/libgnunettransport.la \
337 $(top_builddir)/src/hello/libgnunethello.la \
338 $(top_builddir)/src/util/libgnunetutil.la
340 test_transport_api_unreliability_wlan_SOURCES = \
341 test_transport_api_unreliability.c
342 test_transport_api_unreliability_wlan_LDADD = \
343 $(top_builddir)/src/transport/libgnunettransport.la \
344 $(top_builddir)/src/hello/libgnunethello.la \
345 $(top_builddir)/src/util/libgnunetutil.la
347 test_transport_api_udp_SOURCES = \
349 test_transport_api_udp_LDADD = \
350 $(top_builddir)/src/transport/libgnunettransport.la \
351 $(top_builddir)/src/hello/libgnunethello.la \
352 $(top_builddir)/src/util/libgnunetutil.la
354 test_transport_api_udp_nat_SOURCES = \
356 test_transport_api_udp_nat_LDADD = \
357 $(top_builddir)/src/transport/libgnunettransport.la \
358 $(top_builddir)/src/hello/libgnunethello.la \
359 $(top_builddir)/src/util/libgnunetutil.la
361 test_transport_api_unix_SOURCES = \
363 test_transport_api_unix_LDADD = \
364 $(top_builddir)/src/transport/libgnunettransport.la \
365 $(top_builddir)/src/hello/libgnunethello.la \
366 $(top_builddir)/src/util/libgnunetutil.la
368 test_plugin_transport_http_SOURCES = \
369 test_plugin_transport_http.c
370 test_plugin_transport_http_LDADD = \
371 $(top_builddir)/src/transport/libgnunettransport.la \
372 $(top_builddir)/src/statistics/libgnunetstatistics.la \
374 $(top_builddir)/src/hello/libgnunethello.la \
375 $(top_builddir)/src/util/libgnunetutil.la
377 test_transport_api_http_SOURCES = \
379 test_transport_api_http_LDADD = \
380 $(top_builddir)/src/transport/libgnunettransport.la \
381 $(top_builddir)/src/hello/libgnunethello.la \
382 $(top_builddir)/src/util/libgnunetutil.la
384 test_transport_api_reliability_http_SOURCES = \
385 test_transport_api_reliability.c
386 test_transport_api_reliability_http_LDADD = \
387 $(top_builddir)/src/transport/libgnunettransport.la \
388 $(top_builddir)/src/hello/libgnunethello.la \
389 $(top_builddir)/src/util/libgnunetutil.la
391 test_plugin_transport_https_SOURCES = \
392 test_plugin_transport_https.c
393 test_plugin_transport_https_LDADD = \
394 $(top_builddir)/src/transport/libgnunettransport.la \
395 $(top_builddir)/src/statistics/libgnunetstatistics.la \
397 $(top_builddir)/src/hello/libgnunethello.la \
398 $(top_builddir)/src/util/libgnunetutil.la
400 test_transport_api_https_SOURCES = \
402 test_transport_api_https_LDADD = \
403 $(top_builddir)/src/transport/libgnunettransport.la \
404 $(top_builddir)/src/hello/libgnunethello.la \
405 $(top_builddir)/src/util/libgnunetutil.la
407 test_transport_api_reliability_https_SOURCES = \
408 test_transport_api_reliability.c
409 test_transport_api_reliability_https_LDADD = \
410 $(top_builddir)/src/transport/libgnunettransport.la \
411 $(top_builddir)/src/hello/libgnunethello.la \
412 $(top_builddir)/src/util/libgnunetutil.la
414 test_transport_api_unreliability_unix_SOURCES = \
415 test_transport_api_unreliability.c
416 test_transport_api_unreliability_unix_LDADD = \
417 $(top_builddir)/src/transport/libgnunettransport.la \
418 $(top_builddir)/src/hello/libgnunethello.la \
419 $(top_builddir)/src/util/libgnunetutil.la
421 test_transport_api_unreliability_udp_SOURCES = \
422 test_transport_api_unreliability.c
423 test_transport_api_unreliability_udp_LDADD = \
424 $(top_builddir)/src/transport/libgnunettransport.la \
425 $(top_builddir)/src/hello/libgnunethello.la \
426 $(top_builddir)/src/util/libgnunetutil.la
430 test_transport_api_wlan_SOURCES = \
432 test_transport_api_wlan_LDADD = \
433 $(top_builddir)/src/transport/libgnunettransport.la \
434 $(top_builddir)/src/hello/libgnunethello.la \
435 $(top_builddir)/src/util/libgnunetutil.la
439 test_quota_compliance_tcp_SOURCES = \
440 test_quota_compliance.c
441 test_quota_compliance_tcp_LDADD = \
442 $(top_builddir)/src/transport/libgnunettransport.la \
443 $(top_builddir)/src/hello/libgnunethello.la \
444 $(top_builddir)/src/util/libgnunetutil.la
446 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
447 test_quota_compliance.c
448 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
449 $(top_builddir)/src/transport/libgnunettransport.la \
450 $(top_builddir)/src/hello/libgnunethello.la \
451 $(top_builddir)/src/util/libgnunetutil.la
453 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
454 # test_quota_compliance.c
455 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
456 # $(top_builddir)/src/transport/libgnunettransport.la \
457 # $(top_builddir)/src/util/libgnunetutil.la
459 test_quota_compliance_http_SOURCES = \
460 test_quota_compliance.c
461 test_quota_compliance_http_LDADD = \
462 $(top_builddir)/src/transport/libgnunettransport.la \
463 $(top_builddir)/src/hello/libgnunethello.la \
464 $(top_builddir)/src/util/libgnunetutil.la
466 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
467 test_quota_compliance.c
468 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
469 $(top_builddir)/src/transport/libgnunettransport.la \
470 $(top_builddir)/src/hello/libgnunethello.la \
471 $(top_builddir)/src/util/libgnunetutil.la
473 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
474 # test_quota_compliance.c
475 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
476 # $(top_builddir)/src/transport/libgnunettransport.la \
477 # $(top_builddir)/src/util/libgnunetutil.la
479 test_quota_compliance_https_SOURCES = \
480 test_quota_compliance.c
481 test_quota_compliance_https_LDADD = \
482 $(top_builddir)/src/transport/libgnunettransport.la \
483 $(top_builddir)/src/hello/libgnunethello.la \
484 $(top_builddir)/src/util/libgnunetutil.la
486 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
487 test_quota_compliance.c
488 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
489 $(top_builddir)/src/transport/libgnunettransport.la \
490 $(top_builddir)/src/hello/libgnunethello.la \
491 $(top_builddir)/src/util/libgnunetutil.la
493 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
494 # test_quota_compliance.c
495 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
496 # $(top_builddir)/src/transport/libgnunettransport.la \
497 # $(top_builddir)/src/util/libgnunetutil.la
499 test_quota_compliance_udp_SOURCES = \
500 test_quota_compliance.c
501 test_quota_compliance_udp_LDADD = \
502 $(top_builddir)/src/transport/libgnunettransport.la \
503 $(top_builddir)/src/hello/libgnunethello.la \
504 $(top_builddir)/src/util/libgnunetutil.la
506 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
507 test_quota_compliance.c
508 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
509 $(top_builddir)/src/transport/libgnunettransport.la \
510 $(top_builddir)/src/hello/libgnunethello.la \
511 $(top_builddir)/src/util/libgnunetutil.la
513 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
514 # test_quota_compliance.c
515 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
516 # $(top_builddir)/src/transport/libgnunettransport.la \
517 # $(top_builddir)/src/util/libgnunetutil.la
519 test_quota_compliance_unix_SOURCES = \
520 test_quota_compliance.c
521 test_quota_compliance_unix_LDADD = \
522 $(top_builddir)/src/transport/libgnunettransport.la \
523 $(top_builddir)/src/hello/libgnunethello.la \
524 $(top_builddir)/src/util/libgnunetutil.la
526 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
527 test_quota_compliance.c
528 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
529 $(top_builddir)/src/transport/libgnunettransport.la \
530 $(top_builddir)/src/hello/libgnunethello.la \
531 $(top_builddir)/src/util/libgnunetutil.la
534 test_transport_api_multi_SOURCES = \
536 test_transport_api_multi_LDADD = \
537 $(top_builddir)/src/transport/libgnunettransport.la \
538 $(top_builddir)/src/hello/libgnunethello.la \
539 $(top_builddir)/src/util/libgnunetutil.la
541 gnunet-transport-certificate-creation \
542 test_transport_api_data.conf \
543 test_transport_api_tcp_peer1.conf \
544 test_transport_api_tcp_peer2.conf \
545 test_transport_api_udp_peer1.conf \
546 test_transport_api_udp_peer2.conf \
547 test_transport_api_unix_peer1.conf \
548 test_transport_api_unix_peer2.conf \
549 test_transport_api_udp_nat_peer1.conf \
550 test_transport_api_udp_nat_peer2.conf \
551 test_transport_api_tcp_nat_peer1.conf \
552 test_transport_api_tcp_nat_peer2.conf \
553 test_plugin_transport_data.conf \
554 test_transport_api_http_peer1.conf \
555 test_transport_api_http_peer2.conf \
556 test_transport_api_https_peer1.conf \
557 test_transport_api_https_peer2.conf \
558 test_transport_api_wlan_peer1.conf \
559 test_transport_api_wlan_peer2.conf \
560 test_transport_api_multi_peer1.conf \
561 test_transport_api_multi_peer2.conf \
562 test_transport_api_rel_http_peer1.conf \
563 test_transport_api_rel_http_peer2.conf \
564 test_transport_api_rel_https_peer1.conf \
565 test_transport_api_rel_https_peer2.conf \
566 test_plugin_transport_data_http.conf \
567 test_plugin_transport_data.conf \
568 test_quota_compliance_data.conf \
569 test_quota_compliance_tcp_peer1.conf \
570 test_quota_compliance_tcp_peer2.conf \
571 test_quota_compliance_http_peer1.conf \
572 test_quota_compliance_http_peer2.conf \
573 test_quota_compliance_https_peer1.conf \
574 test_quota_compliance_https_peer2.conf \
575 test_quota_compliance_udp_peer1.conf \
576 test_quota_compliance_udp_peer2.conf \
577 test_quota_compliance_unix_peer1.conf \
578 test_quota_compliance_unix_peer2.conf