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
38 WANBIN = gnunet-transport-wlan-helper
39 WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
40 WLAN_API_TEST = test_transport_api_wlan
41 WLAN_REL_TEST = test_transport_api_reliability_wlan
47 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
48 UNIX_PLUGIN_TEST = test_transport_api_unix
49 UNIX_REL_TEST = test_transport_api_unreliability_unix
50 UNIX_QUOTA_TEST = test_quota_compliance_unix \
51 test_quota_compliance_unix_asymmetric_recv_constant
52 NATBIN = gnunet-nat-server gnunet-nat-client
54 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
55 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
60 #noinst_PROGRAMS = ${check_PROGRAMS}
65 libgnunettransport_la_SOURCES = \
66 transport_api.c transport.h \
67 transport_api_blacklist.c \
68 transport_api_address_lookup.c
69 libgnunettransport_la_LIBADD = \
70 $(top_builddir)/src/hello/libgnunethello.la \
71 $(top_builddir)/src/util/libgnunetutil.la \
73 libgnunettransport_la_LDFLAGS = \
74 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
81 gnunet-service-transport $(NATBIN)
84 gnunet-transport-certificate-creation
86 gnunet_nat_server_SOURCES = \
90 gnunet_transport_wlan_helper_SOURCES = \
91 gnunet-transport-wlan-helper.c
92 gnunet_transport_wlan_helper_LDADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
96 gnunet_nat_client_SOURCES = \
99 gnunet_transport_SOURCES = \
101 gnunet_transport_LDADD = \
102 $(top_builddir)/src/transport/libgnunettransport.la \
103 $(top_builddir)/src/util/libgnunetutil.la \
105 gnunet_transport_DEPENDENCIES = \
106 libgnunettransport.la
108 gnunet_service_transport_SOURCES = \
109 gnunet-service-transport.c
110 gnunet_service_transport_LDADD = \
111 $(top_builddir)/src/hello/libgnunethello.la \
112 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
113 $(top_builddir)/src/statistics/libgnunetstatistics.la \
114 $(top_builddir)/src/util/libgnunetutil.la \
116 gnunet_service_transport_DEPENDENCIES = \
117 libgnunettransport.la
120 plugin_LTLIBRARIES = \
121 libgnunet_plugin_transport_tcp.la \
122 libgnunet_plugin_transport_udp.la \
127 libgnunet_plugin_transport_template.la
128 # TODO: add nat, etc.
130 libgnunet_plugin_transport_tcp_la_SOURCES = \
131 plugin_transport_tcp.c
132 libgnunet_plugin_transport_tcp_la_LIBADD = \
133 $(top_builddir)/src/hello/libgnunethello.la \
134 $(top_builddir)/src/statistics/libgnunetstatistics.la \
135 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
136 $(top_builddir)/src/nat/libgnunetnat.la \
137 $(top_builddir)/src/util/libgnunetutil.la
138 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
141 libgnunet_plugin_transport_template_la_SOURCES = \
142 plugin_transport_template.c
143 libgnunet_plugin_transport_template_la_LIBADD = \
144 $(top_builddir)/src/util/libgnunetutil.la
145 libgnunet_plugin_transport_template_la_LDFLAGS = \
148 libgnunet_plugin_transport_wlan_la_SOURCES = \
149 plugin_transport_wlan.c
150 libgnunet_plugin_transport_wlan_la_LIBADD = \
151 $(top_builddir)/src/hello/libgnunethello.la \
152 $(top_builddir)/src/statistics/libgnunetstatistics.la \
153 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
154 $(top_builddir)/src/util/libgnunetutil.la
155 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
158 libgnunet_plugin_transport_udp_la_SOURCES = \
159 plugin_transport_udp.c
160 libgnunet_plugin_transport_udp_la_LIBADD = \
161 $(top_builddir)/src/hello/libgnunethello.la \
162 $(top_builddir)/src/statistics/libgnunetstatistics.la \
163 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
164 $(top_builddir)/src/util/libgnunetutil.la
165 libgnunet_plugin_transport_udp_la_LDFLAGS = \
168 libgnunet_plugin_transport_unix_la_SOURCES = \
169 plugin_transport_unix.c
170 libgnunet_plugin_transport_unix_la_LIBADD = \
171 $(top_builddir)/src/hello/libgnunethello.la \
172 $(top_builddir)/src/statistics/libgnunetstatistics.la \
173 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
174 $(top_builddir)/src/util/libgnunetutil.la
175 libgnunet_plugin_transport_unix_la_LDFLAGS = \
178 libgnunet_plugin_transport_http_la_SOURCES = \
179 plugin_transport_http.c
180 libgnunet_plugin_transport_http_la_LIBADD = \
181 $(top_builddir)/src/hello/libgnunethello.la \
182 $(top_builddir)/src/statistics/libgnunetstatistics.la \
183 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
185 $(top_builddir)/src/util/libgnunetutil.la
186 libgnunet_plugin_transport_http_la_LDFLAGS = \
190 libgnunet_plugin_transport_https_la_SOURCES = \
191 plugin_transport_http.c
192 libgnunet_plugin_transport_https_la_LIBADD = \
193 $(top_builddir)/src/hello/libgnunethello.la \
194 $(top_builddir)/src/statistics/libgnunetstatistics.la \
195 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
197 $(top_builddir)/src/util/libgnunetutil.la
198 libgnunet_plugin_transport_https_la_LDFLAGS = \
201 libgnunet_plugin_transport_https_la_CFLAGS = \
202 $(CFLAGS) -DBUILD_HTTPS
207 test_transport_api_tcp \
208 test_transport_api_tcp_nat \
209 test_transport_api_udp \
210 $(UNIX_PLUGIN_TEST) \
211 test_transport_api_udp_nat \
212 $(HTTP_PLUGIN_TEST) \
214 $(HTTPS_PLUGIN_TEST) \
218 test_transport_api_multi \
219 test_transport_api_reliability_tcp \
220 test_transport_api_reliability_tcp_nat \
221 test_transport_api_unreliability_udp \
222 test_transport_api_unreliability_unix \
226 test_quota_compliance_tcp \
227 test_quota_compliance_tcp_asymmetric_recv_constant \
228 test_quota_compliance_udp \
229 test_quota_compliance_udp_asymmetric_recv_constant \
233 # TODO: add tests for nat, etc.
238 test_transport_api_tcp \
239 test_transport_api_tcp_nat \
240 test_transport_api_udp \
241 $(UNIX_PLUGIN_TEST) \
242 test_transport_api_udp_nat \
243 $(HTTP_PLUGIN_TEST) \
245 $(HTTPS_PLUGIN_TEST) \
248 test_transport_api_multi \
249 test_transport_api_reliability_tcp \
250 test_transport_api_reliability_tcp_nat \
251 test_transport_api_unreliability_udp \
252 test_transport_api_unreliability_unix \
255 test_quota_compliance_tcp \
256 test_quota_compliance_tcp_asymmetric_recv_constant \
257 test_quota_compliance_udp \
258 test_quota_compliance_udp_asymmetric_recv_constant \
264 test_transport_ats_SOURCES = \
266 test_transport_ats_LDADD = \
267 $(top_builddir)/src/transport/libgnunettransport.la \
268 $(top_builddir)/src/hello/libgnunethello.la \
269 $(top_builddir)/src/util/libgnunetutil.la
271 test_transport_api_tcp_SOURCES = \
273 test_transport_api_tcp_LDADD = \
274 $(top_builddir)/src/transport/libgnunettransport.la \
275 $(top_builddir)/src/hello/libgnunethello.la \
276 $(top_builddir)/src/util/libgnunetutil.la
278 test_transport_api_tcp_nat_SOURCES = \
280 test_transport_api_tcp_nat_LDADD = \
281 $(top_builddir)/src/transport/libgnunettransport.la \
282 $(top_builddir)/src/hello/libgnunethello.la \
283 $(top_builddir)/src/util/libgnunetutil.la
285 test_transport_api_reliability_tcp_SOURCES = \
286 test_transport_api_reliability.c
287 test_transport_api_reliability_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_reliability_tcp_nat_SOURCES = \
293 test_transport_api_reliability.c
294 test_transport_api_reliability_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_wlan_SOURCES = \
300 test_transport_api_reliability.c
301 test_transport_api_reliability_wlan_LDADD = \
302 $(top_builddir)/src/transport/libgnunettransport.la \
303 $(top_builddir)/src/hello/libgnunethello.la \
304 $(top_builddir)/src/util/libgnunetutil.la
307 test_transport_api_udp_SOURCES = \
309 test_transport_api_udp_LDADD = \
310 $(top_builddir)/src/transport/libgnunettransport.la \
311 $(top_builddir)/src/hello/libgnunethello.la \
312 $(top_builddir)/src/util/libgnunetutil.la
314 test_transport_api_udp_nat_SOURCES = \
316 test_transport_api_udp_nat_LDADD = \
317 $(top_builddir)/src/transport/libgnunettransport.la \
318 $(top_builddir)/src/hello/libgnunethello.la \
319 $(top_builddir)/src/util/libgnunetutil.la
321 test_transport_api_unix_SOURCES = \
323 test_transport_api_unix_LDADD = \
324 $(top_builddir)/src/transport/libgnunettransport.la \
325 $(top_builddir)/src/hello/libgnunethello.la \
326 $(top_builddir)/src/util/libgnunetutil.la
328 test_plugin_transport_http_SOURCES = \
329 test_plugin_transport_http.c
330 test_plugin_transport_http_LDADD = \
331 $(top_builddir)/src/transport/libgnunettransport.la \
332 $(top_builddir)/src/statistics/libgnunetstatistics.la \
334 $(top_builddir)/src/hello/libgnunethello.la \
335 $(top_builddir)/src/util/libgnunetutil.la
337 test_transport_api_http_SOURCES = \
339 test_transport_api_http_LDADD = \
340 $(top_builddir)/src/transport/libgnunettransport.la \
341 $(top_builddir)/src/hello/libgnunethello.la \
342 $(top_builddir)/src/util/libgnunetutil.la
344 test_transport_api_reliability_http_SOURCES = \
345 test_transport_api_reliability.c
346 test_transport_api_reliability_http_LDADD = \
347 $(top_builddir)/src/transport/libgnunettransport.la \
348 $(top_builddir)/src/hello/libgnunethello.la \
349 $(top_builddir)/src/util/libgnunetutil.la
351 test_plugin_transport_https_SOURCES = \
352 test_plugin_transport_https.c
353 test_plugin_transport_https_LDADD = \
354 $(top_builddir)/src/transport/libgnunettransport.la \
355 $(top_builddir)/src/statistics/libgnunetstatistics.la \
357 $(top_builddir)/src/hello/libgnunethello.la \
358 $(top_builddir)/src/util/libgnunetutil.la
360 test_transport_api_https_SOURCES = \
362 test_transport_api_https_LDADD = \
363 $(top_builddir)/src/transport/libgnunettransport.la \
364 $(top_builddir)/src/hello/libgnunethello.la \
365 $(top_builddir)/src/util/libgnunetutil.la
367 test_transport_api_reliability_https_SOURCES = \
368 test_transport_api_reliability.c
369 test_transport_api_reliability_https_LDADD = \
370 $(top_builddir)/src/transport/libgnunettransport.la \
371 $(top_builddir)/src/hello/libgnunethello.la \
372 $(top_builddir)/src/util/libgnunetutil.la
374 test_transport_api_unreliability_unix_SOURCES = \
375 test_transport_api_unreliability.c
376 test_transport_api_unreliability_unix_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_unreliability_udp_SOURCES = \
382 test_transport_api_unreliability.c
383 test_transport_api_unreliability_udp_LDADD = \
384 $(top_builddir)/src/transport/libgnunettransport.la \
385 $(top_builddir)/src/hello/libgnunethello.la \
386 $(top_builddir)/src/util/libgnunetutil.la
390 test_transport_api_wlan_SOURCES = \
392 test_transport_api_wlan_LDADD = \
393 $(top_builddir)/src/transport/libgnunettransport.la \
394 $(top_builddir)/src/hello/libgnunethello.la \
395 $(top_builddir)/src/util/libgnunetutil.la
399 test_quota_compliance_tcp_SOURCES = \
400 test_quota_compliance.c
401 test_quota_compliance_tcp_LDADD = \
402 $(top_builddir)/src/transport/libgnunettransport.la \
403 $(top_builddir)/src/hello/libgnunethello.la \
404 $(top_builddir)/src/util/libgnunetutil.la
406 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
407 test_quota_compliance.c
408 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
409 $(top_builddir)/src/transport/libgnunettransport.la \
410 $(top_builddir)/src/hello/libgnunethello.la \
411 $(top_builddir)/src/util/libgnunetutil.la
413 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
414 # test_quota_compliance.c
415 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
416 # $(top_builddir)/src/transport/libgnunettransport.la \
417 # $(top_builddir)/src/util/libgnunetutil.la
419 test_quota_compliance_http_SOURCES = \
420 test_quota_compliance.c
421 test_quota_compliance_http_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_http_asymmetric_recv_constant_SOURCES = \
427 test_quota_compliance.c
428 test_quota_compliance_http_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_http_asymmetric_send_constant_SOURCES = \
434 # test_quota_compliance.c
435 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
436 # $(top_builddir)/src/transport/libgnunettransport.la \
437 # $(top_builddir)/src/util/libgnunetutil.la
439 test_quota_compliance_https_SOURCES = \
440 test_quota_compliance.c
441 test_quota_compliance_https_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_https_asymmetric_recv_constant_SOURCES = \
447 test_quota_compliance.c
448 test_quota_compliance_https_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_https_asymmetric_send_constant_SOURCES = \
454 # test_quota_compliance.c
455 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
456 # $(top_builddir)/src/transport/libgnunettransport.la \
457 # $(top_builddir)/src/util/libgnunetutil.la
459 test_quota_compliance_udp_SOURCES = \
460 test_quota_compliance.c
461 test_quota_compliance_udp_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_udp_asymmetric_recv_constant_SOURCES = \
467 test_quota_compliance.c
468 test_quota_compliance_udp_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_udp_asymmetric_send_constant_SOURCES = \
474 # test_quota_compliance.c
475 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
476 # $(top_builddir)/src/transport/libgnunettransport.la \
477 # $(top_builddir)/src/util/libgnunetutil.la
479 test_quota_compliance_unix_SOURCES = \
480 test_quota_compliance.c
481 test_quota_compliance_unix_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_unix_asymmetric_recv_constant_SOURCES = \
487 test_quota_compliance.c
488 test_quota_compliance_unix_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
494 test_transport_api_multi_SOURCES = \
496 test_transport_api_multi_LDADD = \
497 $(top_builddir)/src/transport/libgnunettransport.la \
498 $(top_builddir)/src/hello/libgnunethello.la \
499 $(top_builddir)/src/util/libgnunetutil.la
501 gnunet-transport-certificate-creation \
502 test_transport_api_data.conf \
503 test_transport_api_tcp_peer1.conf \
504 test_transport_api_tcp_peer2.conf \
505 test_transport_api_udp_peer1.conf \
506 test_transport_api_udp_peer2.conf \
507 test_transport_api_unix_peer1.conf \
508 test_transport_api_unix_peer2.conf \
509 test_transport_api_udp_nat_peer1.conf \
510 test_transport_api_udp_nat_peer2.conf \
511 test_transport_api_tcp_nat_peer1.conf \
512 test_transport_api_tcp_nat_peer2.conf \
513 test_plugin_transport_data.conf \
514 test_transport_api_http_peer1.conf \
515 test_transport_api_http_peer2.conf \
516 test_transport_api_https_peer1.conf \
517 test_transport_api_https_peer2.conf \
518 test_transport_api_wlan_peer1.conf \
519 test_transport_api_wlan_peer2.conf \
520 test_transport_api_multi_peer1.conf \
521 test_transport_api_multi_peer2.conf \
522 test_transport_api_rel_http_peer1.conf \
523 test_transport_api_rel_http_peer2.conf \
524 test_transport_api_rel_https_peer1.conf \
525 test_transport_api_rel_https_peer2.conf \
526 test_plugin_transport_data_http.conf \
527 test_plugin_transport_data.conf \
528 test_quota_compliance_data.conf \
529 test_quota_compliance_tcp_peer1.conf \
530 test_quota_compliance_tcp_peer2.conf \
531 test_quota_compliance_http_peer1.conf \
532 test_quota_compliance_http_peer2.conf \
533 test_quota_compliance_https_peer1.conf \
534 test_quota_compliance_https_peer2.conf \
535 test_quota_compliance_udp_peer1.conf \
536 test_quota_compliance_udp_peer2.conf \
537 test_quota_compliance_unix_peer1.conf \
538 test_quota_compliance_unix_peer2.conf