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-transport-wlan-helper || true
53 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-transport-wlan-helper || 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) \
223 test_transport_api_multi \
224 test_transport_api_reliability_tcp \
225 test_transport_api_reliability_tcp_nat \
226 test_transport_api_unreliability_udp \
227 test_transport_api_unreliability_unix \
231 test_quota_compliance_tcp \
232 test_quota_compliance_tcp_asymmetric_recv_constant \
233 test_quota_compliance_udp \
234 test_quota_compliance_udp_asymmetric_recv_constant \
237 $(HTTPS_QUOTA_TEST) \
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) \
255 test_transport_api_multi \
256 test_transport_api_reliability_tcp \
257 test_transport_api_reliability_tcp_nat \
258 test_transport_api_unreliability_udp \
259 test_transport_api_unreliability_unix \
262 test_quota_compliance_tcp \
263 test_quota_compliance_tcp_asymmetric_recv_constant \
264 test_quota_compliance_udp \
265 test_quota_compliance_udp_asymmetric_recv_constant \
268 $(HTTPS_QUOTA_TEST) \
272 test_transport_ats_SOURCES = \
274 test_transport_ats_LDADD = -lm \
275 $(top_builddir)/src/transport/libgnunettransport.la \
276 $(top_builddir)/src/statistics/libgnunetstatistics.la \
277 $(top_builddir)/src/testing/libgnunettesting.la \
278 $(top_builddir)/src/util/libgnunetutil.la
280 test_transport_ats_perf_SOURCES = \
281 test_transport_ats_perf.c
282 test_transport_ats_perf_LDADD = \
283 $(top_builddir)/src/transport/libgnunettransport.la \
284 $(top_builddir)/src/statistics/libgnunetstatistics.la \
285 $(top_builddir)/src/testing/libgnunettesting.la \
287 $(top_builddir)/src/util/libgnunetutil.la
289 test_transport_api_tcp_SOURCES = \
291 test_transport_api_tcp_LDADD = \
292 $(top_builddir)/src/transport/libgnunettransport.la \
293 $(top_builddir)/src/hello/libgnunethello.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_transport_api_tcp_nat_SOURCES = \
298 test_transport_api_tcp_nat_LDADD = \
299 $(top_builddir)/src/transport/libgnunettransport.la \
300 $(top_builddir)/src/hello/libgnunethello.la \
301 $(top_builddir)/src/util/libgnunetutil.la
303 test_transport_api_reliability_tcp_SOURCES = \
304 test_transport_api_reliability.c
305 test_transport_api_reliability_tcp_LDADD = \
306 $(top_builddir)/src/transport/libgnunettransport.la \
307 $(top_builddir)/src/hello/libgnunethello.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 test_transport_api_reliability_tcp_nat_SOURCES = \
311 test_transport_api_reliability.c
312 test_transport_api_reliability_tcp_nat_LDADD = \
313 $(top_builddir)/src/transport/libgnunettransport.la \
314 $(top_builddir)/src/hello/libgnunethello.la \
315 $(top_builddir)/src/util/libgnunetutil.la
317 test_transport_api_reliability_wlan_SOURCES = \
318 test_transport_api_reliability.c
319 test_transport_api_reliability_wlan_LDADD = \
320 $(top_builddir)/src/transport/libgnunettransport.la \
321 $(top_builddir)/src/hello/libgnunethello.la \
322 $(top_builddir)/src/util/libgnunetutil.la
325 test_transport_api_udp_SOURCES = \
327 test_transport_api_udp_LDADD = \
328 $(top_builddir)/src/transport/libgnunettransport.la \
329 $(top_builddir)/src/hello/libgnunethello.la \
330 $(top_builddir)/src/util/libgnunetutil.la
332 test_transport_api_udp_nat_SOURCES = \
334 test_transport_api_udp_nat_LDADD = \
335 $(top_builddir)/src/transport/libgnunettransport.la \
336 $(top_builddir)/src/hello/libgnunethello.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 test_transport_api_unix_SOURCES = \
341 test_transport_api_unix_LDADD = \
342 $(top_builddir)/src/transport/libgnunettransport.la \
343 $(top_builddir)/src/hello/libgnunethello.la \
344 $(top_builddir)/src/util/libgnunetutil.la
346 test_plugin_transport_http_SOURCES = \
347 test_plugin_transport_http.c
348 test_plugin_transport_http_LDADD = \
349 $(top_builddir)/src/transport/libgnunettransport.la \
350 $(top_builddir)/src/statistics/libgnunetstatistics.la \
352 $(top_builddir)/src/hello/libgnunethello.la \
353 $(top_builddir)/src/util/libgnunetutil.la
355 test_transport_api_http_SOURCES = \
357 test_transport_api_http_LDADD = \
358 $(top_builddir)/src/transport/libgnunettransport.la \
359 $(top_builddir)/src/hello/libgnunethello.la \
360 $(top_builddir)/src/util/libgnunetutil.la
362 test_transport_api_reliability_http_SOURCES = \
363 test_transport_api_reliability.c
364 test_transport_api_reliability_http_LDADD = \
365 $(top_builddir)/src/transport/libgnunettransport.la \
366 $(top_builddir)/src/hello/libgnunethello.la \
367 $(top_builddir)/src/util/libgnunetutil.la
369 test_plugin_transport_https_SOURCES = \
370 test_plugin_transport_https.c
371 test_plugin_transport_https_LDADD = \
372 $(top_builddir)/src/transport/libgnunettransport.la \
373 $(top_builddir)/src/statistics/libgnunetstatistics.la \
375 $(top_builddir)/src/hello/libgnunethello.la \
376 $(top_builddir)/src/util/libgnunetutil.la
378 test_transport_api_https_SOURCES = \
380 test_transport_api_https_LDADD = \
381 $(top_builddir)/src/transport/libgnunettransport.la \
382 $(top_builddir)/src/hello/libgnunethello.la \
383 $(top_builddir)/src/util/libgnunetutil.la
385 test_transport_api_reliability_https_SOURCES = \
386 test_transport_api_reliability.c
387 test_transport_api_reliability_https_LDADD = \
388 $(top_builddir)/src/transport/libgnunettransport.la \
389 $(top_builddir)/src/hello/libgnunethello.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 test_transport_api_unreliability_unix_SOURCES = \
393 test_transport_api_unreliability.c
394 test_transport_api_unreliability_unix_LDADD = \
395 $(top_builddir)/src/transport/libgnunettransport.la \
396 $(top_builddir)/src/hello/libgnunethello.la \
397 $(top_builddir)/src/util/libgnunetutil.la
399 test_transport_api_unreliability_udp_SOURCES = \
400 test_transport_api_unreliability.c
401 test_transport_api_unreliability_udp_LDADD = \
402 $(top_builddir)/src/transport/libgnunettransport.la \
403 $(top_builddir)/src/hello/libgnunethello.la \
404 $(top_builddir)/src/util/libgnunetutil.la
408 test_transport_api_wlan_SOURCES = \
410 test_transport_api_wlan_LDADD = \
411 $(top_builddir)/src/transport/libgnunettransport.la \
412 $(top_builddir)/src/hello/libgnunethello.la \
413 $(top_builddir)/src/util/libgnunetutil.la
417 test_quota_compliance_tcp_SOURCES = \
418 test_quota_compliance.c
419 test_quota_compliance_tcp_LDADD = \
420 $(top_builddir)/src/transport/libgnunettransport.la \
421 $(top_builddir)/src/hello/libgnunethello.la \
422 $(top_builddir)/src/util/libgnunetutil.la
424 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
425 test_quota_compliance.c
426 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
427 $(top_builddir)/src/transport/libgnunettransport.la \
428 $(top_builddir)/src/hello/libgnunethello.la \
429 $(top_builddir)/src/util/libgnunetutil.la
431 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
432 # test_quota_compliance.c
433 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
434 # $(top_builddir)/src/transport/libgnunettransport.la \
435 # $(top_builddir)/src/util/libgnunetutil.la
437 test_quota_compliance_http_SOURCES = \
438 test_quota_compliance.c
439 test_quota_compliance_http_LDADD = \
440 $(top_builddir)/src/transport/libgnunettransport.la \
441 $(top_builddir)/src/hello/libgnunethello.la \
442 $(top_builddir)/src/util/libgnunetutil.la
444 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
445 test_quota_compliance.c
446 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
447 $(top_builddir)/src/transport/libgnunettransport.la \
448 $(top_builddir)/src/hello/libgnunethello.la \
449 $(top_builddir)/src/util/libgnunetutil.la
451 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
452 # test_quota_compliance.c
453 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
454 # $(top_builddir)/src/transport/libgnunettransport.la \
455 # $(top_builddir)/src/util/libgnunetutil.la
457 test_quota_compliance_https_SOURCES = \
458 test_quota_compliance.c
459 test_quota_compliance_https_LDADD = \
460 $(top_builddir)/src/transport/libgnunettransport.la \
461 $(top_builddir)/src/hello/libgnunethello.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
465 test_quota_compliance.c
466 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
467 $(top_builddir)/src/transport/libgnunettransport.la \
468 $(top_builddir)/src/hello/libgnunethello.la \
469 $(top_builddir)/src/util/libgnunetutil.la
471 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
472 # test_quota_compliance.c
473 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
474 # $(top_builddir)/src/transport/libgnunettransport.la \
475 # $(top_builddir)/src/util/libgnunetutil.la
477 test_quota_compliance_udp_SOURCES = \
478 test_quota_compliance.c
479 test_quota_compliance_udp_LDADD = \
480 $(top_builddir)/src/transport/libgnunettransport.la \
481 $(top_builddir)/src/hello/libgnunethello.la \
482 $(top_builddir)/src/util/libgnunetutil.la
484 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
485 test_quota_compliance.c
486 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
487 $(top_builddir)/src/transport/libgnunettransport.la \
488 $(top_builddir)/src/hello/libgnunethello.la \
489 $(top_builddir)/src/util/libgnunetutil.la
491 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
492 # test_quota_compliance.c
493 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
494 # $(top_builddir)/src/transport/libgnunettransport.la \
495 # $(top_builddir)/src/util/libgnunetutil.la
497 test_quota_compliance_unix_SOURCES = \
498 test_quota_compliance.c
499 test_quota_compliance_unix_LDADD = \
500 $(top_builddir)/src/transport/libgnunettransport.la \
501 $(top_builddir)/src/hello/libgnunethello.la \
502 $(top_builddir)/src/util/libgnunetutil.la
504 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
505 test_quota_compliance.c
506 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
507 $(top_builddir)/src/transport/libgnunettransport.la \
508 $(top_builddir)/src/hello/libgnunethello.la \
509 $(top_builddir)/src/util/libgnunetutil.la
512 test_transport_api_multi_SOURCES = \
514 test_transport_api_multi_LDADD = \
515 $(top_builddir)/src/transport/libgnunettransport.la \
516 $(top_builddir)/src/hello/libgnunethello.la \
517 $(top_builddir)/src/util/libgnunetutil.la
519 gnunet-transport-certificate-creation \
520 test_transport_api_data.conf \
521 test_transport_api_tcp_peer1.conf \
522 test_transport_api_tcp_peer2.conf \
523 test_transport_api_udp_peer1.conf \
524 test_transport_api_udp_peer2.conf \
525 test_transport_api_unix_peer1.conf \
526 test_transport_api_unix_peer2.conf \
527 test_transport_api_udp_nat_peer1.conf \
528 test_transport_api_udp_nat_peer2.conf \
529 test_transport_api_tcp_nat_peer1.conf \
530 test_transport_api_tcp_nat_peer2.conf \
531 test_plugin_transport_data.conf \
532 test_transport_api_http_peer1.conf \
533 test_transport_api_http_peer2.conf \
534 test_transport_api_https_peer1.conf \
535 test_transport_api_https_peer2.conf \
536 test_transport_api_wlan_peer1.conf \
537 test_transport_api_wlan_peer2.conf \
538 test_transport_api_multi_peer1.conf \
539 test_transport_api_multi_peer2.conf \
540 test_transport_api_rel_http_peer1.conf \
541 test_transport_api_rel_http_peer2.conf \
542 test_transport_api_rel_https_peer1.conf \
543 test_transport_api_rel_https_peer2.conf \
544 test_plugin_transport_data_http.conf \
545 test_plugin_transport_data.conf \
546 test_quota_compliance_data.conf \
547 test_quota_compliance_tcp_peer1.conf \
548 test_quota_compliance_tcp_peer2.conf \
549 test_quota_compliance_http_peer1.conf \
550 test_quota_compliance_http_peer2.conf \
551 test_quota_compliance_https_peer1.conf \
552 test_quota_compliance_https_peer2.conf \
553 test_quota_compliance_udp_peer1.conf \
554 test_quota_compliance_udp_peer2.conf \
555 test_quota_compliance_unix_peer1.conf \
556 test_quota_compliance_unix_peer2.conf