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_api_tcp \
214 test_transport_api_tcp_nat \
215 test_transport_api_udp \
216 $(UNIX_PLUGIN_TEST) \
217 test_transport_api_udp_nat \
218 $(HTTP_PLUGIN_TEST) \
220 $(HTTPS_PLUGIN_TEST) \
224 test_transport_api_multi \
225 test_transport_api_reliability_tcp \
226 test_transport_api_reliability_tcp_nat \
227 test_transport_api_unreliability_udp \
228 test_transport_api_unreliability_unix \
232 test_quota_compliance_tcp \
233 test_quota_compliance_tcp_asymmetric_recv_constant \
234 test_quota_compliance_udp \
235 test_quota_compliance_udp_asymmetric_recv_constant \
239 # TODO: add tests for nat, etc.
244 test_transport_api_tcp \
245 test_transport_api_tcp_nat \
246 test_transport_api_udp \
247 $(UNIX_PLUGIN_TEST) \
248 test_transport_api_udp_nat \
249 $(HTTP_PLUGIN_TEST) \
251 $(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 \
258 test_transport_api_unreliability_unix \
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 \
270 test_transport_ats_SOURCES = \
272 test_transport_ats_LDADD = \
273 $(top_builddir)/src/testing/libgnunettesting.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 test_transport_api_tcp_SOURCES = \
278 test_transport_api_tcp_LDADD = \
279 $(top_builddir)/src/transport/libgnunettransport.la \
280 $(top_builddir)/src/hello/libgnunethello.la \
281 $(top_builddir)/src/util/libgnunetutil.la
283 test_transport_api_tcp_nat_SOURCES = \
285 test_transport_api_tcp_nat_LDADD = \
286 $(top_builddir)/src/transport/libgnunettransport.la \
287 $(top_builddir)/src/hello/libgnunethello.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_transport_api_reliability_tcp_SOURCES = \
291 test_transport_api_reliability.c
292 test_transport_api_reliability_tcp_LDADD = \
293 $(top_builddir)/src/transport/libgnunettransport.la \
294 $(top_builddir)/src/hello/libgnunethello.la \
295 $(top_builddir)/src/util/libgnunetutil.la
297 test_transport_api_reliability_tcp_nat_SOURCES = \
298 test_transport_api_reliability.c
299 test_transport_api_reliability_tcp_nat_LDADD = \
300 $(top_builddir)/src/transport/libgnunettransport.la \
301 $(top_builddir)/src/hello/libgnunethello.la \
302 $(top_builddir)/src/util/libgnunetutil.la
304 test_transport_api_reliability_wlan_SOURCES = \
305 test_transport_api_reliability.c
306 test_transport_api_reliability_wlan_LDADD = \
307 $(top_builddir)/src/transport/libgnunettransport.la \
308 $(top_builddir)/src/hello/libgnunethello.la \
309 $(top_builddir)/src/util/libgnunetutil.la
312 test_transport_api_udp_SOURCES = \
314 test_transport_api_udp_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_udp_nat_SOURCES = \
321 test_transport_api_udp_nat_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_unix_SOURCES = \
328 test_transport_api_unix_LDADD = \
329 $(top_builddir)/src/transport/libgnunettransport.la \
330 $(top_builddir)/src/hello/libgnunethello.la \
331 $(top_builddir)/src/util/libgnunetutil.la
333 test_plugin_transport_http_SOURCES = \
334 test_plugin_transport_http.c
335 test_plugin_transport_http_LDADD = \
336 $(top_builddir)/src/transport/libgnunettransport.la \
337 $(top_builddir)/src/statistics/libgnunetstatistics.la \
339 $(top_builddir)/src/hello/libgnunethello.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_transport_api_http_SOURCES = \
344 test_transport_api_http_LDADD = \
345 $(top_builddir)/src/transport/libgnunettransport.la \
346 $(top_builddir)/src/hello/libgnunethello.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_transport_api_reliability_http_SOURCES = \
350 test_transport_api_reliability.c
351 test_transport_api_reliability_http_LDADD = \
352 $(top_builddir)/src/transport/libgnunettransport.la \
353 $(top_builddir)/src/hello/libgnunethello.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_plugin_transport_https_SOURCES = \
357 test_plugin_transport_https.c
358 test_plugin_transport_https_LDADD = \
359 $(top_builddir)/src/transport/libgnunettransport.la \
360 $(top_builddir)/src/statistics/libgnunetstatistics.la \
362 $(top_builddir)/src/hello/libgnunethello.la \
363 $(top_builddir)/src/util/libgnunetutil.la
365 test_transport_api_https_SOURCES = \
367 test_transport_api_https_LDADD = \
368 $(top_builddir)/src/transport/libgnunettransport.la \
369 $(top_builddir)/src/hello/libgnunethello.la \
370 $(top_builddir)/src/util/libgnunetutil.la
372 test_transport_api_reliability_https_SOURCES = \
373 test_transport_api_reliability.c
374 test_transport_api_reliability_https_LDADD = \
375 $(top_builddir)/src/transport/libgnunettransport.la \
376 $(top_builddir)/src/hello/libgnunethello.la \
377 $(top_builddir)/src/util/libgnunetutil.la
379 test_transport_api_unreliability_unix_SOURCES = \
380 test_transport_api_unreliability.c
381 test_transport_api_unreliability_unix_LDADD = \
382 $(top_builddir)/src/transport/libgnunettransport.la \
383 $(top_builddir)/src/hello/libgnunethello.la \
384 $(top_builddir)/src/util/libgnunetutil.la
386 test_transport_api_unreliability_udp_SOURCES = \
387 test_transport_api_unreliability.c
388 test_transport_api_unreliability_udp_LDADD = \
389 $(top_builddir)/src/transport/libgnunettransport.la \
390 $(top_builddir)/src/hello/libgnunethello.la \
391 $(top_builddir)/src/util/libgnunetutil.la
395 test_transport_api_wlan_SOURCES = \
397 test_transport_api_wlan_LDADD = \
398 $(top_builddir)/src/transport/libgnunettransport.la \
399 $(top_builddir)/src/hello/libgnunethello.la \
400 $(top_builddir)/src/util/libgnunetutil.la
404 test_quota_compliance_tcp_SOURCES = \
405 test_quota_compliance.c
406 test_quota_compliance_tcp_LDADD = \
407 $(top_builddir)/src/transport/libgnunettransport.la \
408 $(top_builddir)/src/hello/libgnunethello.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
412 test_quota_compliance.c
413 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
414 $(top_builddir)/src/transport/libgnunettransport.la \
415 $(top_builddir)/src/hello/libgnunethello.la \
416 $(top_builddir)/src/util/libgnunetutil.la
418 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
419 # test_quota_compliance.c
420 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
421 # $(top_builddir)/src/transport/libgnunettransport.la \
422 # $(top_builddir)/src/util/libgnunetutil.la
424 test_quota_compliance_http_SOURCES = \
425 test_quota_compliance.c
426 test_quota_compliance_http_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_http_asymmetric_recv_constant_SOURCES = \
432 test_quota_compliance.c
433 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
434 $(top_builddir)/src/transport/libgnunettransport.la \
435 $(top_builddir)/src/hello/libgnunethello.la \
436 $(top_builddir)/src/util/libgnunetutil.la
438 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
439 # test_quota_compliance.c
440 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
441 # $(top_builddir)/src/transport/libgnunettransport.la \
442 # $(top_builddir)/src/util/libgnunetutil.la
444 test_quota_compliance_https_SOURCES = \
445 test_quota_compliance.c
446 test_quota_compliance_https_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_https_asymmetric_recv_constant_SOURCES = \
452 test_quota_compliance.c
453 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
454 $(top_builddir)/src/transport/libgnunettransport.la \
455 $(top_builddir)/src/hello/libgnunethello.la \
456 $(top_builddir)/src/util/libgnunetutil.la
458 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
459 # test_quota_compliance.c
460 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
461 # $(top_builddir)/src/transport/libgnunettransport.la \
462 # $(top_builddir)/src/util/libgnunetutil.la
464 test_quota_compliance_udp_SOURCES = \
465 test_quota_compliance.c
466 test_quota_compliance_udp_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_udp_asymmetric_recv_constant_SOURCES = \
472 test_quota_compliance.c
473 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
474 $(top_builddir)/src/transport/libgnunettransport.la \
475 $(top_builddir)/src/hello/libgnunethello.la \
476 $(top_builddir)/src/util/libgnunetutil.la
478 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
479 # test_quota_compliance.c
480 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
481 # $(top_builddir)/src/transport/libgnunettransport.la \
482 # $(top_builddir)/src/util/libgnunetutil.la
484 test_quota_compliance_unix_SOURCES = \
485 test_quota_compliance.c
486 test_quota_compliance_unix_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_unix_asymmetric_recv_constant_SOURCES = \
492 test_quota_compliance.c
493 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
494 $(top_builddir)/src/transport/libgnunettransport.la \
495 $(top_builddir)/src/hello/libgnunethello.la \
496 $(top_builddir)/src/util/libgnunetutil.la
499 test_transport_api_multi_SOURCES = \
501 test_transport_api_multi_LDADD = \
502 $(top_builddir)/src/transport/libgnunettransport.la \
503 $(top_builddir)/src/hello/libgnunethello.la \
504 $(top_builddir)/src/util/libgnunetutil.la
506 gnunet-transport-certificate-creation \
507 test_transport_api_data.conf \
508 test_transport_api_tcp_peer1.conf \
509 test_transport_api_tcp_peer2.conf \
510 test_transport_api_udp_peer1.conf \
511 test_transport_api_udp_peer2.conf \
512 test_transport_api_unix_peer1.conf \
513 test_transport_api_unix_peer2.conf \
514 test_transport_api_udp_nat_peer1.conf \
515 test_transport_api_udp_nat_peer2.conf \
516 test_transport_api_tcp_nat_peer1.conf \
517 test_transport_api_tcp_nat_peer2.conf \
518 test_plugin_transport_data.conf \
519 test_transport_api_http_peer1.conf \
520 test_transport_api_http_peer2.conf \
521 test_transport_api_https_peer1.conf \
522 test_transport_api_https_peer2.conf \
523 test_transport_api_wlan_peer1.conf \
524 test_transport_api_wlan_peer2.conf \
525 test_transport_api_multi_peer1.conf \
526 test_transport_api_multi_peer2.conf \
527 test_transport_api_rel_http_peer1.conf \
528 test_transport_api_rel_http_peer2.conf \
529 test_transport_api_rel_https_peer1.conf \
530 test_transport_api_rel_https_peer2.conf \
531 test_plugin_transport_data_http.conf \
532 test_plugin_transport_data.conf \
533 test_quota_compliance_data.conf \
534 test_quota_compliance_tcp_peer1.conf \
535 test_quota_compliance_tcp_peer2.conf \
536 test_quota_compliance_http_peer1.conf \
537 test_quota_compliance_http_peer2.conf \
538 test_quota_compliance_https_peer1.conf \
539 test_quota_compliance_https_peer2.conf \
540 test_quota_compliance_udp_peer1.conf \
541 test_quota_compliance_udp_peer2.conf \
542 test_quota_compliance_unix_peer1.conf \
543 test_quota_compliance_unix_peer2.conf