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
206 test_transport_api_tcp \
207 test_transport_api_tcp_nat \
208 test_transport_api_udp \
209 $(UNIX_PLUGIN_TEST) \
210 test_transport_api_udp_nat \
211 $(HTTP_PLUGIN_TEST) \
213 $(HTTPS_PLUGIN_TEST) \
217 test_transport_api_multi \
218 test_transport_api_reliability_tcp \
219 test_transport_api_reliability_tcp_nat \
220 test_transport_api_unreliability_udp \
221 test_transport_api_unreliability_unix \
225 test_quota_compliance_tcp \
226 test_quota_compliance_tcp_asymmetric_recv_constant \
227 test_quota_compliance_udp \
228 test_quota_compliance_udp_asymmetric_recv_constant \
232 # TODO: add tests for nat, etc.
236 test_transport_api_tcp \
237 test_transport_api_tcp_nat \
238 test_transport_api_udp \
239 $(UNIX_PLUGIN_TEST) \
240 test_transport_api_udp_nat \
241 $(HTTP_PLUGIN_TEST) \
243 $(HTTPS_PLUGIN_TEST) \
246 test_transport_api_multi \
247 test_transport_api_reliability_tcp \
248 test_transport_api_reliability_tcp_nat \
249 test_transport_api_unreliability_udp \
250 test_transport_api_unreliability_unix \
253 test_quota_compliance_tcp \
254 test_quota_compliance_tcp_asymmetric_recv_constant \
255 test_quota_compliance_udp \
256 test_quota_compliance_udp_asymmetric_recv_constant \
262 test_transport_api_tcp_SOURCES = \
264 test_transport_api_tcp_LDADD = \
265 $(top_builddir)/src/transport/libgnunettransport.la \
266 $(top_builddir)/src/hello/libgnunethello.la \
267 $(top_builddir)/src/util/libgnunetutil.la
269 test_transport_api_tcp_nat_SOURCES = \
271 test_transport_api_tcp_nat_LDADD = \
272 $(top_builddir)/src/transport/libgnunettransport.la \
273 $(top_builddir)/src/hello/libgnunethello.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 test_transport_api_reliability_tcp_SOURCES = \
277 test_transport_api_reliability.c
278 test_transport_api_reliability_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_reliability_tcp_nat_SOURCES = \
284 test_transport_api_reliability.c
285 test_transport_api_reliability_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_wlan_SOURCES = \
291 test_transport_api_reliability.c
292 test_transport_api_reliability_wlan_LDADD = \
293 $(top_builddir)/src/transport/libgnunettransport.la \
294 $(top_builddir)/src/hello/libgnunethello.la \
295 $(top_builddir)/src/util/libgnunetutil.la
298 test_transport_api_udp_SOURCES = \
300 test_transport_api_udp_LDADD = \
301 $(top_builddir)/src/transport/libgnunettransport.la \
302 $(top_builddir)/src/hello/libgnunethello.la \
303 $(top_builddir)/src/util/libgnunetutil.la
305 test_transport_api_udp_nat_SOURCES = \
307 test_transport_api_udp_nat_LDADD = \
308 $(top_builddir)/src/transport/libgnunettransport.la \
309 $(top_builddir)/src/hello/libgnunethello.la \
310 $(top_builddir)/src/util/libgnunetutil.la
312 test_transport_api_unix_SOURCES = \
314 test_transport_api_unix_LDADD = \
315 $(top_builddir)/src/transport/libgnunettransport.la \
316 $(top_builddir)/src/hello/libgnunethello.la \
317 $(top_builddir)/src/util/libgnunetutil.la
319 test_plugin_transport_http_SOURCES = \
320 test_plugin_transport_http.c
321 test_plugin_transport_http_LDADD = \
322 $(top_builddir)/src/transport/libgnunettransport.la \
323 $(top_builddir)/src/statistics/libgnunetstatistics.la \
325 $(top_builddir)/src/hello/libgnunethello.la \
326 $(top_builddir)/src/util/libgnunetutil.la
328 test_transport_api_http_SOURCES = \
330 test_transport_api_http_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_reliability_http_SOURCES = \
336 test_transport_api_reliability.c
337 test_transport_api_reliability_http_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_https_SOURCES = \
343 test_plugin_transport_https.c
344 test_plugin_transport_https_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_https_SOURCES = \
353 test_transport_api_https_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_https_SOURCES = \
359 test_transport_api_reliability.c
360 test_transport_api_reliability_https_LDADD = \
361 $(top_builddir)/src/transport/libgnunettransport.la \
362 $(top_builddir)/src/hello/libgnunethello.la \
363 $(top_builddir)/src/util/libgnunetutil.la
365 test_transport_api_unreliability_unix_SOURCES = \
366 test_transport_api_unreliability.c
367 test_transport_api_unreliability_unix_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_unreliability_udp_SOURCES = \
373 test_transport_api_unreliability.c
374 test_transport_api_unreliability_udp_LDADD = \
375 $(top_builddir)/src/transport/libgnunettransport.la \
376 $(top_builddir)/src/hello/libgnunethello.la \
377 $(top_builddir)/src/util/libgnunetutil.la
381 test_transport_api_wlan_SOURCES = \
383 test_transport_api_wlan_LDADD = \
384 $(top_builddir)/src/transport/libgnunettransport.la \
385 $(top_builddir)/src/hello/libgnunethello.la \
386 $(top_builddir)/src/util/libgnunetutil.la
390 test_quota_compliance_tcp_SOURCES = \
391 test_quota_compliance.c
392 test_quota_compliance_tcp_LDADD = \
393 $(top_builddir)/src/transport/libgnunettransport.la \
394 $(top_builddir)/src/hello/libgnunethello.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
398 test_quota_compliance.c
399 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
400 $(top_builddir)/src/transport/libgnunettransport.la \
401 $(top_builddir)/src/hello/libgnunethello.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
405 # test_quota_compliance.c
406 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
407 # $(top_builddir)/src/transport/libgnunettransport.la \
408 # $(top_builddir)/src/util/libgnunetutil.la
410 test_quota_compliance_http_SOURCES = \
411 test_quota_compliance.c
412 test_quota_compliance_http_LDADD = \
413 $(top_builddir)/src/transport/libgnunettransport.la \
414 $(top_builddir)/src/hello/libgnunethello.la \
415 $(top_builddir)/src/util/libgnunetutil.la
417 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
418 test_quota_compliance.c
419 test_quota_compliance_http_asymmetric_recv_constant_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_http_asymmetric_send_constant_SOURCES = \
425 # test_quota_compliance.c
426 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
427 # $(top_builddir)/src/transport/libgnunettransport.la \
428 # $(top_builddir)/src/util/libgnunetutil.la
430 test_quota_compliance_https_SOURCES = \
431 test_quota_compliance.c
432 test_quota_compliance_https_LDADD = \
433 $(top_builddir)/src/transport/libgnunettransport.la \
434 $(top_builddir)/src/hello/libgnunethello.la \
435 $(top_builddir)/src/util/libgnunetutil.la
437 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
438 test_quota_compliance.c
439 test_quota_compliance_https_asymmetric_recv_constant_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_https_asymmetric_send_constant_SOURCES = \
445 # test_quota_compliance.c
446 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
447 # $(top_builddir)/src/transport/libgnunettransport.la \
448 # $(top_builddir)/src/util/libgnunetutil.la
450 test_quota_compliance_udp_SOURCES = \
451 test_quota_compliance.c
452 test_quota_compliance_udp_LDADD = \
453 $(top_builddir)/src/transport/libgnunettransport.la \
454 $(top_builddir)/src/hello/libgnunethello.la \
455 $(top_builddir)/src/util/libgnunetutil.la
457 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
458 test_quota_compliance.c
459 test_quota_compliance_udp_asymmetric_recv_constant_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_udp_asymmetric_send_constant_SOURCES = \
465 # test_quota_compliance.c
466 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
467 # $(top_builddir)/src/transport/libgnunettransport.la \
468 # $(top_builddir)/src/util/libgnunetutil.la
470 test_quota_compliance_unix_SOURCES = \
471 test_quota_compliance.c
472 test_quota_compliance_unix_LDADD = \
473 $(top_builddir)/src/transport/libgnunettransport.la \
474 $(top_builddir)/src/hello/libgnunethello.la \
475 $(top_builddir)/src/util/libgnunetutil.la
477 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
478 test_quota_compliance.c
479 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
480 $(top_builddir)/src/transport/libgnunettransport.la \
481 $(top_builddir)/src/hello/libgnunethello.la \
482 $(top_builddir)/src/util/libgnunetutil.la
485 test_transport_api_multi_SOURCES = \
487 test_transport_api_multi_LDADD = \
488 $(top_builddir)/src/transport/libgnunettransport.la \
489 $(top_builddir)/src/hello/libgnunethello.la \
490 $(top_builddir)/src/util/libgnunetutil.la
492 gnunet-transport-certificate-creation \
493 test_transport_api_data.conf \
494 test_transport_api_tcp_peer1.conf \
495 test_transport_api_tcp_peer2.conf \
496 test_transport_api_udp_peer1.conf \
497 test_transport_api_udp_peer2.conf \
498 test_transport_api_unix_peer1.conf \
499 test_transport_api_unix_peer2.conf \
500 test_transport_api_udp_nat_peer1.conf \
501 test_transport_api_udp_nat_peer2.conf \
502 test_transport_api_tcp_nat_peer1.conf \
503 test_transport_api_tcp_nat_peer2.conf \
504 test_plugin_transport_data.conf \
505 test_transport_api_http_peer1.conf \
506 test_transport_api_http_peer2.conf \
507 test_transport_api_https_peer1.conf \
508 test_transport_api_https_peer2.conf \
509 test_transport_api_wlan_peer1.conf \
510 test_transport_api_wlan_peer2.conf \
511 test_transport_api_multi_peer1.conf \
512 test_transport_api_multi_peer2.conf \
513 test_transport_api_rel_http_peer1.conf \
514 test_transport_api_rel_http_peer2.conf \
515 test_transport_api_rel_https_peer1.conf \
516 test_transport_api_rel_https_peer2.conf \
517 test_plugin_transport_data_http.conf \
518 test_plugin_transport_data.conf \
519 test_quota_compliance_data.conf \
520 test_quota_compliance_tcp_peer1.conf \
521 test_quota_compliance_tcp_peer2.conf \
522 test_quota_compliance_http_peer1.conf \
523 test_quota_compliance_http_peer2.conf \
524 test_quota_compliance_https_peer1.conf \
525 test_quota_compliance_https_peer2.conf \
526 test_quota_compliance_udp_peer1.conf \
527 test_quota_compliance_udp_peer2.conf \
528 test_quota_compliance_unix_peer1.conf \
529 test_quota_compliance_unix_peer2.conf