notes on next steps
[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   $(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 if HAVE_GETOPT_BINARY
669 TESTS += \
670 test_transport_api_slow_ats
671 endif
672 endif
673
674 test_transport_testing_startstop_SOURCES = \
675  test_transport_testing_startstop.c
676 test_transport_testing_startstop_LDADD = \
677  $(top_builddir)/src/util/libgnunetutil.la \
678  libgnunettransport.la \
679  $(top_builddir)/src/hello/libgnunethello.la \
680  libgnunettransporttesting.la
681
682 test_transport_testing_restart_SOURCES = \
683  test_transport_testing_restart.c
684 test_transport_testing_restart_LDADD = \
685  $(top_builddir)/src/util/libgnunetutil.la \
686  libgnunettransport.la \
687  $(top_builddir)/src/hello/libgnunethello.la \
688  libgnunettransporttesting.la
689
690 test_transport_api_blacklisting_tcp_SOURCES = \
691  test_transport_api_blacklisting.c
692 test_transport_api_blacklisting_tcp_LDADD = \
693  libgnunettransport.la \
694  $(top_builddir)/src/hello/libgnunethello.la \
695  $(top_builddir)/src/statistics/libgnunetstatistics.la \
696  $(top_builddir)/src/util/libgnunetutil.la \
697  libgnunettransporttesting.la
698
699 test_transport_blacklisting_no_bl_SOURCES = \
700  test_transport_blacklisting.c
701 test_transport_blacklisting_no_bl_LDADD = \
702  libgnunettransport.la \
703  $(top_builddir)/src/hello/libgnunethello.la \
704  $(top_builddir)/src/statistics/libgnunetstatistics.la \
705  $(top_builddir)/src/util/libgnunetutil.la \
706  libgnunettransporttesting.la
707
708 test_transport_blacklisting_outbound_bl_full_SOURCES = \
709  test_transport_blacklisting.c
710 test_transport_blacklisting_outbound_bl_full_LDADD = \
711  libgnunettransport.la \
712  $(top_builddir)/src/hello/libgnunethello.la \
713  $(top_builddir)/src/statistics/libgnunetstatistics.la \
714  $(top_builddir)/src/util/libgnunetutil.la \
715  libgnunettransporttesting.la
716
717 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
718  test_transport_blacklisting.c
719 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
720  libgnunettransport.la \
721  $(top_builddir)/src/hello/libgnunethello.la \
722  $(top_builddir)/src/statistics/libgnunetstatistics.la \
723  $(top_builddir)/src/util/libgnunetutil.la \
724  libgnunettransporttesting.la
725
726 test_transport_blacklisting_inbound_bl_full_SOURCES = \
727  test_transport_blacklisting.c
728 test_transport_blacklisting_inbound_bl_full_LDADD = \
729  libgnunettransport.la \
730  $(top_builddir)/src/hello/libgnunethello.la \
731  $(top_builddir)/src/statistics/libgnunetstatistics.la \
732  $(top_builddir)/src/util/libgnunetutil.la \
733  libgnunettransporttesting.la
734
735 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
736  test_transport_blacklisting.c
737 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
738  libgnunettransport.la \
739  $(top_builddir)/src/hello/libgnunethello.la \
740  $(top_builddir)/src/statistics/libgnunetstatistics.la \
741  $(top_builddir)/src/util/libgnunetutil.la \
742  libgnunettransporttesting.la
743
744 test_transport_blacklisting_multiple_plugins_SOURCES = \
745  test_transport_blacklisting.c
746 test_transport_blacklisting_multiple_plugins_LDADD = \
747  libgnunettransport.la \
748  $(top_builddir)/src/hello/libgnunethello.la \
749  $(top_builddir)/src/statistics/libgnunetstatistics.la \
750  $(top_builddir)/src/util/libgnunetutil.la \
751  libgnunettransporttesting.la
752
753
754 test_transport_api_disconnect_tcp_SOURCES = \
755  test_transport_api_disconnect.c
756 test_transport_api_disconnect_tcp_LDADD = \
757  libgnunettransport.la \
758  $(top_builddir)/src/hello/libgnunethello.la \
759  $(top_builddir)/src/statistics/libgnunetstatistics.la \
760  $(top_builddir)/src/util/libgnunetutil.la \
761  libgnunettransporttesting.la
762
763 test_plugin_tcp_SOURCES = \
764  test_plugin_transport.c
765 test_plugin_tcp_LDADD = \
766  libgnunettransport.la \
767  $(top_builddir)/src/statistics/libgnunetstatistics.la \
768  $(top_builddir)/src/hello/libgnunethello.la \
769  $(top_builddir)/src/util/libgnunetutil.la  \
770  libgnunettransporttesting.la
771
772 test_plugin_udp_SOURCES = \
773  test_plugin_transport.c
774 test_plugin_udp_LDADD = \
775  libgnunettransport.la \
776  $(top_builddir)/src/statistics/libgnunetstatistics.la \
777  $(top_builddir)/src/hello/libgnunethello.la \
778  $(top_builddir)/src/util/libgnunetutil.la  \
779  libgnunettransporttesting.la
780
781 test_plugin_unix_SOURCES = \
782  test_plugin_transport.c
783 test_plugin_unix_LDADD = \
784  libgnunettransport.la \
785  $(top_builddir)/src/statistics/libgnunetstatistics.la \
786  $(top_builddir)/src/hello/libgnunethello.la \
787  $(top_builddir)/src/util/libgnunetutil.la  \
788  libgnunettransporttesting.la
789
790 test_plugin_wlan_SOURCES = \
791  test_plugin_transport.c
792 test_plugin_wlan_LDADD = \
793  libgnunettransport.la \
794  $(top_builddir)/src/statistics/libgnunetstatistics.la \
795  $(top_builddir)/src/hello/libgnunethello.la \
796  $(top_builddir)/src/util/libgnunetutil.la  \
797  libgnunettransporttesting.la
798
799 test_plugin_bluetooth_SOURCES = \
800  test_plugin_transport.c
801 test_plugin_bluetooth_LDADD = \
802  libgnunettransport.la \
803  $(top_builddir)/src/statistics/libgnunetstatistics.la \
804  $(top_builddir)/src/hello/libgnunethello.la \
805  $(top_builddir)/src/util/libgnunetutil.la  \
806  libgnunettransporttesting.la
807
808 test_http_common_SOURCES = \
809  test_http_common.c plugin_transport_http_common.c
810 test_http_common_LDADD = \
811  libgnunettransport.la \
812  $(top_builddir)/src/statistics/libgnunetstatistics.la \
813  $(top_builddir)/src/hello/libgnunethello.la \
814  $(top_builddir)/src/util/libgnunetutil.la  \
815  libgnunettransporttesting.la
816
817 test_plugin_http_server_SOURCES = \
818  test_plugin_transport.c
819 test_plugin_http_server_LDADD = \
820  libgnunettransport.la \
821  $(top_builddir)/src/statistics/libgnunetstatistics.la \
822  $(top_builddir)/src/hello/libgnunethello.la \
823  $(top_builddir)/src/util/libgnunetutil.la  \
824  libgnunettransporttesting.la
825
826 test_plugin_https_server_SOURCES = \
827  test_plugin_transport.c
828 test_plugin_https_server_LDADD = \
829  libgnunettransport.la \
830  $(top_builddir)/src/statistics/libgnunetstatistics.la \
831  $(top_builddir)/src/hello/libgnunethello.la \
832  $(top_builddir)/src/util/libgnunetutil.la  \
833  libgnunettransporttesting.la
834
835 test_plugin_http_client_SOURCES = \
836  test_plugin_transport.c
837 test_plugin_http_client_LDADD = \
838  libgnunettransport.la \
839  $(top_builddir)/src/statistics/libgnunetstatistics.la \
840  $(top_builddir)/src/hello/libgnunethello.la \
841  $(top_builddir)/src/util/libgnunetutil.la  \
842  libgnunettransporttesting.la
843
844 test_plugin_https_client_SOURCES = \
845  test_plugin_transport.c
846 test_plugin_https_client_LDADD = \
847  libgnunettransport.la \
848  $(top_builddir)/src/statistics/libgnunetstatistics.la \
849  $(top_builddir)/src/hello/libgnunethello.la \
850  $(top_builddir)/src/util/libgnunetutil.la  \
851  libgnunettransporttesting.la
852
853 test_transport_api_tcp_SOURCES = \
854  test_transport_api.c
855 test_transport_api_tcp_LDADD = \
856  libgnunettransport.la \
857  $(top_builddir)/src/hello/libgnunethello.la \
858  $(top_builddir)/src/util/libgnunetutil.la  \
859  libgnunettransporttesting.la
860
861 test_transport_api_restart_1peer_SOURCES = \
862  test_transport_api_restart_reconnect.c
863 test_transport_api_restart_1peer_LDADD = \
864  libgnunettransport.la \
865  $(top_builddir)/src/hello/libgnunethello.la \
866  $(top_builddir)/src/ats/libgnunetats.la \
867  $(top_builddir)/src/statistics/libgnunetstatistics.la \
868  $(top_builddir)/src/util/libgnunetutil.la \
869  libgnunettransporttesting.la
870
871 test_transport_api_restart_2peers_SOURCES = \
872  test_transport_api_restart_reconnect.c
873 test_transport_api_restart_2peers_LDADD = \
874  libgnunettransport.la \
875  $(top_builddir)/src/hello/libgnunethello.la \
876  $(top_builddir)/src/ats/libgnunetats.la \
877 $(top_builddir)/src/statistics/libgnunetstatistics.la \
878  $(top_builddir)/src/util/libgnunetutil.la \
879  libgnunettransporttesting.la
880
881 test_transport_api_limited_sockets_tcp_SOURCES = \
882  test_transport_api_limited_sockets.c
883 test_transport_api_limited_sockets_tcp_LDADD = \
884  libgnunettransport.la \
885  $(top_builddir)/src/hello/libgnunethello.la \
886  $(top_builddir)/src/util/libgnunetutil.la  \
887  libgnunettransporttesting.la
888
889 test_transport_api_tcp_nat_SOURCES = \
890  test_transport_api.c
891 test_transport_api_tcp_nat_LDADD = \
892  libgnunettransport.la \
893  $(top_builddir)/src/hello/libgnunethello.la \
894  $(top_builddir)/src/util/libgnunetutil.la \
895  libgnunettransporttesting.la
896
897 test_transport_api_manipulation_send_tcp_SOURCES = \
898  test_transport_api_manipulation_send_tcp.c
899 test_transport_api_manipulation_send_tcp_LDADD = \
900  libgnunettransport.la \
901  $(top_builddir)/src/hello/libgnunethello.la \
902  $(top_builddir)/src/util/libgnunetutil.la \
903  libgnunettransporttesting.la
904
905 test_transport_api_manipulation_recv_tcp_SOURCES = \
906  test_transport_api_manipulation_recv_tcp.c
907 test_transport_api_manipulation_recv_tcp_LDADD = \
908  libgnunettransport.la \
909  $(top_builddir)/src/hello/libgnunethello.la \
910  $(top_builddir)/src/util/libgnunetutil.la \
911  libgnunettransporttesting.la
912
913 test_transport_api_manipulation_cfg_SOURCES = \
914  test_transport_api_manipulation_cfg.c
915 test_transport_api_manipulation_cfg_LDADD = \
916  libgnunettransport.la \
917  $(top_builddir)/src/hello/libgnunethello.la \
918  $(top_builddir)/src/util/libgnunetutil.la \
919  libgnunettransporttesting.la
920
921 test_transport_api_reliability_tcp_SOURCES = \
922  test_transport_api_reliability.c
923 test_transport_api_reliability_tcp_LDADD = \
924  libgnunettransport.la \
925  $(top_builddir)/src/hello/libgnunethello.la \
926  $(top_builddir)/src/util/libgnunetutil.la \
927  libgnunettransporttesting.la
928
929 test_transport_api_timeout_tcp_SOURCES = \
930  test_transport_api_timeout.c
931 test_transport_api_timeout_tcp_LDADD = \
932  libgnunettransport.la \
933  $(top_builddir)/src/hello/libgnunethello.la \
934  $(top_builddir)/src/util/libgnunetutil.la \
935  libgnunettransporttesting.la
936
937 test_transport_api_timeout_unix_SOURCES = \
938  test_transport_api_timeout.c
939 test_transport_api_timeout_unix_LDADD = \
940  libgnunettransport.la \
941  $(top_builddir)/src/hello/libgnunethello.la \
942  $(top_builddir)/src/util/libgnunetutil.la \
943  libgnunettransporttesting.la
944
945 test_transport_api_timeout_wlan_SOURCES = \
946  test_transport_api_timeout.c
947 test_transport_api_timeout_wlan_LDADD = \
948  libgnunettransport.la \
949  $(top_builddir)/src/hello/libgnunethello.la \
950  $(top_builddir)/src/util/libgnunetutil.la \
951  libgnunettransporttesting.la
952
953 test_transport_api_timeout_bluetooth_SOURCES = \
954  test_transport_api_timeout.c
955 test_transport_api_timeout_bluetooth_LDADD = \
956  libgnunettransport.la \
957  $(top_builddir)/src/hello/libgnunethello.la \
958  $(top_builddir)/src/util/libgnunetutil.la \
959  libgnunettransporttesting.la
960
961 test_transport_api_reliability_tcp_nat_SOURCES = \
962  test_transport_api_reliability.c
963 test_transport_api_reliability_tcp_nat_LDADD = \
964  libgnunettransport.la \
965  $(top_builddir)/src/hello/libgnunethello.la \
966  $(top_builddir)/src/util/libgnunetutil.la \
967  libgnunettransporttesting.la
968
969 test_transport_api_reliability_bluetooth_SOURCES = \
970  test_transport_api_reliability.c
971 test_transport_api_reliability_bluetooth_LDADD = \
972  libgnunettransport.la \
973  $(top_builddir)/src/hello/libgnunethello.la \
974  $(top_builddir)/src/util/libgnunetutil.la \
975  libgnunettransporttesting.la
976
977 test_transport_api_reliability_wlan_SOURCES = \
978  test_transport_api_reliability.c
979 test_transport_api_reliability_wlan_LDADD = \
980  libgnunettransport.la \
981  $(top_builddir)/src/hello/libgnunethello.la \
982  $(top_builddir)/src/util/libgnunetutil.la \
983  libgnunettransporttesting.la
984
985 test_transport_api_udp_SOURCES = \
986  test_transport_api.c
987 test_transport_api_udp_LDADD = \
988  libgnunettransport.la \
989  $(top_builddir)/src/hello/libgnunethello.la \
990  $(top_builddir)/src/util/libgnunetutil.la  \
991  libgnunettransporttesting.la
992
993 test_transport_api_timeout_udp_SOURCES = \
994  test_transport_api_timeout.c
995 test_transport_api_timeout_udp_LDADD = \
996  libgnunettransport.la \
997  $(top_builddir)/src/hello/libgnunethello.la \
998  $(top_builddir)/src/util/libgnunetutil.la \
999  libgnunettransporttesting.la
1000
1001 test_transport_api_udp_nat_SOURCES = \
1002  test_transport_api.c
1003 test_transport_api_udp_nat_LDADD = \
1004  libgnunettransport.la \
1005  $(top_builddir)/src/hello/libgnunethello.la \
1006  $(top_builddir)/src/util/libgnunetutil.la  \
1007  libgnunettransporttesting.la
1008
1009 test_transport_api_unix_SOURCES = \
1010  test_transport_api.c
1011 test_transport_api_unix_LDADD = \
1012  libgnunettransport.la \
1013  $(top_builddir)/src/hello/libgnunethello.la \
1014  $(top_builddir)/src/util/libgnunetutil.la \
1015  libgnunettransporttesting.la
1016
1017 test_transport_api_unix_abstract_SOURCES = \
1018  test_transport_api.c
1019 test_transport_api_unix_abstract_LDADD = \
1020  libgnunettransport.la \
1021  $(top_builddir)/src/hello/libgnunethello.la \
1022  $(top_builddir)/src/util/libgnunetutil.la \
1023  libgnunettransporttesting.la
1024
1025 # HTTP tests
1026 test_transport_api_http_SOURCES = \
1027  test_transport_api.c
1028 test_transport_api_http_LDADD = \
1029  libgnunettransport.la \
1030  $(top_builddir)/src/hello/libgnunethello.la \
1031  $(top_builddir)/src/util/libgnunetutil.la \
1032  libgnunettransporttesting.la
1033
1034 test_transport_api_http_reverse_SOURCES = \
1035  test_transport_api.c
1036 test_transport_api_http_reverse_LDADD = \
1037  libgnunettransport.la \
1038  $(top_builddir)/src/hello/libgnunethello.la \
1039  $(top_builddir)/src/util/libgnunetutil.la \
1040  libgnunettransporttesting.la
1041
1042 test_transport_api_timeout_http_SOURCES = \
1043  test_transport_api_timeout.c
1044 test_transport_api_timeout_http_LDADD = \
1045  libgnunettransport.la \
1046  $(top_builddir)/src/hello/libgnunethello.la \
1047  $(top_builddir)/src/util/libgnunetutil.la \
1048  libgnunettransporttesting.la
1049
1050 test_transport_api_reliability_http_SOURCES = \
1051  test_transport_api_reliability.c
1052 test_transport_api_reliability_http_LDADD = \
1053  libgnunettransport.la \
1054  $(top_builddir)/src/hello/libgnunethello.la \
1055  $(top_builddir)/src/util/libgnunetutil.la \
1056  libgnunettransporttesting.la
1057
1058 test_transport_api_reliability_http_xhr_SOURCES = \
1059  test_transport_api_reliability.c
1060 test_transport_api_reliability_http_xhr_LDADD = \
1061  libgnunettransport.la \
1062  $(top_builddir)/src/hello/libgnunethello.la \
1063  $(top_builddir)/src/util/libgnunetutil.la \
1064  libgnunettransporttesting.la
1065
1066 test_quota_compliance_http_SOURCES = \
1067  test_quota_compliance.c
1068 test_quota_compliance_http_LDADD = \
1069  libgnunettransport.la \
1070  $(top_builddir)/src/hello/libgnunethello.la \
1071  $(top_builddir)/src/ats/libgnunetats.la \
1072  $(top_builddir)/src/nt/libgnunetnt.la \
1073  $(top_builddir)/src/util/libgnunetutil.la \
1074  libgnunettransporttesting.la
1075
1076 test_quota_compliance_http_asymmetric_SOURCES = \
1077  test_quota_compliance.c
1078 test_quota_compliance_http_asymmetric_LDADD = \
1079  libgnunettransport.la \
1080  $(top_builddir)/src/hello/libgnunethello.la \
1081  $(top_builddir)/src/ats/libgnunetats.la \
1082  $(top_builddir)/src/nt/libgnunetnt.la \
1083  $(top_builddir)/src/util/libgnunetutil.la \
1084  libgnunettransporttesting.la
1085
1086 test_quota_compliance_https_SOURCES = \
1087  test_quota_compliance.c
1088 test_quota_compliance_https_LDADD = \
1089  libgnunettransport.la \
1090  $(top_builddir)/src/hello/libgnunethello.la \
1091  $(top_builddir)/src/ats/libgnunetats.la \
1092  $(top_builddir)/src/nt/libgnunetnt.la \
1093  $(top_builddir)/src/util/libgnunetutil.la \
1094  libgnunettransporttesting.la
1095
1096 test_quota_compliance_https_asymmetric_SOURCES = \
1097  test_quota_compliance.c
1098 test_quota_compliance_https_asymmetric_LDADD = \
1099  libgnunettransport.la \
1100  $(top_builddir)/src/hello/libgnunethello.la \
1101  $(top_builddir)/src/ats/libgnunetats.la \
1102  $(top_builddir)/src/nt/libgnunetnt.la \
1103  $(top_builddir)/src/util/libgnunetutil.la \
1104  libgnunettransporttesting.la
1105
1106 # HTTPS tests
1107 test_transport_api_https_SOURCES = \
1108  test_transport_api.c
1109 test_transport_api_https_LDADD = \
1110  libgnunettransport.la \
1111  $(top_builddir)/src/hello/libgnunethello.la \
1112  $(top_builddir)/src/util/libgnunetutil.la  \
1113  libgnunettransporttesting.la
1114
1115 test_transport_api_timeout_https_SOURCES = \
1116  test_transport_api_timeout.c
1117 test_transport_api_timeout_https_LDADD = \
1118  libgnunettransport.la \
1119  $(top_builddir)/src/hello/libgnunethello.la \
1120  $(top_builddir)/src/util/libgnunetutil.la \
1121  libgnunettransporttesting.la
1122
1123
1124 test_transport_api_reliability_https_SOURCES = \
1125  test_transport_api_reliability.c
1126 test_transport_api_reliability_https_LDADD = \
1127  libgnunettransport.la \
1128  $(top_builddir)/src/hello/libgnunethello.la \
1129  $(top_builddir)/src/util/libgnunetutil.la \
1130  libgnunettransporttesting.la
1131
1132 test_transport_api_reliability_https_xhr_SOURCES = \
1133  test_transport_api_reliability.c
1134 test_transport_api_reliability_https_xhr_LDADD = \
1135  libgnunettransport.la \
1136  $(top_builddir)/src/hello/libgnunethello.la \
1137  $(top_builddir)/src/util/libgnunetutil.la \
1138  libgnunettransporttesting.la
1139
1140 test_transport_api_reliability_unix_SOURCES = \
1141  test_transport_api_reliability.c
1142 test_transport_api_reliability_unix_LDADD = \
1143  libgnunettransport.la \
1144  $(top_builddir)/src/hello/libgnunethello.la \
1145  $(top_builddir)/src/util/libgnunetutil.la \
1146  libgnunettransporttesting.la
1147
1148 test_transport_api_reliability_udp_SOURCES = \
1149  test_transport_api_reliability.c
1150 test_transport_api_reliability_udp_LDADD = \
1151  libgnunettransport.la \
1152  $(top_builddir)/src/hello/libgnunethello.la \
1153  $(top_builddir)/src/util/libgnunetutil.la \
1154  libgnunettransporttesting.la
1155
1156 if LINUX
1157 test_transport_api_wlan_SOURCES = \
1158  test_transport_api.c
1159 test_transport_api_wlan_LDADD = \
1160  libgnunettransport.la \
1161  $(top_builddir)/src/hello/libgnunethello.la \
1162  $(top_builddir)/src/util/libgnunetutil.la \
1163  libgnunettransporttesting.la
1164 endif
1165
1166 if LINUX
1167 if HAVE_LIBBLUETOOTH
1168 test_transport_api_bluetooth_SOURCES = \
1169  test_transport_api.c
1170 test_transport_api_bluetooth_LDADD = \
1171  libgnunettransport.la \
1172  $(top_builddir)/src/hello/libgnunethello.la \
1173  $(top_builddir)/src/util/libgnunetutil.la \
1174  libgnunettransporttesting.la
1175 endif
1176 endif
1177
1178 test_transport_address_switch_tcp_SOURCES = \
1179  test_transport_address_switch.c
1180 test_transport_address_switch_tcp_LDADD = \
1181  libgnunettransport.la \
1182  $(top_builddir)/src/hello/libgnunethello.la \
1183  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1184  $(top_builddir)/src/util/libgnunetutil.la \
1185  libgnunettransporttesting.la
1186
1187  test_transport_address_switch_udp_SOURCES = \
1188  test_transport_address_switch.c
1189 test_transport_address_switch_udp_LDADD = \
1190  libgnunettransport.la \
1191  $(top_builddir)/src/hello/libgnunethello.la \
1192  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1193  $(top_builddir)/src/util/libgnunetutil.la \
1194  libgnunettransporttesting.la
1195
1196
1197  test_transport_address_switch_http_SOURCES = \
1198  test_transport_address_switch.c
1199 test_transport_address_switch_http_LDADD = \
1200  libgnunettransport.la \
1201  $(top_builddir)/src/hello/libgnunethello.la \
1202  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1203  $(top_builddir)/src/util/libgnunetutil.la \
1204  libgnunettransporttesting.la
1205
1206  test_transport_address_switch_https_SOURCES = \
1207  test_transport_address_switch.c
1208 test_transport_address_switch_https_LDADD = \
1209  libgnunettransport.la \
1210  $(top_builddir)/src/hello/libgnunethello.la \
1211  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1212  $(top_builddir)/src/util/libgnunetutil.la \
1213  libgnunettransporttesting.la
1214
1215 test_quota_compliance_tcp_SOURCES = \
1216  test_quota_compliance.c
1217 test_quota_compliance_tcp_LDADD = \
1218  libgnunettransport.la \
1219  $(top_builddir)/src/hello/libgnunethello.la \
1220  $(top_builddir)/src/ats/libgnunetats.la \
1221  $(top_builddir)/src/nt/libgnunetnt.la \
1222  $(top_builddir)/src/util/libgnunetutil.la \
1223  libgnunettransporttesting.la
1224
1225 test_quota_compliance_tcp_asymmetric_SOURCES = \
1226  test_quota_compliance.c
1227 test_quota_compliance_tcp_asymmetric_LDADD = \
1228  libgnunettransport.la \
1229  $(top_builddir)/src/hello/libgnunethello.la \
1230  $(top_builddir)/src/nt/libgnunetnt.la \
1231  $(top_builddir)/src/ats/libgnunetats.la \
1232  $(top_builddir)/src/util/libgnunetutil.la \
1233  libgnunettransporttesting.la
1234
1235 test_quota_compliance_udp_SOURCES = \
1236  test_quota_compliance.c
1237 test_quota_compliance_udp_LDADD = \
1238  libgnunettransport.la \
1239  $(top_builddir)/src/hello/libgnunethello.la \
1240  $(top_builddir)/src/ats/libgnunetats.la \
1241  $(top_builddir)/src/nt/libgnunetnt.la \
1242  $(top_builddir)/src/util/libgnunetutil.la \
1243  libgnunettransporttesting.la
1244
1245 test_quota_compliance_unix_SOURCES = \
1246  test_quota_compliance.c
1247 test_quota_compliance_unix_LDADD = \
1248  libgnunettransport.la \
1249  $(top_builddir)/src/hello/libgnunethello.la \
1250  $(top_builddir)/src/ats/libgnunetats.la \
1251  $(top_builddir)/src/nt/libgnunetnt.la \
1252  $(top_builddir)/src/util/libgnunetutil.la \
1253  libgnunettransporttesting.la
1254
1255 test_quota_compliance_unix_asymmetric_SOURCES = \
1256  test_quota_compliance.c
1257 test_quota_compliance_unix_asymmetric_LDADD = \
1258  libgnunettransport.la \
1259  $(top_builddir)/src/hello/libgnunethello.la \
1260  $(top_builddir)/src/ats/libgnunetats.la \
1261  $(top_builddir)/src/nt/libgnunetnt.la \
1262  $(top_builddir)/src/util/libgnunetutil.la \
1263  libgnunettransporttesting.la
1264
1265 test_quota_compliance_wlan_SOURCES = \
1266  test_quota_compliance.c
1267 test_quota_compliance_wlan_LDADD = \
1268  libgnunettransport.la \
1269  $(top_builddir)/src/hello/libgnunethello.la \
1270  $(top_builddir)/src/ats/libgnunetats.la \
1271  $(top_builddir)/src/nt/libgnunetnt.la \
1272  $(top_builddir)/src/util/libgnunetutil.la \
1273  libgnunettransporttesting.la
1274
1275 test_quota_compliance_wlan_asymmetric_SOURCES = \
1276  test_quota_compliance.c
1277 test_quota_compliance_wlan_asymmetric_LDADD = \
1278  libgnunettransport.la \
1279  $(top_builddir)/src/hello/libgnunethello.la \
1280  $(top_builddir)/src/ats/libgnunetats.la \
1281  $(top_builddir)/src/nt/libgnunetnt.la \
1282  $(top_builddir)/src/util/libgnunetutil.la \
1283  libgnunettransporttesting.la
1284
1285 test_quota_compliance_bluetooth_SOURCES = \
1286  test_quota_compliance.c
1287 test_quota_compliance_bluetooth_LDADD = \
1288  libgnunettransport.la \
1289  $(top_builddir)/src/hello/libgnunethello.la \
1290  $(top_builddir)/src/ats/libgnunetats.la \
1291  $(top_builddir)/src/nt/libgnunetnt.la \
1292  $(top_builddir)/src/util/libgnunetutil.la \
1293  libgnunettransporttesting.la
1294
1295 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1296  test_quota_compliance.c
1297 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1298  libgnunettransport.la \
1299  $(top_builddir)/src/hello/libgnunethello.la \
1300  $(top_builddir)/src/ats/libgnunetats.la \
1301  $(top_builddir)/src/nt/libgnunetnt.la \
1302  $(top_builddir)/src/util/libgnunetutil.la \
1303  libgnunettransporttesting.la
1304
1305 test_transport_api_multi_SOURCES = \
1306  test_transport_api.c
1307 test_transport_api_multi_LDADD = \
1308  libgnunettransport.la \
1309  $(top_builddir)/src/hello/libgnunethello.la \
1310  $(top_builddir)/src/util/libgnunetutil.la \
1311  libgnunettransporttesting.la
1312
1313 test_transport_api_monitor_peers_SOURCES = \
1314  test_transport_api_monitor_peers.c
1315 test_transport_api_monitor_peers_LDADD = \
1316  libgnunettransport.la \
1317  $(top_builddir)/src/hello/libgnunethello.la \
1318  $(top_builddir)/src/util/libgnunetutil.la \
1319  libgnunettransporttesting.la
1320
1321 test_transport_api_slow_ats_SOURCES = \
1322  test_transport_api.c
1323 test_transport_api_slow_ats_LDADD = \
1324  libgnunettransport.la \
1325  $(top_builddir)/src/hello/libgnunethello.la \
1326  $(top_builddir)/src/util/libgnunetutil.la  \
1327  libgnunettransporttesting.la
1328
1329
1330 EXTRA_DIST = \
1331 communicator-unix.conf \
1332 test_plugin_hostkey \
1333 test_plugin_hostkey.ecc \
1334 test_delay \
1335 template_cfg_peer1.conf\
1336 template_cfg_peer2.conf\
1337 test_plugin_transport_data.conf\
1338 test_plugin_transport_data_udp.conf\
1339 test_quota_compliance_data.conf\
1340 test_quota_compliance_http_peer1.conf\
1341 test_quota_compliance_http_peer2.conf\
1342 test_quota_compliance_https_peer1.conf\
1343 test_quota_compliance_https_peer2.conf\
1344 test_quota_compliance_tcp_peer1.conf\
1345 test_quota_compliance_tcp_peer2.conf\
1346 test_quota_compliance_udp_peer1.conf\
1347 test_quota_compliance_udp_peer2.conf\
1348 test_quota_compliance_unix_peer1.conf\
1349 test_quota_compliance_unix_peer2.conf\
1350 test_quota_compliance_wlan_peer1.conf\
1351 test_quota_compliance_wlan_peer2.conf\
1352 test_quota_compliance_bluetooth_peer1.conf\
1353 test_quota_compliance_bluetooth_peer2.conf\
1354 test_quota_compliance_http_asymmetric_peer1.conf\
1355 test_quota_compliance_http_asymmetric_peer2.conf\
1356 test_quota_compliance_https_asymmetric_peer1.conf\
1357 test_quota_compliance_https_asymmetric_peer2.conf\
1358 test_quota_compliance_tcp_asymmetric_peer1.conf\
1359 test_quota_compliance_tcp_asymmetric_peer2.conf\
1360 test_quota_compliance_unix_asymmetric_peer1.conf\
1361 test_quota_compliance_unix_asymmetric_peer2.conf\
1362 test_quota_compliance_wlan_asymmetric_peer1.conf\
1363 test_quota_compliance_wlan_asymmetric_peer2.conf\
1364 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1365 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1366 test_transport_api_data.conf\
1367 test_transport_api_blacklisting_tcp_peer1.conf \
1368 test_transport_api_blacklisting_tcp_peer2.conf \
1369 test_transport_api_http_peer1.conf\
1370 test_transport_api_http_peer2.conf\
1371 test_transport_api_https_peer1.conf\
1372 test_transport_api_https_peer2.conf\
1373 test_transport_api_limited_sockets_tcp_peer1.conf\
1374 test_transport_api_limited_sockets_tcp_peer2.conf\
1375 test_transport_api_timeout_tcp_peer1.conf\
1376 test_transport_api_timeout_tcp_peer2.conf\
1377 test_transport_api_multi_peer1.conf\
1378 test_transport_api_multi_peer2.conf\
1379 test_transport_api_restart_1peer_peer1.conf\
1380 test_transport_api_restart_1peer_peer2.conf\
1381 test_transport_api_reliability_http_peer1.conf\
1382 test_transport_api_reliability_http_peer2.conf\
1383 test_transport_api_reliability_https_peer1.conf\
1384 test_transport_api_reliability_https_peer2.conf\
1385 test_transport_api_reliability_tcp_nat_peer1.conf\
1386 test_transport_api_reliability_tcp_nat_peer2.conf\
1387 test_transport_api_reliability_tcp_peer1.conf\
1388 test_transport_api_reliability_tcp_peer2.conf\
1389 test_transport_api_reliability_wlan_peer1.conf\
1390 test_transport_api_reliability_wlan_peer2.conf\
1391 test_transport_api_reliability_bluetooth_peer1.conf\
1392 test_transport_api_reliability_bluetooth_peer2.conf\
1393 test_transport_api_manipulation_send_tcp_peer1.conf\
1394 test_transport_api_manipulation_send_tcp_peer2.conf\
1395 test_transport_api_manipulation_recv_tcp_peer1.conf\
1396 test_transport_api_manipulation_recv_tcp_peer2.conf\
1397 test_transport_api_manipulation_cfg_peer1.conf\
1398 test_transport_api_manipulation_cfg_peer2.conf\
1399 test_transport_api_restart_1peer_peer1.conf\
1400 test_transport_api_restart_1peer_peer2.conf\
1401 test_transport_api_restart_2peers_peer1.conf\
1402 test_transport_api_restart_2peers_peer2.conf\
1403 test_transport_api_tcp_nat_peer1.conf\
1404 test_transport_api_tcp_nat_peer2.conf\
1405 test_transport_api_tcp_peer1.conf\
1406 test_transport_api_tcp_peer2.conf\
1407 test_transport_api_udp_nat_peer1.conf\
1408 test_transport_api_udp_nat_peer2.conf\
1409 test_transport_api_udp_peer1.conf\
1410 test_transport_api_udp_peer2.conf\
1411 test_transport_api_timeout_udp_peer1.conf\
1412 test_transport_api_timeout_udp_peer2.conf\
1413 test_transport_api_unix_peer1.conf\
1414 test_transport_api_unix_peer2.conf\
1415 test_transport_api_unix_abstract_peer1.conf \
1416 test_transport_api_unix_abstract_peer2.conf \
1417 test_transport_api_timeout_unix_peer1.conf\
1418 test_transport_api_timeout_unix_peer2.conf\
1419 test_transport_api_timeout_wlan_peer1.conf \
1420 test_transport_api_timeout_wlan_peer2.conf \
1421 test_transport_api_timeout_bluetooth_peer1.conf\
1422 test_transport_api_timeout_bluetooth_peer2.conf\
1423 test_transport_api_reliability_udp_peer1.conf\
1424 test_transport_api_reliability_udp_peer2.conf\
1425 test_transport_api_reliability_http_xhr_peer1.conf\
1426 test_transport_api_reliability_http_xhr_peer2.conf\
1427 test_transport_api_reliability_https_xhr_peer1.conf\
1428 test_transport_api_reliability_https_xhr_peer2.conf\
1429 test_transport_api_reliability_unix_peer1.conf\
1430 test_transport_api_reliability_unix_peer2.conf\
1431 test_transport_api_reliability_wlan_peer1.conf\
1432 test_transport_api_reliability_wlan_peer2.conf\
1433 test_transport_api_unreliability_wlan_peer1.conf\
1434 test_transport_api_unreliability_wlan_peer2.conf\
1435 test_transport_api_reliability_bluetooth_peer1.conf\
1436 test_transport_api_reliability_bluetooth_peer2.conf\
1437 test_transport_api_wlan_peer1.conf\
1438 test_transport_api_wlan_peer2.conf\
1439 test_transport_api_bluetooth_peer1.conf\
1440 test_transport_api_bluetooth_peer2.conf\
1441 test_transport_api_monitor_peers_peer1.conf\
1442 test_transport_api_monitor_peers_peer2.conf\
1443 test_transport_api_monitor_validation_peer1.conf\
1444 test_transport_api_monitor_validation_peer2.conf\
1445 test_transport_defaults.conf\
1446 test_transport_api_disconnect_tcp_peer1.conf\
1447 test_transport_api_disconnect_tcp_peer2.conf\
1448 test_transport_api_timeout_http_peer1.conf\
1449 test_transport_api_timeout_http_peer2.conf\
1450 test_transport_api_timeout_https_peer1.conf\
1451 test_transport_api_timeout_https_peer2.conf\
1452 test_transport_blacklisting_cfg_peer1.conf \
1453 test_transport_blacklisting_cfg_peer2.conf \
1454 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1455 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1456 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1457 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1458 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1459 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1460 test_transport_api_http_reverse_peer1.conf \
1461 test_transport_api_http_reverse_peer2.conf \
1462 perf_tcp_peer1.conf \
1463 perf_tcp_peer2.conf \
1464 test_transport_api_slow_ats_peer1.conf \
1465 test_transport_api_slow_ats_peer2.conf \
1466   tcp_connection_legacy.c \
1467   tcp_server_mst_legacy.c \
1468   tcp_server_legacy.c \
1469   tcp_service_legacy.c