implement basic reliability ACK handling
[oweals/gnunet.git] / src / transport / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 plugindir = $(libdir)/gnunet
5
6 pkgcfgdir= $(pkgdatadir)/config.d/
7
8 libexecdir= $(pkglibdir)/libexec/
9
10 pkgcfg_DATA = \
11   transport.conf \
12   communicator-unix.conf
13
14 if HAVE_MHD
15  GN_LIBMHD = -lmicrohttpd
16  HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
17  HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
18  HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
19  HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
20 endif
21
22 if HAVE_LIBGNURL
23  HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
24  HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
25  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
26  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
27 LIB_GNURL=@LIBGNURL@
28 CPP_GNURL=@LIBGNURL_CPPFLAGS@
29 else
30 if HAVE_LIBCURL
31  HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
32  HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
33  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
34  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
35 LIB_GNURL=@LIBCURL@
36 CPP_GNURL=@LIBCURL_CPPFLAGS@
37 endif
38 endif
39
40 if HAVE_MHD
41 if HAVE_LIBGNURL
42  HTTP_API_TEST = test_transport_api_http
43  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
44  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
45  HTTP_REL_TEST = test_transport_api_reliability_http \
46                  test_transport_api_reliability_http_xhr
47  HTTP_QUOTA_TEST = test_quota_compliance_http \
48                    test_quota_compliance_http_asymmetric
49  HTTP_SWITCH = test_transport_address_switch_http
50  HTTPS_API_TEST = test_transport_api_https
51  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
52  HTTPS_REL_TEST = test_transport_api_reliability_https \
53                   test_transport_api_reliability_https_xhr
54  HTTPS_QUOTA_TEST = test_quota_compliance_https \
55                 test_quota_compliance_https_asymmetric
56  HTTPS_SWITCH = test_transport_address_switch_https
57 else
58 if HAVE_LIBCURL
59  HTTP_API_TEST = test_transport_api_http
60  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
61  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
62  HTTP_REL_TEST = test_transport_api_reliability_http \
63                  test_transport_api_reliability_http_xhr
64  HTTP_QUOTA_TEST = test_quota_compliance_http \
65                    test_quota_compliance_http_asymmetric
66  HTTP_SWITCH = test_transport_address_switch_http
67  HTTPS_API_TEST = test_transport_api_https
68  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
69  HTTPS_REL_TEST = test_transport_api_reliability_https \
70                   test_transport_api_reliability_https_xhr
71  HTTPS_QUOTA_TEST = test_quota_compliance_https \
72                 test_quota_compliance_https_asymmetric
73  HTTPS_SWITCH = test_transport_address_switch_https
74 endif
75 endif
76 endif
77
78 if USE_COVERAGE
79   AM_CFLAGS = --coverage -O0
80 endif
81
82 if HAVE_EXPERIMENTAL
83 if LINUX
84  WLAN_BIN = gnunet-helper-transport-wlan
85  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
86  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
87  WLAN_BIN_RECEIVER = gnunet-transport-wlan-receiver
88  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
89  WLAN_PLUGIN_TEST = test_plugin_wlan
90  WLAN_API_TEST = test_transport_api_wlan
91  WLAN_TIMEOUT_TEST = test_transport_api_timeout_wlan
92  WLAN_REL_TEST = test_transport_api_reliability_wlan
93  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
94                 test_quota_compliance_wlan_asymmetric
95 endif
96
97 if LINUX
98 install-exec-hook:
99         $(top_srcdir)/src/transport/install-wlan-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
100 if HAVE_LIBBLUETOOTH
101         $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(DESTDIR)$(libexecdir) $(SUDO_BINARY) || true
102 endif
103 else
104 install-exec-hook:
105 endif
106
107 if LINUX
108 if HAVE_LIBBLUETOOTH
109  BT_BIN = gnunet-helper-transport-bluetooth
110  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
111  BT_PLUGIN_TEST = test_plugin_bluetooth
112  BT_API_TEST = test_transport_api_bluetooth
113  BT_TIMEOUT_TEST = test_transport_api_timeout_bluetooth
114  BT_REL_TEST = test_transport_api_reliability_bluetooth
115  BT_QUOTA_TEST = test_quota_compliance_bluetooth \
116     test_quota_compliance_bluetooth_asymmetric
117 endif
118 else
119 if MINGW
120  BT_BIN = gnunet-helper-transport-bluetooth
121  BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la
122 endif
123 endif
124
125 # end of HAVE_EXPERIMENTAL
126 endif
127
128
129 if !MINGW
130 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
131 UNIX_PLUGIN_TEST = test_transport_api_unix
132 UNIX_TEST = test_plugin_unix
133 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
134 UNIX_REL_TEST = test_transport_api_reliability_unix
135 UNIX_QUOTA_TEST = test_quota_compliance_unix \
136      test_quota_compliance_unix_asymmetric
137 if LINUX
138  UNIX_API_ABSTRACT_TEST = test_transport_api_unix_abstract
139 endif
140 endif
141
142 noinst_PROGRAMS = \
143  gnunet-transport-profiler \
144  gnunet-communicator-unix \
145  gnunet-communicator-tcp \
146  gnunet-communicator-udp \
147  gnunet-service-tng \
148  $(WLAN_BIN_SENDER) \
149  $(WLAN_BIN_RECEIVER)
150
151 if HAVE_TESTING
152 TESTING_LIBS = libgnunettransporttesting.la
153 endif
154
155 lib_LTLIBRARIES = \
156   libgnunettransport.la \
157   libgnunettransportaddress.la \
158   libgnunettransportapplication.la \
159   libgnunettransportcore.la \
160   libgnunettransportcommunicator.la \
161   libgnunettransportmonitor.la \
162   $(TESTING_LIBS)
163
164 libgnunettransporttesting_la_SOURCES = \
165   transport-testing.c transport-testing.h \
166   transport-testing-filenames.c \
167   transport-testing-loggers.c \
168   transport-testing-main.c \
169   transport-testing-send.c
170 libgnunettransporttesting_la_LIBADD = \
171   libgnunettransport.la \
172   $(top_builddir)/src/hello/libgnunethello.la \
173   $(top_builddir)/src/ats/libgnunetats.la \
174   $(top_builddir)/src/util/libgnunetutil.la \
175   $(top_builddir)/src/testing/libgnunettesting.la \
176   $(GN_LIBINTL)
177 libgnunettransporttesting_la_LDFLAGS = \
178  $(GN_LIB_LDFLAGS)
179
180 libgnunettransport_la_SOURCES = \
181   transport.h \
182   transport_api_address_to_string.c \
183   transport_api_blacklist.c \
184   transport_api_core.c \
185   transport_api_hello_get.c \
186   transport_api_manipulation.c \
187   transport_api_monitor_peers.c \
188   transport_api_monitor_plugins.c \
189   transport_api_offer_hello.c
190
191 libgnunettransport_la_LIBADD = \
192   $(top_builddir)/src/hello/libgnunethello.la \
193   $(top_builddir)/src/ats/libgnunetats.la \
194   $(top_builddir)/src/util/libgnunetutil.la \
195   $(GN_LIBINTL)
196 libgnunettransport_la_LDFLAGS = \
197   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
198   -version-info 4:0:2
199
200 libgnunettransportapplication_la_SOURCES = \
201   transport_api2_application.c
202 libgnunettransportapplication_la_LIBADD = \
203  $(top_builddir)/src/util/libgnunetutil.la \
204  $(LTLIBINTL)
205 libgnunettransportapplication_la_LDFLAGS = \
206   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
207   -version-info 0:0:0
208
209
210 libgnunettransportaddress_la_SOURCES = \
211   transport_api2_address.c
212 libgnunettransportaddress_la_LIBADD = \
213   $(top_builddir)/src/util/libgnunetutil.la \
214   $(GN_LIBINTL)
215 libgnunettransportaddress_la_LDFLAGS = \
216   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
217   -version-info 0:0:0
218
219 libgnunettransportcore_la_SOURCES = \
220   transport_api2_core.c
221 libgnunettransportcore_la_LIBADD = \
222   $(top_builddir)/src/util/libgnunetutil.la \
223   $(GN_LIBINTL)
224 libgnunettransportcore_la_LDFLAGS = \
225   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
226   -version-info 0:0:0
227
228 libgnunettransportcommunicator_la_SOURCES = \
229   transport_api2_communication.c
230 libgnunettransportcommunicator_la_LIBADD = \
231   $(top_builddir)/src/util/libgnunetutil.la \
232   $(GN_LIBINTL)
233 libgnunettransportcommunicator_la_LDFLAGS = \
234   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
235   -version-info 0:0:0
236
237
238 libgnunettransportmonitor_la_SOURCES = \
239   transport_api2_monitor.c
240 libgnunettransportmonitor_la_LIBADD = \
241   $(top_builddir)/src/util/libgnunetutil.la \
242   $(GN_LIBINTL)
243 libgnunettransportmonitor_la_LDFLAGS = \
244   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
245   -version-info 0:0:0
246
247
248 libexec_PROGRAMS = \
249  $(WLAN_BIN) \
250  $(WLAN_BIN_DUMMY) \
251  $(BT_BIN) \
252  gnunet-service-transport
253
254
255
256 bin_PROGRAMS = \
257  gnunet-transport \
258  gnunet-transport-certificate-creation
259
260 #bin_SCRIPTS = \
261 # gnunet-transport-certificate-creation
262
263 gnunet_transport_certificate_creation_SOURCES = \
264  gnunet-transport-certificate-creation.c
265 gnunet_transport_certificate_creation_LDADD = \
266   $(top_builddir)/src/util/libgnunetutil.la
267
268 gnunet_communicator_unix_SOURCES = \
269  gnunet-communicator-unix.c
270 gnunet_communicator_unix_LDADD = \
271   libgnunettransportcommunicator.la \
272   $(top_builddir)/src/statistics/libgnunetstatistics.la \
273   $(top_builddir)/src/util/libgnunetutil.la
274
275 gnunet_communicator_tcp_SOURCES = \
276  gnunet-communicator-tcp.c
277 gnunet_communicator_tcp_LDADD = \
278   libgnunettransportcommunicator.la \
279   $(top_builddir)/src/nat/libgnunetnatnew.la \
280   $(top_builddir)/src/nt/libgnunetnt.la \
281   $(top_builddir)/src/statistics/libgnunetstatistics.la \
282   $(top_builddir)/src/util/libgnunetutil.la \
283   $(LIBGCRYPT_LIBS)
284
285 gnunet_communicator_udp_SOURCES = \
286  gnunet-communicator-udp.c
287 gnunet_communicator_udp_LDADD = \
288   libgnunettransportapplication.la \
289   libgnunettransportcommunicator.la \
290   $(top_builddir)/src/nat/libgnunetnatnew.la \
291   $(top_builddir)/src/nt/libgnunetnt.la \
292   $(top_builddir)/src/statistics/libgnunetstatistics.la \
293   $(top_builddir)/src/util/libgnunetutil.la \
294   $(LIBGCRYPT_LIBS)
295
296
297 gnunet_helper_transport_wlan_SOURCES = \
298  gnunet-helper-transport-wlan.c
299
300 gnunet_helper_transport_wlan_dummy_SOURCES = \
301  gnunet-helper-transport-wlan-dummy.c
302 gnunet_helper_transport_wlan_dummy_LDADD = \
303   $(top_builddir)/src/util/libgnunetutil.la
304
305 gnunet_transport_wlan_sender_SOURCES = \
306  gnunet-transport-wlan-sender.c
307 gnunet_transport_wlan_sender_LDADD = \
308   $(top_builddir)/src/util/libgnunetutil.la
309
310 gnunet_transport_wlan_receiver_SOURCES = \
311  gnunet-transport-wlan-receiver.c
312 gnunet_transport_wlan_receiver_LDADD = \
313   $(top_builddir)/src/util/libgnunetutil.la
314
315 gnunet_helper_transport_bluetooth_SOURCES = \
316  gnunet-helper-transport-bluetooth.c
317 if MINGW
318  gnunet_helper_transport_bluetooth_LDADD = \
319   $(top_builddir)/src/util/libgnunetutil.la
320  gnunet_helper_transport_bluetooth_LDFLAGS = -lws2_32
321 else
322  gnunet_helper_transport_bluetooth_LDFLAGS = -lbluetooth
323 endif
324
325 gnunet_transport_profiler_SOURCES = \
326  gnunet-transport-profiler.c
327 gnunet_transport_profiler_LDADD = \
328   libgnunettransport.la \
329   $(top_builddir)/src/hello/libgnunethello.la \
330   $(top_builddir)/src/ats/libgnunetats.la \
331   $(top_builddir)/src/util/libgnunetutil.la \
332   $(GN_LIBINTL)
333
334 gnunet_transport_SOURCES = \
335  gnunet-transport.c
336 gnunet_transport_LDADD = \
337   libgnunettransport.la \
338   $(top_builddir)/src/hello/libgnunethello.la \
339   $(top_builddir)/src/util/libgnunetutil.la \
340   $(GN_LIBINTL)
341
342 gnunet_service_transport_SOURCES = \
343  gnunet-service-transport.c gnunet-service-transport.h \
344  gnunet-service-transport_ats.h gnunet-service-transport_ats.c \
345  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
346  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
347  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
348  gnunet-service-transport_validation.h gnunet-service-transport_validation.c \
349  gnunet-service-transport_manipulation.h gnunet-service-transport_manipulation.c
350 # Note that while gnunet-service-transport does not use libgnunetnat
351 # directly, we must link against it as GNUNET_NAT_mini_map_stop will
352 # leave a 'dangling' task to process_unmap_output which will cause
353 # a crash on unloading of a plugin unless the service links against
354 # that library as well.
355 gnunet_service_transport_LDADD = \
356   libgnunettransport.la \
357   $(top_builddir)/src/ats/libgnunetats.la \
358   $(top_builddir)/src/hello/libgnunethello.la \
359   $(top_builddir)/src/nt/libgnunetnt.la \
360   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
361   $(top_builddir)/src/statistics/libgnunetstatistics.la \
362   $(top_builddir)/src/util/libgnunetutil.la \
363   $(GN_GLPK) \
364   $(GN_LIBINTL)
365 gnunet_service_transport_CFLAGS = \
366   $(CFLAGS)
367 # -DANALYZE
368
369
370 gnunet_service_tng_SOURCES = \
371  gnunet-service-tng.c
372 gnunet_service_tng_LDADD = \
373   $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
374   $(top_builddir)/src/hello/libgnunethello.la \
375   $(top_builddir)/src/statistics/libgnunetstatistics.la \
376   $(top_builddir)/src/util/libgnunetutil.la \
377   $(GN_LIBINTL)
378
379 plugin_LTLIBRARIES = \
380   libgnunet_plugin_transport_tcp.la \
381   libgnunet_plugin_transport_udp.la \
382   $(UNIX_PLUGIN_LA) \
383   $(HTTP_CLIENT_PLUGIN_LA) \
384   $(HTTPS_CLIENT_PLUGIN_LA) \
385   $(HTTP_SERVER_PLUGIN_LA) \
386   $(HTTPS_SERVER_PLUGIN_LA) \
387   $(WLAN_PLUGIN_LA) \
388   $(BT_PLUGIN_LA)
389
390 # Note: real plugins of course need to be added
391 # to the plugin_LTLIBRARIES above
392 noinst_LTLIBRARIES = \
393   libgnunet_plugin_transport_template.la
394
395 libgnunet_plugin_transport_tcp_la_SOURCES = \
396   plugin_transport_tcp.c
397 libgnunet_plugin_transport_tcp_la_LIBADD = \
398   $(top_builddir)/src/hello/libgnunethello.la \
399   $(top_builddir)/src/statistics/libgnunetstatistics.la \
400   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
401   $(top_builddir)/src/nat/libgnunetnatnew.la \
402   $(top_builddir)/src/util/libgnunetutil.la \
403   $(LTLIBINTL)
404 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
405  $(GN_PLUGIN_LDFLAGS)
406
407 libgnunet_plugin_transport_template_la_SOURCES = \
408   plugin_transport_template.c
409 libgnunet_plugin_transport_template_la_LIBADD = \
410   $(top_builddir)/src/util/libgnunetutil.la \
411   $(LTLIBINTL)
412 libgnunet_plugin_transport_template_la_LDFLAGS = \
413  $(GN_PLUGIN_LDFLAGS)
414
415 libgnunet_plugin_transport_wlan_la_SOURCES = \
416   plugin_transport_wlan.c plugin_transport_wlan.h
417 libgnunet_plugin_transport_wlan_la_LIBADD = \
418   $(top_builddir)/src/hello/libgnunethello.la \
419   $(top_builddir)/src/statistics/libgnunetstatistics.la \
420   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
421   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
422   $(top_builddir)/src/util/libgnunetutil.la
423 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
424   $(GN_PLUGIN_LDFLAGS)
425 libgnunet_plugin_transport_wlan_la_CFLAGS = \
426  $(CFLAGS) -DBUILD_WLAN
427
428 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
429   plugin_transport_wlan.c plugin_transport_wlan.h
430 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
431   $(top_builddir)/src/hello/libgnunethello.la \
432   $(top_builddir)/src/statistics/libgnunetstatistics.la \
433   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
434   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
435   $(top_builddir)/src/util/libgnunetutil.la
436 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
437   $(GN_PLUGIN_LDFLAGS)
438 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
439  $(CFLAGS) -DBUILD_BLUETOOTH
440
441 libgnunet_plugin_transport_udp_la_SOURCES = \
442   plugin_transport_udp.c plugin_transport_udp.h \
443   plugin_transport_udp_broadcasting.c
444 libgnunet_plugin_transport_udp_la_LIBADD = \
445   $(top_builddir)/src/hello/libgnunethello.la \
446   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
447   $(top_builddir)/src/statistics/libgnunetstatistics.la \
448   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
449   $(top_builddir)/src/nat/libgnunetnatnew.la \
450   $(top_builddir)/src/util/libgnunetutil.la \
451   $(LTLIBINTL)
452 libgnunet_plugin_transport_udp_la_LDFLAGS = \
453  $(GN_PLUGIN_LDFLAGS)
454
455 libgnunet_plugin_transport_unix_la_SOURCES = \
456   plugin_transport_unix.c
457 libgnunet_plugin_transport_unix_la_LIBADD = \
458   $(top_builddir)/src/hello/libgnunethello.la \
459   $(top_builddir)/src/statistics/libgnunetstatistics.la \
460   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
461   $(top_builddir)/src/util/libgnunetutil.la \
462   $(LTLIBINTL)
463 libgnunet_plugin_transport_unix_la_LDFLAGS = \
464  $(GN_PLUGIN_LDFLAGS)
465
466
467 libgnunet_plugin_transport_http_client_la_SOURCES = \
468   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
469 libgnunet_plugin_transport_http_client_la_LIBADD = \
470   $(top_builddir)/src/hello/libgnunethello.la \
471   $(top_builddir)/src/statistics/libgnunetstatistics.la \
472   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
473   $(LIB_GNURL) \
474   $(top_builddir)/src/util/libgnunetutil.la
475 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
476  $(GN_PLUGIN_LDFLAGS)
477 libgnunet_plugin_transport_http_client_la_CFLAGS = \
478  $(CFLAGS)
479 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
480  $(CPP_GNURL) $(AM_CPPFLAGS)
481
482
483 libgnunet_plugin_transport_http_server_la_SOURCES = \
484   plugin_transport_http_server.c plugin_transport_http_common.c
485 libgnunet_plugin_transport_http_server_la_LIBADD = \
486   $(top_builddir)/src/hello/libgnunethello.la \
487   $(top_builddir)/src/statistics/libgnunetstatistics.la \
488   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
489   $(top_builddir)/src/nat/libgnunetnatnew.la \
490   $(top_builddir)/src/util/libgnunetutil.la
491 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
492  $(GN_LIBMHD) \
493  $(GN_PLUGIN_LDFLAGS)
494 libgnunet_plugin_transport_http_server_la_CFLAGS = \
495  $(CFLAGS)
496
497 libgnunet_plugin_transport_https_client_la_SOURCES = \
498   plugin_transport_http_client.c plugin_transport_http_common.c
499 libgnunet_plugin_transport_https_client_la_LIBADD = \
500   $(top_builddir)/src/hello/libgnunethello.la \
501   $(top_builddir)/src/statistics/libgnunetstatistics.la \
502   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
503   $(LIB_GNURL) \
504   $(top_builddir)/src/util/libgnunetutil.la
505 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
506  $(GN_PLUGIN_LDFLAGS)
507 libgnunet_plugin_transport_https_client_la_CFLAGS = \
508  $(CFLAGS) -DBUILD_HTTPS
509 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
510  $(CPP_GNURL) $(AM_CPPFLAGS)
511
512
513 libgnunet_plugin_transport_https_server_la_SOURCES = \
514   plugin_transport_http_server.c plugin_transport_http_common.c
515 libgnunet_plugin_transport_https_server_la_LIBADD = \
516   $(top_builddir)/src/hello/libgnunethello.la \
517   $(top_builddir)/src/statistics/libgnunetstatistics.la \
518   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
519   $(top_builddir)/src/nat/libgnunetnatnew.la \
520   $(top_builddir)/src/util/libgnunetutil.la
521 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
522  $(GN_LIBMHD) \
523  $(GN_PLUGIN_LDFLAGS)
524 libgnunet_plugin_transport_https_server_la_CFLAGS = \
525  $(CFLAGS) -DBUILD_HTTPS
526
527
528 if HAVE_TESTING
529 check_PROGRAMS = \
530  test_transport_address_switch_tcp \
531  test_transport_address_switch_udp \
532  test_transport_testing_startstop \
533  test_transport_testing_restart \
534  test_plugin_tcp \
535  test_plugin_udp \
536  $(UNIX_TEST) \
537  $(WLAN_PLUGIN_TEST) \
538  $(BT_PLUGIN_TEST) \
539  test_http_common \
540  $(HTTP_CLIENT_PLUGIN_TEST) \
541  $(HTTPS_CLIENT_PLUGIN_TEST) \
542  $(HTTP_SERVER_PLUGIN_TEST) \
543  $(HTTPS_SERVER_PLUGIN_TEST) \
544  test_transport_api_blacklisting_tcp \
545  test_transport_api_disconnect_tcp \
546  test_transport_api_tcp \
547  test_transport_api_restart_1peer \
548  test_transport_api_restart_2peers \
549  test_transport_api_timeout_tcp \
550  test_transport_api_limited_sockets_tcp \
551  test_transport_api_tcp_nat \
552  test_transport_api_udp \
553  test_transport_api_timeout_udp \
554  $(UNIX_PLUGIN_TEST) \
555  $(UNIX_PLUGIN_TIMEOUT_TEST) \
556  $(UNIX_API_ABSTRACT_TEST) \
557  test_transport_api_udp_nat \
558  $(HTTP_API_TEST) \
559  $(HTTP_REVERSE_API_TEST) \
560  $(HTTP_API_TIMEOUT_TEST) \
561  $(HTTP_SWITCH) \
562  $(HTTPS_API_TEST) \
563  $(HTTPS_API_TIMEOUT_TEST) \
564  $(HTTPS_SWITCH) \
565  $(WLAN_API_TEST) \
566  $(WLAN_TIMEOUT_TEST) \
567  $(BT_API_TEST) \
568  $(BT_TIMEOUT_TEST) \
569  test_transport_api_multi \
570  test_transport_api_monitor_peers \
571  test_transport_blacklisting_no_bl \
572  test_transport_blacklisting_outbound_bl_full \
573  test_transport_blacklisting_outbound_bl_plugin \
574  test_transport_blacklisting_inbound_bl_plugin \
575  test_transport_blacklisting_inbound_bl_full \
576  test_transport_blacklisting_multiple_plugins \
577  test_transport_api_manipulation_send_tcp \
578  test_transport_api_manipulation_recv_tcp \
579  test_transport_api_manipulation_cfg \
580  test_transport_api_reliability_tcp \
581  test_transport_api_reliability_tcp_nat \
582  test_transport_api_reliability_udp \
583  $(UNIX_REL_TEST) \
584  $(HTTP_REL_TEST) \
585  $(HTTPS_REL_TEST) \
586  $(WLAN_REL_TEST) \
587  $(WLAN_UREL_TEST) \
588  $(BT_REL_TEST) \
589  $(BT_UREL_TEST) \
590  test_quota_compliance_tcp \
591  test_quota_compliance_tcp_asymmetric \
592  test_quota_compliance_udp \
593  $(UNIX_QUOTA_TEST) \
594  $(HTTP_QUOTA_TEST) \
595  $(HTTPS_QUOTA_TEST) \
596  $(WLAN_QUOTA_TEST) \
597  $(BT_QUOTA_TEST)
598 if HAVE_GETOPT_BINARY
599 check_PROGRAMS += \
600 test_transport_api_slow_ats
601 endif
602 endif
603
604 if ENABLE_TEST_RUN
605 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
606 TESTS = \
607  test_transport_address_switch_tcp \
608  test_transport_address_switch_udp \
609  $(HTTP_SWITCH) \
610  $(HTTPS_SWITCH) \
611  test_transport_testing_startstop \
612  test_transport_testing_restart \
613  test_plugin_tcp \
614  test_plugin_udp \
615  $(UNIX_TEST) \
616  $(WLAN_PLUGIN_TEST) \
617  $(BT_PLUGIN_TEST) \
618  test_transport_api_blacklisting_tcp \
619  test_transport_api_disconnect_tcp \
620  test_transport_api_tcp \
621  test_transport_api_restart_1peer \
622  test_transport_api_restart_2peers \
623  test_transport_api_limited_sockets_tcp \
624  test_transport_api_tcp_nat \
625  test_transport_api_udp \
626  $(UNIX_PLUGIN_TEST) \
627  $(UNIX_API_ABSTRACT_TEST) \
628  test_transport_api_udp_nat \
629  $(HTTP_API_TEST) \
630  $(HTTPS_API_TEST) \
631  $(WLAN_API_TEST) \
632  $(BT_API_TEST) \
633  test_transport_api_multi \
634  test_transport_api_monitor_peers \
635  test_transport_blacklisting_no_bl \
636  test_transport_blacklisting_outbound_bl_full \
637  test_transport_blacklisting_outbound_bl_plugin \
638  test_transport_blacklisting_inbound_bl_plugin \
639  test_transport_blacklisting_inbound_bl_full \
640  test_transport_blacklisting_multiple_plugins \
641  test_transport_api_manipulation_send_tcp \
642  test_transport_api_manipulation_recv_tcp \
643  test_transport_api_manipulation_cfg \
644  test_transport_api_reliability_tcp \
645  test_transport_api_reliability_tcp_nat \
646  test_transport_api_reliability_udp \
647  $(UNIX_REL_TEST) \
648  $(HTTP_REL_TEST) \
649  $(HTTPS_REL_TEST) \
650  $(WLAN_REL_TEST) \
651  $(WLAN_UREL_TEST) \
652  $(BT_REL_TEST) \
653  $(BT_UREL_TEST) \
654  test_quota_compliance_tcp \
655  test_quota_compliance_tcp_asymmetric \
656  test_quota_compliance_udp \
657  $(UNIX_QUOTA_TEST) \
658  $(HTTP_QUOTA_TEST) \
659  $(HTTPS_QUOTA_TEST) \
660  test_transport_api_timeout_tcp \
661  test_transport_api_timeout_udp \
662  $(UNIX_PLUGIN_TIMEOUT_TEST) \
663  $(HTTP_API_TIMEOUT_TEST) \
664  $(HTTPS_API_TIMEOUT_TEST) \
665  $(WLAN_TIMEOUT_TEST) \
666  $(BT_TIMEOUT_TEST)
667 if HAVE_GETOPT_BINARY
668 TESTS += \
669 test_transport_api_slow_ats
670 endif
671 endif
672
673 test_transport_testing_startstop_SOURCES = \
674  test_transport_testing_startstop.c
675 test_transport_testing_startstop_LDADD = \
676  $(top_builddir)/src/util/libgnunetutil.la \
677  libgnunettransport.la \
678  $(top_builddir)/src/hello/libgnunethello.la \
679  libgnunettransporttesting.la
680
681 test_transport_testing_restart_SOURCES = \
682  test_transport_testing_restart.c
683 test_transport_testing_restart_LDADD = \
684  $(top_builddir)/src/util/libgnunetutil.la \
685  libgnunettransport.la \
686  $(top_builddir)/src/hello/libgnunethello.la \
687  libgnunettransporttesting.la
688
689 test_transport_api_blacklisting_tcp_SOURCES = \
690  test_transport_api_blacklisting.c
691 test_transport_api_blacklisting_tcp_LDADD = \
692  libgnunettransport.la \
693  $(top_builddir)/src/hello/libgnunethello.la \
694  $(top_builddir)/src/statistics/libgnunetstatistics.la \
695  $(top_builddir)/src/util/libgnunetutil.la \
696  libgnunettransporttesting.la
697
698 test_transport_blacklisting_no_bl_SOURCES = \
699  test_transport_blacklisting.c
700 test_transport_blacklisting_no_bl_LDADD = \
701  libgnunettransport.la \
702  $(top_builddir)/src/hello/libgnunethello.la \
703  $(top_builddir)/src/statistics/libgnunetstatistics.la \
704  $(top_builddir)/src/util/libgnunetutil.la \
705  libgnunettransporttesting.la
706
707 test_transport_blacklisting_outbound_bl_full_SOURCES = \
708  test_transport_blacklisting.c
709 test_transport_blacklisting_outbound_bl_full_LDADD = \
710  libgnunettransport.la \
711  $(top_builddir)/src/hello/libgnunethello.la \
712  $(top_builddir)/src/statistics/libgnunetstatistics.la \
713  $(top_builddir)/src/util/libgnunetutil.la \
714  libgnunettransporttesting.la
715
716 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
717  test_transport_blacklisting.c
718 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
719  libgnunettransport.la \
720  $(top_builddir)/src/hello/libgnunethello.la \
721  $(top_builddir)/src/statistics/libgnunetstatistics.la \
722  $(top_builddir)/src/util/libgnunetutil.la \
723  libgnunettransporttesting.la
724
725 test_transport_blacklisting_inbound_bl_full_SOURCES = \
726  test_transport_blacklisting.c
727 test_transport_blacklisting_inbound_bl_full_LDADD = \
728  libgnunettransport.la \
729  $(top_builddir)/src/hello/libgnunethello.la \
730  $(top_builddir)/src/statistics/libgnunetstatistics.la \
731  $(top_builddir)/src/util/libgnunetutil.la \
732  libgnunettransporttesting.la
733
734 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
735  test_transport_blacklisting.c
736 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
737  libgnunettransport.la \
738  $(top_builddir)/src/hello/libgnunethello.la \
739  $(top_builddir)/src/statistics/libgnunetstatistics.la \
740  $(top_builddir)/src/util/libgnunetutil.la \
741  libgnunettransporttesting.la
742
743 test_transport_blacklisting_multiple_plugins_SOURCES = \
744  test_transport_blacklisting.c
745 test_transport_blacklisting_multiple_plugins_LDADD = \
746  libgnunettransport.la \
747  $(top_builddir)/src/hello/libgnunethello.la \
748  $(top_builddir)/src/statistics/libgnunetstatistics.la \
749  $(top_builddir)/src/util/libgnunetutil.la \
750  libgnunettransporttesting.la
751
752
753 test_transport_api_disconnect_tcp_SOURCES = \
754  test_transport_api_disconnect.c
755 test_transport_api_disconnect_tcp_LDADD = \
756  libgnunettransport.la \
757  $(top_builddir)/src/hello/libgnunethello.la \
758  $(top_builddir)/src/statistics/libgnunetstatistics.la \
759  $(top_builddir)/src/util/libgnunetutil.la \
760  libgnunettransporttesting.la
761
762 test_plugin_tcp_SOURCES = \
763  test_plugin_transport.c
764 test_plugin_tcp_LDADD = \
765  libgnunettransport.la \
766  $(top_builddir)/src/statistics/libgnunetstatistics.la \
767  $(top_builddir)/src/hello/libgnunethello.la \
768  $(top_builddir)/src/util/libgnunetutil.la  \
769  libgnunettransporttesting.la
770
771 test_plugin_udp_SOURCES = \
772  test_plugin_transport.c
773 test_plugin_udp_LDADD = \
774  libgnunettransport.la \
775  $(top_builddir)/src/statistics/libgnunetstatistics.la \
776  $(top_builddir)/src/hello/libgnunethello.la \
777  $(top_builddir)/src/util/libgnunetutil.la  \
778  libgnunettransporttesting.la
779
780 test_plugin_unix_SOURCES = \
781  test_plugin_transport.c
782 test_plugin_unix_LDADD = \
783  libgnunettransport.la \
784  $(top_builddir)/src/statistics/libgnunetstatistics.la \
785  $(top_builddir)/src/hello/libgnunethello.la \
786  $(top_builddir)/src/util/libgnunetutil.la  \
787  libgnunettransporttesting.la
788
789 test_plugin_wlan_SOURCES = \
790  test_plugin_transport.c
791 test_plugin_wlan_LDADD = \
792  libgnunettransport.la \
793  $(top_builddir)/src/statistics/libgnunetstatistics.la \
794  $(top_builddir)/src/hello/libgnunethello.la \
795  $(top_builddir)/src/util/libgnunetutil.la  \
796  libgnunettransporttesting.la
797
798 test_plugin_bluetooth_SOURCES = \
799  test_plugin_transport.c
800 test_plugin_bluetooth_LDADD = \
801  libgnunettransport.la \
802  $(top_builddir)/src/statistics/libgnunetstatistics.la \
803  $(top_builddir)/src/hello/libgnunethello.la \
804  $(top_builddir)/src/util/libgnunetutil.la  \
805  libgnunettransporttesting.la
806
807 test_http_common_SOURCES = \
808  test_http_common.c plugin_transport_http_common.c
809 test_http_common_LDADD = \
810  libgnunettransport.la \
811  $(top_builddir)/src/statistics/libgnunetstatistics.la \
812  $(top_builddir)/src/hello/libgnunethello.la \
813  $(top_builddir)/src/util/libgnunetutil.la  \
814  libgnunettransporttesting.la
815
816 test_plugin_http_server_SOURCES = \
817  test_plugin_transport.c
818 test_plugin_http_server_LDADD = \
819  libgnunettransport.la \
820  $(top_builddir)/src/statistics/libgnunetstatistics.la \
821  $(top_builddir)/src/hello/libgnunethello.la \
822  $(top_builddir)/src/util/libgnunetutil.la  \
823  libgnunettransporttesting.la
824
825 test_plugin_https_server_SOURCES = \
826  test_plugin_transport.c
827 test_plugin_https_server_LDADD = \
828  libgnunettransport.la \
829  $(top_builddir)/src/statistics/libgnunetstatistics.la \
830  $(top_builddir)/src/hello/libgnunethello.la \
831  $(top_builddir)/src/util/libgnunetutil.la  \
832  libgnunettransporttesting.la
833
834 test_plugin_http_client_SOURCES = \
835  test_plugin_transport.c
836 test_plugin_http_client_LDADD = \
837  libgnunettransport.la \
838  $(top_builddir)/src/statistics/libgnunetstatistics.la \
839  $(top_builddir)/src/hello/libgnunethello.la \
840  $(top_builddir)/src/util/libgnunetutil.la  \
841  libgnunettransporttesting.la
842
843 test_plugin_https_client_SOURCES = \
844  test_plugin_transport.c
845 test_plugin_https_client_LDADD = \
846  libgnunettransport.la \
847  $(top_builddir)/src/statistics/libgnunetstatistics.la \
848  $(top_builddir)/src/hello/libgnunethello.la \
849  $(top_builddir)/src/util/libgnunetutil.la  \
850  libgnunettransporttesting.la
851
852 test_transport_api_tcp_SOURCES = \
853  test_transport_api.c
854 test_transport_api_tcp_LDADD = \
855  libgnunettransport.la \
856  $(top_builddir)/src/hello/libgnunethello.la \
857  $(top_builddir)/src/util/libgnunetutil.la  \
858  libgnunettransporttesting.la
859
860 test_transport_api_restart_1peer_SOURCES = \
861  test_transport_api_restart_reconnect.c
862 test_transport_api_restart_1peer_LDADD = \
863  libgnunettransport.la \
864  $(top_builddir)/src/hello/libgnunethello.la \
865  $(top_builddir)/src/ats/libgnunetats.la \
866  $(top_builddir)/src/statistics/libgnunetstatistics.la \
867  $(top_builddir)/src/util/libgnunetutil.la \
868  libgnunettransporttesting.la
869
870 test_transport_api_restart_2peers_SOURCES = \
871  test_transport_api_restart_reconnect.c
872 test_transport_api_restart_2peers_LDADD = \
873  libgnunettransport.la \
874  $(top_builddir)/src/hello/libgnunethello.la \
875  $(top_builddir)/src/ats/libgnunetats.la \
876 $(top_builddir)/src/statistics/libgnunetstatistics.la \
877  $(top_builddir)/src/util/libgnunetutil.la \
878  libgnunettransporttesting.la
879
880 test_transport_api_limited_sockets_tcp_SOURCES = \
881  test_transport_api_limited_sockets.c
882 test_transport_api_limited_sockets_tcp_LDADD = \
883  libgnunettransport.la \
884  $(top_builddir)/src/hello/libgnunethello.la \
885  $(top_builddir)/src/util/libgnunetutil.la  \
886  libgnunettransporttesting.la
887
888 test_transport_api_tcp_nat_SOURCES = \
889  test_transport_api.c
890 test_transport_api_tcp_nat_LDADD = \
891  libgnunettransport.la \
892  $(top_builddir)/src/hello/libgnunethello.la \
893  $(top_builddir)/src/util/libgnunetutil.la \
894  libgnunettransporttesting.la
895
896 test_transport_api_manipulation_send_tcp_SOURCES = \
897  test_transport_api_manipulation_send_tcp.c
898 test_transport_api_manipulation_send_tcp_LDADD = \
899  libgnunettransport.la \
900  $(top_builddir)/src/hello/libgnunethello.la \
901  $(top_builddir)/src/util/libgnunetutil.la \
902  libgnunettransporttesting.la
903
904 test_transport_api_manipulation_recv_tcp_SOURCES = \
905  test_transport_api_manipulation_recv_tcp.c
906 test_transport_api_manipulation_recv_tcp_LDADD = \
907  libgnunettransport.la \
908  $(top_builddir)/src/hello/libgnunethello.la \
909  $(top_builddir)/src/util/libgnunetutil.la \
910  libgnunettransporttesting.la
911
912 test_transport_api_manipulation_cfg_SOURCES = \
913  test_transport_api_manipulation_cfg.c
914 test_transport_api_manipulation_cfg_LDADD = \
915  libgnunettransport.la \
916  $(top_builddir)/src/hello/libgnunethello.la \
917  $(top_builddir)/src/util/libgnunetutil.la \
918  libgnunettransporttesting.la
919
920 test_transport_api_reliability_tcp_SOURCES = \
921  test_transport_api_reliability.c
922 test_transport_api_reliability_tcp_LDADD = \
923  libgnunettransport.la \
924  $(top_builddir)/src/hello/libgnunethello.la \
925  $(top_builddir)/src/util/libgnunetutil.la \
926  libgnunettransporttesting.la
927
928 test_transport_api_timeout_tcp_SOURCES = \
929  test_transport_api_timeout.c
930 test_transport_api_timeout_tcp_LDADD = \
931  libgnunettransport.la \
932  $(top_builddir)/src/hello/libgnunethello.la \
933  $(top_builddir)/src/util/libgnunetutil.la \
934  libgnunettransporttesting.la
935
936 test_transport_api_timeout_unix_SOURCES = \
937  test_transport_api_timeout.c
938 test_transport_api_timeout_unix_LDADD = \
939  libgnunettransport.la \
940  $(top_builddir)/src/hello/libgnunethello.la \
941  $(top_builddir)/src/util/libgnunetutil.la \
942  libgnunettransporttesting.la
943
944 test_transport_api_timeout_wlan_SOURCES = \
945  test_transport_api_timeout.c
946 test_transport_api_timeout_wlan_LDADD = \
947  libgnunettransport.la \
948  $(top_builddir)/src/hello/libgnunethello.la \
949  $(top_builddir)/src/util/libgnunetutil.la \
950  libgnunettransporttesting.la
951
952 test_transport_api_timeout_bluetooth_SOURCES = \
953  test_transport_api_timeout.c
954 test_transport_api_timeout_bluetooth_LDADD = \
955  libgnunettransport.la \
956  $(top_builddir)/src/hello/libgnunethello.la \
957  $(top_builddir)/src/util/libgnunetutil.la \
958  libgnunettransporttesting.la
959
960 test_transport_api_reliability_tcp_nat_SOURCES = \
961  test_transport_api_reliability.c
962 test_transport_api_reliability_tcp_nat_LDADD = \
963  libgnunettransport.la \
964  $(top_builddir)/src/hello/libgnunethello.la \
965  $(top_builddir)/src/util/libgnunetutil.la \
966  libgnunettransporttesting.la
967
968 test_transport_api_reliability_bluetooth_SOURCES = \
969  test_transport_api_reliability.c
970 test_transport_api_reliability_bluetooth_LDADD = \
971  libgnunettransport.la \
972  $(top_builddir)/src/hello/libgnunethello.la \
973  $(top_builddir)/src/util/libgnunetutil.la \
974  libgnunettransporttesting.la
975
976 test_transport_api_reliability_wlan_SOURCES = \
977  test_transport_api_reliability.c
978 test_transport_api_reliability_wlan_LDADD = \
979  libgnunettransport.la \
980  $(top_builddir)/src/hello/libgnunethello.la \
981  $(top_builddir)/src/util/libgnunetutil.la \
982  libgnunettransporttesting.la
983
984 test_transport_api_udp_SOURCES = \
985  test_transport_api.c
986 test_transport_api_udp_LDADD = \
987  libgnunettransport.la \
988  $(top_builddir)/src/hello/libgnunethello.la \
989  $(top_builddir)/src/util/libgnunetutil.la  \
990  libgnunettransporttesting.la
991
992 test_transport_api_timeout_udp_SOURCES = \
993  test_transport_api_timeout.c
994 test_transport_api_timeout_udp_LDADD = \
995  libgnunettransport.la \
996  $(top_builddir)/src/hello/libgnunethello.la \
997  $(top_builddir)/src/util/libgnunetutil.la \
998  libgnunettransporttesting.la
999
1000 test_transport_api_udp_nat_SOURCES = \
1001  test_transport_api.c
1002 test_transport_api_udp_nat_LDADD = \
1003  libgnunettransport.la \
1004  $(top_builddir)/src/hello/libgnunethello.la \
1005  $(top_builddir)/src/util/libgnunetutil.la  \
1006  libgnunettransporttesting.la
1007
1008 test_transport_api_unix_SOURCES = \
1009  test_transport_api.c
1010 test_transport_api_unix_LDADD = \
1011  libgnunettransport.la \
1012  $(top_builddir)/src/hello/libgnunethello.la \
1013  $(top_builddir)/src/util/libgnunetutil.la \
1014  libgnunettransporttesting.la
1015
1016 test_transport_api_unix_abstract_SOURCES = \
1017  test_transport_api.c
1018 test_transport_api_unix_abstract_LDADD = \
1019  libgnunettransport.la \
1020  $(top_builddir)/src/hello/libgnunethello.la \
1021  $(top_builddir)/src/util/libgnunetutil.la \
1022  libgnunettransporttesting.la
1023
1024 # HTTP tests
1025 test_transport_api_http_SOURCES = \
1026  test_transport_api.c
1027 test_transport_api_http_LDADD = \
1028  libgnunettransport.la \
1029  $(top_builddir)/src/hello/libgnunethello.la \
1030  $(top_builddir)/src/util/libgnunetutil.la \
1031  libgnunettransporttesting.la
1032
1033 test_transport_api_http_reverse_SOURCES = \
1034  test_transport_api.c
1035 test_transport_api_http_reverse_LDADD = \
1036  libgnunettransport.la \
1037  $(top_builddir)/src/hello/libgnunethello.la \
1038  $(top_builddir)/src/util/libgnunetutil.la \
1039  libgnunettransporttesting.la
1040
1041 test_transport_api_timeout_http_SOURCES = \
1042  test_transport_api_timeout.c
1043 test_transport_api_timeout_http_LDADD = \
1044  libgnunettransport.la \
1045  $(top_builddir)/src/hello/libgnunethello.la \
1046  $(top_builddir)/src/util/libgnunetutil.la \
1047  libgnunettransporttesting.la
1048
1049 test_transport_api_reliability_http_SOURCES = \
1050  test_transport_api_reliability.c
1051 test_transport_api_reliability_http_LDADD = \
1052  libgnunettransport.la \
1053  $(top_builddir)/src/hello/libgnunethello.la \
1054  $(top_builddir)/src/util/libgnunetutil.la \
1055  libgnunettransporttesting.la
1056
1057 test_transport_api_reliability_http_xhr_SOURCES = \
1058  test_transport_api_reliability.c
1059 test_transport_api_reliability_http_xhr_LDADD = \
1060  libgnunettransport.la \
1061  $(top_builddir)/src/hello/libgnunethello.la \
1062  $(top_builddir)/src/util/libgnunetutil.la \
1063  libgnunettransporttesting.la
1064
1065 test_quota_compliance_http_SOURCES = \
1066  test_quota_compliance.c
1067 test_quota_compliance_http_LDADD = \
1068  libgnunettransport.la \
1069  $(top_builddir)/src/hello/libgnunethello.la \
1070  $(top_builddir)/src/ats/libgnunetats.la \
1071  $(top_builddir)/src/nt/libgnunetnt.la \
1072  $(top_builddir)/src/util/libgnunetutil.la \
1073  libgnunettransporttesting.la
1074
1075 test_quota_compliance_http_asymmetric_SOURCES = \
1076  test_quota_compliance.c
1077 test_quota_compliance_http_asymmetric_LDADD = \
1078  libgnunettransport.la \
1079  $(top_builddir)/src/hello/libgnunethello.la \
1080  $(top_builddir)/src/ats/libgnunetats.la \
1081  $(top_builddir)/src/nt/libgnunetnt.la \
1082  $(top_builddir)/src/util/libgnunetutil.la \
1083  libgnunettransporttesting.la
1084
1085 test_quota_compliance_https_SOURCES = \
1086  test_quota_compliance.c
1087 test_quota_compliance_https_LDADD = \
1088  libgnunettransport.la \
1089  $(top_builddir)/src/hello/libgnunethello.la \
1090  $(top_builddir)/src/ats/libgnunetats.la \
1091  $(top_builddir)/src/nt/libgnunetnt.la \
1092  $(top_builddir)/src/util/libgnunetutil.la \
1093  libgnunettransporttesting.la
1094
1095 test_quota_compliance_https_asymmetric_SOURCES = \
1096  test_quota_compliance.c
1097 test_quota_compliance_https_asymmetric_LDADD = \
1098  libgnunettransport.la \
1099  $(top_builddir)/src/hello/libgnunethello.la \
1100  $(top_builddir)/src/ats/libgnunetats.la \
1101  $(top_builddir)/src/nt/libgnunetnt.la \
1102  $(top_builddir)/src/util/libgnunetutil.la \
1103  libgnunettransporttesting.la
1104
1105 # HTTPS tests
1106 test_transport_api_https_SOURCES = \
1107  test_transport_api.c
1108 test_transport_api_https_LDADD = \
1109  libgnunettransport.la \
1110  $(top_builddir)/src/hello/libgnunethello.la \
1111  $(top_builddir)/src/util/libgnunetutil.la  \
1112  libgnunettransporttesting.la
1113
1114 test_transport_api_timeout_https_SOURCES = \
1115  test_transport_api_timeout.c
1116 test_transport_api_timeout_https_LDADD = \
1117  libgnunettransport.la \
1118  $(top_builddir)/src/hello/libgnunethello.la \
1119  $(top_builddir)/src/util/libgnunetutil.la \
1120  libgnunettransporttesting.la
1121
1122
1123 test_transport_api_reliability_https_SOURCES = \
1124  test_transport_api_reliability.c
1125 test_transport_api_reliability_https_LDADD = \
1126  libgnunettransport.la \
1127  $(top_builddir)/src/hello/libgnunethello.la \
1128  $(top_builddir)/src/util/libgnunetutil.la \
1129  libgnunettransporttesting.la
1130
1131 test_transport_api_reliability_https_xhr_SOURCES = \
1132  test_transport_api_reliability.c
1133 test_transport_api_reliability_https_xhr_LDADD = \
1134  libgnunettransport.la \
1135  $(top_builddir)/src/hello/libgnunethello.la \
1136  $(top_builddir)/src/util/libgnunetutil.la \
1137  libgnunettransporttesting.la
1138
1139 test_transport_api_reliability_unix_SOURCES = \
1140  test_transport_api_reliability.c
1141 test_transport_api_reliability_unix_LDADD = \
1142  libgnunettransport.la \
1143  $(top_builddir)/src/hello/libgnunethello.la \
1144  $(top_builddir)/src/util/libgnunetutil.la \
1145  libgnunettransporttesting.la
1146
1147 test_transport_api_reliability_udp_SOURCES = \
1148  test_transport_api_reliability.c
1149 test_transport_api_reliability_udp_LDADD = \
1150  libgnunettransport.la \
1151  $(top_builddir)/src/hello/libgnunethello.la \
1152  $(top_builddir)/src/util/libgnunetutil.la \
1153  libgnunettransporttesting.la
1154
1155 if LINUX
1156 test_transport_api_wlan_SOURCES = \
1157  test_transport_api.c
1158 test_transport_api_wlan_LDADD = \
1159  libgnunettransport.la \
1160  $(top_builddir)/src/hello/libgnunethello.la \
1161  $(top_builddir)/src/util/libgnunetutil.la \
1162  libgnunettransporttesting.la
1163 endif
1164
1165 if LINUX
1166 if HAVE_LIBBLUETOOTH
1167 test_transport_api_bluetooth_SOURCES = \
1168  test_transport_api.c
1169 test_transport_api_bluetooth_LDADD = \
1170  libgnunettransport.la \
1171  $(top_builddir)/src/hello/libgnunethello.la \
1172  $(top_builddir)/src/util/libgnunetutil.la \
1173  libgnunettransporttesting.la
1174 endif
1175 endif
1176
1177 test_transport_address_switch_tcp_SOURCES = \
1178  test_transport_address_switch.c
1179 test_transport_address_switch_tcp_LDADD = \
1180  libgnunettransport.la \
1181  $(top_builddir)/src/hello/libgnunethello.la \
1182  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1183  $(top_builddir)/src/util/libgnunetutil.la \
1184  libgnunettransporttesting.la
1185
1186  test_transport_address_switch_udp_SOURCES = \
1187  test_transport_address_switch.c
1188 test_transport_address_switch_udp_LDADD = \
1189  libgnunettransport.la \
1190  $(top_builddir)/src/hello/libgnunethello.la \
1191  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1192  $(top_builddir)/src/util/libgnunetutil.la \
1193  libgnunettransporttesting.la
1194
1195
1196  test_transport_address_switch_http_SOURCES = \
1197  test_transport_address_switch.c
1198 test_transport_address_switch_http_LDADD = \
1199  libgnunettransport.la \
1200  $(top_builddir)/src/hello/libgnunethello.la \
1201  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1202  $(top_builddir)/src/util/libgnunetutil.la \
1203  libgnunettransporttesting.la
1204
1205  test_transport_address_switch_https_SOURCES = \
1206  test_transport_address_switch.c
1207 test_transport_address_switch_https_LDADD = \
1208  libgnunettransport.la \
1209  $(top_builddir)/src/hello/libgnunethello.la \
1210  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1211  $(top_builddir)/src/util/libgnunetutil.la \
1212  libgnunettransporttesting.la
1213
1214 test_quota_compliance_tcp_SOURCES = \
1215  test_quota_compliance.c
1216 test_quota_compliance_tcp_LDADD = \
1217  libgnunettransport.la \
1218  $(top_builddir)/src/hello/libgnunethello.la \
1219  $(top_builddir)/src/ats/libgnunetats.la \
1220  $(top_builddir)/src/nt/libgnunetnt.la \
1221  $(top_builddir)/src/util/libgnunetutil.la \
1222  libgnunettransporttesting.la
1223
1224 test_quota_compliance_tcp_asymmetric_SOURCES = \
1225  test_quota_compliance.c
1226 test_quota_compliance_tcp_asymmetric_LDADD = \
1227  libgnunettransport.la \
1228  $(top_builddir)/src/hello/libgnunethello.la \
1229  $(top_builddir)/src/nt/libgnunetnt.la \
1230  $(top_builddir)/src/ats/libgnunetats.la \
1231  $(top_builddir)/src/util/libgnunetutil.la \
1232  libgnunettransporttesting.la
1233
1234 test_quota_compliance_udp_SOURCES = \
1235  test_quota_compliance.c
1236 test_quota_compliance_udp_LDADD = \
1237  libgnunettransport.la \
1238  $(top_builddir)/src/hello/libgnunethello.la \
1239  $(top_builddir)/src/ats/libgnunetats.la \
1240  $(top_builddir)/src/nt/libgnunetnt.la \
1241  $(top_builddir)/src/util/libgnunetutil.la \
1242  libgnunettransporttesting.la
1243
1244 test_quota_compliance_unix_SOURCES = \
1245  test_quota_compliance.c
1246 test_quota_compliance_unix_LDADD = \
1247  libgnunettransport.la \
1248  $(top_builddir)/src/hello/libgnunethello.la \
1249  $(top_builddir)/src/ats/libgnunetats.la \
1250  $(top_builddir)/src/nt/libgnunetnt.la \
1251  $(top_builddir)/src/util/libgnunetutil.la \
1252  libgnunettransporttesting.la
1253
1254 test_quota_compliance_unix_asymmetric_SOURCES = \
1255  test_quota_compliance.c
1256 test_quota_compliance_unix_asymmetric_LDADD = \
1257  libgnunettransport.la \
1258  $(top_builddir)/src/hello/libgnunethello.la \
1259  $(top_builddir)/src/ats/libgnunetats.la \
1260  $(top_builddir)/src/nt/libgnunetnt.la \
1261  $(top_builddir)/src/util/libgnunetutil.la \
1262  libgnunettransporttesting.la
1263
1264 test_quota_compliance_wlan_SOURCES = \
1265  test_quota_compliance.c
1266 test_quota_compliance_wlan_LDADD = \
1267  libgnunettransport.la \
1268  $(top_builddir)/src/hello/libgnunethello.la \
1269  $(top_builddir)/src/ats/libgnunetats.la \
1270  $(top_builddir)/src/nt/libgnunetnt.la \
1271  $(top_builddir)/src/util/libgnunetutil.la \
1272  libgnunettransporttesting.la
1273
1274 test_quota_compliance_wlan_asymmetric_SOURCES = \
1275  test_quota_compliance.c
1276 test_quota_compliance_wlan_asymmetric_LDADD = \
1277  libgnunettransport.la \
1278  $(top_builddir)/src/hello/libgnunethello.la \
1279  $(top_builddir)/src/ats/libgnunetats.la \
1280  $(top_builddir)/src/nt/libgnunetnt.la \
1281  $(top_builddir)/src/util/libgnunetutil.la \
1282  libgnunettransporttesting.la
1283
1284 test_quota_compliance_bluetooth_SOURCES = \
1285  test_quota_compliance.c
1286 test_quota_compliance_bluetooth_LDADD = \
1287  libgnunettransport.la \
1288  $(top_builddir)/src/hello/libgnunethello.la \
1289  $(top_builddir)/src/ats/libgnunetats.la \
1290  $(top_builddir)/src/nt/libgnunetnt.la \
1291  $(top_builddir)/src/util/libgnunetutil.la \
1292  libgnunettransporttesting.la
1293
1294 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1295  test_quota_compliance.c
1296 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1297  libgnunettransport.la \
1298  $(top_builddir)/src/hello/libgnunethello.la \
1299  $(top_builddir)/src/ats/libgnunetats.la \
1300  $(top_builddir)/src/nt/libgnunetnt.la \
1301  $(top_builddir)/src/util/libgnunetutil.la \
1302  libgnunettransporttesting.la
1303
1304 test_transport_api_multi_SOURCES = \
1305  test_transport_api.c
1306 test_transport_api_multi_LDADD = \
1307  libgnunettransport.la \
1308  $(top_builddir)/src/hello/libgnunethello.la \
1309  $(top_builddir)/src/util/libgnunetutil.la \
1310  libgnunettransporttesting.la
1311
1312 test_transport_api_monitor_peers_SOURCES = \
1313  test_transport_api_monitor_peers.c
1314 test_transport_api_monitor_peers_LDADD = \
1315  libgnunettransport.la \
1316  $(top_builddir)/src/hello/libgnunethello.la \
1317  $(top_builddir)/src/util/libgnunetutil.la \
1318  libgnunettransporttesting.la
1319
1320 test_transport_api_slow_ats_SOURCES = \
1321  test_transport_api.c
1322 test_transport_api_slow_ats_LDADD = \
1323  libgnunettransport.la \
1324  $(top_builddir)/src/hello/libgnunethello.la \
1325  $(top_builddir)/src/util/libgnunetutil.la  \
1326  libgnunettransporttesting.la
1327
1328
1329 EXTRA_DIST = \
1330 communicator-unix.conf \
1331 test_plugin_hostkey \
1332 test_plugin_hostkey.ecc \
1333 test_delay \
1334 template_cfg_peer1.conf\
1335 template_cfg_peer2.conf\
1336 test_plugin_transport_data.conf\
1337 test_plugin_transport_data_udp.conf\
1338 test_quota_compliance_data.conf\
1339 test_quota_compliance_http_peer1.conf\
1340 test_quota_compliance_http_peer2.conf\
1341 test_quota_compliance_https_peer1.conf\
1342 test_quota_compliance_https_peer2.conf\
1343 test_quota_compliance_tcp_peer1.conf\
1344 test_quota_compliance_tcp_peer2.conf\
1345 test_quota_compliance_udp_peer1.conf\
1346 test_quota_compliance_udp_peer2.conf\
1347 test_quota_compliance_unix_peer1.conf\
1348 test_quota_compliance_unix_peer2.conf\
1349 test_quota_compliance_wlan_peer1.conf\
1350 test_quota_compliance_wlan_peer2.conf\
1351 test_quota_compliance_bluetooth_peer1.conf\
1352 test_quota_compliance_bluetooth_peer2.conf\
1353 test_quota_compliance_http_asymmetric_peer1.conf\
1354 test_quota_compliance_http_asymmetric_peer2.conf\
1355 test_quota_compliance_https_asymmetric_peer1.conf\
1356 test_quota_compliance_https_asymmetric_peer2.conf\
1357 test_quota_compliance_tcp_asymmetric_peer1.conf\
1358 test_quota_compliance_tcp_asymmetric_peer2.conf\
1359 test_quota_compliance_unix_asymmetric_peer1.conf\
1360 test_quota_compliance_unix_asymmetric_peer2.conf\
1361 test_quota_compliance_wlan_asymmetric_peer1.conf\
1362 test_quota_compliance_wlan_asymmetric_peer2.conf\
1363 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1364 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1365 test_transport_api_data.conf\
1366 test_transport_api_blacklisting_tcp_peer1.conf \
1367 test_transport_api_blacklisting_tcp_peer2.conf \
1368 test_transport_api_http_peer1.conf\
1369 test_transport_api_http_peer2.conf\
1370 test_transport_api_https_peer1.conf\
1371 test_transport_api_https_peer2.conf\
1372 test_transport_api_limited_sockets_tcp_peer1.conf\
1373 test_transport_api_limited_sockets_tcp_peer2.conf\
1374 test_transport_api_timeout_tcp_peer1.conf\
1375 test_transport_api_timeout_tcp_peer2.conf\
1376 test_transport_api_multi_peer1.conf\
1377 test_transport_api_multi_peer2.conf\
1378 test_transport_api_restart_1peer_peer1.conf\
1379 test_transport_api_restart_1peer_peer2.conf\
1380 test_transport_api_reliability_http_peer1.conf\
1381 test_transport_api_reliability_http_peer2.conf\
1382 test_transport_api_reliability_https_peer1.conf\
1383 test_transport_api_reliability_https_peer2.conf\
1384 test_transport_api_reliability_tcp_nat_peer1.conf\
1385 test_transport_api_reliability_tcp_nat_peer2.conf\
1386 test_transport_api_reliability_tcp_peer1.conf\
1387 test_transport_api_reliability_tcp_peer2.conf\
1388 test_transport_api_reliability_wlan_peer1.conf\
1389 test_transport_api_reliability_wlan_peer2.conf\
1390 test_transport_api_reliability_bluetooth_peer1.conf\
1391 test_transport_api_reliability_bluetooth_peer2.conf\
1392 test_transport_api_manipulation_send_tcp_peer1.conf\
1393 test_transport_api_manipulation_send_tcp_peer2.conf\
1394 test_transport_api_manipulation_recv_tcp_peer1.conf\
1395 test_transport_api_manipulation_recv_tcp_peer2.conf\
1396 test_transport_api_manipulation_cfg_peer1.conf\
1397 test_transport_api_manipulation_cfg_peer2.conf\
1398 test_transport_api_restart_1peer_peer1.conf\
1399 test_transport_api_restart_1peer_peer2.conf\
1400 test_transport_api_restart_2peers_peer1.conf\
1401 test_transport_api_restart_2peers_peer2.conf\
1402 test_transport_api_tcp_nat_peer1.conf\
1403 test_transport_api_tcp_nat_peer2.conf\
1404 test_transport_api_tcp_peer1.conf\
1405 test_transport_api_tcp_peer2.conf\
1406 test_transport_api_udp_nat_peer1.conf\
1407 test_transport_api_udp_nat_peer2.conf\
1408 test_transport_api_udp_peer1.conf\
1409 test_transport_api_udp_peer2.conf\
1410 test_transport_api_timeout_udp_peer1.conf\
1411 test_transport_api_timeout_udp_peer2.conf\
1412 test_transport_api_unix_peer1.conf\
1413 test_transport_api_unix_peer2.conf\
1414 test_transport_api_unix_abstract_peer1.conf \
1415 test_transport_api_unix_abstract_peer2.conf \
1416 test_transport_api_timeout_unix_peer1.conf\
1417 test_transport_api_timeout_unix_peer2.conf\
1418 test_transport_api_timeout_wlan_peer1.conf \
1419 test_transport_api_timeout_wlan_peer2.conf \
1420 test_transport_api_timeout_bluetooth_peer1.conf\
1421 test_transport_api_timeout_bluetooth_peer2.conf\
1422 test_transport_api_reliability_udp_peer1.conf\
1423 test_transport_api_reliability_udp_peer2.conf\
1424 test_transport_api_reliability_http_xhr_peer1.conf\
1425 test_transport_api_reliability_http_xhr_peer2.conf\
1426 test_transport_api_reliability_https_xhr_peer1.conf\
1427 test_transport_api_reliability_https_xhr_peer2.conf\
1428 test_transport_api_reliability_unix_peer1.conf\
1429 test_transport_api_reliability_unix_peer2.conf\
1430 test_transport_api_reliability_wlan_peer1.conf\
1431 test_transport_api_reliability_wlan_peer2.conf\
1432 test_transport_api_unreliability_wlan_peer1.conf\
1433 test_transport_api_unreliability_wlan_peer2.conf\
1434 test_transport_api_reliability_bluetooth_peer1.conf\
1435 test_transport_api_reliability_bluetooth_peer2.conf\
1436 test_transport_api_wlan_peer1.conf\
1437 test_transport_api_wlan_peer2.conf\
1438 test_transport_api_bluetooth_peer1.conf\
1439 test_transport_api_bluetooth_peer2.conf\
1440 test_transport_api_monitor_peers_peer1.conf\
1441 test_transport_api_monitor_peers_peer2.conf\
1442 test_transport_api_monitor_validation_peer1.conf\
1443 test_transport_api_monitor_validation_peer2.conf\
1444 test_transport_defaults.conf\
1445 test_transport_api_disconnect_tcp_peer1.conf\
1446 test_transport_api_disconnect_tcp_peer2.conf\
1447 test_transport_api_timeout_http_peer1.conf\
1448 test_transport_api_timeout_http_peer2.conf\
1449 test_transport_api_timeout_https_peer1.conf\
1450 test_transport_api_timeout_https_peer2.conf\
1451 test_transport_blacklisting_cfg_peer1.conf \
1452 test_transport_blacklisting_cfg_peer2.conf \
1453 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1454 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1455 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1456 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1457 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1458 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1459 test_transport_api_http_reverse_peer1.conf \
1460 test_transport_api_http_reverse_peer2.conf \
1461 perf_tcp_peer1.conf \
1462 perf_tcp_peer2.conf \
1463 test_transport_api_slow_ats_peer1.conf \
1464 test_transport_api_slow_ats_peer2.conf \
1465   tcp_connection_legacy.c \
1466   tcp_server_mst_legacy.c \
1467   tcp_server_legacy.c \
1468   tcp_service_legacy.c