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
39 WLAN_API_TEST = test_transport_api_wlan
40 WLAN_REL_TEST = test_transport_api_reliability_wlan
45 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
46 UNIX_PLUGIN_TEST = test_transport_api_unix
47 UNIX_REL_TEST = test_transport_api_unreliability_unix
48 UNIX_QUOTA_TEST = test_quota_compliance_unix \
49 test_quota_compliance_unix_asymmetric_recv_constant
53 NATBIN = gnunet-nat-server gnunet-nat-client
55 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
56 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || true
61 #noinst_PROGRAMS = ${check_PROGRAMS}
66 libgnunettransport_la_SOURCES = \
67 transport_api.c transport.h \
68 transport_api_blacklist.c \
69 transport_api_address_lookup.c
70 libgnunettransport_la_LIBADD = \
71 $(top_builddir)/src/hello/libgnunethello.la \
72 $(top_builddir)/src/util/libgnunetutil.la \
74 libgnunettransport_la_LDFLAGS = \
75 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
82 gnunet-service-transport $(NATBIN)
85 gnunet-transport-certificate-creation
87 gnunet_nat_server_SOURCES = \
91 gnunet_transport_wlan_helper_SOURCES = \
92 wlan/radiotap-parser.c \
93 wlan/helper_common.c \
94 wlan/loopback_helper.c \
95 gnunet-transport-wlan-helper.c
97 gnunet_transport_wlan_helper_LDADD = \
98 $(top_builddir)/src/util/libgnunetutil.la \
101 gnunet_nat_client_SOURCES = \
104 gnunet_transport_SOURCES = \
106 gnunet_transport_LDADD = \
107 $(top_builddir)/src/transport/libgnunettransport.la \
108 $(top_builddir)/src/util/libgnunetutil.la \
110 gnunet_transport_DEPENDENCIES = \
111 libgnunettransport.la
117 gnunet_service_transport_SOURCES = \
118 gnunet-service-transport.c
119 gnunet_service_transport_LDADD = \
120 $(top_builddir)/src/hello/libgnunethello.la \
121 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
122 $(top_builddir)/src/statistics/libgnunetstatistics.la \
123 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_service_transport_DEPENDENCIES = \
127 libgnunettransport.la
129 plugin_LTLIBRARIES = \
130 libgnunet_plugin_transport_tcp.la \
131 libgnunet_plugin_transport_udp.la \
136 libgnunet_plugin_transport_template.la
137 # TODO: add nat, etc.
139 libgnunet_plugin_transport_tcp_la_SOURCES = \
140 plugin_transport_tcp.c
141 libgnunet_plugin_transport_tcp_la_LIBADD = \
142 $(top_builddir)/src/hello/libgnunethello.la \
143 $(top_builddir)/src/statistics/libgnunetstatistics.la \
144 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
145 $(top_builddir)/src/nat/libgnunetnat.la \
146 $(top_builddir)/src/util/libgnunetutil.la
147 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
150 libgnunet_plugin_transport_template_la_SOURCES = \
151 plugin_transport_template.c
152 libgnunet_plugin_transport_template_la_LIBADD = \
153 $(top_builddir)/src/util/libgnunetutil.la
154 libgnunet_plugin_transport_template_la_LDFLAGS = \
157 libgnunet_plugin_transport_wlan_la_SOURCES = \
158 plugin_transport_wlan.c
159 libgnunet_plugin_transport_wlan_la_LIBADD = \
160 $(top_builddir)/src/hello/libgnunethello.la \
161 $(top_builddir)/src/statistics/libgnunetstatistics.la \
162 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
163 $(top_builddir)/src/util/libgnunetutil.la
164 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
167 libgnunet_plugin_transport_udp_la_SOURCES = \
168 plugin_transport_udp.c
169 libgnunet_plugin_transport_udp_la_LIBADD = \
170 $(top_builddir)/src/hello/libgnunethello.la \
171 $(top_builddir)/src/statistics/libgnunetstatistics.la \
172 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
173 $(top_builddir)/src/util/libgnunetutil.la
174 libgnunet_plugin_transport_udp_la_LDFLAGS = \
177 libgnunet_plugin_transport_unix_la_SOURCES = \
178 plugin_transport_unix.c
179 libgnunet_plugin_transport_unix_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_unix_la_LDFLAGS = \
187 libgnunet_plugin_transport_http_la_SOURCES = \
188 plugin_transport_http.c
189 libgnunet_plugin_transport_http_la_LIBADD = \
190 $(top_builddir)/src/hello/libgnunethello.la \
191 $(top_builddir)/src/statistics/libgnunetstatistics.la \
192 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
194 $(top_builddir)/src/util/libgnunetutil.la
195 libgnunet_plugin_transport_http_la_LDFLAGS = \
199 libgnunet_plugin_transport_https_la_SOURCES = \
200 plugin_transport_http.c
201 libgnunet_plugin_transport_https_la_LIBADD = \
202 $(top_builddir)/src/hello/libgnunethello.la \
203 $(top_builddir)/src/statistics/libgnunetstatistics.la \
204 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
206 $(top_builddir)/src/util/libgnunetutil.la
207 libgnunet_plugin_transport_https_la_LDFLAGS = \
210 libgnunet_plugin_transport_https_la_CFLAGS = \
211 $(CFLAGS) -DBUILD_HTTPS
216 test_transport_ats_perf \
217 test_transport_api_tcp \
218 test_transport_api_tcp_nat \
219 test_transport_api_udp \
220 $(UNIX_PLUGIN_TEST) \
221 test_transport_api_udp_nat \
222 $(HTTP_PLUGIN_TEST) \
224 $(HTTPS_PLUGIN_TEST) \
226 test_transport_api_multi \
227 test_transport_api_reliability_tcp \
228 test_transport_api_reliability_tcp_nat \
229 test_transport_api_unreliability_udp \
233 test_quota_compliance_tcp \
234 test_quota_compliance_tcp_asymmetric_recv_constant \
235 test_quota_compliance_udp \
236 test_quota_compliance_udp_asymmetric_recv_constant \
239 $(HTTPS_QUOTA_TEST) \
242 # TODO: add tests for nat, etc.
247 test_transport_ats_perf \
248 test_transport_api_tcp \
249 test_transport_api_tcp_nat \
250 test_transport_api_udp \
251 $(UNIX_PLUGIN_TEST) \
252 test_transport_api_udp_nat \
253 $(HTTP_PLUGIN_TEST) \
255 $(HTTPS_PLUGIN_TEST) \
257 test_transport_api_multi \
258 test_transport_api_reliability_tcp \
259 test_transport_api_reliability_tcp_nat \
260 test_transport_api_unreliability_udp \
264 test_quota_compliance_tcp \
265 test_quota_compliance_tcp_asymmetric_recv_constant \
266 test_quota_compliance_udp \
267 test_quota_compliance_udp_asymmetric_recv_constant \
270 $(HTTPS_QUOTA_TEST) \
274 test_transport_ats_SOURCES = \
276 test_transport_ats_LDADD = -lm \
277 $(top_builddir)/src/transport/libgnunettransport.la \
278 $(top_builddir)/src/statistics/libgnunetstatistics.la \
279 $(top_builddir)/src/testing/libgnunettesting.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_transport_ats_perf_SOURCES = \
283 test_transport_ats_perf.c
284 test_transport_ats_perf_LDADD = \
285 $(top_builddir)/src/transport/libgnunettransport.la \
286 $(top_builddir)/src/statistics/libgnunetstatistics.la \
287 $(top_builddir)/src/testing/libgnunettesting.la \
289 $(top_builddir)/src/util/libgnunetutil.la
291 test_transport_api_tcp_SOURCES = \
293 test_transport_api_tcp_LDADD = \
294 $(top_builddir)/src/transport/libgnunettransport.la \
295 $(top_builddir)/src/hello/libgnunethello.la \
296 $(top_builddir)/src/util/libgnunetutil.la
298 test_transport_api_tcp_nat_SOURCES = \
300 test_transport_api_tcp_nat_LDADD = \
301 $(top_builddir)/src/transport/libgnunettransport.la \
302 $(top_builddir)/src/hello/libgnunethello.la \
303 $(top_builddir)/src/util/libgnunetutil.la
305 test_transport_api_reliability_tcp_SOURCES = \
306 test_transport_api_reliability.c
307 test_transport_api_reliability_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_reliability_tcp_nat_SOURCES = \
313 test_transport_api_reliability.c
314 test_transport_api_reliability_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_wlan_SOURCES = \
320 test_transport_api_reliability.c
321 test_transport_api_reliability_wlan_LDADD = \
322 $(top_builddir)/src/transport/libgnunettransport.la \
323 $(top_builddir)/src/hello/libgnunethello.la \
324 $(top_builddir)/src/util/libgnunetutil.la
327 test_transport_api_udp_SOURCES = \
329 test_transport_api_udp_LDADD = \
330 $(top_builddir)/src/transport/libgnunettransport.la \
331 $(top_builddir)/src/hello/libgnunethello.la \
332 $(top_builddir)/src/util/libgnunetutil.la
334 test_transport_api_udp_nat_SOURCES = \
336 test_transport_api_udp_nat_LDADD = \
337 $(top_builddir)/src/transport/libgnunettransport.la \
338 $(top_builddir)/src/hello/libgnunethello.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 test_transport_api_unix_SOURCES = \
343 test_transport_api_unix_LDADD = \
344 $(top_builddir)/src/transport/libgnunettransport.la \
345 $(top_builddir)/src/hello/libgnunethello.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 test_plugin_transport_http_SOURCES = \
349 test_plugin_transport_http.c
350 test_plugin_transport_http_LDADD = \
351 $(top_builddir)/src/transport/libgnunettransport.la \
352 $(top_builddir)/src/statistics/libgnunetstatistics.la \
354 $(top_builddir)/src/hello/libgnunethello.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 test_transport_api_http_SOURCES = \
359 test_transport_api_http_LDADD = \
360 $(top_builddir)/src/transport/libgnunettransport.la \
361 $(top_builddir)/src/hello/libgnunethello.la \
362 $(top_builddir)/src/util/libgnunetutil.la
364 test_transport_api_reliability_http_SOURCES = \
365 test_transport_api_reliability.c
366 test_transport_api_reliability_http_LDADD = \
367 $(top_builddir)/src/transport/libgnunettransport.la \
368 $(top_builddir)/src/hello/libgnunethello.la \
369 $(top_builddir)/src/util/libgnunetutil.la
371 test_plugin_transport_https_SOURCES = \
372 test_plugin_transport_https.c
373 test_plugin_transport_https_LDADD = \
374 $(top_builddir)/src/transport/libgnunettransport.la \
375 $(top_builddir)/src/statistics/libgnunetstatistics.la \
377 $(top_builddir)/src/hello/libgnunethello.la \
378 $(top_builddir)/src/util/libgnunetutil.la
380 test_transport_api_https_SOURCES = \
382 test_transport_api_https_LDADD = \
383 $(top_builddir)/src/transport/libgnunettransport.la \
384 $(top_builddir)/src/hello/libgnunethello.la \
385 $(top_builddir)/src/util/libgnunetutil.la
387 test_transport_api_reliability_https_SOURCES = \
388 test_transport_api_reliability.c
389 test_transport_api_reliability_https_LDADD = \
390 $(top_builddir)/src/transport/libgnunettransport.la \
391 $(top_builddir)/src/hello/libgnunethello.la \
392 $(top_builddir)/src/util/libgnunetutil.la
394 test_transport_api_unreliability_unix_SOURCES = \
395 test_transport_api_unreliability.c
396 test_transport_api_unreliability_unix_LDADD = \
397 $(top_builddir)/src/transport/libgnunettransport.la \
398 $(top_builddir)/src/hello/libgnunethello.la \
399 $(top_builddir)/src/util/libgnunetutil.la
401 test_transport_api_unreliability_udp_SOURCES = \
402 test_transport_api_unreliability.c
403 test_transport_api_unreliability_udp_LDADD = \
404 $(top_builddir)/src/transport/libgnunettransport.la \
405 $(top_builddir)/src/hello/libgnunethello.la \
406 $(top_builddir)/src/util/libgnunetutil.la
410 test_transport_api_wlan_SOURCES = \
412 test_transport_api_wlan_LDADD = \
413 $(top_builddir)/src/transport/libgnunettransport.la \
414 $(top_builddir)/src/hello/libgnunethello.la \
415 $(top_builddir)/src/util/libgnunetutil.la
419 test_quota_compliance_tcp_SOURCES = \
420 test_quota_compliance.c
421 test_quota_compliance_tcp_LDADD = \
422 $(top_builddir)/src/transport/libgnunettransport.la \
423 $(top_builddir)/src/hello/libgnunethello.la \
424 $(top_builddir)/src/util/libgnunetutil.la
426 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
427 test_quota_compliance.c
428 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
429 $(top_builddir)/src/transport/libgnunettransport.la \
430 $(top_builddir)/src/hello/libgnunethello.la \
431 $(top_builddir)/src/util/libgnunetutil.la
433 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
434 # test_quota_compliance.c
435 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
436 # $(top_builddir)/src/transport/libgnunettransport.la \
437 # $(top_builddir)/src/util/libgnunetutil.la
439 test_quota_compliance_http_SOURCES = \
440 test_quota_compliance.c
441 test_quota_compliance_http_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_http_asymmetric_recv_constant_SOURCES = \
447 test_quota_compliance.c
448 test_quota_compliance_http_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_http_asymmetric_send_constant_SOURCES = \
454 # test_quota_compliance.c
455 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
456 # $(top_builddir)/src/transport/libgnunettransport.la \
457 # $(top_builddir)/src/util/libgnunetutil.la
459 test_quota_compliance_https_SOURCES = \
460 test_quota_compliance.c
461 test_quota_compliance_https_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_https_asymmetric_recv_constant_SOURCES = \
467 test_quota_compliance.c
468 test_quota_compliance_https_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_https_asymmetric_send_constant_SOURCES = \
474 # test_quota_compliance.c
475 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
476 # $(top_builddir)/src/transport/libgnunettransport.la \
477 # $(top_builddir)/src/util/libgnunetutil.la
479 test_quota_compliance_udp_SOURCES = \
480 test_quota_compliance.c
481 test_quota_compliance_udp_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_udp_asymmetric_recv_constant_SOURCES = \
487 test_quota_compliance.c
488 test_quota_compliance_udp_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_udp_asymmetric_send_constant_SOURCES = \
494 # test_quota_compliance.c
495 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
496 # $(top_builddir)/src/transport/libgnunettransport.la \
497 # $(top_builddir)/src/util/libgnunetutil.la
499 test_quota_compliance_unix_SOURCES = \
500 test_quota_compliance.c
501 test_quota_compliance_unix_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_unix_asymmetric_recv_constant_SOURCES = \
507 test_quota_compliance.c
508 test_quota_compliance_unix_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
514 test_transport_api_multi_SOURCES = \
516 test_transport_api_multi_LDADD = \
517 $(top_builddir)/src/transport/libgnunettransport.la \
518 $(top_builddir)/src/hello/libgnunethello.la \
519 $(top_builddir)/src/util/libgnunetutil.la
521 gnunet-transport-certificate-creation \
522 test_transport_api_data.conf \
523 test_transport_api_tcp_peer1.conf \
524 test_transport_api_tcp_peer2.conf \
525 test_transport_api_udp_peer1.conf \
526 test_transport_api_udp_peer2.conf \
527 test_transport_api_unix_peer1.conf \
528 test_transport_api_unix_peer2.conf \
529 test_transport_api_udp_nat_peer1.conf \
530 test_transport_api_udp_nat_peer2.conf \
531 test_transport_api_tcp_nat_peer1.conf \
532 test_transport_api_tcp_nat_peer2.conf \
533 test_plugin_transport_data.conf \
534 test_transport_api_http_peer1.conf \
535 test_transport_api_http_peer2.conf \
536 test_transport_api_https_peer1.conf \
537 test_transport_api_https_peer2.conf \
538 test_transport_api_wlan_peer1.conf \
539 test_transport_api_wlan_peer2.conf \
540 test_transport_api_multi_peer1.conf \
541 test_transport_api_multi_peer2.conf \
542 test_transport_api_rel_http_peer1.conf \
543 test_transport_api_rel_http_peer2.conf \
544 test_transport_api_rel_https_peer1.conf \
545 test_transport_api_rel_https_peer2.conf \
546 test_plugin_transport_data_http.conf \
547 test_plugin_transport_data.conf \
548 test_quota_compliance_data.conf \
549 test_quota_compliance_tcp_peer1.conf \
550 test_quota_compliance_tcp_peer2.conf \
551 test_quota_compliance_http_peer1.conf \
552 test_quota_compliance_http_peer2.conf \
553 test_quota_compliance_https_peer1.conf \
554 test_quota_compliance_https_peer2.conf \
555 test_quota_compliance_udp_peer1.conf \
556 test_quota_compliance_udp_peer2.conf \
557 test_quota_compliance_unix_peer1.conf \
558 test_quota_compliance_unix_peer2.conf