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 \
230 test_quota_compliance_tcp \
231 test_quota_compliance_tcp_asymmetric_recv_constant \
232 test_quota_compliance_udp \
233 test_quota_compliance_udp_asymmetric_recv_constant \
236 $(HTTPS_QUOTA_TEST) \
239 # TODO: add tests for nat, etc.
244 test_transport_ats_perf \
245 test_transport_api_tcp \
246 test_transport_api_tcp_nat \
247 test_transport_api_udp \
248 $(UNIX_PLUGIN_TEST) \
249 test_transport_api_udp_nat \
250 $(HTTP_PLUGIN_TEST) \
252 $(HTTPS_PLUGIN_TEST) \
254 test_transport_api_multi \
255 test_transport_api_reliability_tcp \
256 test_transport_api_reliability_tcp_nat \
257 test_transport_api_unreliability_udp \
261 test_quota_compliance_tcp \
262 test_quota_compliance_tcp_asymmetric_recv_constant \
263 test_quota_compliance_udp \
264 test_quota_compliance_udp_asymmetric_recv_constant \
267 $(HTTPS_QUOTA_TEST) \
271 test_transport_ats_SOURCES = \
273 test_transport_ats_LDADD = -lm \
274 $(top_builddir)/src/transport/libgnunettransport.la \
275 $(top_builddir)/src/statistics/libgnunetstatistics.la \
276 $(top_builddir)/src/testing/libgnunettesting.la \
277 $(top_builddir)/src/util/libgnunetutil.la
279 test_transport_ats_perf_SOURCES = \
280 test_transport_ats_perf.c
281 test_transport_ats_perf_LDADD = \
282 $(top_builddir)/src/transport/libgnunettransport.la \
283 $(top_builddir)/src/statistics/libgnunetstatistics.la \
284 $(top_builddir)/src/testing/libgnunettesting.la \
286 $(top_builddir)/src/util/libgnunetutil.la
288 test_transport_api_tcp_SOURCES = \
290 test_transport_api_tcp_LDADD = \
291 $(top_builddir)/src/transport/libgnunettransport.la \
292 $(top_builddir)/src/hello/libgnunethello.la \
293 $(top_builddir)/src/util/libgnunetutil.la
295 test_transport_api_tcp_nat_SOURCES = \
297 test_transport_api_tcp_nat_LDADD = \
298 $(top_builddir)/src/transport/libgnunettransport.la \
299 $(top_builddir)/src/hello/libgnunethello.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_transport_api_reliability_tcp_SOURCES = \
303 test_transport_api_reliability.c
304 test_transport_api_reliability_tcp_LDADD = \
305 $(top_builddir)/src/transport/libgnunettransport.la \
306 $(top_builddir)/src/hello/libgnunethello.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_transport_api_reliability_tcp_nat_SOURCES = \
310 test_transport_api_reliability.c
311 test_transport_api_reliability_tcp_nat_LDADD = \
312 $(top_builddir)/src/transport/libgnunettransport.la \
313 $(top_builddir)/src/hello/libgnunethello.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_transport_api_reliability_wlan_SOURCES = \
317 test_transport_api_reliability.c
318 test_transport_api_reliability_wlan_LDADD = \
319 $(top_builddir)/src/transport/libgnunettransport.la \
320 $(top_builddir)/src/hello/libgnunethello.la \
321 $(top_builddir)/src/util/libgnunetutil.la
324 test_transport_api_udp_SOURCES = \
326 test_transport_api_udp_LDADD = \
327 $(top_builddir)/src/transport/libgnunettransport.la \
328 $(top_builddir)/src/hello/libgnunethello.la \
329 $(top_builddir)/src/util/libgnunetutil.la
331 test_transport_api_udp_nat_SOURCES = \
333 test_transport_api_udp_nat_LDADD = \
334 $(top_builddir)/src/transport/libgnunettransport.la \
335 $(top_builddir)/src/hello/libgnunethello.la \
336 $(top_builddir)/src/util/libgnunetutil.la
338 test_transport_api_unix_SOURCES = \
340 test_transport_api_unix_LDADD = \
341 $(top_builddir)/src/transport/libgnunettransport.la \
342 $(top_builddir)/src/hello/libgnunethello.la \
343 $(top_builddir)/src/util/libgnunetutil.la
345 test_plugin_transport_http_SOURCES = \
346 test_plugin_transport_http.c
347 test_plugin_transport_http_LDADD = \
348 $(top_builddir)/src/transport/libgnunettransport.la \
349 $(top_builddir)/src/statistics/libgnunetstatistics.la \
351 $(top_builddir)/src/hello/libgnunethello.la \
352 $(top_builddir)/src/util/libgnunetutil.la
354 test_transport_api_http_SOURCES = \
356 test_transport_api_http_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_reliability_http_SOURCES = \
362 test_transport_api_reliability.c
363 test_transport_api_reliability_http_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_https_SOURCES = \
369 test_plugin_transport_https.c
370 test_plugin_transport_https_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_https_SOURCES = \
379 test_transport_api_https_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_https_SOURCES = \
385 test_transport_api_reliability.c
386 test_transport_api_reliability_https_LDADD = \
387 $(top_builddir)/src/transport/libgnunettransport.la \
388 $(top_builddir)/src/hello/libgnunethello.la \
389 $(top_builddir)/src/util/libgnunetutil.la
391 test_transport_api_unreliability_unix_SOURCES = \
392 test_transport_api_unreliability.c
393 test_transport_api_unreliability_unix_LDADD = \
394 $(top_builddir)/src/transport/libgnunettransport.la \
395 $(top_builddir)/src/hello/libgnunethello.la \
396 $(top_builddir)/src/util/libgnunetutil.la
398 test_transport_api_unreliability_udp_SOURCES = \
399 test_transport_api_unreliability.c
400 test_transport_api_unreliability_udp_LDADD = \
401 $(top_builddir)/src/transport/libgnunettransport.la \
402 $(top_builddir)/src/hello/libgnunethello.la \
403 $(top_builddir)/src/util/libgnunetutil.la
407 test_transport_api_wlan_SOURCES = \
409 test_transport_api_wlan_LDADD = \
410 $(top_builddir)/src/transport/libgnunettransport.la \
411 $(top_builddir)/src/hello/libgnunethello.la \
412 $(top_builddir)/src/util/libgnunetutil.la
416 test_quota_compliance_tcp_SOURCES = \
417 test_quota_compliance.c
418 test_quota_compliance_tcp_LDADD = \
419 $(top_builddir)/src/transport/libgnunettransport.la \
420 $(top_builddir)/src/hello/libgnunethello.la \
421 $(top_builddir)/src/util/libgnunetutil.la
423 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
424 test_quota_compliance.c
425 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
426 $(top_builddir)/src/transport/libgnunettransport.la \
427 $(top_builddir)/src/hello/libgnunethello.la \
428 $(top_builddir)/src/util/libgnunetutil.la
430 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
431 # test_quota_compliance.c
432 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
433 # $(top_builddir)/src/transport/libgnunettransport.la \
434 # $(top_builddir)/src/util/libgnunetutil.la
436 test_quota_compliance_http_SOURCES = \
437 test_quota_compliance.c
438 test_quota_compliance_http_LDADD = \
439 $(top_builddir)/src/transport/libgnunettransport.la \
440 $(top_builddir)/src/hello/libgnunethello.la \
441 $(top_builddir)/src/util/libgnunetutil.la
443 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
444 test_quota_compliance.c
445 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
446 $(top_builddir)/src/transport/libgnunettransport.la \
447 $(top_builddir)/src/hello/libgnunethello.la \
448 $(top_builddir)/src/util/libgnunetutil.la
450 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
451 # test_quota_compliance.c
452 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
453 # $(top_builddir)/src/transport/libgnunettransport.la \
454 # $(top_builddir)/src/util/libgnunetutil.la
456 test_quota_compliance_https_SOURCES = \
457 test_quota_compliance.c
458 test_quota_compliance_https_LDADD = \
459 $(top_builddir)/src/transport/libgnunettransport.la \
460 $(top_builddir)/src/hello/libgnunethello.la \
461 $(top_builddir)/src/util/libgnunetutil.la
463 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
464 test_quota_compliance.c
465 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
466 $(top_builddir)/src/transport/libgnunettransport.la \
467 $(top_builddir)/src/hello/libgnunethello.la \
468 $(top_builddir)/src/util/libgnunetutil.la
470 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
471 # test_quota_compliance.c
472 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
473 # $(top_builddir)/src/transport/libgnunettransport.la \
474 # $(top_builddir)/src/util/libgnunetutil.la
476 test_quota_compliance_udp_SOURCES = \
477 test_quota_compliance.c
478 test_quota_compliance_udp_LDADD = \
479 $(top_builddir)/src/transport/libgnunettransport.la \
480 $(top_builddir)/src/hello/libgnunethello.la \
481 $(top_builddir)/src/util/libgnunetutil.la
483 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
484 test_quota_compliance.c
485 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
486 $(top_builddir)/src/transport/libgnunettransport.la \
487 $(top_builddir)/src/hello/libgnunethello.la \
488 $(top_builddir)/src/util/libgnunetutil.la
490 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
491 # test_quota_compliance.c
492 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
493 # $(top_builddir)/src/transport/libgnunettransport.la \
494 # $(top_builddir)/src/util/libgnunetutil.la
496 test_quota_compliance_unix_SOURCES = \
497 test_quota_compliance.c
498 test_quota_compliance_unix_LDADD = \
499 $(top_builddir)/src/transport/libgnunettransport.la \
500 $(top_builddir)/src/hello/libgnunethello.la \
501 $(top_builddir)/src/util/libgnunetutil.la
503 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
504 test_quota_compliance.c
505 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
506 $(top_builddir)/src/transport/libgnunettransport.la \
507 $(top_builddir)/src/hello/libgnunethello.la \
508 $(top_builddir)/src/util/libgnunetutil.la
511 test_transport_api_multi_SOURCES = \
513 test_transport_api_multi_LDADD = \
514 $(top_builddir)/src/transport/libgnunettransport.la \
515 $(top_builddir)/src/hello/libgnunethello.la \
516 $(top_builddir)/src/util/libgnunetutil.la
518 gnunet-transport-certificate-creation \
519 test_transport_api_data.conf \
520 test_transport_api_tcp_peer1.conf \
521 test_transport_api_tcp_peer2.conf \
522 test_transport_api_udp_peer1.conf \
523 test_transport_api_udp_peer2.conf \
524 test_transport_api_unix_peer1.conf \
525 test_transport_api_unix_peer2.conf \
526 test_transport_api_udp_nat_peer1.conf \
527 test_transport_api_udp_nat_peer2.conf \
528 test_transport_api_tcp_nat_peer1.conf \
529 test_transport_api_tcp_nat_peer2.conf \
530 test_plugin_transport_data.conf \
531 test_transport_api_http_peer1.conf \
532 test_transport_api_http_peer2.conf \
533 test_transport_api_https_peer1.conf \
534 test_transport_api_https_peer2.conf \
535 test_transport_api_wlan_peer1.conf \
536 test_transport_api_wlan_peer2.conf \
537 test_transport_api_multi_peer1.conf \
538 test_transport_api_multi_peer2.conf \
539 test_transport_api_rel_http_peer1.conf \
540 test_transport_api_rel_http_peer2.conf \
541 test_transport_api_rel_https_peer1.conf \
542 test_transport_api_rel_https_peer2.conf \
543 test_plugin_transport_data_http.conf \
544 test_plugin_transport_data.conf \
545 test_quota_compliance_data.conf \
546 test_quota_compliance_tcp_peer1.conf \
547 test_quota_compliance_tcp_peer2.conf \
548 test_quota_compliance_http_peer1.conf \
549 test_quota_compliance_http_peer2.conf \
550 test_quota_compliance_https_peer1.conf \
551 test_quota_compliance_https_peer2.conf \
552 test_quota_compliance_udp_peer1.conf \
553 test_quota_compliance_udp_peer2.conf \
554 test_quota_compliance_unix_peer1.conf \
555 test_quota_compliance_unix_peer2.conf