misc bugfixes
[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-tcp \
145  gnunet-communicator-udp \
146  gnunet-service-tng \
147  $(WLAN_BIN_SENDER) \
148  $(WLAN_BIN_RECEIVER)
149
150 if HAVE_TESTING
151 TESTING_LIBS = libgnunettransporttesting.la \
152                                                          libgnunettransporttesting2.la
153 endif
154
155 lib_LTLIBRARIES = \
156   libgnunettransport.la \
157   libgnunettransportapplication.la \
158   libgnunettransportcore.la \
159   libgnunettransportcommunicator.la \
160   libgnunettransportmonitor.la \
161   $(TESTING_LIBS)
162
163 libgnunettransporttesting_la_SOURCES = \
164   transport-testing.c transport-testing.h \
165   transport-testing-filenames.c \
166   transport-testing-loggers.c \
167   transport-testing-main.c \
168   transport-testing-send.c
169 libgnunettransporttesting_la_LIBADD = \
170   libgnunettransport.la \
171   $(top_builddir)/src/hello/libgnunethello.la \
172   $(top_builddir)/src/ats/libgnunetats.la \
173   $(top_builddir)/src/util/libgnunetutil.la \
174   $(top_builddir)/src/testing/libgnunettesting.la \
175   $(GN_LIBINTL)
176 libgnunettransporttesting_la_LDFLAGS = \
177  $(GN_LIB_LDFLAGS)
178
179 libgnunettransporttesting2_la_SOURCES = \
180   transport-testing2.c transport-testing2.h
181 libgnunettransporttesting2_la_LIBADD = \
182   libgnunettransport.la \
183   $(top_builddir)/src/hello/libgnunethello.la \
184   $(top_builddir)/src/util/libgnunetutil.la
185 libgnunettransporttesting2_la_LDFLAGS = \
186  $(GN_LIB_LDFLAGS)
187
188 libgnunettransport_la_SOURCES = \
189   transport.h \
190   transport_api_address_to_string.c \
191   transport_api_blacklist.c \
192   transport_api_core.c \
193   transport_api_hello_get.c \
194   transport_api_manipulation.c \
195   transport_api_monitor_peers.c \
196   transport_api_monitor_plugins.c \
197   transport_api_offer_hello.c
198
199 libgnunettransport_la_LIBADD = \
200   $(top_builddir)/src/hello/libgnunethello.la \
201   $(top_builddir)/src/ats/libgnunetats.la \
202   $(top_builddir)/src/util/libgnunetutil.la \
203   $(GN_LIBINTL)
204 libgnunettransport_la_LDFLAGS = \
205   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
206   -version-info 4:0:2
207
208 libgnunettransportapplication_la_SOURCES = \
209   transport_api2_application.c
210 libgnunettransportapplication_la_LIBADD = \
211  $(top_builddir)/src/util/libgnunetutil.la \
212  $(LTLIBINTL)
213 libgnunettransportapplication_la_LDFLAGS = \
214   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
215   -version-info 0:0:0
216
217
218 libgnunettransportcore_la_SOURCES = \
219   transport_api2_core.c
220 libgnunettransportcore_la_LIBADD = \
221   $(top_builddir)/src/util/libgnunetutil.la \
222   $(GN_LIBINTL)
223 libgnunettransportcore_la_LDFLAGS = \
224   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
225   -version-info 0:0:0
226
227 libgnunettransportcommunicator_la_SOURCES = \
228   transport_api2_communication.c
229 libgnunettransportcommunicator_la_LIBADD = \
230   $(top_builddir)/src/util/libgnunetutil.la \
231   $(GN_LIBINTL)
232 libgnunettransportcommunicator_la_LDFLAGS = \
233   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
234   -version-info 0:0:0
235
236
237 libgnunettransportmonitor_la_SOURCES = \
238   transport_api2_monitor.c
239 libgnunettransportmonitor_la_LIBADD = \
240   $(top_builddir)/src/util/libgnunetutil.la \
241   $(GN_LIBINTL)
242 libgnunettransportmonitor_la_LDFLAGS = \
243   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
244   -version-info 0:0:0
245
246
247 libexec_PROGRAMS = \
248  $(WLAN_BIN) \
249  $(WLAN_BIN_DUMMY) \
250  $(BT_BIN) \
251  gnunet-service-transport \
252  gnunet-communicator-unix
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   $(LIBGCRYPT_LIBS) \
378   $(GN_LIBINTL)
379
380 plugin_LTLIBRARIES = \
381   libgnunet_plugin_transport_tcp.la \
382   libgnunet_plugin_transport_udp.la \
383   $(UNIX_PLUGIN_LA) \
384   $(HTTP_CLIENT_PLUGIN_LA) \
385   $(HTTPS_CLIENT_PLUGIN_LA) \
386   $(HTTP_SERVER_PLUGIN_LA) \
387   $(HTTPS_SERVER_PLUGIN_LA) \
388   $(WLAN_PLUGIN_LA) \
389   $(BT_PLUGIN_LA)
390
391 # Note: real plugins of course need to be added
392 # to the plugin_LTLIBRARIES above
393 noinst_LTLIBRARIES = \
394   libgnunet_plugin_transport_template.la
395
396 libgnunet_plugin_transport_tcp_la_SOURCES = \
397   plugin_transport_tcp.c
398 libgnunet_plugin_transport_tcp_la_LIBADD = \
399   $(top_builddir)/src/hello/libgnunethello.la \
400   $(top_builddir)/src/statistics/libgnunetstatistics.la \
401   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
402   $(top_builddir)/src/nat/libgnunetnatnew.la \
403   $(top_builddir)/src/util/libgnunetutil.la \
404   $(LTLIBINTL)
405 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
406  $(GN_PLUGIN_LDFLAGS)
407
408 libgnunet_plugin_transport_template_la_SOURCES = \
409   plugin_transport_template.c
410 libgnunet_plugin_transport_template_la_LIBADD = \
411   $(top_builddir)/src/util/libgnunetutil.la \
412   $(LTLIBINTL)
413 libgnunet_plugin_transport_template_la_LDFLAGS = \
414  $(GN_PLUGIN_LDFLAGS)
415
416 libgnunet_plugin_transport_wlan_la_SOURCES = \
417   plugin_transport_wlan.c plugin_transport_wlan.h
418 libgnunet_plugin_transport_wlan_la_LIBADD = \
419   $(top_builddir)/src/hello/libgnunethello.la \
420   $(top_builddir)/src/statistics/libgnunetstatistics.la \
421   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
422   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
423   $(top_builddir)/src/util/libgnunetutil.la
424 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
425   $(GN_PLUGIN_LDFLAGS)
426 libgnunet_plugin_transport_wlan_la_CFLAGS = \
427  $(CFLAGS) -DBUILD_WLAN
428
429 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
430   plugin_transport_wlan.c plugin_transport_wlan.h
431 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
432   $(top_builddir)/src/hello/libgnunethello.la \
433   $(top_builddir)/src/statistics/libgnunetstatistics.la \
434   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
435   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
436   $(top_builddir)/src/util/libgnunetutil.la
437 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
438   $(GN_PLUGIN_LDFLAGS)
439 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
440  $(CFLAGS) -DBUILD_BLUETOOTH
441
442 libgnunet_plugin_transport_udp_la_SOURCES = \
443   plugin_transport_udp.c plugin_transport_udp.h \
444   plugin_transport_udp_broadcasting.c
445 libgnunet_plugin_transport_udp_la_LIBADD = \
446   $(top_builddir)/src/hello/libgnunethello.la \
447   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
448   $(top_builddir)/src/statistics/libgnunetstatistics.la \
449   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
450   $(top_builddir)/src/nat/libgnunetnatnew.la \
451   $(top_builddir)/src/util/libgnunetutil.la \
452   $(LTLIBINTL)
453 libgnunet_plugin_transport_udp_la_LDFLAGS = \
454  $(GN_PLUGIN_LDFLAGS)
455
456 libgnunet_plugin_transport_unix_la_SOURCES = \
457   plugin_transport_unix.c
458 libgnunet_plugin_transport_unix_la_LIBADD = \
459   $(top_builddir)/src/hello/libgnunethello.la \
460   $(top_builddir)/src/statistics/libgnunetstatistics.la \
461   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
462   $(top_builddir)/src/util/libgnunetutil.la \
463   $(LTLIBINTL)
464 libgnunet_plugin_transport_unix_la_LDFLAGS = \
465  $(GN_PLUGIN_LDFLAGS)
466
467
468 libgnunet_plugin_transport_http_client_la_SOURCES = \
469   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
470 libgnunet_plugin_transport_http_client_la_LIBADD = \
471   $(top_builddir)/src/hello/libgnunethello.la \
472   $(top_builddir)/src/statistics/libgnunetstatistics.la \
473   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
474   $(LIB_GNURL) \
475   $(top_builddir)/src/util/libgnunetutil.la
476 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
477  $(GN_PLUGIN_LDFLAGS)
478 libgnunet_plugin_transport_http_client_la_CFLAGS = \
479  $(CFLAGS)
480 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
481  $(CPP_GNURL) $(AM_CPPFLAGS)
482
483
484 libgnunet_plugin_transport_http_server_la_SOURCES = \
485   plugin_transport_http_server.c plugin_transport_http_common.c
486 libgnunet_plugin_transport_http_server_la_LIBADD = \
487   $(top_builddir)/src/hello/libgnunethello.la \
488   $(top_builddir)/src/statistics/libgnunetstatistics.la \
489   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
490   $(top_builddir)/src/nat/libgnunetnatnew.la \
491   $(top_builddir)/src/util/libgnunetutil.la
492 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
493  $(GN_LIBMHD) \
494  $(GN_PLUGIN_LDFLAGS)
495 libgnunet_plugin_transport_http_server_la_CFLAGS = \
496  $(CFLAGS)
497
498 libgnunet_plugin_transport_https_client_la_SOURCES = \
499   plugin_transport_http_client.c plugin_transport_http_common.c
500 libgnunet_plugin_transport_https_client_la_LIBADD = \
501   $(top_builddir)/src/hello/libgnunethello.la \
502   $(top_builddir)/src/statistics/libgnunetstatistics.la \
503   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
504   $(LIB_GNURL) \
505   $(top_builddir)/src/util/libgnunetutil.la
506 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
507  $(GN_PLUGIN_LDFLAGS)
508 libgnunet_plugin_transport_https_client_la_CFLAGS = \
509  $(CFLAGS) -DBUILD_HTTPS
510 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
511  $(CPP_GNURL) $(AM_CPPFLAGS)
512
513
514 libgnunet_plugin_transport_https_server_la_SOURCES = \
515   plugin_transport_http_server.c plugin_transport_http_common.c
516 libgnunet_plugin_transport_https_server_la_LIBADD = \
517   $(top_builddir)/src/hello/libgnunethello.la \
518   $(top_builddir)/src/statistics/libgnunetstatistics.la \
519   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
520   $(top_builddir)/src/nat/libgnunetnatnew.la \
521   $(top_builddir)/src/util/libgnunetutil.la
522 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
523  $(GN_LIBMHD) \
524  $(GN_PLUGIN_LDFLAGS)
525 libgnunet_plugin_transport_https_server_la_CFLAGS = \
526  $(CFLAGS) -DBUILD_HTTPS
527
528
529 if HAVE_TESTING
530 check_PROGRAMS = \
531  test_transport_address_switch_tcp \
532  test_transport_address_switch_udp \
533  test_transport_testing_startstop \
534  test_transport_testing_restart \
535  test_plugin_tcp \
536  test_plugin_udp \
537  $(UNIX_TEST) \
538  $(WLAN_PLUGIN_TEST) \
539  $(BT_PLUGIN_TEST) \
540  test_http_common \
541  $(HTTP_CLIENT_PLUGIN_TEST) \
542  $(HTTPS_CLIENT_PLUGIN_TEST) \
543  $(HTTP_SERVER_PLUGIN_TEST) \
544  $(HTTPS_SERVER_PLUGIN_TEST) \
545  test_transport_api_blacklisting_tcp \
546  test_transport_api_disconnect_tcp \
547  test_transport_api_tcp \
548  test_transport_api_restart_1peer \
549  test_transport_api_restart_2peers \
550  test_transport_api_timeout_tcp \
551  test_transport_api_limited_sockets_tcp \
552  test_transport_api_tcp_nat \
553  test_transport_api_udp \
554  test_transport_api_timeout_udp \
555  $(UNIX_PLUGIN_TEST) \
556  $(UNIX_PLUGIN_TIMEOUT_TEST) \
557  $(UNIX_API_ABSTRACT_TEST) \
558  test_transport_api_udp_nat \
559  $(HTTP_API_TEST) \
560  $(HTTP_REVERSE_API_TEST) \
561  $(HTTP_API_TIMEOUT_TEST) \
562  $(HTTP_SWITCH) \
563  $(HTTPS_API_TEST) \
564  $(HTTPS_API_TIMEOUT_TEST) \
565  $(HTTPS_SWITCH) \
566  $(WLAN_API_TEST) \
567  $(WLAN_TIMEOUT_TEST) \
568  $(BT_API_TEST) \
569  $(BT_TIMEOUT_TEST) \
570  test_transport_api_multi \
571  test_transport_api_monitor_peers \
572  test_transport_blacklisting_no_bl \
573  test_transport_blacklisting_outbound_bl_full \
574  test_transport_blacklisting_outbound_bl_plugin \
575  test_transport_blacklisting_inbound_bl_plugin \
576  test_transport_blacklisting_inbound_bl_full \
577  test_transport_blacklisting_multiple_plugins \
578  test_transport_api_manipulation_send_tcp \
579  test_transport_api_manipulation_recv_tcp \
580  test_transport_api_manipulation_cfg \
581  test_transport_api_reliability_tcp \
582  test_transport_api_reliability_tcp_nat \
583  test_transport_api_reliability_udp \
584  $(UNIX_REL_TEST) \
585  $(HTTP_REL_TEST) \
586  $(HTTPS_REL_TEST) \
587  $(WLAN_REL_TEST) \
588  $(WLAN_UREL_TEST) \
589  $(BT_REL_TEST) \
590  $(BT_UREL_TEST) \
591  test_quota_compliance_tcp \
592  test_quota_compliance_tcp_asymmetric \
593  test_quota_compliance_udp \
594  $(UNIX_QUOTA_TEST) \
595  $(HTTP_QUOTA_TEST) \
596  $(HTTPS_QUOTA_TEST) \
597  $(WLAN_QUOTA_TEST) \
598  $(BT_QUOTA_TEST) 
599 if HAVE_GETOPT_BINARY
600 check_PROGRAMS += \
601 test_transport_api_slow_ats
602 endif
603 endif
604
605 if ENABLE_TEST_RUN
606 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
607 TESTS = \
608  test_transport_address_switch_tcp \
609  test_transport_address_switch_udp \
610  $(HTTP_SWITCH) \
611  $(HTTPS_SWITCH) \
612  test_transport_testing_startstop \
613  test_transport_testing_restart \
614  test_plugin_tcp \
615  test_plugin_udp \
616  $(UNIX_TEST) \
617  $(WLAN_PLUGIN_TEST) \
618  $(BT_PLUGIN_TEST) \
619  test_transport_api_blacklisting_tcp \
620  test_transport_api_disconnect_tcp \
621  test_transport_api_tcp \
622  test_transport_api_restart_1peer \
623  test_transport_api_restart_2peers \
624  test_transport_api_limited_sockets_tcp \
625  test_transport_api_tcp_nat \
626  test_transport_api_udp \
627  $(UNIX_PLUGIN_TEST) \
628  $(UNIX_API_ABSTRACT_TEST) \
629  test_transport_api_udp_nat \
630  $(HTTP_API_TEST) \
631  $(HTTPS_API_TEST) \
632  $(WLAN_API_TEST) \
633  $(BT_API_TEST) \
634  test_transport_api_multi \
635  test_transport_api_monitor_peers \
636  test_transport_blacklisting_no_bl \
637  test_transport_blacklisting_outbound_bl_full \
638  test_transport_blacklisting_outbound_bl_plugin \
639  test_transport_blacklisting_inbound_bl_plugin \
640  test_transport_blacklisting_inbound_bl_full \
641  test_transport_blacklisting_multiple_plugins \
642  test_transport_api_manipulation_send_tcp \
643  test_transport_api_manipulation_recv_tcp \
644  test_transport_api_manipulation_cfg \
645  test_transport_api_reliability_tcp \
646  test_transport_api_reliability_tcp_nat \
647  test_transport_api_reliability_udp \
648  $(UNIX_REL_TEST) \
649  $(HTTP_REL_TEST) \
650  $(HTTPS_REL_TEST) \
651  $(WLAN_REL_TEST) \
652  $(WLAN_UREL_TEST) \
653  $(BT_REL_TEST) \
654  $(BT_UREL_TEST) \
655  test_quota_compliance_tcp \
656  test_quota_compliance_tcp_asymmetric \
657  test_quota_compliance_udp \
658  $(UNIX_QUOTA_TEST) \
659  $(HTTP_QUOTA_TEST) \
660  $(HTTPS_QUOTA_TEST) \
661  test_transport_api_timeout_tcp \
662  test_transport_api_timeout_udp \
663  $(UNIX_PLUGIN_TIMEOUT_TEST) \
664  $(HTTP_API_TIMEOUT_TEST) \
665  $(HTTPS_API_TIMEOUT_TEST) \
666  $(WLAN_TIMEOUT_TEST) \
667  $(BT_TIMEOUT_TEST) \
668  test_communicator_unix
669 if HAVE_GETOPT_BINARY
670 TESTS += \
671 test_transport_api_slow_ats
672 endif
673 endif
674
675 test_transport_testing_startstop_SOURCES = \
676  test_transport_testing_startstop.c
677 test_transport_testing_startstop_LDADD = \
678  $(top_builddir)/src/util/libgnunetutil.la \
679  libgnunettransport.la \
680  $(top_builddir)/src/hello/libgnunethello.la \
681  libgnunettransporttesting.la
682
683 test_transport_testing_restart_SOURCES = \
684  test_transport_testing_restart.c
685 test_transport_testing_restart_LDADD = \
686  $(top_builddir)/src/util/libgnunetutil.la \
687  libgnunettransport.la \
688  $(top_builddir)/src/hello/libgnunethello.la \
689  libgnunettransporttesting.la
690
691 test_transport_api_blacklisting_tcp_SOURCES = \
692  test_transport_api_blacklisting.c
693 test_transport_api_blacklisting_tcp_LDADD = \
694  libgnunettransport.la \
695  $(top_builddir)/src/hello/libgnunethello.la \
696  $(top_builddir)/src/statistics/libgnunetstatistics.la \
697  $(top_builddir)/src/util/libgnunetutil.la \
698  libgnunettransporttesting.la
699
700 test_transport_blacklisting_no_bl_SOURCES = \
701  test_transport_blacklisting.c
702 test_transport_blacklisting_no_bl_LDADD = \
703  libgnunettransport.la \
704  $(top_builddir)/src/hello/libgnunethello.la \
705  $(top_builddir)/src/statistics/libgnunetstatistics.la \
706  $(top_builddir)/src/util/libgnunetutil.la \
707  libgnunettransporttesting.la
708
709 test_transport_blacklisting_outbound_bl_full_SOURCES = \
710  test_transport_blacklisting.c
711 test_transport_blacklisting_outbound_bl_full_LDADD = \
712  libgnunettransport.la \
713  $(top_builddir)/src/hello/libgnunethello.la \
714  $(top_builddir)/src/statistics/libgnunetstatistics.la \
715  $(top_builddir)/src/util/libgnunetutil.la \
716  libgnunettransporttesting.la
717
718 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
719  test_transport_blacklisting.c
720 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
721  libgnunettransport.la \
722  $(top_builddir)/src/hello/libgnunethello.la \
723  $(top_builddir)/src/statistics/libgnunetstatistics.la \
724  $(top_builddir)/src/util/libgnunetutil.la \
725  libgnunettransporttesting.la
726
727 test_transport_blacklisting_inbound_bl_full_SOURCES = \
728  test_transport_blacklisting.c
729 test_transport_blacklisting_inbound_bl_full_LDADD = \
730  libgnunettransport.la \
731  $(top_builddir)/src/hello/libgnunethello.la \
732  $(top_builddir)/src/statistics/libgnunetstatistics.la \
733  $(top_builddir)/src/util/libgnunetutil.la \
734  libgnunettransporttesting.la
735
736 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
737  test_transport_blacklisting.c
738 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
739  libgnunettransport.la \
740  $(top_builddir)/src/hello/libgnunethello.la \
741  $(top_builddir)/src/statistics/libgnunetstatistics.la \
742  $(top_builddir)/src/util/libgnunetutil.la \
743  libgnunettransporttesting.la
744
745 test_transport_blacklisting_multiple_plugins_SOURCES = \
746  test_transport_blacklisting.c
747 test_transport_blacklisting_multiple_plugins_LDADD = \
748  libgnunettransport.la \
749  $(top_builddir)/src/hello/libgnunethello.la \
750  $(top_builddir)/src/statistics/libgnunetstatistics.la \
751  $(top_builddir)/src/util/libgnunetutil.la \
752  libgnunettransporttesting.la
753
754
755 test_transport_api_disconnect_tcp_SOURCES = \
756  test_transport_api_disconnect.c
757 test_transport_api_disconnect_tcp_LDADD = \
758  libgnunettransport.la \
759  $(top_builddir)/src/hello/libgnunethello.la \
760  $(top_builddir)/src/statistics/libgnunetstatistics.la \
761  $(top_builddir)/src/util/libgnunetutil.la \
762  libgnunettransporttesting.la
763
764 test_plugin_tcp_SOURCES = \
765  test_plugin_transport.c
766 test_plugin_tcp_LDADD = \
767  libgnunettransport.la \
768  $(top_builddir)/src/statistics/libgnunetstatistics.la \
769  $(top_builddir)/src/hello/libgnunethello.la \
770  $(top_builddir)/src/util/libgnunetutil.la  \
771  libgnunettransporttesting.la
772
773 test_plugin_udp_SOURCES = \
774  test_plugin_transport.c
775 test_plugin_udp_LDADD = \
776  libgnunettransport.la \
777  $(top_builddir)/src/statistics/libgnunetstatistics.la \
778  $(top_builddir)/src/hello/libgnunethello.la \
779  $(top_builddir)/src/util/libgnunetutil.la  \
780  libgnunettransporttesting.la
781
782 test_communicator_unix_SOURCES = \
783  test_communicator_unix.c
784 test_communicator_unix_LDADD = \
785  libgnunettransporttesting2.la \
786  $(top_builddir)/src/util/libgnunetutil.la
787
788 test_plugin_unix_SOURCES = \
789  test_plugin_transport.c
790 test_plugin_unix_LDADD = \
791  libgnunettransport.la \
792  $(top_builddir)/src/statistics/libgnunetstatistics.la \
793  $(top_builddir)/src/hello/libgnunethello.la \
794  $(top_builddir)/src/util/libgnunetutil.la  \
795  libgnunettransporttesting.la
796
797 test_plugin_wlan_SOURCES = \
798  test_plugin_transport.c
799 test_plugin_wlan_LDADD = \
800  libgnunettransport.la \
801  $(top_builddir)/src/statistics/libgnunetstatistics.la \
802  $(top_builddir)/src/hello/libgnunethello.la \
803  $(top_builddir)/src/util/libgnunetutil.la  \
804  libgnunettransporttesting.la
805
806 test_plugin_bluetooth_SOURCES = \
807  test_plugin_transport.c
808 test_plugin_bluetooth_LDADD = \
809  libgnunettransport.la \
810  $(top_builddir)/src/statistics/libgnunetstatistics.la \
811  $(top_builddir)/src/hello/libgnunethello.la \
812  $(top_builddir)/src/util/libgnunetutil.la  \
813  libgnunettransporttesting.la
814
815 test_http_common_SOURCES = \
816  test_http_common.c plugin_transport_http_common.c
817 test_http_common_LDADD = \
818  libgnunettransport.la \
819  $(top_builddir)/src/statistics/libgnunetstatistics.la \
820  $(top_builddir)/src/hello/libgnunethello.la \
821  $(top_builddir)/src/util/libgnunetutil.la  \
822  libgnunettransporttesting.la
823
824 test_plugin_http_server_SOURCES = \
825  test_plugin_transport.c
826 test_plugin_http_server_LDADD = \
827  libgnunettransport.la \
828  $(top_builddir)/src/statistics/libgnunetstatistics.la \
829  $(top_builddir)/src/hello/libgnunethello.la \
830  $(top_builddir)/src/util/libgnunetutil.la  \
831  libgnunettransporttesting.la
832
833 test_plugin_https_server_SOURCES = \
834  test_plugin_transport.c
835 test_plugin_https_server_LDADD = \
836  libgnunettransport.la \
837  $(top_builddir)/src/statistics/libgnunetstatistics.la \
838  $(top_builddir)/src/hello/libgnunethello.la \
839  $(top_builddir)/src/util/libgnunetutil.la  \
840  libgnunettransporttesting.la
841
842 test_plugin_http_client_SOURCES = \
843  test_plugin_transport.c
844 test_plugin_http_client_LDADD = \
845  libgnunettransport.la \
846  $(top_builddir)/src/statistics/libgnunetstatistics.la \
847  $(top_builddir)/src/hello/libgnunethello.la \
848  $(top_builddir)/src/util/libgnunetutil.la  \
849  libgnunettransporttesting.la
850
851 test_plugin_https_client_SOURCES = \
852  test_plugin_transport.c
853 test_plugin_https_client_LDADD = \
854  libgnunettransport.la \
855  $(top_builddir)/src/statistics/libgnunetstatistics.la \
856  $(top_builddir)/src/hello/libgnunethello.la \
857  $(top_builddir)/src/util/libgnunetutil.la  \
858  libgnunettransporttesting.la
859
860 test_transport_api_tcp_SOURCES = \
861  test_transport_api.c
862 test_transport_api_tcp_LDADD = \
863  libgnunettransport.la \
864  $(top_builddir)/src/hello/libgnunethello.la \
865  $(top_builddir)/src/util/libgnunetutil.la  \
866  libgnunettransporttesting.la
867
868 test_transport_api_restart_1peer_SOURCES = \
869  test_transport_api_restart_reconnect.c
870 test_transport_api_restart_1peer_LDADD = \
871  libgnunettransport.la \
872  $(top_builddir)/src/hello/libgnunethello.la \
873  $(top_builddir)/src/ats/libgnunetats.la \
874  $(top_builddir)/src/statistics/libgnunetstatistics.la \
875  $(top_builddir)/src/util/libgnunetutil.la \
876  libgnunettransporttesting.la
877
878 test_transport_api_restart_2peers_SOURCES = \
879  test_transport_api_restart_reconnect.c
880 test_transport_api_restart_2peers_LDADD = \
881  libgnunettransport.la \
882  $(top_builddir)/src/hello/libgnunethello.la \
883  $(top_builddir)/src/ats/libgnunetats.la \
884 $(top_builddir)/src/statistics/libgnunetstatistics.la \
885  $(top_builddir)/src/util/libgnunetutil.la \
886  libgnunettransporttesting.la
887
888 test_transport_api_limited_sockets_tcp_SOURCES = \
889  test_transport_api_limited_sockets.c
890 test_transport_api_limited_sockets_tcp_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_tcp_nat_SOURCES = \
897  test_transport_api.c
898 test_transport_api_tcp_nat_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_send_tcp_SOURCES = \
905  test_transport_api_manipulation_send_tcp.c
906 test_transport_api_manipulation_send_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_recv_tcp_SOURCES = \
913  test_transport_api_manipulation_recv_tcp.c
914 test_transport_api_manipulation_recv_tcp_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_manipulation_cfg_SOURCES = \
921  test_transport_api_manipulation_cfg.c
922 test_transport_api_manipulation_cfg_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_reliability_tcp_SOURCES = \
929  test_transport_api_reliability.c
930 test_transport_api_reliability_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_tcp_SOURCES = \
937  test_transport_api_timeout.c
938 test_transport_api_timeout_tcp_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_unix_SOURCES = \
945  test_transport_api_timeout.c
946 test_transport_api_timeout_unix_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_wlan_SOURCES = \
953  test_transport_api_timeout.c
954 test_transport_api_timeout_wlan_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_timeout_bluetooth_SOURCES = \
961  test_transport_api_timeout.c
962 test_transport_api_timeout_bluetooth_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_tcp_nat_SOURCES = \
969  test_transport_api_reliability.c
970 test_transport_api_reliability_tcp_nat_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_bluetooth_SOURCES = \
977  test_transport_api_reliability.c
978 test_transport_api_reliability_bluetooth_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_reliability_wlan_SOURCES = \
985  test_transport_api_reliability.c
986 test_transport_api_reliability_wlan_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_udp_SOURCES = \
993  test_transport_api.c
994 test_transport_api_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_timeout_udp_SOURCES = \
1001  test_transport_api_timeout.c
1002 test_transport_api_timeout_udp_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_udp_nat_SOURCES = \
1009  test_transport_api.c
1010 test_transport_api_udp_nat_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_SOURCES = \
1017  test_transport_api.c
1018 test_transport_api_unix_LDADD = \
1019  libgnunettransport.la \
1020  $(top_builddir)/src/hello/libgnunethello.la \
1021  $(top_builddir)/src/util/libgnunetutil.la \
1022  libgnunettransporttesting.la
1023
1024 test_transport_api_unix_abstract_SOURCES = \
1025  test_transport_api.c
1026 test_transport_api_unix_abstract_LDADD = \
1027  libgnunettransport.la \
1028  $(top_builddir)/src/hello/libgnunethello.la \
1029  $(top_builddir)/src/util/libgnunetutil.la \
1030  libgnunettransporttesting.la
1031
1032 # HTTP tests
1033 test_transport_api_http_SOURCES = \
1034  test_transport_api.c
1035 test_transport_api_http_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_http_reverse_SOURCES = \
1042  test_transport_api.c
1043 test_transport_api_http_reverse_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_timeout_http_SOURCES = \
1050  test_transport_api_timeout.c
1051 test_transport_api_timeout_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_SOURCES = \
1058  test_transport_api_reliability.c
1059 test_transport_api_reliability_http_LDADD = \
1060  libgnunettransport.la \
1061  $(top_builddir)/src/hello/libgnunethello.la \
1062  $(top_builddir)/src/util/libgnunetutil.la \
1063  libgnunettransporttesting.la
1064
1065 test_transport_api_reliability_http_xhr_SOURCES = \
1066  test_transport_api_reliability.c
1067 test_transport_api_reliability_http_xhr_LDADD = \
1068  libgnunettransport.la \
1069  $(top_builddir)/src/hello/libgnunethello.la \
1070  $(top_builddir)/src/util/libgnunetutil.la \
1071  libgnunettransporttesting.la
1072
1073 test_quota_compliance_http_SOURCES = \
1074  test_quota_compliance.c
1075 test_quota_compliance_http_LDADD = \
1076  libgnunettransport.la \
1077  $(top_builddir)/src/hello/libgnunethello.la \
1078  $(top_builddir)/src/ats/libgnunetats.la \
1079  $(top_builddir)/src/nt/libgnunetnt.la \
1080  $(top_builddir)/src/util/libgnunetutil.la \
1081  libgnunettransporttesting.la
1082
1083 test_quota_compliance_http_asymmetric_SOURCES = \
1084  test_quota_compliance.c
1085 test_quota_compliance_http_asymmetric_LDADD = \
1086  libgnunettransport.la \
1087  $(top_builddir)/src/hello/libgnunethello.la \
1088  $(top_builddir)/src/ats/libgnunetats.la \
1089  $(top_builddir)/src/nt/libgnunetnt.la \
1090  $(top_builddir)/src/util/libgnunetutil.la \
1091  libgnunettransporttesting.la
1092
1093 test_quota_compliance_https_SOURCES = \
1094  test_quota_compliance.c
1095 test_quota_compliance_https_LDADD = \
1096  libgnunettransport.la \
1097  $(top_builddir)/src/hello/libgnunethello.la \
1098  $(top_builddir)/src/ats/libgnunetats.la \
1099  $(top_builddir)/src/nt/libgnunetnt.la \
1100  $(top_builddir)/src/util/libgnunetutil.la \
1101  libgnunettransporttesting.la
1102
1103 test_quota_compliance_https_asymmetric_SOURCES = \
1104  test_quota_compliance.c
1105 test_quota_compliance_https_asymmetric_LDADD = \
1106  libgnunettransport.la \
1107  $(top_builddir)/src/hello/libgnunethello.la \
1108  $(top_builddir)/src/ats/libgnunetats.la \
1109  $(top_builddir)/src/nt/libgnunetnt.la \
1110  $(top_builddir)/src/util/libgnunetutil.la \
1111  libgnunettransporttesting.la
1112
1113 # HTTPS tests
1114 test_transport_api_https_SOURCES = \
1115  test_transport_api.c
1116 test_transport_api_https_LDADD = \
1117  libgnunettransport.la \
1118  $(top_builddir)/src/hello/libgnunethello.la \
1119  $(top_builddir)/src/util/libgnunetutil.la  \
1120  libgnunettransporttesting.la
1121
1122 test_transport_api_timeout_https_SOURCES = \
1123  test_transport_api_timeout.c
1124 test_transport_api_timeout_https_LDADD = \
1125  libgnunettransport.la \
1126  $(top_builddir)/src/hello/libgnunethello.la \
1127  $(top_builddir)/src/util/libgnunetutil.la \
1128  libgnunettransporttesting.la
1129
1130
1131 test_transport_api_reliability_https_SOURCES = \
1132  test_transport_api_reliability.c
1133 test_transport_api_reliability_https_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_https_xhr_SOURCES = \
1140  test_transport_api_reliability.c
1141 test_transport_api_reliability_https_xhr_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_unix_SOURCES = \
1148  test_transport_api_reliability.c
1149 test_transport_api_reliability_unix_LDADD = \
1150  libgnunettransport.la \
1151  $(top_builddir)/src/hello/libgnunethello.la \
1152  $(top_builddir)/src/util/libgnunetutil.la \
1153  libgnunettransporttesting.la
1154
1155 test_transport_api_reliability_udp_SOURCES = \
1156  test_transport_api_reliability.c
1157 test_transport_api_reliability_udp_LDADD = \
1158  libgnunettransport.la \
1159  $(top_builddir)/src/hello/libgnunethello.la \
1160  $(top_builddir)/src/util/libgnunetutil.la \
1161  libgnunettransporttesting.la
1162
1163 if LINUX
1164 test_transport_api_wlan_SOURCES = \
1165  test_transport_api.c
1166 test_transport_api_wlan_LDADD = \
1167  libgnunettransport.la \
1168  $(top_builddir)/src/hello/libgnunethello.la \
1169  $(top_builddir)/src/util/libgnunetutil.la \
1170  libgnunettransporttesting.la
1171 endif
1172
1173 if LINUX
1174 if HAVE_LIBBLUETOOTH
1175 test_transport_api_bluetooth_SOURCES = \
1176  test_transport_api.c
1177 test_transport_api_bluetooth_LDADD = \
1178  libgnunettransport.la \
1179  $(top_builddir)/src/hello/libgnunethello.la \
1180  $(top_builddir)/src/util/libgnunetutil.la \
1181  libgnunettransporttesting.la
1182 endif
1183 endif
1184
1185 test_transport_address_switch_tcp_SOURCES = \
1186  test_transport_address_switch.c
1187 test_transport_address_switch_tcp_LDADD = \
1188  libgnunettransport.la \
1189  $(top_builddir)/src/hello/libgnunethello.la \
1190  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1191  $(top_builddir)/src/util/libgnunetutil.la \
1192  libgnunettransporttesting.la
1193
1194  test_transport_address_switch_udp_SOURCES = \
1195  test_transport_address_switch.c
1196 test_transport_address_switch_udp_LDADD = \
1197  libgnunettransport.la \
1198  $(top_builddir)/src/hello/libgnunethello.la \
1199  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1200  $(top_builddir)/src/util/libgnunetutil.la \
1201  libgnunettransporttesting.la
1202
1203
1204  test_transport_address_switch_http_SOURCES = \
1205  test_transport_address_switch.c
1206 test_transport_address_switch_http_LDADD = \
1207  libgnunettransport.la \
1208  $(top_builddir)/src/hello/libgnunethello.la \
1209  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1210  $(top_builddir)/src/util/libgnunetutil.la \
1211  libgnunettransporttesting.la
1212
1213  test_transport_address_switch_https_SOURCES = \
1214  test_transport_address_switch.c
1215 test_transport_address_switch_https_LDADD = \
1216  libgnunettransport.la \
1217  $(top_builddir)/src/hello/libgnunethello.la \
1218  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1219  $(top_builddir)/src/util/libgnunetutil.la \
1220  libgnunettransporttesting.la
1221
1222 test_quota_compliance_tcp_SOURCES = \
1223  test_quota_compliance.c
1224 test_quota_compliance_tcp_LDADD = \
1225  libgnunettransport.la \
1226  $(top_builddir)/src/hello/libgnunethello.la \
1227  $(top_builddir)/src/ats/libgnunetats.la \
1228  $(top_builddir)/src/nt/libgnunetnt.la \
1229  $(top_builddir)/src/util/libgnunetutil.la \
1230  libgnunettransporttesting.la
1231
1232 test_quota_compliance_tcp_asymmetric_SOURCES = \
1233  test_quota_compliance.c
1234 test_quota_compliance_tcp_asymmetric_LDADD = \
1235  libgnunettransport.la \
1236  $(top_builddir)/src/hello/libgnunethello.la \
1237  $(top_builddir)/src/nt/libgnunetnt.la \
1238  $(top_builddir)/src/ats/libgnunetats.la \
1239  $(top_builddir)/src/util/libgnunetutil.la \
1240  libgnunettransporttesting.la
1241
1242 test_quota_compliance_udp_SOURCES = \
1243  test_quota_compliance.c
1244 test_quota_compliance_udp_LDADD = \
1245  libgnunettransport.la \
1246  $(top_builddir)/src/hello/libgnunethello.la \
1247  $(top_builddir)/src/ats/libgnunetats.la \
1248  $(top_builddir)/src/nt/libgnunetnt.la \
1249  $(top_builddir)/src/util/libgnunetutil.la \
1250  libgnunettransporttesting.la
1251
1252 test_quota_compliance_unix_SOURCES = \
1253  test_quota_compliance.c
1254 test_quota_compliance_unix_LDADD = \
1255  libgnunettransport.la \
1256  $(top_builddir)/src/hello/libgnunethello.la \
1257  $(top_builddir)/src/ats/libgnunetats.la \
1258  $(top_builddir)/src/nt/libgnunetnt.la \
1259  $(top_builddir)/src/util/libgnunetutil.la \
1260  libgnunettransporttesting.la
1261
1262 test_quota_compliance_unix_asymmetric_SOURCES = \
1263  test_quota_compliance.c
1264 test_quota_compliance_unix_asymmetric_LDADD = \
1265  libgnunettransport.la \
1266  $(top_builddir)/src/hello/libgnunethello.la \
1267  $(top_builddir)/src/ats/libgnunetats.la \
1268  $(top_builddir)/src/nt/libgnunetnt.la \
1269  $(top_builddir)/src/util/libgnunetutil.la \
1270  libgnunettransporttesting.la
1271
1272 test_quota_compliance_wlan_SOURCES = \
1273  test_quota_compliance.c
1274 test_quota_compliance_wlan_LDADD = \
1275  libgnunettransport.la \
1276  $(top_builddir)/src/hello/libgnunethello.la \
1277  $(top_builddir)/src/ats/libgnunetats.la \
1278  $(top_builddir)/src/nt/libgnunetnt.la \
1279  $(top_builddir)/src/util/libgnunetutil.la \
1280  libgnunettransporttesting.la
1281
1282 test_quota_compliance_wlan_asymmetric_SOURCES = \
1283  test_quota_compliance.c
1284 test_quota_compliance_wlan_asymmetric_LDADD = \
1285  libgnunettransport.la \
1286  $(top_builddir)/src/hello/libgnunethello.la \
1287  $(top_builddir)/src/ats/libgnunetats.la \
1288  $(top_builddir)/src/nt/libgnunetnt.la \
1289  $(top_builddir)/src/util/libgnunetutil.la \
1290  libgnunettransporttesting.la
1291
1292 test_quota_compliance_bluetooth_SOURCES = \
1293  test_quota_compliance.c
1294 test_quota_compliance_bluetooth_LDADD = \
1295  libgnunettransport.la \
1296  $(top_builddir)/src/hello/libgnunethello.la \
1297  $(top_builddir)/src/ats/libgnunetats.la \
1298  $(top_builddir)/src/nt/libgnunetnt.la \
1299  $(top_builddir)/src/util/libgnunetutil.la \
1300  libgnunettransporttesting.la
1301
1302 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1303  test_quota_compliance.c
1304 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1305  libgnunettransport.la \
1306  $(top_builddir)/src/hello/libgnunethello.la \
1307  $(top_builddir)/src/ats/libgnunetats.la \
1308  $(top_builddir)/src/nt/libgnunetnt.la \
1309  $(top_builddir)/src/util/libgnunetutil.la \
1310  libgnunettransporttesting.la
1311
1312 test_transport_api_multi_SOURCES = \
1313  test_transport_api.c
1314 test_transport_api_multi_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_monitor_peers_SOURCES = \
1321  test_transport_api_monitor_peers.c
1322 test_transport_api_monitor_peers_LDADD = \
1323  libgnunettransport.la \
1324  $(top_builddir)/src/hello/libgnunethello.la \
1325  $(top_builddir)/src/util/libgnunetutil.la \
1326  libgnunettransporttesting.la
1327
1328 test_transport_api_slow_ats_SOURCES = \
1329  test_transport_api.c
1330 test_transport_api_slow_ats_LDADD = \
1331  libgnunettransport.la \
1332  $(top_builddir)/src/hello/libgnunethello.la \
1333  $(top_builddir)/src/util/libgnunetutil.la  \
1334  libgnunettransporttesting.la
1335
1336
1337 EXTRA_DIST = \
1338 communicator-unix.conf \
1339 test_plugin_hostkey \
1340 test_plugin_hostkey.ecc \
1341 test_delay \
1342 template_cfg_peer1.conf\
1343 template_cfg_peer2.conf\
1344 test_plugin_transport_data.conf\
1345 test_plugin_transport_data_udp.conf\
1346 test_quota_compliance_data.conf\
1347 test_quota_compliance_http_peer1.conf\
1348 test_quota_compliance_http_peer2.conf\
1349 test_quota_compliance_https_peer1.conf\
1350 test_quota_compliance_https_peer2.conf\
1351 test_quota_compliance_tcp_peer1.conf\
1352 test_quota_compliance_tcp_peer2.conf\
1353 test_quota_compliance_udp_peer1.conf\
1354 test_quota_compliance_udp_peer2.conf\
1355 test_quota_compliance_unix_peer1.conf\
1356 test_quota_compliance_unix_peer2.conf\
1357 test_quota_compliance_wlan_peer1.conf\
1358 test_quota_compliance_wlan_peer2.conf\
1359 test_quota_compliance_bluetooth_peer1.conf\
1360 test_quota_compliance_bluetooth_peer2.conf\
1361 test_quota_compliance_http_asymmetric_peer1.conf\
1362 test_quota_compliance_http_asymmetric_peer2.conf\
1363 test_quota_compliance_https_asymmetric_peer1.conf\
1364 test_quota_compliance_https_asymmetric_peer2.conf\
1365 test_quota_compliance_tcp_asymmetric_peer1.conf\
1366 test_quota_compliance_tcp_asymmetric_peer2.conf\
1367 test_quota_compliance_unix_asymmetric_peer1.conf\
1368 test_quota_compliance_unix_asymmetric_peer2.conf\
1369 test_quota_compliance_wlan_asymmetric_peer1.conf\
1370 test_quota_compliance_wlan_asymmetric_peer2.conf\
1371 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1372 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1373 test_transport_api_data.conf\
1374 test_transport_api_blacklisting_tcp_peer1.conf \
1375 test_transport_api_blacklisting_tcp_peer2.conf \
1376 test_transport_api_http_peer1.conf\
1377 test_transport_api_http_peer2.conf\
1378 test_transport_api_https_peer1.conf\
1379 test_transport_api_https_peer2.conf\
1380 test_transport_api_limited_sockets_tcp_peer1.conf\
1381 test_transport_api_limited_sockets_tcp_peer2.conf\
1382 test_transport_api_timeout_tcp_peer1.conf\
1383 test_transport_api_timeout_tcp_peer2.conf\
1384 test_transport_api_multi_peer1.conf\
1385 test_transport_api_multi_peer2.conf\
1386 test_transport_api_restart_1peer_peer1.conf\
1387 test_transport_api_restart_1peer_peer2.conf\
1388 test_transport_api_reliability_http_peer1.conf\
1389 test_transport_api_reliability_http_peer2.conf\
1390 test_transport_api_reliability_https_peer1.conf\
1391 test_transport_api_reliability_https_peer2.conf\
1392 test_transport_api_reliability_tcp_nat_peer1.conf\
1393 test_transport_api_reliability_tcp_nat_peer2.conf\
1394 test_transport_api_reliability_tcp_peer1.conf\
1395 test_transport_api_reliability_tcp_peer2.conf\
1396 test_transport_api_reliability_wlan_peer1.conf\
1397 test_transport_api_reliability_wlan_peer2.conf\
1398 test_transport_api_reliability_bluetooth_peer1.conf\
1399 test_transport_api_reliability_bluetooth_peer2.conf\
1400 test_transport_api_manipulation_send_tcp_peer1.conf\
1401 test_transport_api_manipulation_send_tcp_peer2.conf\
1402 test_transport_api_manipulation_recv_tcp_peer1.conf\
1403 test_transport_api_manipulation_recv_tcp_peer2.conf\
1404 test_transport_api_manipulation_cfg_peer1.conf\
1405 test_transport_api_manipulation_cfg_peer2.conf\
1406 test_transport_api_restart_1peer_peer1.conf\
1407 test_transport_api_restart_1peer_peer2.conf\
1408 test_transport_api_restart_2peers_peer1.conf\
1409 test_transport_api_restart_2peers_peer2.conf\
1410 test_transport_api_tcp_nat_peer1.conf\
1411 test_transport_api_tcp_nat_peer2.conf\
1412 test_transport_api_tcp_peer1.conf\
1413 test_transport_api_tcp_peer2.conf\
1414 test_transport_api_udp_nat_peer1.conf\
1415 test_transport_api_udp_nat_peer2.conf\
1416 test_transport_api_udp_peer1.conf\
1417 test_transport_api_udp_peer2.conf\
1418 test_transport_api_timeout_udp_peer1.conf\
1419 test_transport_api_timeout_udp_peer2.conf\
1420 test_transport_api_unix_peer1.conf\
1421 test_transport_api_unix_peer2.conf\
1422 test_transport_api_unix_abstract_peer1.conf \
1423 test_transport_api_unix_abstract_peer2.conf \
1424 test_transport_api_timeout_unix_peer1.conf\
1425 test_transport_api_timeout_unix_peer2.conf\
1426 test_transport_api_timeout_wlan_peer1.conf \
1427 test_transport_api_timeout_wlan_peer2.conf \
1428 test_transport_api_timeout_bluetooth_peer1.conf\
1429 test_transport_api_timeout_bluetooth_peer2.conf\
1430 test_transport_api_reliability_udp_peer1.conf\
1431 test_transport_api_reliability_udp_peer2.conf\
1432 test_transport_api_reliability_http_xhr_peer1.conf\
1433 test_transport_api_reliability_http_xhr_peer2.conf\
1434 test_transport_api_reliability_https_xhr_peer1.conf\
1435 test_transport_api_reliability_https_xhr_peer2.conf\
1436 test_transport_api_reliability_unix_peer1.conf\
1437 test_transport_api_reliability_unix_peer2.conf\
1438 test_transport_api_reliability_wlan_peer1.conf\
1439 test_transport_api_reliability_wlan_peer2.conf\
1440 test_transport_api_unreliability_wlan_peer1.conf\
1441 test_transport_api_unreliability_wlan_peer2.conf\
1442 test_transport_api_reliability_bluetooth_peer1.conf\
1443 test_transport_api_reliability_bluetooth_peer2.conf\
1444 test_transport_api_wlan_peer1.conf\
1445 test_transport_api_wlan_peer2.conf\
1446 test_transport_api_bluetooth_peer1.conf\
1447 test_transport_api_bluetooth_peer2.conf\
1448 test_transport_api_monitor_peers_peer1.conf\
1449 test_transport_api_monitor_peers_peer2.conf\
1450 test_transport_api_monitor_validation_peer1.conf\
1451 test_transport_api_monitor_validation_peer2.conf\
1452 test_transport_defaults.conf\
1453 test_transport_api_disconnect_tcp_peer1.conf\
1454 test_transport_api_disconnect_tcp_peer2.conf\
1455 test_transport_api_timeout_http_peer1.conf\
1456 test_transport_api_timeout_http_peer2.conf\
1457 test_transport_api_timeout_https_peer1.conf\
1458 test_transport_api_timeout_https_peer2.conf\
1459 test_transport_blacklisting_cfg_peer1.conf \
1460 test_transport_blacklisting_cfg_peer2.conf \
1461 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1462 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1463 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1464 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1465 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1466 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1467 test_transport_api_http_reverse_peer1.conf \
1468 test_transport_api_http_reverse_peer2.conf \
1469 perf_tcp_peer1.conf \
1470 perf_tcp_peer2.conf \
1471 test_transport_api_slow_ats_peer1.conf \
1472 test_transport_api_slow_ats_peer2.conf \
1473   tcp_connection_legacy.c \
1474   tcp_server_mst_legacy.c \
1475   tcp_server_legacy.c \
1476   tcp_service_legacy.c