remove xt/xu plugins, no longer needed for anything
[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   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 libgnunettransport_la_SOURCES = \
180   transport.h \
181   transport_api_address_to_string.c \
182   transport_api_blacklist.c \
183   transport_api_core.c \
184   transport_api_hello_get.c \
185   transport_api_manipulation.c \
186   transport_api_monitor_peers.c \
187   transport_api_monitor_plugins.c \
188   transport_api_offer_hello.c
189
190 libgnunettransport_la_LIBADD = \
191   $(top_builddir)/src/hello/libgnunethello.la \
192   $(top_builddir)/src/ats/libgnunetats.la \
193   $(top_builddir)/src/util/libgnunetutil.la \
194   $(GN_LIBINTL)
195 libgnunettransport_la_LDFLAGS = \
196   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
197   -version-info 4:0:2
198
199
200
201 libgnunettransportaddress_la_SOURCES = \
202   transport_api2_address.c
203 libgnunettransportaddress_la_LIBADD = \
204   $(top_builddir)/src/util/libgnunetutil.la \
205   $(GN_LIBINTL)
206 libgnunettransportaddress_la_LDFLAGS = \
207   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
208   -version-info 0:0:0
209
210 libgnunettransportcore_la_SOURCES = \
211   transport_api2_core.c
212 libgnunettransportcore_la_LIBADD = \
213   $(top_builddir)/src/util/libgnunetutil.la \
214   $(GN_LIBINTL)
215 libgnunettransportcore_la_LDFLAGS = \
216   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
217   -version-info 0:0:0
218
219 libgnunettransportcommunicator_la_SOURCES = \
220   transport_api2_communication.c
221 libgnunettransportcommunicator_la_LIBADD = \
222   $(top_builddir)/src/util/libgnunetutil.la \
223   $(GN_LIBINTL)
224 libgnunettransportcommunicator_la_LDFLAGS = \
225   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
226   -version-info 0:0:0
227
228
229 libgnunettransportmonitor_la_SOURCES = \
230   transport_api2_monitor.c
231 libgnunettransportmonitor_la_LIBADD = \
232   $(top_builddir)/src/util/libgnunetutil.la \
233   $(GN_LIBINTL)
234 libgnunettransportmonitor_la_LDFLAGS = \
235   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
236   -version-info 0:0:0
237
238
239 libexec_PROGRAMS = \
240  $(WLAN_BIN) \
241  $(WLAN_BIN_DUMMY) \
242  $(BT_BIN) \
243  gnunet-service-transport
244
245
246
247 bin_PROGRAMS = \
248  gnunet-transport \
249  gnunet-transport-certificate-creation
250
251 #bin_SCRIPTS = \
252 # gnunet-transport-certificate-creation
253
254 gnunet_transport_certificate_creation_SOURCES = \
255  gnunet-transport-certificate-creation.c
256 gnunet_transport_certificate_creation_LDADD = \
257   $(top_builddir)/src/util/libgnunetutil.la
258
259 gnunet_communicator_unix_SOURCES = \
260  gnunet-communicator-unix.c
261 gnunet_communicator_unix_LDADD = \
262   libgnunettransportcommunicator.la \
263   $(top_builddir)/src/statistics/libgnunetstatistics.la \
264   $(top_builddir)/src/util/libgnunetutil.la
265
266 gnunet_communicator_tcp_SOURCES = \
267  gnunet-communicator-tcp.c
268 gnunet_communicator_tcp_LDADD = \
269   libgnunettransportcommunicator.la \
270   $(top_builddir)/src/nat/libgnunetnatnew.la \
271   $(top_builddir)/src/nt/libgnunetnt.la \
272   $(top_builddir)/src/statistics/libgnunetstatistics.la \
273   $(top_builddir)/src/util/libgnunetutil.la \
274   $(LIBGCRYPT_LIBS)
275
276 gnunet_communicator_udp_SOURCES = \
277  gnunet-communicator-udp.c
278 gnunet_communicator_udp_LDADD = \
279   libgnunettransportcommunicator.la \
280   $(top_builddir)/src/nat/libgnunetnatnew.la \
281   $(top_builddir)/src/nt/libgnunetnt.la \
282   $(top_builddir)/src/statistics/libgnunetstatistics.la \
283   $(top_builddir)/src/util/libgnunetutil.la \
284   $(LIBGCRYPT_LIBS)
285
286
287 gnunet_helper_transport_wlan_SOURCES = \
288  gnunet-helper-transport-wlan.c
289
290 gnunet_helper_transport_wlan_dummy_SOURCES = \
291  gnunet-helper-transport-wlan-dummy.c
292 gnunet_helper_transport_wlan_dummy_LDADD = \
293   $(top_builddir)/src/util/libgnunetutil.la
294
295 gnunet_transport_wlan_sender_SOURCES = \
296  gnunet-transport-wlan-sender.c
297 gnunet_transport_wlan_sender_LDADD = \
298   $(top_builddir)/src/util/libgnunetutil.la
299
300 gnunet_transport_wlan_receiver_SOURCES = \
301  gnunet-transport-wlan-receiver.c
302 gnunet_transport_wlan_receiver_LDADD = \
303   $(top_builddir)/src/util/libgnunetutil.la
304
305 gnunet_helper_transport_bluetooth_SOURCES = \
306  gnunet-helper-transport-bluetooth.c
307 if MINGW
308  gnunet_helper_transport_bluetooth_LDADD = \
309   $(top_builddir)/src/util/libgnunetutil.la
310  gnunet_helper_transport_bluetooth_LDFLAGS = -lws2_32
311 else
312  gnunet_helper_transport_bluetooth_LDFLAGS = -lbluetooth
313 endif
314
315 gnunet_transport_profiler_SOURCES = \
316  gnunet-transport-profiler.c
317 gnunet_transport_profiler_LDADD = \
318   libgnunettransport.la \
319   $(top_builddir)/src/hello/libgnunethello.la \
320   $(top_builddir)/src/ats/libgnunetats.la \
321   $(top_builddir)/src/util/libgnunetutil.la \
322   $(GN_LIBINTL)
323
324 gnunet_transport_SOURCES = \
325  gnunet-transport.c
326 gnunet_transport_LDADD = \
327   libgnunettransport.la \
328   $(top_builddir)/src/hello/libgnunethello.la \
329   $(top_builddir)/src/util/libgnunetutil.la \
330   $(GN_LIBINTL)
331
332 gnunet_service_transport_SOURCES = \
333  gnunet-service-transport.c gnunet-service-transport.h \
334  gnunet-service-transport_ats.h gnunet-service-transport_ats.c \
335  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
336  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
337  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
338  gnunet-service-transport_validation.h gnunet-service-transport_validation.c \
339  gnunet-service-transport_manipulation.h gnunet-service-transport_manipulation.c
340 # Note that while gnunet-service-transport does not use libgnunetnat
341 # directly, we must link against it as GNUNET_NAT_mini_map_stop will
342 # leave a 'dangling' task to process_unmap_output which will cause
343 # a crash on unloading of a plugin unless the service links against
344 # that library as well.
345 gnunet_service_transport_LDADD = \
346   libgnunettransport.la \
347   $(top_builddir)/src/ats/libgnunetats.la \
348   $(top_builddir)/src/hello/libgnunethello.la \
349   $(top_builddir)/src/nt/libgnunetnt.la \
350   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
351   $(top_builddir)/src/statistics/libgnunetstatistics.la \
352   $(top_builddir)/src/util/libgnunetutil.la \
353   $(GN_GLPK) \
354   $(GN_LIBINTL)
355 gnunet_service_transport_CFLAGS = \
356   $(CFLAGS)
357 # -DANALYZE
358
359
360 gnunet_service_tng_SOURCES = \
361  gnunet-service-tng.c
362 gnunet_service_tng_LDADD = \
363   $(top_builddir)/src/ats/libgnunetatstransport.la \
364   $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
365   $(top_builddir)/src/hello/libgnunethello.la \
366   $(top_builddir)/src/statistics/libgnunetstatistics.la \
367   $(top_builddir)/src/util/libgnunetutil.la \
368   $(GN_LIBINTL)
369
370 plugin_LTLIBRARIES = \
371   libgnunet_plugin_transport_tcp.la \
372   libgnunet_plugin_transport_udp.la \
373   $(UNIX_PLUGIN_LA) \
374   $(HTTP_CLIENT_PLUGIN_LA) \
375   $(HTTPS_CLIENT_PLUGIN_LA) \
376   $(HTTP_SERVER_PLUGIN_LA) \
377   $(HTTPS_SERVER_PLUGIN_LA) \
378   $(WLAN_PLUGIN_LA) \
379   $(BT_PLUGIN_LA)
380
381 # Note: real plugins of course need to be added
382 # to the plugin_LTLIBRARIES above
383 noinst_LTLIBRARIES = \
384   libgnunet_plugin_transport_template.la
385
386 libgnunet_plugin_transport_tcp_la_SOURCES = \
387   plugin_transport_tcp.c
388 libgnunet_plugin_transport_tcp_la_LIBADD = \
389   $(top_builddir)/src/hello/libgnunethello.la \
390   $(top_builddir)/src/statistics/libgnunetstatistics.la \
391   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
392   $(top_builddir)/src/nat/libgnunetnatnew.la \
393   $(top_builddir)/src/util/libgnunetutil.la \
394   $(LTLIBINTL)
395 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
396  $(GN_PLUGIN_LDFLAGS)
397
398 libgnunet_plugin_transport_template_la_SOURCES = \
399   plugin_transport_template.c
400 libgnunet_plugin_transport_template_la_LIBADD = \
401   $(top_builddir)/src/util/libgnunetutil.la \
402   $(LTLIBINTL)
403 libgnunet_plugin_transport_template_la_LDFLAGS = \
404  $(GN_PLUGIN_LDFLAGS)
405
406 libgnunet_plugin_transport_wlan_la_SOURCES = \
407   plugin_transport_wlan.c plugin_transport_wlan.h
408 libgnunet_plugin_transport_wlan_la_LIBADD = \
409   $(top_builddir)/src/hello/libgnunethello.la \
410   $(top_builddir)/src/statistics/libgnunetstatistics.la \
411   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
412   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
413   $(top_builddir)/src/util/libgnunetutil.la
414 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
415   $(GN_PLUGIN_LDFLAGS)
416 libgnunet_plugin_transport_wlan_la_CFLAGS = \
417  $(CFLAGS) -DBUILD_WLAN
418
419 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
420   plugin_transport_wlan.c plugin_transport_wlan.h
421 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
422   $(top_builddir)/src/hello/libgnunethello.la \
423   $(top_builddir)/src/statistics/libgnunetstatistics.la \
424   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
425   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
426   $(top_builddir)/src/util/libgnunetutil.la
427 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
428   $(GN_PLUGIN_LDFLAGS)
429 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
430  $(CFLAGS) -DBUILD_BLUETOOTH
431
432 libgnunet_plugin_transport_udp_la_SOURCES = \
433   plugin_transport_udp.c plugin_transport_udp.h \
434   plugin_transport_udp_broadcasting.c
435 libgnunet_plugin_transport_udp_la_LIBADD = \
436   $(top_builddir)/src/hello/libgnunethello.la \
437   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
438   $(top_builddir)/src/statistics/libgnunetstatistics.la \
439   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
440   $(top_builddir)/src/nat/libgnunetnatnew.la \
441   $(top_builddir)/src/util/libgnunetutil.la \
442   $(LTLIBINTL)
443 libgnunet_plugin_transport_udp_la_LDFLAGS = \
444  $(GN_PLUGIN_LDFLAGS)
445
446 libgnunet_plugin_transport_unix_la_SOURCES = \
447   plugin_transport_unix.c
448 libgnunet_plugin_transport_unix_la_LIBADD = \
449   $(top_builddir)/src/hello/libgnunethello.la \
450   $(top_builddir)/src/statistics/libgnunetstatistics.la \
451   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
452   $(top_builddir)/src/util/libgnunetutil.la \
453   $(LTLIBINTL)
454 libgnunet_plugin_transport_unix_la_LDFLAGS = \
455  $(GN_PLUGIN_LDFLAGS)
456
457
458 libgnunet_plugin_transport_http_client_la_SOURCES = \
459   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
460 libgnunet_plugin_transport_http_client_la_LIBADD = \
461   $(top_builddir)/src/hello/libgnunethello.la \
462   $(top_builddir)/src/statistics/libgnunetstatistics.la \
463   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
464   $(LIB_GNURL) \
465   $(top_builddir)/src/util/libgnunetutil.la
466 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
467  $(GN_PLUGIN_LDFLAGS)
468 libgnunet_plugin_transport_http_client_la_CFLAGS = \
469  $(CFLAGS)
470 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
471  $(CPP_GNURL) $(AM_CPPFLAGS)
472
473
474 libgnunet_plugin_transport_http_server_la_SOURCES = \
475   plugin_transport_http_server.c plugin_transport_http_common.c
476 libgnunet_plugin_transport_http_server_la_LIBADD = \
477   $(top_builddir)/src/hello/libgnunethello.la \
478   $(top_builddir)/src/statistics/libgnunetstatistics.la \
479   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
480   $(top_builddir)/src/nat/libgnunetnatnew.la \
481   $(top_builddir)/src/util/libgnunetutil.la
482 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
483  $(GN_LIBMHD) \
484  $(GN_PLUGIN_LDFLAGS)
485 libgnunet_plugin_transport_http_server_la_CFLAGS = \
486  $(CFLAGS)
487
488 libgnunet_plugin_transport_https_client_la_SOURCES = \
489   plugin_transport_http_client.c plugin_transport_http_common.c
490 libgnunet_plugin_transport_https_client_la_LIBADD = \
491   $(top_builddir)/src/hello/libgnunethello.la \
492   $(top_builddir)/src/statistics/libgnunetstatistics.la \
493   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
494   $(LIB_GNURL) \
495   $(top_builddir)/src/util/libgnunetutil.la
496 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
497  $(GN_PLUGIN_LDFLAGS)
498 libgnunet_plugin_transport_https_client_la_CFLAGS = \
499  $(CFLAGS) -DBUILD_HTTPS
500 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
501  $(CPP_GNURL) $(AM_CPPFLAGS)
502
503
504 libgnunet_plugin_transport_https_server_la_SOURCES = \
505   plugin_transport_http_server.c plugin_transport_http_common.c
506 libgnunet_plugin_transport_https_server_la_LIBADD = \
507   $(top_builddir)/src/hello/libgnunethello.la \
508   $(top_builddir)/src/statistics/libgnunetstatistics.la \
509   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
510   $(top_builddir)/src/nat/libgnunetnatnew.la \
511   $(top_builddir)/src/util/libgnunetutil.la
512 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
513  $(GN_LIBMHD) \
514  $(GN_PLUGIN_LDFLAGS)
515 libgnunet_plugin_transport_https_server_la_CFLAGS = \
516  $(CFLAGS) -DBUILD_HTTPS
517
518
519 if HAVE_TESTING
520 check_PROGRAMS = \
521  test_transport_address_switch_tcp \
522  test_transport_address_switch_udp \
523  test_transport_testing_startstop \
524  test_transport_testing_restart \
525  test_plugin_tcp \
526  test_plugin_udp \
527  $(UNIX_TEST) \
528  $(WLAN_PLUGIN_TEST) \
529  $(BT_PLUGIN_TEST) \
530  test_http_common \
531  $(HTTP_CLIENT_PLUGIN_TEST) \
532  $(HTTPS_CLIENT_PLUGIN_TEST) \
533  $(HTTP_SERVER_PLUGIN_TEST) \
534  $(HTTPS_SERVER_PLUGIN_TEST) \
535  test_transport_api_blacklisting_tcp \
536  test_transport_api_disconnect_tcp \
537  test_transport_api_tcp \
538  test_transport_api_restart_1peer \
539  test_transport_api_restart_2peers \
540  test_transport_api_timeout_tcp \
541  test_transport_api_limited_sockets_tcp \
542  test_transport_api_tcp_nat \
543  test_transport_api_udp \
544  test_transport_api_timeout_udp \
545  $(UNIX_PLUGIN_TEST) \
546  $(UNIX_PLUGIN_TIMEOUT_TEST) \
547  $(UNIX_API_ABSTRACT_TEST) \
548  test_transport_api_udp_nat \
549  $(HTTP_API_TEST) \
550  $(HTTP_REVERSE_API_TEST) \
551  $(HTTP_API_TIMEOUT_TEST) \
552  $(HTTP_SWITCH) \
553  $(HTTPS_API_TEST) \
554  $(HTTPS_API_TIMEOUT_TEST) \
555  $(HTTPS_SWITCH) \
556  $(WLAN_API_TEST) \
557  $(WLAN_TIMEOUT_TEST) \
558  $(BT_API_TEST) \
559  $(BT_TIMEOUT_TEST) \
560  test_transport_api_multi \
561  test_transport_api_monitor_peers \
562  test_transport_blacklisting_no_bl \
563  test_transport_blacklisting_outbound_bl_full \
564  test_transport_blacklisting_outbound_bl_plugin \
565  test_transport_blacklisting_inbound_bl_plugin \
566  test_transport_blacklisting_inbound_bl_full \
567  test_transport_blacklisting_multiple_plugins \
568  test_transport_api_manipulation_send_tcp \
569  test_transport_api_manipulation_recv_tcp \
570  test_transport_api_manipulation_cfg \
571  test_transport_api_reliability_tcp \
572  test_transport_api_reliability_tcp_nat \
573  test_transport_api_reliability_udp \
574  $(UNIX_REL_TEST) \
575  $(HTTP_REL_TEST) \
576  $(HTTPS_REL_TEST) \
577  $(WLAN_REL_TEST) \
578  $(WLAN_UREL_TEST) \
579  $(BT_REL_TEST) \
580  $(BT_UREL_TEST) \
581  test_quota_compliance_tcp \
582  test_quota_compliance_tcp_asymmetric \
583  test_quota_compliance_udp \
584  $(UNIX_QUOTA_TEST) \
585  $(HTTP_QUOTA_TEST) \
586  $(HTTPS_QUOTA_TEST) \
587  $(WLAN_QUOTA_TEST) \
588  $(BT_QUOTA_TEST)
589 if HAVE_GETOPT_BINARY
590 check_PROGRAMS += \
591 test_transport_api_slow_ats
592 endif
593 endif
594
595 if ENABLE_TEST_RUN
596 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
597 TESTS = \
598  test_transport_address_switch_tcp \
599  test_transport_address_switch_udp \
600  $(HTTP_SWITCH) \
601  $(HTTPS_SWITCH) \
602  test_transport_testing_startstop \
603  test_transport_testing_restart \
604  test_plugin_tcp \
605  test_plugin_udp \
606  $(UNIX_TEST) \
607  $(WLAN_PLUGIN_TEST) \
608  $(BT_PLUGIN_TEST) \
609  test_transport_api_blacklisting_tcp \
610  test_transport_api_disconnect_tcp \
611  test_transport_api_tcp \
612  test_transport_api_restart_1peer \
613  test_transport_api_restart_2peers \
614  test_transport_api_limited_sockets_tcp \
615  test_transport_api_tcp_nat \
616  test_transport_api_udp \
617  $(UNIX_PLUGIN_TEST) \
618  $(UNIX_API_ABSTRACT_TEST) \
619  test_transport_api_udp_nat \
620  $(HTTP_API_TEST) \
621  $(HTTPS_API_TEST) \
622  $(WLAN_API_TEST) \
623  $(BT_API_TEST) \
624  test_transport_api_multi \
625  test_transport_api_monitor_peers \
626  test_transport_blacklisting_no_bl \
627  test_transport_blacklisting_outbound_bl_full \
628  test_transport_blacklisting_outbound_bl_plugin \
629  test_transport_blacklisting_inbound_bl_plugin \
630  test_transport_blacklisting_inbound_bl_full \
631  test_transport_blacklisting_multiple_plugins \
632  test_transport_api_manipulation_send_tcp \
633  test_transport_api_manipulation_recv_tcp \
634  test_transport_api_manipulation_cfg \
635  test_transport_api_reliability_tcp \
636  test_transport_api_reliability_tcp_nat \
637  test_transport_api_reliability_udp \
638  $(UNIX_REL_TEST) \
639  $(HTTP_REL_TEST) \
640  $(HTTPS_REL_TEST) \
641  $(WLAN_REL_TEST) \
642  $(WLAN_UREL_TEST) \
643  $(BT_REL_TEST) \
644  $(BT_UREL_TEST) \
645  test_quota_compliance_tcp \
646  test_quota_compliance_tcp_asymmetric \
647  test_quota_compliance_udp \
648  $(UNIX_QUOTA_TEST) \
649  $(HTTP_QUOTA_TEST) \
650  $(HTTPS_QUOTA_TEST) \
651  test_transport_api_timeout_tcp \
652  test_transport_api_timeout_udp \
653  $(UNIX_PLUGIN_TIMEOUT_TEST) \
654  $(HTTP_API_TIMEOUT_TEST) \
655  $(HTTPS_API_TIMEOUT_TEST) \
656  $(WLAN_TIMEOUT_TEST) \
657  $(BT_TIMEOUT_TEST)
658 if HAVE_GETOPT_BINARY
659 TESTS += \
660 test_transport_api_slow_ats
661 endif
662 endif
663
664 test_transport_testing_startstop_SOURCES = \
665  test_transport_testing_startstop.c
666 test_transport_testing_startstop_LDADD = \
667  $(top_builddir)/src/util/libgnunetutil.la \
668  libgnunettransport.la \
669  $(top_builddir)/src/hello/libgnunethello.la \
670  libgnunettransporttesting.la
671
672 test_transport_testing_restart_SOURCES = \
673  test_transport_testing_restart.c
674 test_transport_testing_restart_LDADD = \
675  $(top_builddir)/src/util/libgnunetutil.la \
676  libgnunettransport.la \
677  $(top_builddir)/src/hello/libgnunethello.la \
678  libgnunettransporttesting.la
679
680 test_transport_api_blacklisting_tcp_SOURCES = \
681  test_transport_api_blacklisting.c
682 test_transport_api_blacklisting_tcp_LDADD = \
683  libgnunettransport.la \
684  $(top_builddir)/src/hello/libgnunethello.la \
685  $(top_builddir)/src/statistics/libgnunetstatistics.la \
686  $(top_builddir)/src/util/libgnunetutil.la \
687  libgnunettransporttesting.la
688
689 test_transport_blacklisting_no_bl_SOURCES = \
690  test_transport_blacklisting.c
691 test_transport_blacklisting_no_bl_LDADD = \
692  libgnunettransport.la \
693  $(top_builddir)/src/hello/libgnunethello.la \
694  $(top_builddir)/src/statistics/libgnunetstatistics.la \
695  $(top_builddir)/src/util/libgnunetutil.la \
696  libgnunettransporttesting.la
697
698 test_transport_blacklisting_outbound_bl_full_SOURCES = \
699  test_transport_blacklisting.c
700 test_transport_blacklisting_outbound_bl_full_LDADD = \
701  libgnunettransport.la \
702  $(top_builddir)/src/hello/libgnunethello.la \
703  $(top_builddir)/src/statistics/libgnunetstatistics.la \
704  $(top_builddir)/src/util/libgnunetutil.la \
705  libgnunettransporttesting.la
706
707 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
708  test_transport_blacklisting.c
709 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
710  libgnunettransport.la \
711  $(top_builddir)/src/hello/libgnunethello.la \
712  $(top_builddir)/src/statistics/libgnunetstatistics.la \
713  $(top_builddir)/src/util/libgnunetutil.la \
714  libgnunettransporttesting.la
715
716 test_transport_blacklisting_inbound_bl_full_SOURCES = \
717  test_transport_blacklisting.c
718 test_transport_blacklisting_inbound_bl_full_LDADD = \
719  libgnunettransport.la \
720  $(top_builddir)/src/hello/libgnunethello.la \
721  $(top_builddir)/src/statistics/libgnunetstatistics.la \
722  $(top_builddir)/src/util/libgnunetutil.la \
723  libgnunettransporttesting.la
724
725 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
726  test_transport_blacklisting.c
727 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
728  libgnunettransport.la \
729  $(top_builddir)/src/hello/libgnunethello.la \
730  $(top_builddir)/src/statistics/libgnunetstatistics.la \
731  $(top_builddir)/src/util/libgnunetutil.la \
732  libgnunettransporttesting.la
733
734 test_transport_blacklisting_multiple_plugins_SOURCES = \
735  test_transport_blacklisting.c
736 test_transport_blacklisting_multiple_plugins_LDADD = \
737  libgnunettransport.la \
738  $(top_builddir)/src/hello/libgnunethello.la \
739  $(top_builddir)/src/statistics/libgnunetstatistics.la \
740  $(top_builddir)/src/util/libgnunetutil.la \
741  libgnunettransporttesting.la
742
743
744 test_transport_api_disconnect_tcp_SOURCES = \
745  test_transport_api_disconnect.c
746 test_transport_api_disconnect_tcp_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 test_plugin_tcp_SOURCES = \
754  test_plugin_transport.c
755 test_plugin_tcp_LDADD = \
756  libgnunettransport.la \
757  $(top_builddir)/src/statistics/libgnunetstatistics.la \
758  $(top_builddir)/src/hello/libgnunethello.la \
759  $(top_builddir)/src/util/libgnunetutil.la  \
760  libgnunettransporttesting.la
761
762 test_plugin_udp_SOURCES = \
763  test_plugin_transport.c
764 test_plugin_udp_LDADD = \
765  libgnunettransport.la \
766  $(top_builddir)/src/statistics/libgnunetstatistics.la \
767  $(top_builddir)/src/hello/libgnunethello.la \
768  $(top_builddir)/src/util/libgnunetutil.la  \
769  libgnunettransporttesting.la
770
771 test_plugin_unix_SOURCES = \
772  test_plugin_transport.c
773 test_plugin_unix_LDADD = \
774  libgnunettransport.la \
775  $(top_builddir)/src/statistics/libgnunetstatistics.la \
776  $(top_builddir)/src/hello/libgnunethello.la \
777  $(top_builddir)/src/util/libgnunetutil.la  \
778  libgnunettransporttesting.la
779
780 test_plugin_wlan_SOURCES = \
781  test_plugin_transport.c
782 test_plugin_wlan_LDADD = \
783  libgnunettransport.la \
784  $(top_builddir)/src/statistics/libgnunetstatistics.la \
785  $(top_builddir)/src/hello/libgnunethello.la \
786  $(top_builddir)/src/util/libgnunetutil.la  \
787  libgnunettransporttesting.la
788
789 test_plugin_bluetooth_SOURCES = \
790  test_plugin_transport.c
791 test_plugin_bluetooth_LDADD = \
792  libgnunettransport.la \
793  $(top_builddir)/src/statistics/libgnunetstatistics.la \
794  $(top_builddir)/src/hello/libgnunethello.la \
795  $(top_builddir)/src/util/libgnunetutil.la  \
796  libgnunettransporttesting.la
797
798 test_http_common_SOURCES = \
799  test_http_common.c plugin_transport_http_common.c
800 test_http_common_LDADD = \
801  libgnunettransport.la \
802  $(top_builddir)/src/statistics/libgnunetstatistics.la \
803  $(top_builddir)/src/hello/libgnunethello.la \
804  $(top_builddir)/src/util/libgnunetutil.la  \
805  libgnunettransporttesting.la
806
807 test_plugin_http_server_SOURCES = \
808  test_plugin_transport.c
809 test_plugin_http_server_LDADD = \
810  libgnunettransport.la \
811  $(top_builddir)/src/statistics/libgnunetstatistics.la \
812  $(top_builddir)/src/hello/libgnunethello.la \
813  $(top_builddir)/src/util/libgnunetutil.la  \
814  libgnunettransporttesting.la
815
816 test_plugin_https_server_SOURCES = \
817  test_plugin_transport.c
818 test_plugin_https_server_LDADD = \
819  libgnunettransport.la \
820  $(top_builddir)/src/statistics/libgnunetstatistics.la \
821  $(top_builddir)/src/hello/libgnunethello.la \
822  $(top_builddir)/src/util/libgnunetutil.la  \
823  libgnunettransporttesting.la
824
825 test_plugin_http_client_SOURCES = \
826  test_plugin_transport.c
827 test_plugin_http_client_LDADD = \
828  libgnunettransport.la \
829  $(top_builddir)/src/statistics/libgnunetstatistics.la \
830  $(top_builddir)/src/hello/libgnunethello.la \
831  $(top_builddir)/src/util/libgnunetutil.la  \
832  libgnunettransporttesting.la
833
834 test_plugin_https_client_SOURCES = \
835  test_plugin_transport.c
836 test_plugin_https_client_LDADD = \
837  libgnunettransport.la \
838  $(top_builddir)/src/statistics/libgnunetstatistics.la \
839  $(top_builddir)/src/hello/libgnunethello.la \
840  $(top_builddir)/src/util/libgnunetutil.la  \
841  libgnunettransporttesting.la
842
843 test_transport_api_tcp_SOURCES = \
844  test_transport_api.c
845 test_transport_api_tcp_LDADD = \
846  libgnunettransport.la \
847  $(top_builddir)/src/hello/libgnunethello.la \
848  $(top_builddir)/src/util/libgnunetutil.la  \
849  libgnunettransporttesting.la
850
851 test_transport_api_restart_1peer_SOURCES = \
852  test_transport_api_restart_reconnect.c
853 test_transport_api_restart_1peer_LDADD = \
854  libgnunettransport.la \
855  $(top_builddir)/src/hello/libgnunethello.la \
856  $(top_builddir)/src/ats/libgnunetats.la \
857  $(top_builddir)/src/statistics/libgnunetstatistics.la \
858  $(top_builddir)/src/util/libgnunetutil.la \
859  libgnunettransporttesting.la
860
861 test_transport_api_restart_2peers_SOURCES = \
862  test_transport_api_restart_reconnect.c
863 test_transport_api_restart_2peers_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_limited_sockets_tcp_SOURCES = \
872  test_transport_api_limited_sockets.c
873 test_transport_api_limited_sockets_tcp_LDADD = \
874  libgnunettransport.la \
875  $(top_builddir)/src/hello/libgnunethello.la \
876  $(top_builddir)/src/util/libgnunetutil.la  \
877  libgnunettransporttesting.la
878
879 test_transport_api_tcp_nat_SOURCES = \
880  test_transport_api.c
881 test_transport_api_tcp_nat_LDADD = \
882  libgnunettransport.la \
883  $(top_builddir)/src/hello/libgnunethello.la \
884  $(top_builddir)/src/util/libgnunetutil.la \
885  libgnunettransporttesting.la
886
887 test_transport_api_manipulation_send_tcp_SOURCES = \
888  test_transport_api_manipulation_send_tcp.c
889 test_transport_api_manipulation_send_tcp_LDADD = \
890  libgnunettransport.la \
891  $(top_builddir)/src/hello/libgnunethello.la \
892  $(top_builddir)/src/util/libgnunetutil.la \
893  libgnunettransporttesting.la
894
895 test_transport_api_manipulation_recv_tcp_SOURCES = \
896  test_transport_api_manipulation_recv_tcp.c
897 test_transport_api_manipulation_recv_tcp_LDADD = \
898  libgnunettransport.la \
899  $(top_builddir)/src/hello/libgnunethello.la \
900  $(top_builddir)/src/util/libgnunetutil.la \
901  libgnunettransporttesting.la
902
903 test_transport_api_manipulation_cfg_SOURCES = \
904  test_transport_api_manipulation_cfg.c
905 test_transport_api_manipulation_cfg_LDADD = \
906  libgnunettransport.la \
907  $(top_builddir)/src/hello/libgnunethello.la \
908  $(top_builddir)/src/util/libgnunetutil.la \
909  libgnunettransporttesting.la
910
911 test_transport_api_reliability_tcp_SOURCES = \
912  test_transport_api_reliability.c
913 test_transport_api_reliability_tcp_LDADD = \
914  libgnunettransport.la \
915  $(top_builddir)/src/hello/libgnunethello.la \
916  $(top_builddir)/src/util/libgnunetutil.la \
917  libgnunettransporttesting.la
918
919 test_transport_api_timeout_tcp_SOURCES = \
920  test_transport_api_timeout.c
921 test_transport_api_timeout_tcp_LDADD = \
922  libgnunettransport.la \
923  $(top_builddir)/src/hello/libgnunethello.la \
924  $(top_builddir)/src/util/libgnunetutil.la \
925  libgnunettransporttesting.la
926
927 test_transport_api_timeout_unix_SOURCES = \
928  test_transport_api_timeout.c
929 test_transport_api_timeout_unix_LDADD = \
930  libgnunettransport.la \
931  $(top_builddir)/src/hello/libgnunethello.la \
932  $(top_builddir)/src/util/libgnunetutil.la \
933  libgnunettransporttesting.la
934
935 test_transport_api_timeout_wlan_SOURCES = \
936  test_transport_api_timeout.c
937 test_transport_api_timeout_wlan_LDADD = \
938  libgnunettransport.la \
939  $(top_builddir)/src/hello/libgnunethello.la \
940  $(top_builddir)/src/util/libgnunetutil.la \
941  libgnunettransporttesting.la
942
943 test_transport_api_timeout_bluetooth_SOURCES = \
944  test_transport_api_timeout.c
945 test_transport_api_timeout_bluetooth_LDADD = \
946  libgnunettransport.la \
947  $(top_builddir)/src/hello/libgnunethello.la \
948  $(top_builddir)/src/util/libgnunetutil.la \
949  libgnunettransporttesting.la
950
951 test_transport_api_reliability_tcp_nat_SOURCES = \
952  test_transport_api_reliability.c
953 test_transport_api_reliability_tcp_nat_LDADD = \
954  libgnunettransport.la \
955  $(top_builddir)/src/hello/libgnunethello.la \
956  $(top_builddir)/src/util/libgnunetutil.la \
957  libgnunettransporttesting.la
958
959 test_transport_api_reliability_bluetooth_SOURCES = \
960  test_transport_api_reliability.c
961 test_transport_api_reliability_bluetooth_LDADD = \
962  libgnunettransport.la \
963  $(top_builddir)/src/hello/libgnunethello.la \
964  $(top_builddir)/src/util/libgnunetutil.la \
965  libgnunettransporttesting.la
966
967 test_transport_api_reliability_wlan_SOURCES = \
968  test_transport_api_reliability.c
969 test_transport_api_reliability_wlan_LDADD = \
970  libgnunettransport.la \
971  $(top_builddir)/src/hello/libgnunethello.la \
972  $(top_builddir)/src/util/libgnunetutil.la \
973  libgnunettransporttesting.la
974
975 test_transport_api_udp_SOURCES = \
976  test_transport_api.c
977 test_transport_api_udp_LDADD = \
978  libgnunettransport.la \
979  $(top_builddir)/src/hello/libgnunethello.la \
980  $(top_builddir)/src/util/libgnunetutil.la  \
981  libgnunettransporttesting.la
982
983 test_transport_api_timeout_udp_SOURCES = \
984  test_transport_api_timeout.c
985 test_transport_api_timeout_udp_LDADD = \
986  libgnunettransport.la \
987  $(top_builddir)/src/hello/libgnunethello.la \
988  $(top_builddir)/src/util/libgnunetutil.la \
989  libgnunettransporttesting.la
990
991 test_transport_api_udp_nat_SOURCES = \
992  test_transport_api.c
993 test_transport_api_udp_nat_LDADD = \
994  libgnunettransport.la \
995  $(top_builddir)/src/hello/libgnunethello.la \
996  $(top_builddir)/src/util/libgnunetutil.la  \
997  libgnunettransporttesting.la
998
999 test_transport_api_unix_SOURCES = \
1000  test_transport_api.c
1001 test_transport_api_unix_LDADD = \
1002  libgnunettransport.la \
1003  $(top_builddir)/src/hello/libgnunethello.la \
1004  $(top_builddir)/src/util/libgnunetutil.la \
1005  libgnunettransporttesting.la
1006
1007 test_transport_api_unix_abstract_SOURCES = \
1008  test_transport_api.c
1009 test_transport_api_unix_abstract_LDADD = \
1010  libgnunettransport.la \
1011  $(top_builddir)/src/hello/libgnunethello.la \
1012  $(top_builddir)/src/util/libgnunetutil.la \
1013  libgnunettransporttesting.la
1014
1015 # HTTP tests
1016 test_transport_api_http_SOURCES = \
1017  test_transport_api.c
1018 test_transport_api_http_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_http_reverse_SOURCES = \
1025  test_transport_api.c
1026 test_transport_api_http_reverse_LDADD = \
1027  libgnunettransport.la \
1028  $(top_builddir)/src/hello/libgnunethello.la \
1029  $(top_builddir)/src/util/libgnunetutil.la \
1030  libgnunettransporttesting.la
1031
1032 test_transport_api_timeout_http_SOURCES = \
1033  test_transport_api_timeout.c
1034 test_transport_api_timeout_http_LDADD = \
1035  libgnunettransport.la \
1036  $(top_builddir)/src/hello/libgnunethello.la \
1037  $(top_builddir)/src/util/libgnunetutil.la \
1038  libgnunettransporttesting.la
1039
1040 test_transport_api_reliability_http_SOURCES = \
1041  test_transport_api_reliability.c
1042 test_transport_api_reliability_http_LDADD = \
1043  libgnunettransport.la \
1044  $(top_builddir)/src/hello/libgnunethello.la \
1045  $(top_builddir)/src/util/libgnunetutil.la \
1046  libgnunettransporttesting.la
1047
1048 test_transport_api_reliability_http_xhr_SOURCES = \
1049  test_transport_api_reliability.c
1050 test_transport_api_reliability_http_xhr_LDADD = \
1051  libgnunettransport.la \
1052  $(top_builddir)/src/hello/libgnunethello.la \
1053  $(top_builddir)/src/util/libgnunetutil.la \
1054  libgnunettransporttesting.la
1055
1056 test_quota_compliance_http_SOURCES = \
1057  test_quota_compliance.c
1058 test_quota_compliance_http_LDADD = \
1059  libgnunettransport.la \
1060  $(top_builddir)/src/hello/libgnunethello.la \
1061  $(top_builddir)/src/ats/libgnunetats.la \
1062  $(top_builddir)/src/nt/libgnunetnt.la \
1063  $(top_builddir)/src/util/libgnunetutil.la \
1064  libgnunettransporttesting.la
1065
1066 test_quota_compliance_http_asymmetric_SOURCES = \
1067  test_quota_compliance.c
1068 test_quota_compliance_http_asymmetric_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_https_SOURCES = \
1077  test_quota_compliance.c
1078 test_quota_compliance_https_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_asymmetric_SOURCES = \
1087  test_quota_compliance.c
1088 test_quota_compliance_https_asymmetric_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 # HTTPS tests
1097 test_transport_api_https_SOURCES = \
1098  test_transport_api.c
1099 test_transport_api_https_LDADD = \
1100  libgnunettransport.la \
1101  $(top_builddir)/src/hello/libgnunethello.la \
1102  $(top_builddir)/src/util/libgnunetutil.la  \
1103  libgnunettransporttesting.la
1104
1105 test_transport_api_timeout_https_SOURCES = \
1106  test_transport_api_timeout.c
1107 test_transport_api_timeout_https_LDADD = \
1108  libgnunettransport.la \
1109  $(top_builddir)/src/hello/libgnunethello.la \
1110  $(top_builddir)/src/util/libgnunetutil.la \
1111  libgnunettransporttesting.la
1112
1113
1114 test_transport_api_reliability_https_SOURCES = \
1115  test_transport_api_reliability.c
1116 test_transport_api_reliability_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_reliability_https_xhr_SOURCES = \
1123  test_transport_api_reliability.c
1124 test_transport_api_reliability_https_xhr_LDADD = \
1125  libgnunettransport.la \
1126  $(top_builddir)/src/hello/libgnunethello.la \
1127  $(top_builddir)/src/util/libgnunetutil.la \
1128  libgnunettransporttesting.la
1129
1130 test_transport_api_reliability_unix_SOURCES = \
1131  test_transport_api_reliability.c
1132 test_transport_api_reliability_unix_LDADD = \
1133  libgnunettransport.la \
1134  $(top_builddir)/src/hello/libgnunethello.la \
1135  $(top_builddir)/src/util/libgnunetutil.la \
1136  libgnunettransporttesting.la
1137
1138 test_transport_api_reliability_udp_SOURCES = \
1139  test_transport_api_reliability.c
1140 test_transport_api_reliability_udp_LDADD = \
1141  libgnunettransport.la \
1142  $(top_builddir)/src/hello/libgnunethello.la \
1143  $(top_builddir)/src/util/libgnunetutil.la \
1144  libgnunettransporttesting.la
1145
1146 if LINUX
1147 test_transport_api_wlan_SOURCES = \
1148  test_transport_api.c
1149 test_transport_api_wlan_LDADD = \
1150  libgnunettransport.la \
1151  $(top_builddir)/src/hello/libgnunethello.la \
1152  $(top_builddir)/src/util/libgnunetutil.la \
1153  libgnunettransporttesting.la
1154 endif
1155
1156 if LINUX
1157 if HAVE_LIBBLUETOOTH
1158 test_transport_api_bluetooth_SOURCES = \
1159  test_transport_api.c
1160 test_transport_api_bluetooth_LDADD = \
1161  libgnunettransport.la \
1162  $(top_builddir)/src/hello/libgnunethello.la \
1163  $(top_builddir)/src/util/libgnunetutil.la \
1164  libgnunettransporttesting.la
1165 endif
1166 endif
1167
1168 test_transport_address_switch_tcp_SOURCES = \
1169  test_transport_address_switch.c
1170 test_transport_address_switch_tcp_LDADD = \
1171  libgnunettransport.la \
1172  $(top_builddir)/src/hello/libgnunethello.la \
1173  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1174  $(top_builddir)/src/util/libgnunetutil.la \
1175  libgnunettransporttesting.la
1176
1177  test_transport_address_switch_udp_SOURCES = \
1178  test_transport_address_switch.c
1179 test_transport_address_switch_udp_LDADD = \
1180  libgnunettransport.la \
1181  $(top_builddir)/src/hello/libgnunethello.la \
1182  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1183  $(top_builddir)/src/util/libgnunetutil.la \
1184  libgnunettransporttesting.la
1185
1186
1187  test_transport_address_switch_http_SOURCES = \
1188  test_transport_address_switch.c
1189 test_transport_address_switch_http_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  test_transport_address_switch_https_SOURCES = \
1197  test_transport_address_switch.c
1198 test_transport_address_switch_https_LDADD = \
1199  libgnunettransport.la \
1200  $(top_builddir)/src/hello/libgnunethello.la \
1201  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1202  $(top_builddir)/src/util/libgnunetutil.la \
1203  libgnunettransporttesting.la
1204
1205 test_quota_compliance_tcp_SOURCES = \
1206  test_quota_compliance.c
1207 test_quota_compliance_tcp_LDADD = \
1208  libgnunettransport.la \
1209  $(top_builddir)/src/hello/libgnunethello.la \
1210  $(top_builddir)/src/ats/libgnunetats.la \
1211  $(top_builddir)/src/nt/libgnunetnt.la \
1212  $(top_builddir)/src/util/libgnunetutil.la \
1213  libgnunettransporttesting.la
1214
1215 test_quota_compliance_tcp_asymmetric_SOURCES = \
1216  test_quota_compliance.c
1217 test_quota_compliance_tcp_asymmetric_LDADD = \
1218  libgnunettransport.la \
1219  $(top_builddir)/src/hello/libgnunethello.la \
1220  $(top_builddir)/src/nt/libgnunetnt.la \
1221  $(top_builddir)/src/ats/libgnunetats.la \
1222  $(top_builddir)/src/util/libgnunetutil.la \
1223  libgnunettransporttesting.la
1224
1225 test_quota_compliance_udp_SOURCES = \
1226  test_quota_compliance.c
1227 test_quota_compliance_udp_LDADD = \
1228  libgnunettransport.la \
1229  $(top_builddir)/src/hello/libgnunethello.la \
1230  $(top_builddir)/src/ats/libgnunetats.la \
1231  $(top_builddir)/src/nt/libgnunetnt.la \
1232  $(top_builddir)/src/util/libgnunetutil.la \
1233  libgnunettransporttesting.la
1234
1235 test_quota_compliance_unix_SOURCES = \
1236  test_quota_compliance.c
1237 test_quota_compliance_unix_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_asymmetric_SOURCES = \
1246  test_quota_compliance.c
1247 test_quota_compliance_unix_asymmetric_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_wlan_SOURCES = \
1256  test_quota_compliance.c
1257 test_quota_compliance_wlan_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_asymmetric_SOURCES = \
1266  test_quota_compliance.c
1267 test_quota_compliance_wlan_asymmetric_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_bluetooth_SOURCES = \
1276  test_quota_compliance.c
1277 test_quota_compliance_bluetooth_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_asymmetric_SOURCES = \
1286  test_quota_compliance.c
1287 test_quota_compliance_bluetooth_asymmetric_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_transport_api_multi_SOURCES = \
1296  test_transport_api.c
1297 test_transport_api_multi_LDADD = \
1298  libgnunettransport.la \
1299  $(top_builddir)/src/hello/libgnunethello.la \
1300  $(top_builddir)/src/util/libgnunetutil.la \
1301  libgnunettransporttesting.la
1302
1303 test_transport_api_monitor_peers_SOURCES = \
1304  test_transport_api_monitor_peers.c
1305 test_transport_api_monitor_peers_LDADD = \
1306  libgnunettransport.la \
1307  $(top_builddir)/src/hello/libgnunethello.la \
1308  $(top_builddir)/src/util/libgnunetutil.la \
1309  libgnunettransporttesting.la
1310
1311 test_transport_api_slow_ats_SOURCES = \
1312  test_transport_api.c
1313 test_transport_api_slow_ats_LDADD = \
1314  libgnunettransport.la \
1315  $(top_builddir)/src/hello/libgnunethello.la \
1316  $(top_builddir)/src/util/libgnunetutil.la  \
1317  libgnunettransporttesting.la
1318
1319
1320 EXTRA_DIST = \
1321 communicator-unix.conf \
1322 test_plugin_hostkey \
1323 test_plugin_hostkey.ecc \
1324 test_delay \
1325 template_cfg_peer1.conf\
1326 template_cfg_peer2.conf\
1327 test_plugin_transport_data.conf\
1328 test_plugin_transport_data_udp.conf\
1329 test_quota_compliance_data.conf\
1330 test_quota_compliance_http_peer1.conf\
1331 test_quota_compliance_http_peer2.conf\
1332 test_quota_compliance_https_peer1.conf\
1333 test_quota_compliance_https_peer2.conf\
1334 test_quota_compliance_tcp_peer1.conf\
1335 test_quota_compliance_tcp_peer2.conf\
1336 test_quota_compliance_udp_peer1.conf\
1337 test_quota_compliance_udp_peer2.conf\
1338 test_quota_compliance_unix_peer1.conf\
1339 test_quota_compliance_unix_peer2.conf\
1340 test_quota_compliance_wlan_peer1.conf\
1341 test_quota_compliance_wlan_peer2.conf\
1342 test_quota_compliance_bluetooth_peer1.conf\
1343 test_quota_compliance_bluetooth_peer2.conf\
1344 test_quota_compliance_http_asymmetric_peer1.conf\
1345 test_quota_compliance_http_asymmetric_peer2.conf\
1346 test_quota_compliance_https_asymmetric_peer1.conf\
1347 test_quota_compliance_https_asymmetric_peer2.conf\
1348 test_quota_compliance_tcp_asymmetric_peer1.conf\
1349 test_quota_compliance_tcp_asymmetric_peer2.conf\
1350 test_quota_compliance_unix_asymmetric_peer1.conf\
1351 test_quota_compliance_unix_asymmetric_peer2.conf\
1352 test_quota_compliance_wlan_asymmetric_peer1.conf\
1353 test_quota_compliance_wlan_asymmetric_peer2.conf\
1354 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1355 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1356 test_transport_api_data.conf\
1357 test_transport_api_blacklisting_tcp_peer1.conf \
1358 test_transport_api_blacklisting_tcp_peer2.conf \
1359 test_transport_api_http_peer1.conf\
1360 test_transport_api_http_peer2.conf\
1361 test_transport_api_https_peer1.conf\
1362 test_transport_api_https_peer2.conf\
1363 test_transport_api_limited_sockets_tcp_peer1.conf\
1364 test_transport_api_limited_sockets_tcp_peer2.conf\
1365 test_transport_api_timeout_tcp_peer1.conf\
1366 test_transport_api_timeout_tcp_peer2.conf\
1367 test_transport_api_multi_peer1.conf\
1368 test_transport_api_multi_peer2.conf\
1369 test_transport_api_restart_1peer_peer1.conf\
1370 test_transport_api_restart_1peer_peer2.conf\
1371 test_transport_api_reliability_http_peer1.conf\
1372 test_transport_api_reliability_http_peer2.conf\
1373 test_transport_api_reliability_https_peer1.conf\
1374 test_transport_api_reliability_https_peer2.conf\
1375 test_transport_api_reliability_tcp_nat_peer1.conf\
1376 test_transport_api_reliability_tcp_nat_peer2.conf\
1377 test_transport_api_reliability_tcp_peer1.conf\
1378 test_transport_api_reliability_tcp_peer2.conf\
1379 test_transport_api_reliability_wlan_peer1.conf\
1380 test_transport_api_reliability_wlan_peer2.conf\
1381 test_transport_api_reliability_bluetooth_peer1.conf\
1382 test_transport_api_reliability_bluetooth_peer2.conf\
1383 test_transport_api_manipulation_send_tcp_peer1.conf\
1384 test_transport_api_manipulation_send_tcp_peer2.conf\
1385 test_transport_api_manipulation_recv_tcp_peer1.conf\
1386 test_transport_api_manipulation_recv_tcp_peer2.conf\
1387 test_transport_api_manipulation_cfg_peer1.conf\
1388 test_transport_api_manipulation_cfg_peer2.conf\
1389 test_transport_api_restart_1peer_peer1.conf\
1390 test_transport_api_restart_1peer_peer2.conf\
1391 test_transport_api_restart_2peers_peer1.conf\
1392 test_transport_api_restart_2peers_peer2.conf\
1393 test_transport_api_tcp_nat_peer1.conf\
1394 test_transport_api_tcp_nat_peer2.conf\
1395 test_transport_api_tcp_peer1.conf\
1396 test_transport_api_tcp_peer2.conf\
1397 test_transport_api_udp_nat_peer1.conf\
1398 test_transport_api_udp_nat_peer2.conf\
1399 test_transport_api_udp_peer1.conf\
1400 test_transport_api_udp_peer2.conf\
1401 test_transport_api_timeout_udp_peer1.conf\
1402 test_transport_api_timeout_udp_peer2.conf\
1403 test_transport_api_unix_peer1.conf\
1404 test_transport_api_unix_peer2.conf\
1405 test_transport_api_unix_abstract_peer1.conf \
1406 test_transport_api_unix_abstract_peer2.conf \
1407 test_transport_api_timeout_unix_peer1.conf\
1408 test_transport_api_timeout_unix_peer2.conf\
1409 test_transport_api_timeout_wlan_peer1.conf \
1410 test_transport_api_timeout_wlan_peer2.conf \
1411 test_transport_api_timeout_bluetooth_peer1.conf\
1412 test_transport_api_timeout_bluetooth_peer2.conf\
1413 test_transport_api_reliability_udp_peer1.conf\
1414 test_transport_api_reliability_udp_peer2.conf\
1415 test_transport_api_reliability_http_xhr_peer1.conf\
1416 test_transport_api_reliability_http_xhr_peer2.conf\
1417 test_transport_api_reliability_https_xhr_peer1.conf\
1418 test_transport_api_reliability_https_xhr_peer2.conf\
1419 test_transport_api_reliability_unix_peer1.conf\
1420 test_transport_api_reliability_unix_peer2.conf\
1421 test_transport_api_reliability_wlan_peer1.conf\
1422 test_transport_api_reliability_wlan_peer2.conf\
1423 test_transport_api_unreliability_wlan_peer1.conf\
1424 test_transport_api_unreliability_wlan_peer2.conf\
1425 test_transport_api_reliability_bluetooth_peer1.conf\
1426 test_transport_api_reliability_bluetooth_peer2.conf\
1427 test_transport_api_wlan_peer1.conf\
1428 test_transport_api_wlan_peer2.conf\
1429 test_transport_api_bluetooth_peer1.conf\
1430 test_transport_api_bluetooth_peer2.conf\
1431 test_transport_api_monitor_peers_peer1.conf\
1432 test_transport_api_monitor_peers_peer2.conf\
1433 test_transport_api_monitor_validation_peer1.conf\
1434 test_transport_api_monitor_validation_peer2.conf\
1435 test_transport_defaults.conf\
1436 test_transport_api_disconnect_tcp_peer1.conf\
1437 test_transport_api_disconnect_tcp_peer2.conf\
1438 test_transport_api_timeout_http_peer1.conf\
1439 test_transport_api_timeout_http_peer2.conf\
1440 test_transport_api_timeout_https_peer1.conf\
1441 test_transport_api_timeout_https_peer2.conf\
1442 test_transport_blacklisting_cfg_peer1.conf \
1443 test_transport_blacklisting_cfg_peer2.conf \
1444 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1445 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1446 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1447 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1448 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1449 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1450 test_transport_api_http_reverse_peer1.conf \
1451 test_transport_api_http_reverse_peer2.conf \
1452 perf_tcp_peer1.conf \
1453 perf_tcp_peer2.conf \
1454 test_transport_api_slow_ats_peer1.conf \
1455 test_transport_api_slow_ats_peer2.conf \
1456   tcp_connection_legacy.c \
1457   tcp_server_mst_legacy.c \
1458   tcp_server_legacy.c \
1459   tcp_service_legacy.c