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
46 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
47 UNIX_PLUGIN_TEST = test_transport_api_unix
48 UNIX_REL_TEST = test_transport_api_unreliability_unix
49 UNIX_QUOTA_TEST = test_quota_compliance_unix \
50 test_quota_compliance_unix_asymmetric_recv_constant
51 NATBIN = gnunet-nat-server gnunet-nat-client
53 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
54 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
59 #noinst_PROGRAMS = ${check_PROGRAMS}
64 libgnunettransport_la_SOURCES = \
65 transport_api.c transport.h \
66 transport_api_blacklist.c \
67 transport_api_address_lookup.c
68 libgnunettransport_la_LIBADD = \
69 $(top_builddir)/src/hello/libgnunethello.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
72 libgnunettransport_la_LDFLAGS = \
73 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
80 gnunet-service-transport $(NATBIN)
83 gnunet-transport-certificate-creation
85 gnunet_nat_server_SOURCES = \
89 gnunet_transport_wlan_helper_SOURCES = \
90 gnunet-transport-wlan-helper.c
91 gnunet_transport_wlan_helper_LDADD = \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_nat_client_SOURCES = \
98 gnunet_transport_SOURCES = \
100 gnunet_transport_LDADD = \
101 $(top_builddir)/src/transport/libgnunettransport.la \
102 $(top_builddir)/src/util/libgnunetutil.la \
104 gnunet_transport_DEPENDENCIES = \
105 libgnunettransport.la
107 gnunet_service_transport_SOURCES = \
108 gnunet-service-transport.c
109 gnunet_service_transport_LDADD = \
110 $(top_builddir)/src/hello/libgnunethello.la \
111 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
112 $(top_builddir)/src/statistics/libgnunetstatistics.la \
113 $(top_builddir)/src/util/libgnunetutil.la \
115 gnunet_service_transport_DEPENDENCIES = \
116 libgnunettransport.la
119 plugin_LTLIBRARIES = \
120 libgnunet_plugin_transport_tcp.la \
121 libgnunet_plugin_transport_udp.la \
126 libgnunet_plugin_transport_template.la
127 # TODO: add nat, etc.
129 libgnunet_plugin_transport_tcp_la_SOURCES = \
130 plugin_transport_tcp.c
131 libgnunet_plugin_transport_tcp_la_LIBADD = \
132 $(top_builddir)/src/hello/libgnunethello.la \
133 $(top_builddir)/src/statistics/libgnunetstatistics.la \
134 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
135 $(top_builddir)/src/nat/libgnunetnat.la \
136 $(top_builddir)/src/util/libgnunetutil.la
137 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
140 libgnunet_plugin_transport_template_la_SOURCES = \
141 plugin_transport_template.c
142 libgnunet_plugin_transport_template_la_LIBADD = \
143 $(top_builddir)/src/util/libgnunetutil.la
144 libgnunet_plugin_transport_template_la_LDFLAGS = \
147 libgnunet_plugin_transport_wlan_la_SOURCES = \
148 plugin_transport_wlan.c
149 libgnunet_plugin_transport_wlan_la_LIBADD = \
150 $(top_builddir)/src/hello/libgnunethello.la \
151 $(top_builddir)/src/statistics/libgnunetstatistics.la \
152 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
153 $(top_builddir)/src/util/libgnunetutil.la
154 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
157 libgnunet_plugin_transport_udp_la_SOURCES = \
158 plugin_transport_udp.c
159 libgnunet_plugin_transport_udp_la_LIBADD = \
160 $(top_builddir)/src/hello/libgnunethello.la \
161 $(top_builddir)/src/statistics/libgnunetstatistics.la \
162 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
163 $(top_builddir)/src/util/libgnunetutil.la
164 libgnunet_plugin_transport_udp_la_LDFLAGS = \
167 libgnunet_plugin_transport_unix_la_SOURCES = \
168 plugin_transport_unix.c
169 libgnunet_plugin_transport_unix_la_LIBADD = \
170 $(top_builddir)/src/hello/libgnunethello.la \
171 $(top_builddir)/src/statistics/libgnunetstatistics.la \
172 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
173 $(top_builddir)/src/util/libgnunetutil.la
174 libgnunet_plugin_transport_unix_la_LDFLAGS = \
177 libgnunet_plugin_transport_http_la_SOURCES = \
178 plugin_transport_http.c
179 libgnunet_plugin_transport_http_la_LIBADD = \
180 $(top_builddir)/src/hello/libgnunethello.la \
181 $(top_builddir)/src/statistics/libgnunetstatistics.la \
182 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
184 $(top_builddir)/src/util/libgnunetutil.la
185 libgnunet_plugin_transport_http_la_LDFLAGS = \
189 libgnunet_plugin_transport_https_la_SOURCES = \
190 plugin_transport_http.c
191 libgnunet_plugin_transport_https_la_LIBADD = \
192 $(top_builddir)/src/hello/libgnunethello.la \
193 $(top_builddir)/src/statistics/libgnunetstatistics.la \
194 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
196 $(top_builddir)/src/util/libgnunetutil.la
197 libgnunet_plugin_transport_https_la_LDFLAGS = \
200 libgnunet_plugin_transport_https_la_CFLAGS = \
201 $(CFLAGS) -DBUILD_HTTPS
205 test_transport_api_tcp \
206 test_transport_api_tcp_nat \
207 test_transport_api_udp \
208 $(UNIX_PLUGIN_TEST) \
209 test_transport_api_udp_nat \
210 $(HTTP_PLUGIN_TEST) \
212 $(HTTPS_PLUGIN_TEST) \
215 test_transport_api_multi \
216 test_transport_api_reliability_tcp \
217 test_transport_api_reliability_tcp_nat \
218 test_transport_api_unreliability_udp \
219 test_transport_api_unreliability_unix \
223 test_quota_compliance_tcp \
224 test_quota_compliance_tcp_asymmetric_recv_constant \
225 test_quota_compliance_udp \
226 test_quota_compliance_udp_asymmetric_recv_constant \
230 # TODO: add tests for nat, etc.
234 test_transport_api_tcp \
235 test_transport_api_tcp_nat \
236 test_transport_api_udp \
237 $(UNIX_PLUGIN_TEST) \
238 test_transport_api_udp_nat \
239 $(HTTP_PLUGIN_TEST) \
241 $(HTTPS_PLUGIN_TEST) \
244 test_transport_api_multi \
245 test_transport_api_reliability_tcp \
246 test_transport_api_reliability_tcp_nat \
247 test_transport_api_unreliability_udp \
248 test_transport_api_unreliability_unix \
251 test_quota_compliance_tcp \
252 test_quota_compliance_tcp_asymmetric_recv_constant \
253 test_quota_compliance_udp \
254 test_quota_compliance_udp_asymmetric_recv_constant \
260 test_transport_api_tcp_SOURCES = \
262 test_transport_api_tcp_LDADD = \
263 $(top_builddir)/src/transport/libgnunettransport.la \
264 $(top_builddir)/src/hello/libgnunethello.la \
265 $(top_builddir)/src/util/libgnunetutil.la
267 test_transport_api_tcp_nat_SOURCES = \
269 test_transport_api_tcp_nat_LDADD = \
270 $(top_builddir)/src/transport/libgnunettransport.la \
271 $(top_builddir)/src/hello/libgnunethello.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 test_transport_api_reliability_tcp_SOURCES = \
275 test_transport_api_reliability.c
276 test_transport_api_reliability_tcp_LDADD = \
277 $(top_builddir)/src/transport/libgnunettransport.la \
278 $(top_builddir)/src/hello/libgnunethello.la \
279 $(top_builddir)/src/util/libgnunetutil.la
281 test_transport_api_reliability_tcp_nat_SOURCES = \
282 test_transport_api_reliability.c
283 test_transport_api_reliability_tcp_nat_LDADD = \
284 $(top_builddir)/src/transport/libgnunettransport.la \
285 $(top_builddir)/src/hello/libgnunethello.la \
286 $(top_builddir)/src/util/libgnunetutil.la
288 test_transport_api_udp_SOURCES = \
290 test_transport_api_udp_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_udp_nat_SOURCES = \
297 test_transport_api_udp_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_unix_SOURCES = \
304 test_transport_api_unix_LDADD = \
305 $(top_builddir)/src/transport/libgnunettransport.la \
306 $(top_builddir)/src/hello/libgnunethello.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_plugin_transport_http_SOURCES = \
310 test_plugin_transport_http.c
311 test_plugin_transport_http_LDADD = \
312 $(top_builddir)/src/transport/libgnunettransport.la \
313 $(top_builddir)/src/statistics/libgnunetstatistics.la \
315 $(top_builddir)/src/hello/libgnunethello.la \
316 $(top_builddir)/src/util/libgnunetutil.la
318 test_transport_api_http_SOURCES = \
320 test_transport_api_http_LDADD = \
321 $(top_builddir)/src/transport/libgnunettransport.la \
322 $(top_builddir)/src/hello/libgnunethello.la \
323 $(top_builddir)/src/util/libgnunetutil.la
325 test_transport_api_reliability_http_SOURCES = \
326 test_transport_api_reliability.c
327 test_transport_api_reliability_http_LDADD = \
328 $(top_builddir)/src/transport/libgnunettransport.la \
329 $(top_builddir)/src/hello/libgnunethello.la \
330 $(top_builddir)/src/util/libgnunetutil.la
332 test_plugin_transport_https_SOURCES = \
333 test_plugin_transport_https.c
334 test_plugin_transport_https_LDADD = \
335 $(top_builddir)/src/transport/libgnunettransport.la \
336 $(top_builddir)/src/statistics/libgnunetstatistics.la \
338 $(top_builddir)/src/hello/libgnunethello.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 test_transport_api_https_SOURCES = \
343 test_transport_api_https_LDADD = \
344 $(top_builddir)/src/transport/libgnunettransport.la \
345 $(top_builddir)/src/hello/libgnunethello.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 test_transport_api_reliability_https_SOURCES = \
349 test_transport_api_reliability.c
350 test_transport_api_reliability_https_LDADD = \
351 $(top_builddir)/src/transport/libgnunettransport.la \
352 $(top_builddir)/src/hello/libgnunethello.la \
353 $(top_builddir)/src/util/libgnunetutil.la
355 test_transport_api_unreliability_unix_SOURCES = \
356 test_transport_api_unreliability.c
357 test_transport_api_unreliability_unix_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_unreliability_udp_SOURCES = \
363 test_transport_api_unreliability.c
364 test_transport_api_unreliability_udp_LDADD = \
365 $(top_builddir)/src/transport/libgnunettransport.la \
366 $(top_builddir)/src/hello/libgnunethello.la \
367 $(top_builddir)/src/util/libgnunetutil.la
371 test_transport_api_wlan_SOURCES = \
373 test_transport_api_wlan_LDADD = \
374 $(top_builddir)/src/transport/libgnunettransport.la \
375 $(top_builddir)/src/hello/libgnunethello.la \
376 $(top_builddir)/src/util/libgnunetutil.la
380 test_quota_compliance_tcp_SOURCES = \
381 test_quota_compliance.c
382 test_quota_compliance_tcp_LDADD = \
383 $(top_builddir)/src/transport/libgnunettransport.la \
384 $(top_builddir)/src/hello/libgnunethello.la \
385 $(top_builddir)/src/util/libgnunetutil.la
387 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
388 test_quota_compliance.c
389 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
390 $(top_builddir)/src/transport/libgnunettransport.la \
391 $(top_builddir)/src/hello/libgnunethello.la \
392 $(top_builddir)/src/util/libgnunetutil.la
394 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
395 # test_quota_compliance.c
396 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
397 # $(top_builddir)/src/transport/libgnunettransport.la \
398 # $(top_builddir)/src/util/libgnunetutil.la
400 test_quota_compliance_http_SOURCES = \
401 test_quota_compliance.c
402 test_quota_compliance_http_LDADD = \
403 $(top_builddir)/src/transport/libgnunettransport.la \
404 $(top_builddir)/src/hello/libgnunethello.la \
405 $(top_builddir)/src/util/libgnunetutil.la
407 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
408 test_quota_compliance.c
409 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
410 $(top_builddir)/src/transport/libgnunettransport.la \
411 $(top_builddir)/src/hello/libgnunethello.la \
412 $(top_builddir)/src/util/libgnunetutil.la
414 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
415 # test_quota_compliance.c
416 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
417 # $(top_builddir)/src/transport/libgnunettransport.la \
418 # $(top_builddir)/src/util/libgnunetutil.la
420 test_quota_compliance_https_SOURCES = \
421 test_quota_compliance.c
422 test_quota_compliance_https_LDADD = \
423 $(top_builddir)/src/transport/libgnunettransport.la \
424 $(top_builddir)/src/hello/libgnunethello.la \
425 $(top_builddir)/src/util/libgnunetutil.la
427 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
428 test_quota_compliance.c
429 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
430 $(top_builddir)/src/transport/libgnunettransport.la \
431 $(top_builddir)/src/hello/libgnunethello.la \
432 $(top_builddir)/src/util/libgnunetutil.la
434 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
435 # test_quota_compliance.c
436 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
437 # $(top_builddir)/src/transport/libgnunettransport.la \
438 # $(top_builddir)/src/util/libgnunetutil.la
440 test_quota_compliance_udp_SOURCES = \
441 test_quota_compliance.c
442 test_quota_compliance_udp_LDADD = \
443 $(top_builddir)/src/transport/libgnunettransport.la \
444 $(top_builddir)/src/hello/libgnunethello.la \
445 $(top_builddir)/src/util/libgnunetutil.la
447 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
448 test_quota_compliance.c
449 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
450 $(top_builddir)/src/transport/libgnunettransport.la \
451 $(top_builddir)/src/hello/libgnunethello.la \
452 $(top_builddir)/src/util/libgnunetutil.la
454 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
455 # test_quota_compliance.c
456 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
457 # $(top_builddir)/src/transport/libgnunettransport.la \
458 # $(top_builddir)/src/util/libgnunetutil.la
460 test_quota_compliance_unix_SOURCES = \
461 test_quota_compliance.c
462 test_quota_compliance_unix_LDADD = \
463 $(top_builddir)/src/transport/libgnunettransport.la \
464 $(top_builddir)/src/hello/libgnunethello.la \
465 $(top_builddir)/src/util/libgnunetutil.la
467 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
468 test_quota_compliance.c
469 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
470 $(top_builddir)/src/transport/libgnunettransport.la \
471 $(top_builddir)/src/hello/libgnunethello.la \
472 $(top_builddir)/src/util/libgnunetutil.la
475 test_transport_api_multi_SOURCES = \
477 test_transport_api_multi_LDADD = \
478 $(top_builddir)/src/transport/libgnunettransport.la \
479 $(top_builddir)/src/hello/libgnunethello.la \
480 $(top_builddir)/src/util/libgnunetutil.la
482 gnunet-transport-certificate-creation \
483 test_transport_api_data.conf \
484 test_transport_api_tcp_peer1.conf \
485 test_transport_api_tcp_peer2.conf \
486 test_transport_api_udp_peer1.conf \
487 test_transport_api_udp_peer2.conf \
488 test_transport_api_unix_peer1.conf \
489 test_transport_api_unix_peer2.conf \
490 test_transport_api_udp_nat_peer1.conf \
491 test_transport_api_udp_nat_peer2.conf \
492 test_transport_api_tcp_nat_peer1.conf \
493 test_transport_api_tcp_nat_peer2.conf \
494 test_plugin_transport_data.conf \
495 test_transport_api_http_peer1.conf \
496 test_transport_api_http_peer2.conf \
497 test_transport_api_https_peer1.conf \
498 test_transport_api_https_peer2.conf \
499 test_transport_api_wlan_peer1.conf \
500 test_transport_api_wlan_peer2.conf \
501 test_transport_api_multi_peer1.conf \
502 test_transport_api_multi_peer2.conf \
503 test_transport_api_rel_http_peer1.conf \
504 test_transport_api_rel_http_peer2.conf \
505 test_transport_api_rel_https_peer1.conf \
506 test_transport_api_rel_https_peer2.conf \
507 test_plugin_transport_data_http.conf \
508 test_plugin_transport_data.conf \
509 test_quota_compliance_data.conf \
510 test_quota_compliance_tcp_peer1.conf \
511 test_quota_compliance_tcp_peer2.conf \
512 test_quota_compliance_http_peer1.conf \
513 test_quota_compliance_http_peer2.conf \
514 test_quota_compliance_https_peer1.conf \
515 test_quota_compliance_https_peer2.conf \
516 test_quota_compliance_udp_peer1.conf \
517 test_quota_compliance_udp_peer2.conf \
518 test_quota_compliance_unix_peer1.conf \
519 test_quota_compliance_unix_peer2.conf