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/util/libgnunetutil.la
266 test_transport_api_tcp_nat_SOURCES = \
268 test_transport_api_tcp_nat_LDADD = \
269 $(top_builddir)/src/transport/libgnunettransport.la \
270 $(top_builddir)/src/util/libgnunetutil.la
272 test_transport_api_reliability_tcp_SOURCES = \
273 test_transport_api_reliability.c
274 test_transport_api_reliability_tcp_LDADD = \
275 $(top_builddir)/src/transport/libgnunettransport.la \
276 $(top_builddir)/src/util/libgnunetutil.la
278 test_transport_api_reliability_tcp_nat_SOURCES = \
279 test_transport_api_reliability.c
280 test_transport_api_reliability_tcp_nat_LDADD = \
281 $(top_builddir)/src/transport/libgnunettransport.la \
282 $(top_builddir)/src/util/libgnunetutil.la
284 test_transport_api_udp_SOURCES = \
286 test_transport_api_udp_LDADD = \
287 $(top_builddir)/src/transport/libgnunettransport.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_transport_api_udp_nat_SOURCES = \
292 test_transport_api_udp_nat_LDADD = \
293 $(top_builddir)/src/transport/libgnunettransport.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_transport_api_unix_SOURCES = \
298 test_transport_api_unix_LDADD = \
299 $(top_builddir)/src/transport/libgnunettransport.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_plugin_transport_http_SOURCES = \
303 test_plugin_transport_http.c
304 test_plugin_transport_http_LDADD = \
305 $(top_builddir)/src/transport/libgnunettransport.la \
306 $(top_builddir)/src/statistics/libgnunetstatistics.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 test_transport_api_http_SOURCES = \
312 test_transport_api_http_LDADD = \
313 $(top_builddir)/src/transport/libgnunettransport.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_transport_api_reliability_http_SOURCES = \
317 test_transport_api_reliability.c
318 test_transport_api_reliability_http_LDADD = \
319 $(top_builddir)/src/transport/libgnunettransport.la \
320 $(top_builddir)/src/util/libgnunetutil.la
322 test_plugin_transport_https_SOURCES = \
323 test_plugin_transport_https.c
324 test_plugin_transport_https_LDADD = \
325 $(top_builddir)/src/transport/libgnunettransport.la \
326 $(top_builddir)/src/statistics/libgnunetstatistics.la \
328 $(top_builddir)/src/util/libgnunetutil.la
330 test_transport_api_https_SOURCES = \
332 test_transport_api_https_LDADD = \
333 $(top_builddir)/src/transport/libgnunettransport.la \
334 $(top_builddir)/src/util/libgnunetutil.la
336 test_transport_api_reliability_https_SOURCES = \
337 test_transport_api_reliability.c
338 test_transport_api_reliability_https_LDADD = \
339 $(top_builddir)/src/transport/libgnunettransport.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_transport_api_unreliability_unix_SOURCES = \
343 test_transport_api_unreliability.c
344 test_transport_api_unreliability_unix_LDADD = \
345 $(top_builddir)/src/transport/libgnunettransport.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 test_transport_api_unreliability_udp_SOURCES = \
349 test_transport_api_unreliability.c
350 test_transport_api_unreliability_udp_LDADD = \
351 $(top_builddir)/src/transport/libgnunettransport.la \
352 $(top_builddir)/src/util/libgnunetutil.la
356 test_transport_api_wlan_SOURCES = \
358 test_transport_api_wlan_LDADD = \
359 $(top_builddir)/src/transport/libgnunettransport.la \
360 $(top_builddir)/src/util/libgnunetutil.la
364 test_quota_compliance_tcp_SOURCES = \
365 test_quota_compliance.c
366 test_quota_compliance_tcp_LDADD = \
367 $(top_builddir)/src/transport/libgnunettransport.la \
368 $(top_builddir)/src/util/libgnunetutil.la
370 test_quota_compliance_tcp_asymmetric_recv_constant_SOURCES = \
371 test_quota_compliance.c
372 test_quota_compliance_tcp_asymmetric_recv_constant_LDADD = \
373 $(top_builddir)/src/transport/libgnunettransport.la \
374 $(top_builddir)/src/util/libgnunetutil.la
376 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
377 # test_quota_compliance.c
378 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
379 # $(top_builddir)/src/transport/libgnunettransport.la \
380 # $(top_builddir)/src/util/libgnunetutil.la
382 test_quota_compliance_http_SOURCES = \
383 test_quota_compliance.c
384 test_quota_compliance_http_LDADD = \
385 $(top_builddir)/src/transport/libgnunettransport.la \
386 $(top_builddir)/src/util/libgnunetutil.la
388 test_quota_compliance_http_asymmetric_recv_constant_SOURCES = \
389 test_quota_compliance.c
390 test_quota_compliance_http_asymmetric_recv_constant_LDADD = \
391 $(top_builddir)/src/transport/libgnunettransport.la \
392 $(top_builddir)/src/util/libgnunetutil.la
394 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
395 # test_quota_compliance.c
396 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
397 # $(top_builddir)/src/transport/libgnunettransport.la \
398 # $(top_builddir)/src/util/libgnunetutil.la
400 test_quota_compliance_https_SOURCES = \
401 test_quota_compliance.c
402 test_quota_compliance_https_LDADD = \
403 $(top_builddir)/src/transport/libgnunettransport.la \
404 $(top_builddir)/src/util/libgnunetutil.la
406 test_quota_compliance_https_asymmetric_recv_constant_SOURCES = \
407 test_quota_compliance.c
408 test_quota_compliance_https_asymmetric_recv_constant_LDADD = \
409 $(top_builddir)/src/transport/libgnunettransport.la \
410 $(top_builddir)/src/util/libgnunetutil.la
412 #test_quota_compliance_https_asymmetric_send_constant_SOURCES = \
413 # test_quota_compliance.c
414 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
415 # $(top_builddir)/src/transport/libgnunettransport.la \
416 # $(top_builddir)/src/util/libgnunetutil.la
418 test_quota_compliance_udp_SOURCES = \
419 test_quota_compliance.c
420 test_quota_compliance_udp_LDADD = \
421 $(top_builddir)/src/transport/libgnunettransport.la \
422 $(top_builddir)/src/util/libgnunetutil.la
424 test_quota_compliance_udp_asymmetric_recv_constant_SOURCES = \
425 test_quota_compliance.c
426 test_quota_compliance_udp_asymmetric_recv_constant_LDADD = \
427 $(top_builddir)/src/transport/libgnunettransport.la \
428 $(top_builddir)/src/util/libgnunetutil.la
430 #test_quota_compliance_udp_asymmetric_send_constant_SOURCES = \
431 # test_quota_compliance.c
432 #test_quota_compliance_udp_asymmetric_send_constant_LDADD = \
433 # $(top_builddir)/src/transport/libgnunettransport.la \
434 # $(top_builddir)/src/util/libgnunetutil.la
436 test_quota_compliance_unix_SOURCES = \
437 test_quota_compliance.c
438 test_quota_compliance_unix_LDADD = \
439 $(top_builddir)/src/transport/libgnunettransport.la \
440 $(top_builddir)/src/util/libgnunetutil.la
442 test_quota_compliance_unix_asymmetric_recv_constant_SOURCES = \
443 test_quota_compliance.c
444 test_quota_compliance_unix_asymmetric_recv_constant_LDADD = \
445 $(top_builddir)/src/transport/libgnunettransport.la \
446 $(top_builddir)/src/util/libgnunetutil.la
449 test_transport_api_multi_SOURCES = \
451 test_transport_api_multi_LDADD = \
452 $(top_builddir)/src/transport/libgnunettransport.la \
453 $(top_builddir)/src/util/libgnunetutil.la
455 gnunet-transport-certificate-creation \
456 test_transport_api_data.conf \
457 test_transport_api_tcp_peer1.conf \
458 test_transport_api_tcp_peer2.conf \
459 test_transport_api_udp_peer1.conf \
460 test_transport_api_udp_peer2.conf \
461 test_transport_api_unix_peer1.conf \
462 test_transport_api_unix_peer2.conf \
463 test_transport_api_udp_nat_peer1.conf \
464 test_transport_api_udp_nat_peer2.conf \
465 test_transport_api_tcp_nat_peer1.conf \
466 test_transport_api_tcp_nat_peer2.conf \
467 test_plugin_transport_data.conf \
468 test_transport_api_http_peer1.conf \
469 test_transport_api_http_peer2.conf \
470 test_transport_api_https_peer1.conf \
471 test_transport_api_https_peer2.conf \
472 test_transport_api_wlan_peer1.conf \
473 test_transport_api_wlan_peer2.conf \
474 test_transport_api_multi_peer1.conf \
475 test_transport_api_multi_peer2.conf \
476 test_transport_api_rel_http_peer1.conf \
477 test_transport_api_rel_http_peer2.conf \
478 test_transport_api_rel_https_peer1.conf \
479 test_transport_api_rel_https_peer2.conf \
480 test_plugin_transport_data_http.conf \
481 test_plugin_transport_data.conf \
482 test_quota_compliance_data.conf \
483 test_quota_compliance_tcp_peer1.conf \
484 test_quota_compliance_tcp_peer2.conf \
485 test_quota_compliance_http_peer1.conf \
486 test_quota_compliance_http_peer2.conf \
487 test_quota_compliance_https_peer1.conf \
488 test_quota_compliance_https_peer2.conf \
489 test_quota_compliance_udp_peer1.conf \
490 test_quota_compliance_udp_peer2.conf \
491 test_quota_compliance_unix_peer1.conf \
492 test_quota_compliance_unix_peer2.conf