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
50 NATBIN = gnunet-nat-server gnunet-nat-client
52 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
53 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
58 #noinst_PROGRAMS = ${check_PROGRAMS}
63 libgnunettransport_la_SOURCES = \
64 transport_api.c transport.h \
65 transport_api_blacklist.c \
66 transport_api_address_lookup.c
67 libgnunettransport_la_LIBADD = \
68 $(top_builddir)/src/hello/libgnunethello.la \
69 $(top_builddir)/src/util/libgnunetutil.la \
71 libgnunettransport_la_LDFLAGS = \
72 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
79 gnunet-service-transport $(NATBIN)
82 gnunet-transport-certificate-creation
84 gnunet_nat_server_SOURCES = \
88 gnunet_transport_wlan_helper_SOURCES = \
89 wlan/radiotap-parser.c \
90 wlan/helper_common.c \
91 wlan/loopback_helper.c \
92 gnunet-transport-wlan-helper.c
94 gnunet_transport_wlan_helper_LDADD = \
95 $(top_builddir)/src/util/libgnunetutil.la \
98 gnunet_nat_client_SOURCES = \
101 gnunet_transport_SOURCES = \
103 gnunet_transport_LDADD = \
104 $(top_builddir)/src/transport/libgnunettransport.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
107 gnunet_transport_DEPENDENCIES = \
108 libgnunettransport.la
114 gnunet_service_transport_SOURCES = \
115 gnunet-service-transport.c
116 gnunet_service_transport_LDADD = \
117 $(top_builddir)/src/hello/libgnunethello.la \
118 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
119 $(top_builddir)/src/statistics/libgnunetstatistics.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
123 gnunet_service_transport_DEPENDENCIES = \
124 libgnunettransport.la
126 plugin_LTLIBRARIES = \
127 libgnunet_plugin_transport_tcp.la \
128 libgnunet_plugin_transport_udp.la \
133 libgnunet_plugin_transport_template.la
134 # TODO: add nat, etc.
136 libgnunet_plugin_transport_tcp_la_SOURCES = \
137 plugin_transport_tcp.c
138 libgnunet_plugin_transport_tcp_la_LIBADD = \
139 $(top_builddir)/src/hello/libgnunethello.la \
140 $(top_builddir)/src/statistics/libgnunetstatistics.la \
141 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
142 $(top_builddir)/src/nat/libgnunetnat.la \
143 $(top_builddir)/src/util/libgnunetutil.la
144 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
147 libgnunet_plugin_transport_template_la_SOURCES = \
148 plugin_transport_template.c
149 libgnunet_plugin_transport_template_la_LIBADD = \
150 $(top_builddir)/src/util/libgnunetutil.la
151 libgnunet_plugin_transport_template_la_LDFLAGS = \
154 libgnunet_plugin_transport_wlan_la_SOURCES = \
155 plugin_transport_wlan.c
156 libgnunet_plugin_transport_wlan_la_LIBADD = \
157 $(top_builddir)/src/hello/libgnunethello.la \
158 $(top_builddir)/src/statistics/libgnunetstatistics.la \
159 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
160 $(top_builddir)/src/util/libgnunetutil.la
161 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
164 libgnunet_plugin_transport_udp_la_SOURCES = \
165 plugin_transport_udp.c
166 libgnunet_plugin_transport_udp_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/util/libgnunetutil.la
171 libgnunet_plugin_transport_udp_la_LDFLAGS = \
174 libgnunet_plugin_transport_unix_la_SOURCES = \
175 plugin_transport_unix.c
176 libgnunet_plugin_transport_unix_la_LIBADD = \
177 $(top_builddir)/src/hello/libgnunethello.la \
178 $(top_builddir)/src/statistics/libgnunetstatistics.la \
179 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
180 $(top_builddir)/src/util/libgnunetutil.la
181 libgnunet_plugin_transport_unix_la_LDFLAGS = \
184 libgnunet_plugin_transport_http_la_SOURCES = \
185 plugin_transport_http.c
186 libgnunet_plugin_transport_http_la_LIBADD = \
187 $(top_builddir)/src/hello/libgnunethello.la \
188 $(top_builddir)/src/statistics/libgnunetstatistics.la \
189 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
191 $(top_builddir)/src/util/libgnunetutil.la
192 libgnunet_plugin_transport_http_la_LDFLAGS = \
196 libgnunet_plugin_transport_https_la_SOURCES = \
197 plugin_transport_http.c
198 libgnunet_plugin_transport_https_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/util/libgnunetutil.la
204 libgnunet_plugin_transport_https_la_LDFLAGS = \
207 libgnunet_plugin_transport_https_la_CFLAGS = \
208 $(CFLAGS) -DBUILD_HTTPS
213 test_transport_ats_perf \
214 test_transport_api_tcp \
215 test_transport_api_tcp_nat \
216 test_transport_api_udp \
217 $(UNIX_PLUGIN_TEST) \
218 test_transport_api_udp_nat \
219 $(HTTP_PLUGIN_TEST) \
221 $(HTTPS_PLUGIN_TEST) \
225 test_transport_api_multi \
226 test_transport_api_reliability_tcp \
227 test_transport_api_reliability_tcp_nat \
228 test_transport_api_unreliability_udp \
229 test_transport_api_unreliability_unix \
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 \
240 # TODO: add tests for nat, etc.
245 test_transport_ats_perf \
246 test_transport_api_tcp \
247 test_transport_api_tcp_nat \
248 test_transport_api_udp \
249 $(UNIX_PLUGIN_TEST) \
250 test_transport_api_udp_nat \
251 $(HTTP_PLUGIN_TEST) \
253 $(HTTPS_PLUGIN_TEST) \
256 test_transport_api_multi \
257 test_transport_api_reliability_tcp \
258 test_transport_api_reliability_tcp_nat \
259 test_transport_api_unreliability_udp \
260 test_transport_api_unreliability_unix \
263 test_quota_compliance_tcp \
264 test_quota_compliance_tcp_asymmetric_recv_constant \
265 test_quota_compliance_udp \
266 test_quota_compliance_udp_asymmetric_recv_constant \
272 test_transport_ats_SOURCES = \
274 test_transport_ats_LDADD = \
275 $(top_builddir)/src/testing/libgnunettesting.la \
276 $(top_builddir)/src/util/libgnunetutil.la
278 test_transport_ats_perf_SOURCES = \
279 test_transport_ats_perf.c
280 test_transport_ats_perf_LDADD = \
281 $(top_builddir)/src/testing/libgnunettesting.la \
283 $(top_builddir)/src/util/libgnunetutil.la
285 test_transport_api_tcp_SOURCES = \
287 test_transport_api_tcp_LDADD = \
288 $(top_builddir)/src/transport/libgnunettransport.la \
289 $(top_builddir)/src/hello/libgnunethello.la \
290 $(top_builddir)/src/util/libgnunetutil.la
292 test_transport_api_tcp_nat_SOURCES = \
294 test_transport_api_tcp_nat_LDADD = \
295 $(top_builddir)/src/transport/libgnunettransport.la \
296 $(top_builddir)/src/hello/libgnunethello.la \
297 $(top_builddir)/src/util/libgnunetutil.la
299 test_transport_api_reliability_tcp_SOURCES = \
300 test_transport_api_reliability.c
301 test_transport_api_reliability_tcp_LDADD = \
302 $(top_builddir)/src/transport/libgnunettransport.la \
303 $(top_builddir)/src/hello/libgnunethello.la \
304 $(top_builddir)/src/util/libgnunetutil.la
306 test_transport_api_reliability_tcp_nat_SOURCES = \
307 test_transport_api_reliability.c
308 test_transport_api_reliability_tcp_nat_LDADD = \
309 $(top_builddir)/src/transport/libgnunettransport.la \
310 $(top_builddir)/src/hello/libgnunethello.la \
311 $(top_builddir)/src/util/libgnunetutil.la
313 test_transport_api_reliability_wlan_SOURCES = \
314 test_transport_api_reliability.c
315 test_transport_api_reliability_wlan_LDADD = \
316 $(top_builddir)/src/transport/libgnunettransport.la \
317 $(top_builddir)/src/hello/libgnunethello.la \
318 $(top_builddir)/src/util/libgnunetutil.la
321 test_transport_api_udp_SOURCES = \
323 test_transport_api_udp_LDADD = \
324 $(top_builddir)/src/transport/libgnunettransport.la \
325 $(top_builddir)/src/hello/libgnunethello.la \
326 $(top_builddir)/src/util/libgnunetutil.la
328 test_transport_api_udp_nat_SOURCES = \
330 test_transport_api_udp_nat_LDADD = \
331 $(top_builddir)/src/transport/libgnunettransport.la \
332 $(top_builddir)/src/hello/libgnunethello.la \
333 $(top_builddir)/src/util/libgnunetutil.la
335 test_transport_api_unix_SOURCES = \
337 test_transport_api_unix_LDADD = \
338 $(top_builddir)/src/transport/libgnunettransport.la \
339 $(top_builddir)/src/hello/libgnunethello.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_plugin_transport_http_SOURCES = \
343 test_plugin_transport_http.c
344 test_plugin_transport_http_LDADD = \
345 $(top_builddir)/src/transport/libgnunettransport.la \
346 $(top_builddir)/src/statistics/libgnunetstatistics.la \
348 $(top_builddir)/src/hello/libgnunethello.la \
349 $(top_builddir)/src/util/libgnunetutil.la
351 test_transport_api_http_SOURCES = \
353 test_transport_api_http_LDADD = \
354 $(top_builddir)/src/transport/libgnunettransport.la \
355 $(top_builddir)/src/hello/libgnunethello.la \
356 $(top_builddir)/src/util/libgnunetutil.la
358 test_transport_api_reliability_http_SOURCES = \
359 test_transport_api_reliability.c
360 test_transport_api_reliability_http_LDADD = \
361 $(top_builddir)/src/transport/libgnunettransport.la \
362 $(top_builddir)/src/hello/libgnunethello.la \
363 $(top_builddir)/src/util/libgnunetutil.la
365 test_plugin_transport_https_SOURCES = \
366 test_plugin_transport_https.c
367 test_plugin_transport_https_LDADD = \
368 $(top_builddir)/src/transport/libgnunettransport.la \
369 $(top_builddir)/src/statistics/libgnunetstatistics.la \
371 $(top_builddir)/src/hello/libgnunethello.la \
372 $(top_builddir)/src/util/libgnunetutil.la
374 test_transport_api_https_SOURCES = \
376 test_transport_api_https_LDADD = \
377 $(top_builddir)/src/transport/libgnunettransport.la \
378 $(top_builddir)/src/hello/libgnunethello.la \
379 $(top_builddir)/src/util/libgnunetutil.la
381 test_transport_api_reliability_https_SOURCES = \
382 test_transport_api_reliability.c
383 test_transport_api_reliability_https_LDADD = \
384 $(top_builddir)/src/transport/libgnunettransport.la \
385 $(top_builddir)/src/hello/libgnunethello.la \
386 $(top_builddir)/src/util/libgnunetutil.la
388 test_transport_api_unreliability_unix_SOURCES = \
389 test_transport_api_unreliability.c
390 test_transport_api_unreliability_unix_LDADD = \
391 $(top_builddir)/src/transport/libgnunettransport.la \
392 $(top_builddir)/src/hello/libgnunethello.la \
393 $(top_builddir)/src/util/libgnunetutil.la
395 test_transport_api_unreliability_udp_SOURCES = \
396 test_transport_api_unreliability.c
397 test_transport_api_unreliability_udp_LDADD = \
398 $(top_builddir)/src/transport/libgnunettransport.la \
399 $(top_builddir)/src/hello/libgnunethello.la \
400 $(top_builddir)/src/util/libgnunetutil.la
404 test_transport_api_wlan_SOURCES = \
406 test_transport_api_wlan_LDADD = \
407 $(top_builddir)/src/transport/libgnunettransport.la \
408 $(top_builddir)/src/hello/libgnunethello.la \
409 $(top_builddir)/src/util/libgnunetutil.la
413 test_quota_compliance_tcp_SOURCES = \
414 test_quota_compliance.c
415 test_quota_compliance_tcp_LDADD = \
416 $(top_builddir)/src/transport/libgnunettransport.la \
417 $(top_builddir)/src/hello/libgnunethello.la \
418 $(top_builddir)/src/util/libgnunetutil.la
420 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
421 test_quota_compliance.c
422 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
423 $(top_builddir)/src/transport/libgnunettransport.la \
424 $(top_builddir)/src/hello/libgnunethello.la \
425 $(top_builddir)/src/util/libgnunetutil.la
427 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
428 # test_quota_compliance.c
429 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
430 # $(top_builddir)/src/transport/libgnunettransport.la \
431 # $(top_builddir)/src/util/libgnunetutil.la
433 test_quota_compliance_http_SOURCES = \
434 test_quota_compliance.c
435 test_quota_compliance_http_LDADD = \
436 $(top_builddir)/src/transport/libgnunettransport.la \
437 $(top_builddir)/src/hello/libgnunethello.la \
438 $(top_builddir)/src/util/libgnunetutil.la
440 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
441 test_quota_compliance.c
442 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
443 $(top_builddir)/src/transport/libgnunettransport.la \
444 $(top_builddir)/src/hello/libgnunethello.la \
445 $(top_builddir)/src/util/libgnunetutil.la
447 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
448 # test_quota_compliance.c
449 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
450 # $(top_builddir)/src/transport/libgnunettransport.la \
451 # $(top_builddir)/src/util/libgnunetutil.la
453 test_quota_compliance_https_SOURCES = \
454 test_quota_compliance.c
455 test_quota_compliance_https_LDADD = \
456 $(top_builddir)/src/transport/libgnunettransport.la \
457 $(top_builddir)/src/hello/libgnunethello.la \
458 $(top_builddir)/src/util/libgnunetutil.la
460 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
461 test_quota_compliance.c
462 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
463 $(top_builddir)/src/transport/libgnunettransport.la \
464 $(top_builddir)/src/hello/libgnunethello.la \
465 $(top_builddir)/src/util/libgnunetutil.la
467 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
468 # test_quota_compliance.c
469 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
470 # $(top_builddir)/src/transport/libgnunettransport.la \
471 # $(top_builddir)/src/util/libgnunetutil.la
473 test_quota_compliance_udp_SOURCES = \
474 test_quota_compliance.c
475 test_quota_compliance_udp_LDADD = \
476 $(top_builddir)/src/transport/libgnunettransport.la \
477 $(top_builddir)/src/hello/libgnunethello.la \
478 $(top_builddir)/src/util/libgnunetutil.la
480 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
481 test_quota_compliance.c
482 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
483 $(top_builddir)/src/transport/libgnunettransport.la \
484 $(top_builddir)/src/hello/libgnunethello.la \
485 $(top_builddir)/src/util/libgnunetutil.la
487 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
488 # test_quota_compliance.c
489 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
490 # $(top_builddir)/src/transport/libgnunettransport.la \
491 # $(top_builddir)/src/util/libgnunetutil.la
493 test_quota_compliance_unix_SOURCES = \
494 test_quota_compliance.c
495 test_quota_compliance_unix_LDADD = \
496 $(top_builddir)/src/transport/libgnunettransport.la \
497 $(top_builddir)/src/hello/libgnunethello.la \
498 $(top_builddir)/src/util/libgnunetutil.la
500 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
501 test_quota_compliance.c
502 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
503 $(top_builddir)/src/transport/libgnunettransport.la \
504 $(top_builddir)/src/hello/libgnunethello.la \
505 $(top_builddir)/src/util/libgnunetutil.la
508 test_transport_api_multi_SOURCES = \
510 test_transport_api_multi_LDADD = \
511 $(top_builddir)/src/transport/libgnunettransport.la \
512 $(top_builddir)/src/hello/libgnunethello.la \
513 $(top_builddir)/src/util/libgnunetutil.la
515 gnunet-transport-certificate-creation \
516 test_transport_api_data.conf \
517 test_transport_api_tcp_peer1.conf \
518 test_transport_api_tcp_peer2.conf \
519 test_transport_api_udp_peer1.conf \
520 test_transport_api_udp_peer2.conf \
521 test_transport_api_unix_peer1.conf \
522 test_transport_api_unix_peer2.conf \
523 test_transport_api_udp_nat_peer1.conf \
524 test_transport_api_udp_nat_peer2.conf \
525 test_transport_api_tcp_nat_peer1.conf \
526 test_transport_api_tcp_nat_peer2.conf \
527 test_plugin_transport_data.conf \
528 test_transport_api_http_peer1.conf \
529 test_transport_api_http_peer2.conf \
530 test_transport_api_https_peer1.conf \
531 test_transport_api_https_peer2.conf \
532 test_transport_api_wlan_peer1.conf \
533 test_transport_api_wlan_peer2.conf \
534 test_transport_api_multi_peer1.conf \
535 test_transport_api_multi_peer2.conf \
536 test_transport_api_rel_http_peer1.conf \
537 test_transport_api_rel_http_peer2.conf \
538 test_transport_api_rel_https_peer1.conf \
539 test_transport_api_rel_https_peer2.conf \
540 test_plugin_transport_data_http.conf \
541 test_plugin_transport_data.conf \
542 test_quota_compliance_data.conf \
543 test_quota_compliance_tcp_peer1.conf \
544 test_quota_compliance_tcp_peer2.conf \
545 test_quota_compliance_http_peer1.conf \
546 test_quota_compliance_http_peer2.conf \
547 test_quota_compliance_https_peer1.conf \
548 test_quota_compliance_https_peer2.conf \
549 test_quota_compliance_udp_peer1.conf \
550 test_quota_compliance_udp_peer2.conf \
551 test_quota_compliance_unix_peer1.conf \
552 test_quota_compliance_unix_peer2.conf