note about assertion actually failing
[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 if HAVE_EXPERIMENTAL
382 plugin_LTLIBRARIES += \
383   libgnunet_plugin_transport_xt.la \
384   libgnunet_plugin_transport_xu.la
385 endif
386
387 # Note: real plugins of course need to be added
388 # to the plugin_LTLIBRARIES above
389 noinst_LTLIBRARIES = \
390   libgnunet_plugin_transport_template.la
391
392 libgnunet_plugin_transport_tcp_la_SOURCES = \
393   plugin_transport_tcp.c
394 libgnunet_plugin_transport_tcp_la_LIBADD = \
395   $(top_builddir)/src/hello/libgnunethello.la \
396   $(top_builddir)/src/statistics/libgnunetstatistics.la \
397   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
398   $(top_builddir)/src/nat/libgnunetnatnew.la \
399   $(top_builddir)/src/util/libgnunetutil.la \
400   $(LTLIBINTL)
401 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
402  $(GN_PLUGIN_LDFLAGS)
403
404 libgnunet_plugin_transport_xt_la_SOURCES = \
405   plugin_transport_xt.c
406 libgnunet_plugin_transport_xt_la_LIBADD = \
407   $(top_builddir)/src/hello/libgnunethello.la \
408   $(top_builddir)/src/statistics/libgnunetstatistics.la \
409   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
410   $(top_builddir)/src/nat/libgnunetnatnew.la \
411   $(top_builddir)/src/util/libgnunetutil.la \
412   $(LTLIBINTL)
413 libgnunet_plugin_transport_xt_la_LDFLAGS = \
414  $(GN_PLUGIN_LDFLAGS)
415
416 libgnunet_plugin_transport_template_la_SOURCES = \
417   plugin_transport_template.c
418 libgnunet_plugin_transport_template_la_LIBADD = \
419   $(top_builddir)/src/util/libgnunetutil.la \
420   $(LTLIBINTL)
421 libgnunet_plugin_transport_template_la_LDFLAGS = \
422  $(GN_PLUGIN_LDFLAGS)
423
424 libgnunet_plugin_transport_wlan_la_SOURCES = \
425   plugin_transport_wlan.c plugin_transport_wlan.h
426 libgnunet_plugin_transport_wlan_la_LIBADD = \
427   $(top_builddir)/src/hello/libgnunethello.la \
428   $(top_builddir)/src/statistics/libgnunetstatistics.la \
429   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
430   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
431   $(top_builddir)/src/util/libgnunetutil.la
432 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
433   $(GN_PLUGIN_LDFLAGS)
434 libgnunet_plugin_transport_wlan_la_CFLAGS = \
435  $(CFLAGS) -DBUILD_WLAN
436
437 libgnunet_plugin_transport_bluetooth_la_SOURCES = \
438   plugin_transport_wlan.c plugin_transport_wlan.h
439 libgnunet_plugin_transport_bluetooth_la_LIBADD = \
440   $(top_builddir)/src/hello/libgnunethello.la \
441   $(top_builddir)/src/statistics/libgnunetstatistics.la \
442   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
443   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
444   $(top_builddir)/src/util/libgnunetutil.la
445 libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \
446   $(GN_PLUGIN_LDFLAGS)
447 libgnunet_plugin_transport_bluetooth_la_CFLAGS = \
448  $(CFLAGS) -DBUILD_BLUETOOTH
449
450 libgnunet_plugin_transport_udp_la_SOURCES = \
451   plugin_transport_udp.c plugin_transport_udp.h \
452   plugin_transport_udp_broadcasting.c
453 libgnunet_plugin_transport_udp_la_LIBADD = \
454   $(top_builddir)/src/hello/libgnunethello.la \
455   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
456   $(top_builddir)/src/statistics/libgnunetstatistics.la \
457   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
458   $(top_builddir)/src/nat/libgnunetnatnew.la \
459   $(top_builddir)/src/util/libgnunetutil.la \
460   $(LTLIBINTL)
461 libgnunet_plugin_transport_udp_la_LDFLAGS = \
462  $(GN_PLUGIN_LDFLAGS)
463
464 libgnunet_plugin_transport_xu_la_SOURCES = \
465   plugin_transport_xu.c plugin_transport_xu.h
466 libgnunet_plugin_transport_xu_la_LIBADD = \
467   $(top_builddir)/src/hello/libgnunethello.la \
468   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
469   $(top_builddir)/src/statistics/libgnunetstatistics.la \
470   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
471   $(top_builddir)/src/nat/libgnunetnatnew.la \
472   $(top_builddir)/src/util/libgnunetutil.la \
473   $(LTLIBINTL)
474 libgnunet_plugin_transport_xu_la_LDFLAGS = \
475  $(GN_PLUGIN_LDFLAGS)
476
477 libgnunet_plugin_transport_unix_la_SOURCES = \
478   plugin_transport_unix.c
479 libgnunet_plugin_transport_unix_la_LIBADD = \
480   $(top_builddir)/src/hello/libgnunethello.la \
481   $(top_builddir)/src/statistics/libgnunetstatistics.la \
482   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
483   $(top_builddir)/src/util/libgnunetutil.la \
484   $(LTLIBINTL)
485 libgnunet_plugin_transport_unix_la_LDFLAGS = \
486  $(GN_PLUGIN_LDFLAGS)
487
488
489 libgnunet_plugin_transport_http_client_la_SOURCES = \
490   plugin_transport_http_client.c plugin_transport_http_common.c plugin_transport_http_common.h
491 libgnunet_plugin_transport_http_client_la_LIBADD = \
492   $(top_builddir)/src/hello/libgnunethello.la \
493   $(top_builddir)/src/statistics/libgnunetstatistics.la \
494   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
495   $(LIB_GNURL) \
496   $(top_builddir)/src/util/libgnunetutil.la
497 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
498  $(GN_PLUGIN_LDFLAGS)
499 libgnunet_plugin_transport_http_client_la_CFLAGS = \
500  $(CFLAGS)
501 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
502  $(CPP_GNURL) $(AM_CPPFLAGS)
503
504
505 libgnunet_plugin_transport_http_server_la_SOURCES = \
506   plugin_transport_http_server.c plugin_transport_http_common.c
507 libgnunet_plugin_transport_http_server_la_LIBADD = \
508   $(top_builddir)/src/hello/libgnunethello.la \
509   $(top_builddir)/src/statistics/libgnunetstatistics.la \
510   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
511   $(top_builddir)/src/nat/libgnunetnatnew.la \
512   $(top_builddir)/src/util/libgnunetutil.la
513 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
514  $(GN_LIBMHD) \
515  $(GN_PLUGIN_LDFLAGS)
516 libgnunet_plugin_transport_http_server_la_CFLAGS = \
517  $(CFLAGS)
518
519 libgnunet_plugin_transport_https_client_la_SOURCES = \
520   plugin_transport_http_client.c plugin_transport_http_common.c
521 libgnunet_plugin_transport_https_client_la_LIBADD = \
522   $(top_builddir)/src/hello/libgnunethello.la \
523   $(top_builddir)/src/statistics/libgnunetstatistics.la \
524   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
525   $(LIB_GNURL) \
526   $(top_builddir)/src/util/libgnunetutil.la
527 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
528  $(GN_PLUGIN_LDFLAGS)
529 libgnunet_plugin_transport_https_client_la_CFLAGS = \
530  $(CFLAGS) -DBUILD_HTTPS
531 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
532  $(CPP_GNURL) $(AM_CPPFLAGS)
533
534
535 libgnunet_plugin_transport_https_server_la_SOURCES = \
536   plugin_transport_http_server.c plugin_transport_http_common.c
537 libgnunet_plugin_transport_https_server_la_LIBADD = \
538   $(top_builddir)/src/hello/libgnunethello.la \
539   $(top_builddir)/src/statistics/libgnunetstatistics.la \
540   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
541   $(top_builddir)/src/nat/libgnunetnatnew.la \
542   $(top_builddir)/src/util/libgnunetutil.la
543 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
544  $(GN_LIBMHD) \
545  $(GN_PLUGIN_LDFLAGS)
546 libgnunet_plugin_transport_https_server_la_CFLAGS = \
547  $(CFLAGS) -DBUILD_HTTPS
548
549
550 if HAVE_TESTING
551 check_PROGRAMS = \
552  test_transport_address_switch_tcp \
553  test_transport_address_switch_udp \
554  test_transport_testing_startstop \
555  test_transport_testing_restart \
556  test_plugin_tcp \
557  test_plugin_udp \
558  $(UNIX_TEST) \
559  $(WLAN_PLUGIN_TEST) \
560  $(BT_PLUGIN_TEST) \
561  test_http_common \
562  $(HTTP_CLIENT_PLUGIN_TEST) \
563  $(HTTPS_CLIENT_PLUGIN_TEST) \
564  $(HTTP_SERVER_PLUGIN_TEST) \
565  $(HTTPS_SERVER_PLUGIN_TEST) \
566  test_transport_api_blacklisting_tcp \
567  test_transport_api_disconnect_tcp \
568  test_transport_api_tcp \
569  test_transport_api_restart_1peer \
570  test_transport_api_restart_2peers \
571  test_transport_api_timeout_tcp \
572  test_transport_api_limited_sockets_tcp \
573  test_transport_api_tcp_nat \
574  test_transport_api_udp \
575  test_transport_api_timeout_udp \
576  $(UNIX_PLUGIN_TEST) \
577  $(UNIX_PLUGIN_TIMEOUT_TEST) \
578  $(UNIX_API_ABSTRACT_TEST) \
579  test_transport_api_udp_nat \
580  $(HTTP_API_TEST) \
581  $(HTTP_REVERSE_API_TEST) \
582  $(HTTP_API_TIMEOUT_TEST) \
583  $(HTTP_SWITCH) \
584  $(HTTPS_API_TEST) \
585  $(HTTPS_API_TIMEOUT_TEST) \
586  $(HTTPS_SWITCH) \
587  $(WLAN_API_TEST) \
588  $(WLAN_TIMEOUT_TEST) \
589  $(BT_API_TEST) \
590  $(BT_TIMEOUT_TEST) \
591  test_transport_api_multi \
592  test_transport_api_monitor_peers \
593  test_transport_blacklisting_no_bl \
594  test_transport_blacklisting_outbound_bl_full \
595  test_transport_blacklisting_outbound_bl_plugin \
596  test_transport_blacklisting_inbound_bl_plugin \
597  test_transport_blacklisting_inbound_bl_full \
598  test_transport_blacklisting_multiple_plugins \
599  test_transport_api_manipulation_send_tcp \
600  test_transport_api_manipulation_recv_tcp \
601  test_transport_api_manipulation_cfg \
602  test_transport_api_reliability_tcp \
603  test_transport_api_reliability_tcp_nat \
604  test_transport_api_reliability_udp \
605  $(UNIX_REL_TEST) \
606  $(HTTP_REL_TEST) \
607  $(HTTPS_REL_TEST) \
608  $(WLAN_REL_TEST) \
609  $(WLAN_UREL_TEST) \
610  $(BT_REL_TEST) \
611  $(BT_UREL_TEST) \
612  test_quota_compliance_tcp \
613  test_quota_compliance_tcp_asymmetric \
614  test_quota_compliance_udp \
615  $(UNIX_QUOTA_TEST) \
616  $(HTTP_QUOTA_TEST) \
617  $(HTTPS_QUOTA_TEST) \
618  $(WLAN_QUOTA_TEST) \
619  $(BT_QUOTA_TEST)
620 if HAVE_GETOPT_BINARY
621 check_PROGRAMS += \
622 test_transport_api_slow_ats
623 endif
624 endif
625
626 if ENABLE_TEST_RUN
627 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
628 TESTS = \
629  test_transport_address_switch_tcp \
630  test_transport_address_switch_udp \
631  $(HTTP_SWITCH) \
632  $(HTTPS_SWITCH) \
633  test_transport_testing_startstop \
634  test_transport_testing_restart \
635  test_plugin_tcp \
636  test_plugin_udp \
637  $(UNIX_TEST) \
638  $(WLAN_PLUGIN_TEST) \
639  $(BT_PLUGIN_TEST) \
640  test_transport_api_blacklisting_tcp \
641  test_transport_api_disconnect_tcp \
642  test_transport_api_tcp \
643  test_transport_api_restart_1peer \
644  test_transport_api_restart_2peers \
645  test_transport_api_limited_sockets_tcp \
646  test_transport_api_tcp_nat \
647  test_transport_api_udp \
648  $(UNIX_PLUGIN_TEST) \
649  $(UNIX_API_ABSTRACT_TEST) \
650  test_transport_api_udp_nat \
651  $(HTTP_API_TEST) \
652  $(HTTPS_API_TEST) \
653  $(WLAN_API_TEST) \
654  $(BT_API_TEST) \
655  test_transport_api_multi \
656  test_transport_api_monitor_peers \
657  test_transport_blacklisting_no_bl \
658  test_transport_blacklisting_outbound_bl_full \
659  test_transport_blacklisting_outbound_bl_plugin \
660  test_transport_blacklisting_inbound_bl_plugin \
661  test_transport_blacklisting_inbound_bl_full \
662  test_transport_blacklisting_multiple_plugins \
663  test_transport_api_manipulation_send_tcp \
664  test_transport_api_manipulation_recv_tcp \
665  test_transport_api_manipulation_cfg \
666  test_transport_api_reliability_tcp \
667  test_transport_api_reliability_tcp_nat \
668  test_transport_api_reliability_udp \
669  $(UNIX_REL_TEST) \
670  $(HTTP_REL_TEST) \
671  $(HTTPS_REL_TEST) \
672  $(WLAN_REL_TEST) \
673  $(WLAN_UREL_TEST) \
674  $(BT_REL_TEST) \
675  $(BT_UREL_TEST) \
676  test_quota_compliance_tcp \
677  test_quota_compliance_tcp_asymmetric \
678  test_quota_compliance_udp \
679  $(UNIX_QUOTA_TEST) \
680  $(HTTP_QUOTA_TEST) \
681  $(HTTPS_QUOTA_TEST) \
682  test_transport_api_timeout_tcp \
683  test_transport_api_timeout_udp \
684  $(UNIX_PLUGIN_TIMEOUT_TEST) \
685  $(HTTP_API_TIMEOUT_TEST) \
686  $(HTTPS_API_TIMEOUT_TEST) \
687  $(WLAN_TIMEOUT_TEST) \
688  $(BT_TIMEOUT_TEST)
689 if HAVE_GETOPT_BINARY
690 TESTS += \
691 test_transport_api_slow_ats
692 endif
693 endif
694
695 test_transport_testing_startstop_SOURCES = \
696  test_transport_testing_startstop.c
697 test_transport_testing_startstop_LDADD = \
698  $(top_builddir)/src/util/libgnunetutil.la \
699  libgnunettransport.la \
700  $(top_builddir)/src/hello/libgnunethello.la \
701  libgnunettransporttesting.la
702
703 test_transport_testing_restart_SOURCES = \
704  test_transport_testing_restart.c
705 test_transport_testing_restart_LDADD = \
706  $(top_builddir)/src/util/libgnunetutil.la \
707  libgnunettransport.la \
708  $(top_builddir)/src/hello/libgnunethello.la \
709  libgnunettransporttesting.la
710
711 test_transport_api_blacklisting_tcp_SOURCES = \
712  test_transport_api_blacklisting.c
713 test_transport_api_blacklisting_tcp_LDADD = \
714  libgnunettransport.la \
715  $(top_builddir)/src/hello/libgnunethello.la \
716  $(top_builddir)/src/statistics/libgnunetstatistics.la \
717  $(top_builddir)/src/util/libgnunetutil.la \
718  libgnunettransporttesting.la
719
720 test_transport_blacklisting_no_bl_SOURCES = \
721  test_transport_blacklisting.c
722 test_transport_blacklisting_no_bl_LDADD = \
723  libgnunettransport.la \
724  $(top_builddir)/src/hello/libgnunethello.la \
725  $(top_builddir)/src/statistics/libgnunetstatistics.la \
726  $(top_builddir)/src/util/libgnunetutil.la \
727  libgnunettransporttesting.la
728
729 test_transport_blacklisting_outbound_bl_full_SOURCES = \
730  test_transport_blacklisting.c
731 test_transport_blacklisting_outbound_bl_full_LDADD = \
732  libgnunettransport.la \
733  $(top_builddir)/src/hello/libgnunethello.la \
734  $(top_builddir)/src/statistics/libgnunetstatistics.la \
735  $(top_builddir)/src/util/libgnunetutil.la \
736  libgnunettransporttesting.la
737
738 test_transport_blacklisting_outbound_bl_plugin_SOURCES = \
739  test_transport_blacklisting.c
740 test_transport_blacklisting_outbound_bl_plugin_LDADD = \
741  libgnunettransport.la \
742  $(top_builddir)/src/hello/libgnunethello.la \
743  $(top_builddir)/src/statistics/libgnunetstatistics.la \
744  $(top_builddir)/src/util/libgnunetutil.la \
745  libgnunettransporttesting.la
746
747 test_transport_blacklisting_inbound_bl_full_SOURCES = \
748  test_transport_blacklisting.c
749 test_transport_blacklisting_inbound_bl_full_LDADD = \
750  libgnunettransport.la \
751  $(top_builddir)/src/hello/libgnunethello.la \
752  $(top_builddir)/src/statistics/libgnunetstatistics.la \
753  $(top_builddir)/src/util/libgnunetutil.la \
754  libgnunettransporttesting.la
755
756 test_transport_blacklisting_inbound_bl_plugin_SOURCES = \
757  test_transport_blacklisting.c
758 test_transport_blacklisting_inbound_bl_plugin_LDADD = \
759  libgnunettransport.la \
760  $(top_builddir)/src/hello/libgnunethello.la \
761  $(top_builddir)/src/statistics/libgnunetstatistics.la \
762  $(top_builddir)/src/util/libgnunetutil.la \
763  libgnunettransporttesting.la
764
765 test_transport_blacklisting_multiple_plugins_SOURCES = \
766  test_transport_blacklisting.c
767 test_transport_blacklisting_multiple_plugins_LDADD = \
768  libgnunettransport.la \
769  $(top_builddir)/src/hello/libgnunethello.la \
770  $(top_builddir)/src/statistics/libgnunetstatistics.la \
771  $(top_builddir)/src/util/libgnunetutil.la \
772  libgnunettransporttesting.la
773
774
775 test_transport_api_disconnect_tcp_SOURCES = \
776  test_transport_api_disconnect.c
777 test_transport_api_disconnect_tcp_LDADD = \
778  libgnunettransport.la \
779  $(top_builddir)/src/hello/libgnunethello.la \
780  $(top_builddir)/src/statistics/libgnunetstatistics.la \
781  $(top_builddir)/src/util/libgnunetutil.la \
782  libgnunettransporttesting.la
783
784 test_plugin_tcp_SOURCES = \
785  test_plugin_transport.c
786 test_plugin_tcp_LDADD = \
787  libgnunettransport.la \
788  $(top_builddir)/src/statistics/libgnunetstatistics.la \
789  $(top_builddir)/src/hello/libgnunethello.la \
790  $(top_builddir)/src/util/libgnunetutil.la  \
791  libgnunettransporttesting.la
792
793 test_plugin_udp_SOURCES = \
794  test_plugin_transport.c
795 test_plugin_udp_LDADD = \
796  libgnunettransport.la \
797  $(top_builddir)/src/statistics/libgnunetstatistics.la \
798  $(top_builddir)/src/hello/libgnunethello.la \
799  $(top_builddir)/src/util/libgnunetutil.la  \
800  libgnunettransporttesting.la
801
802 test_plugin_unix_SOURCES = \
803  test_plugin_transport.c
804 test_plugin_unix_LDADD = \
805  libgnunettransport.la \
806  $(top_builddir)/src/statistics/libgnunetstatistics.la \
807  $(top_builddir)/src/hello/libgnunethello.la \
808  $(top_builddir)/src/util/libgnunetutil.la  \
809  libgnunettransporttesting.la
810
811 test_plugin_wlan_SOURCES = \
812  test_plugin_transport.c
813 test_plugin_wlan_LDADD = \
814  libgnunettransport.la \
815  $(top_builddir)/src/statistics/libgnunetstatistics.la \
816  $(top_builddir)/src/hello/libgnunethello.la \
817  $(top_builddir)/src/util/libgnunetutil.la  \
818  libgnunettransporttesting.la
819
820 test_plugin_bluetooth_SOURCES = \
821  test_plugin_transport.c
822 test_plugin_bluetooth_LDADD = \
823  libgnunettransport.la \
824  $(top_builddir)/src/statistics/libgnunetstatistics.la \
825  $(top_builddir)/src/hello/libgnunethello.la \
826  $(top_builddir)/src/util/libgnunetutil.la  \
827  libgnunettransporttesting.la
828
829 test_http_common_SOURCES = \
830  test_http_common.c plugin_transport_http_common.c
831 test_http_common_LDADD = \
832  libgnunettransport.la \
833  $(top_builddir)/src/statistics/libgnunetstatistics.la \
834  $(top_builddir)/src/hello/libgnunethello.la \
835  $(top_builddir)/src/util/libgnunetutil.la  \
836  libgnunettransporttesting.la
837
838 test_plugin_http_server_SOURCES = \
839  test_plugin_transport.c
840 test_plugin_http_server_LDADD = \
841  libgnunettransport.la \
842  $(top_builddir)/src/statistics/libgnunetstatistics.la \
843  $(top_builddir)/src/hello/libgnunethello.la \
844  $(top_builddir)/src/util/libgnunetutil.la  \
845  libgnunettransporttesting.la
846
847 test_plugin_https_server_SOURCES = \
848  test_plugin_transport.c
849 test_plugin_https_server_LDADD = \
850  libgnunettransport.la \
851  $(top_builddir)/src/statistics/libgnunetstatistics.la \
852  $(top_builddir)/src/hello/libgnunethello.la \
853  $(top_builddir)/src/util/libgnunetutil.la  \
854  libgnunettransporttesting.la
855
856 test_plugin_http_client_SOURCES = \
857  test_plugin_transport.c
858 test_plugin_http_client_LDADD = \
859  libgnunettransport.la \
860  $(top_builddir)/src/statistics/libgnunetstatistics.la \
861  $(top_builddir)/src/hello/libgnunethello.la \
862  $(top_builddir)/src/util/libgnunetutil.la  \
863  libgnunettransporttesting.la
864
865 test_plugin_https_client_SOURCES = \
866  test_plugin_transport.c
867 test_plugin_https_client_LDADD = \
868  libgnunettransport.la \
869  $(top_builddir)/src/statistics/libgnunetstatistics.la \
870  $(top_builddir)/src/hello/libgnunethello.la \
871  $(top_builddir)/src/util/libgnunetutil.la  \
872  libgnunettransporttesting.la
873
874 test_transport_api_tcp_SOURCES = \
875  test_transport_api.c
876 test_transport_api_tcp_LDADD = \
877  libgnunettransport.la \
878  $(top_builddir)/src/hello/libgnunethello.la \
879  $(top_builddir)/src/util/libgnunetutil.la  \
880  libgnunettransporttesting.la
881
882 test_transport_api_restart_1peer_SOURCES = \
883  test_transport_api_restart_reconnect.c
884 test_transport_api_restart_1peer_LDADD = \
885  libgnunettransport.la \
886  $(top_builddir)/src/hello/libgnunethello.la \
887  $(top_builddir)/src/ats/libgnunetats.la \
888  $(top_builddir)/src/statistics/libgnunetstatistics.la \
889  $(top_builddir)/src/util/libgnunetutil.la \
890  libgnunettransporttesting.la
891
892 test_transport_api_restart_2peers_SOURCES = \
893  test_transport_api_restart_reconnect.c
894 test_transport_api_restart_2peers_LDADD = \
895  libgnunettransport.la \
896  $(top_builddir)/src/hello/libgnunethello.la \
897  $(top_builddir)/src/ats/libgnunetats.la \
898 $(top_builddir)/src/statistics/libgnunetstatistics.la \
899  $(top_builddir)/src/util/libgnunetutil.la \
900  libgnunettransporttesting.la
901
902 test_transport_api_limited_sockets_tcp_SOURCES = \
903  test_transport_api_limited_sockets.c
904 test_transport_api_limited_sockets_tcp_LDADD = \
905  libgnunettransport.la \
906  $(top_builddir)/src/hello/libgnunethello.la \
907  $(top_builddir)/src/util/libgnunetutil.la  \
908  libgnunettransporttesting.la
909
910 test_transport_api_tcp_nat_SOURCES = \
911  test_transport_api.c
912 test_transport_api_tcp_nat_LDADD = \
913  libgnunettransport.la \
914  $(top_builddir)/src/hello/libgnunethello.la \
915  $(top_builddir)/src/util/libgnunetutil.la \
916  libgnunettransporttesting.la
917
918 test_transport_api_manipulation_send_tcp_SOURCES = \
919  test_transport_api_manipulation_send_tcp.c
920 test_transport_api_manipulation_send_tcp_LDADD = \
921  libgnunettransport.la \
922  $(top_builddir)/src/hello/libgnunethello.la \
923  $(top_builddir)/src/util/libgnunetutil.la \
924  libgnunettransporttesting.la
925
926 test_transport_api_manipulation_recv_tcp_SOURCES = \
927  test_transport_api_manipulation_recv_tcp.c
928 test_transport_api_manipulation_recv_tcp_LDADD = \
929  libgnunettransport.la \
930  $(top_builddir)/src/hello/libgnunethello.la \
931  $(top_builddir)/src/util/libgnunetutil.la \
932  libgnunettransporttesting.la
933
934 test_transport_api_manipulation_cfg_SOURCES = \
935  test_transport_api_manipulation_cfg.c
936 test_transport_api_manipulation_cfg_LDADD = \
937  libgnunettransport.la \
938  $(top_builddir)/src/hello/libgnunethello.la \
939  $(top_builddir)/src/util/libgnunetutil.la \
940  libgnunettransporttesting.la
941
942 test_transport_api_reliability_tcp_SOURCES = \
943  test_transport_api_reliability.c
944 test_transport_api_reliability_tcp_LDADD = \
945  libgnunettransport.la \
946  $(top_builddir)/src/hello/libgnunethello.la \
947  $(top_builddir)/src/util/libgnunetutil.la \
948  libgnunettransporttesting.la
949
950 test_transport_api_timeout_tcp_SOURCES = \
951  test_transport_api_timeout.c
952 test_transport_api_timeout_tcp_LDADD = \
953  libgnunettransport.la \
954  $(top_builddir)/src/hello/libgnunethello.la \
955  $(top_builddir)/src/util/libgnunetutil.la \
956  libgnunettransporttesting.la
957
958 test_transport_api_timeout_unix_SOURCES = \
959  test_transport_api_timeout.c
960 test_transport_api_timeout_unix_LDADD = \
961  libgnunettransport.la \
962  $(top_builddir)/src/hello/libgnunethello.la \
963  $(top_builddir)/src/util/libgnunetutil.la \
964  libgnunettransporttesting.la
965
966 test_transport_api_timeout_wlan_SOURCES = \
967  test_transport_api_timeout.c
968 test_transport_api_timeout_wlan_LDADD = \
969  libgnunettransport.la \
970  $(top_builddir)/src/hello/libgnunethello.la \
971  $(top_builddir)/src/util/libgnunetutil.la \
972  libgnunettransporttesting.la
973
974 test_transport_api_timeout_bluetooth_SOURCES = \
975  test_transport_api_timeout.c
976 test_transport_api_timeout_bluetooth_LDADD = \
977  libgnunettransport.la \
978  $(top_builddir)/src/hello/libgnunethello.la \
979  $(top_builddir)/src/util/libgnunetutil.la \
980  libgnunettransporttesting.la
981
982 test_transport_api_reliability_tcp_nat_SOURCES = \
983  test_transport_api_reliability.c
984 test_transport_api_reliability_tcp_nat_LDADD = \
985  libgnunettransport.la \
986  $(top_builddir)/src/hello/libgnunethello.la \
987  $(top_builddir)/src/util/libgnunetutil.la \
988  libgnunettransporttesting.la
989
990 test_transport_api_reliability_bluetooth_SOURCES = \
991  test_transport_api_reliability.c
992 test_transport_api_reliability_bluetooth_LDADD = \
993  libgnunettransport.la \
994  $(top_builddir)/src/hello/libgnunethello.la \
995  $(top_builddir)/src/util/libgnunetutil.la \
996  libgnunettransporttesting.la
997
998 test_transport_api_reliability_wlan_SOURCES = \
999  test_transport_api_reliability.c
1000 test_transport_api_reliability_wlan_LDADD = \
1001  libgnunettransport.la \
1002  $(top_builddir)/src/hello/libgnunethello.la \
1003  $(top_builddir)/src/util/libgnunetutil.la \
1004  libgnunettransporttesting.la
1005
1006 test_transport_api_udp_SOURCES = \
1007  test_transport_api.c
1008 test_transport_api_udp_LDADD = \
1009  libgnunettransport.la \
1010  $(top_builddir)/src/hello/libgnunethello.la \
1011  $(top_builddir)/src/util/libgnunetutil.la  \
1012  libgnunettransporttesting.la
1013
1014 test_transport_api_timeout_udp_SOURCES = \
1015  test_transport_api_timeout.c
1016 test_transport_api_timeout_udp_LDADD = \
1017  libgnunettransport.la \
1018  $(top_builddir)/src/hello/libgnunethello.la \
1019  $(top_builddir)/src/util/libgnunetutil.la \
1020  libgnunettransporttesting.la
1021
1022 test_transport_api_udp_nat_SOURCES = \
1023  test_transport_api.c
1024 test_transport_api_udp_nat_LDADD = \
1025  libgnunettransport.la \
1026  $(top_builddir)/src/hello/libgnunethello.la \
1027  $(top_builddir)/src/util/libgnunetutil.la  \
1028  libgnunettransporttesting.la
1029
1030 test_transport_api_unix_SOURCES = \
1031  test_transport_api.c
1032 test_transport_api_unix_LDADD = \
1033  libgnunettransport.la \
1034  $(top_builddir)/src/hello/libgnunethello.la \
1035  $(top_builddir)/src/util/libgnunetutil.la \
1036  libgnunettransporttesting.la
1037
1038 test_transport_api_unix_abstract_SOURCES = \
1039  test_transport_api.c
1040 test_transport_api_unix_abstract_LDADD = \
1041  libgnunettransport.la \
1042  $(top_builddir)/src/hello/libgnunethello.la \
1043  $(top_builddir)/src/util/libgnunetutil.la \
1044  libgnunettransporttesting.la
1045
1046 # HTTP tests
1047 test_transport_api_http_SOURCES = \
1048  test_transport_api.c
1049 test_transport_api_http_LDADD = \
1050  libgnunettransport.la \
1051  $(top_builddir)/src/hello/libgnunethello.la \
1052  $(top_builddir)/src/util/libgnunetutil.la \
1053  libgnunettransporttesting.la
1054
1055 test_transport_api_http_reverse_SOURCES = \
1056  test_transport_api.c
1057 test_transport_api_http_reverse_LDADD = \
1058  libgnunettransport.la \
1059  $(top_builddir)/src/hello/libgnunethello.la \
1060  $(top_builddir)/src/util/libgnunetutil.la \
1061  libgnunettransporttesting.la
1062
1063 test_transport_api_timeout_http_SOURCES = \
1064  test_transport_api_timeout.c
1065 test_transport_api_timeout_http_LDADD = \
1066  libgnunettransport.la \
1067  $(top_builddir)/src/hello/libgnunethello.la \
1068  $(top_builddir)/src/util/libgnunetutil.la \
1069  libgnunettransporttesting.la
1070
1071 test_transport_api_reliability_http_SOURCES = \
1072  test_transport_api_reliability.c
1073 test_transport_api_reliability_http_LDADD = \
1074  libgnunettransport.la \
1075  $(top_builddir)/src/hello/libgnunethello.la \
1076  $(top_builddir)/src/util/libgnunetutil.la \
1077  libgnunettransporttesting.la
1078
1079 test_transport_api_reliability_http_xhr_SOURCES = \
1080  test_transport_api_reliability.c
1081 test_transport_api_reliability_http_xhr_LDADD = \
1082  libgnunettransport.la \
1083  $(top_builddir)/src/hello/libgnunethello.la \
1084  $(top_builddir)/src/util/libgnunetutil.la \
1085  libgnunettransporttesting.la
1086
1087 test_quota_compliance_http_SOURCES = \
1088  test_quota_compliance.c
1089 test_quota_compliance_http_LDADD = \
1090  libgnunettransport.la \
1091  $(top_builddir)/src/hello/libgnunethello.la \
1092  $(top_builddir)/src/ats/libgnunetats.la \
1093  $(top_builddir)/src/nt/libgnunetnt.la \
1094  $(top_builddir)/src/util/libgnunetutil.la \
1095  libgnunettransporttesting.la
1096
1097 test_quota_compliance_http_asymmetric_SOURCES = \
1098  test_quota_compliance.c
1099 test_quota_compliance_http_asymmetric_LDADD = \
1100  libgnunettransport.la \
1101  $(top_builddir)/src/hello/libgnunethello.la \
1102  $(top_builddir)/src/ats/libgnunetats.la \
1103  $(top_builddir)/src/nt/libgnunetnt.la \
1104  $(top_builddir)/src/util/libgnunetutil.la \
1105  libgnunettransporttesting.la
1106
1107 test_quota_compliance_https_SOURCES = \
1108  test_quota_compliance.c
1109 test_quota_compliance_https_LDADD = \
1110  libgnunettransport.la \
1111  $(top_builddir)/src/hello/libgnunethello.la \
1112  $(top_builddir)/src/ats/libgnunetats.la \
1113  $(top_builddir)/src/nt/libgnunetnt.la \
1114  $(top_builddir)/src/util/libgnunetutil.la \
1115  libgnunettransporttesting.la
1116
1117 test_quota_compliance_https_asymmetric_SOURCES = \
1118  test_quota_compliance.c
1119 test_quota_compliance_https_asymmetric_LDADD = \
1120  libgnunettransport.la \
1121  $(top_builddir)/src/hello/libgnunethello.la \
1122  $(top_builddir)/src/ats/libgnunetats.la \
1123  $(top_builddir)/src/nt/libgnunetnt.la \
1124  $(top_builddir)/src/util/libgnunetutil.la \
1125  libgnunettransporttesting.la
1126
1127 # HTTPS tests
1128 test_transport_api_https_SOURCES = \
1129  test_transport_api.c
1130 test_transport_api_https_LDADD = \
1131  libgnunettransport.la \
1132  $(top_builddir)/src/hello/libgnunethello.la \
1133  $(top_builddir)/src/util/libgnunetutil.la  \
1134  libgnunettransporttesting.la
1135
1136 test_transport_api_timeout_https_SOURCES = \
1137  test_transport_api_timeout.c
1138 test_transport_api_timeout_https_LDADD = \
1139  libgnunettransport.la \
1140  $(top_builddir)/src/hello/libgnunethello.la \
1141  $(top_builddir)/src/util/libgnunetutil.la \
1142  libgnunettransporttesting.la
1143
1144
1145 test_transport_api_reliability_https_SOURCES = \
1146  test_transport_api_reliability.c
1147 test_transport_api_reliability_https_LDADD = \
1148  libgnunettransport.la \
1149  $(top_builddir)/src/hello/libgnunethello.la \
1150  $(top_builddir)/src/util/libgnunetutil.la \
1151  libgnunettransporttesting.la
1152
1153 test_transport_api_reliability_https_xhr_SOURCES = \
1154  test_transport_api_reliability.c
1155 test_transport_api_reliability_https_xhr_LDADD = \
1156  libgnunettransport.la \
1157  $(top_builddir)/src/hello/libgnunethello.la \
1158  $(top_builddir)/src/util/libgnunetutil.la \
1159  libgnunettransporttesting.la
1160
1161 test_transport_api_reliability_unix_SOURCES = \
1162  test_transport_api_reliability.c
1163 test_transport_api_reliability_unix_LDADD = \
1164  libgnunettransport.la \
1165  $(top_builddir)/src/hello/libgnunethello.la \
1166  $(top_builddir)/src/util/libgnunetutil.la \
1167  libgnunettransporttesting.la
1168
1169 test_transport_api_reliability_udp_SOURCES = \
1170  test_transport_api_reliability.c
1171 test_transport_api_reliability_udp_LDADD = \
1172  libgnunettransport.la \
1173  $(top_builddir)/src/hello/libgnunethello.la \
1174  $(top_builddir)/src/util/libgnunetutil.la \
1175  libgnunettransporttesting.la
1176
1177 if LINUX
1178 test_transport_api_wlan_SOURCES = \
1179  test_transport_api.c
1180 test_transport_api_wlan_LDADD = \
1181  libgnunettransport.la \
1182  $(top_builddir)/src/hello/libgnunethello.la \
1183  $(top_builddir)/src/util/libgnunetutil.la \
1184  libgnunettransporttesting.la
1185 endif
1186
1187 if LINUX
1188 if HAVE_LIBBLUETOOTH
1189 test_transport_api_bluetooth_SOURCES = \
1190  test_transport_api.c
1191 test_transport_api_bluetooth_LDADD = \
1192  libgnunettransport.la \
1193  $(top_builddir)/src/hello/libgnunethello.la \
1194  $(top_builddir)/src/util/libgnunetutil.la \
1195  libgnunettransporttesting.la
1196 endif
1197 endif
1198
1199 test_transport_address_switch_tcp_SOURCES = \
1200  test_transport_address_switch.c
1201 test_transport_address_switch_tcp_LDADD = \
1202  libgnunettransport.la \
1203  $(top_builddir)/src/hello/libgnunethello.la \
1204  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1205  $(top_builddir)/src/util/libgnunetutil.la \
1206  libgnunettransporttesting.la
1207
1208  test_transport_address_switch_udp_SOURCES = \
1209  test_transport_address_switch.c
1210 test_transport_address_switch_udp_LDADD = \
1211  libgnunettransport.la \
1212  $(top_builddir)/src/hello/libgnunethello.la \
1213  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1214  $(top_builddir)/src/util/libgnunetutil.la \
1215  libgnunettransporttesting.la
1216
1217
1218  test_transport_address_switch_http_SOURCES = \
1219  test_transport_address_switch.c
1220 test_transport_address_switch_http_LDADD = \
1221  libgnunettransport.la \
1222  $(top_builddir)/src/hello/libgnunethello.la \
1223  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1224  $(top_builddir)/src/util/libgnunetutil.la \
1225  libgnunettransporttesting.la
1226
1227  test_transport_address_switch_https_SOURCES = \
1228  test_transport_address_switch.c
1229 test_transport_address_switch_https_LDADD = \
1230  libgnunettransport.la \
1231  $(top_builddir)/src/hello/libgnunethello.la \
1232  $(top_builddir)/src/statistics/libgnunetstatistics.la \
1233  $(top_builddir)/src/util/libgnunetutil.la \
1234  libgnunettransporttesting.la
1235
1236 test_quota_compliance_tcp_SOURCES = \
1237  test_quota_compliance.c
1238 test_quota_compliance_tcp_LDADD = \
1239  libgnunettransport.la \
1240  $(top_builddir)/src/hello/libgnunethello.la \
1241  $(top_builddir)/src/ats/libgnunetats.la \
1242  $(top_builddir)/src/nt/libgnunetnt.la \
1243  $(top_builddir)/src/util/libgnunetutil.la \
1244  libgnunettransporttesting.la
1245
1246 test_quota_compliance_tcp_asymmetric_SOURCES = \
1247  test_quota_compliance.c
1248 test_quota_compliance_tcp_asymmetric_LDADD = \
1249  libgnunettransport.la \
1250  $(top_builddir)/src/hello/libgnunethello.la \
1251  $(top_builddir)/src/nt/libgnunetnt.la \
1252  $(top_builddir)/src/ats/libgnunetats.la \
1253  $(top_builddir)/src/util/libgnunetutil.la \
1254  libgnunettransporttesting.la
1255
1256 test_quota_compliance_udp_SOURCES = \
1257  test_quota_compliance.c
1258 test_quota_compliance_udp_LDADD = \
1259  libgnunettransport.la \
1260  $(top_builddir)/src/hello/libgnunethello.la \
1261  $(top_builddir)/src/ats/libgnunetats.la \
1262  $(top_builddir)/src/nt/libgnunetnt.la \
1263  $(top_builddir)/src/util/libgnunetutil.la \
1264  libgnunettransporttesting.la
1265
1266 test_quota_compliance_unix_SOURCES = \
1267  test_quota_compliance.c
1268 test_quota_compliance_unix_LDADD = \
1269  libgnunettransport.la \
1270  $(top_builddir)/src/hello/libgnunethello.la \
1271  $(top_builddir)/src/ats/libgnunetats.la \
1272  $(top_builddir)/src/nt/libgnunetnt.la \
1273  $(top_builddir)/src/util/libgnunetutil.la \
1274  libgnunettransporttesting.la
1275
1276 test_quota_compliance_unix_asymmetric_SOURCES = \
1277  test_quota_compliance.c
1278 test_quota_compliance_unix_asymmetric_LDADD = \
1279  libgnunettransport.la \
1280  $(top_builddir)/src/hello/libgnunethello.la \
1281  $(top_builddir)/src/ats/libgnunetats.la \
1282  $(top_builddir)/src/nt/libgnunetnt.la \
1283  $(top_builddir)/src/util/libgnunetutil.la \
1284  libgnunettransporttesting.la
1285
1286 test_quota_compliance_wlan_SOURCES = \
1287  test_quota_compliance.c
1288 test_quota_compliance_wlan_LDADD = \
1289  libgnunettransport.la \
1290  $(top_builddir)/src/hello/libgnunethello.la \
1291  $(top_builddir)/src/ats/libgnunetats.la \
1292  $(top_builddir)/src/nt/libgnunetnt.la \
1293  $(top_builddir)/src/util/libgnunetutil.la \
1294  libgnunettransporttesting.la
1295
1296 test_quota_compliance_wlan_asymmetric_SOURCES = \
1297  test_quota_compliance.c
1298 test_quota_compliance_wlan_asymmetric_LDADD = \
1299  libgnunettransport.la \
1300  $(top_builddir)/src/hello/libgnunethello.la \
1301  $(top_builddir)/src/ats/libgnunetats.la \
1302  $(top_builddir)/src/nt/libgnunetnt.la \
1303  $(top_builddir)/src/util/libgnunetutil.la \
1304  libgnunettransporttesting.la
1305
1306 test_quota_compliance_bluetooth_SOURCES = \
1307  test_quota_compliance.c
1308 test_quota_compliance_bluetooth_LDADD = \
1309  libgnunettransport.la \
1310  $(top_builddir)/src/hello/libgnunethello.la \
1311  $(top_builddir)/src/ats/libgnunetats.la \
1312  $(top_builddir)/src/nt/libgnunetnt.la \
1313  $(top_builddir)/src/util/libgnunetutil.la \
1314  libgnunettransporttesting.la
1315
1316 test_quota_compliance_bluetooth_asymmetric_SOURCES = \
1317  test_quota_compliance.c
1318 test_quota_compliance_bluetooth_asymmetric_LDADD = \
1319  libgnunettransport.la \
1320  $(top_builddir)/src/hello/libgnunethello.la \
1321  $(top_builddir)/src/ats/libgnunetats.la \
1322  $(top_builddir)/src/nt/libgnunetnt.la \
1323  $(top_builddir)/src/util/libgnunetutil.la \
1324  libgnunettransporttesting.la
1325
1326 test_transport_api_multi_SOURCES = \
1327  test_transport_api.c
1328 test_transport_api_multi_LDADD = \
1329  libgnunettransport.la \
1330  $(top_builddir)/src/hello/libgnunethello.la \
1331  $(top_builddir)/src/util/libgnunetutil.la \
1332  libgnunettransporttesting.la
1333
1334 test_transport_api_monitor_peers_SOURCES = \
1335  test_transport_api_monitor_peers.c
1336 test_transport_api_monitor_peers_LDADD = \
1337  libgnunettransport.la \
1338  $(top_builddir)/src/hello/libgnunethello.la \
1339  $(top_builddir)/src/util/libgnunetutil.la \
1340  libgnunettransporttesting.la
1341
1342 test_transport_api_slow_ats_SOURCES = \
1343  test_transport_api.c
1344 test_transport_api_slow_ats_LDADD = \
1345  libgnunettransport.la \
1346  $(top_builddir)/src/hello/libgnunethello.la \
1347  $(top_builddir)/src/util/libgnunetutil.la  \
1348  libgnunettransporttesting.la
1349
1350
1351 EXTRA_DIST = \
1352 communicator-unix.conf \
1353 test_plugin_hostkey \
1354 test_plugin_hostkey.ecc \
1355 test_delay \
1356 template_cfg_peer1.conf\
1357 template_cfg_peer2.conf\
1358 test_plugin_transport_data.conf\
1359 test_plugin_transport_data_udp.conf\
1360 test_quota_compliance_data.conf\
1361 test_quota_compliance_http_peer1.conf\
1362 test_quota_compliance_http_peer2.conf\
1363 test_quota_compliance_https_peer1.conf\
1364 test_quota_compliance_https_peer2.conf\
1365 test_quota_compliance_tcp_peer1.conf\
1366 test_quota_compliance_tcp_peer2.conf\
1367 test_quota_compliance_udp_peer1.conf\
1368 test_quota_compliance_udp_peer2.conf\
1369 test_quota_compliance_unix_peer1.conf\
1370 test_quota_compliance_unix_peer2.conf\
1371 test_quota_compliance_wlan_peer1.conf\
1372 test_quota_compliance_wlan_peer2.conf\
1373 test_quota_compliance_bluetooth_peer1.conf\
1374 test_quota_compliance_bluetooth_peer2.conf\
1375 test_quota_compliance_http_asymmetric_peer1.conf\
1376 test_quota_compliance_http_asymmetric_peer2.conf\
1377 test_quota_compliance_https_asymmetric_peer1.conf\
1378 test_quota_compliance_https_asymmetric_peer2.conf\
1379 test_quota_compliance_tcp_asymmetric_peer1.conf\
1380 test_quota_compliance_tcp_asymmetric_peer2.conf\
1381 test_quota_compliance_unix_asymmetric_peer1.conf\
1382 test_quota_compliance_unix_asymmetric_peer2.conf\
1383 test_quota_compliance_wlan_asymmetric_peer1.conf\
1384 test_quota_compliance_wlan_asymmetric_peer2.conf\
1385 test_quota_compliance_bluetooth_asymmetric_peer1.conf\
1386 test_quota_compliance_bluetooth_asymmetric_peer2.conf\
1387 test_transport_api_data.conf\
1388 test_transport_api_blacklisting_tcp_peer1.conf \
1389 test_transport_api_blacklisting_tcp_peer2.conf \
1390 test_transport_api_http_peer1.conf\
1391 test_transport_api_http_peer2.conf\
1392 test_transport_api_https_peer1.conf\
1393 test_transport_api_https_peer2.conf\
1394 test_transport_api_limited_sockets_tcp_peer1.conf\
1395 test_transport_api_limited_sockets_tcp_peer2.conf\
1396 test_transport_api_timeout_tcp_peer1.conf\
1397 test_transport_api_timeout_tcp_peer2.conf\
1398 test_transport_api_multi_peer1.conf\
1399 test_transport_api_multi_peer2.conf\
1400 test_transport_api_restart_1peer_peer1.conf\
1401 test_transport_api_restart_1peer_peer2.conf\
1402 test_transport_api_reliability_http_peer1.conf\
1403 test_transport_api_reliability_http_peer2.conf\
1404 test_transport_api_reliability_https_peer1.conf\
1405 test_transport_api_reliability_https_peer2.conf\
1406 test_transport_api_reliability_tcp_nat_peer1.conf\
1407 test_transport_api_reliability_tcp_nat_peer2.conf\
1408 test_transport_api_reliability_tcp_peer1.conf\
1409 test_transport_api_reliability_tcp_peer2.conf\
1410 test_transport_api_reliability_wlan_peer1.conf\
1411 test_transport_api_reliability_wlan_peer2.conf\
1412 test_transport_api_reliability_bluetooth_peer1.conf\
1413 test_transport_api_reliability_bluetooth_peer2.conf\
1414 test_transport_api_manipulation_send_tcp_peer1.conf\
1415 test_transport_api_manipulation_send_tcp_peer2.conf\
1416 test_transport_api_manipulation_recv_tcp_peer1.conf\
1417 test_transport_api_manipulation_recv_tcp_peer2.conf\
1418 test_transport_api_manipulation_cfg_peer1.conf\
1419 test_transport_api_manipulation_cfg_peer2.conf\
1420 test_transport_api_restart_1peer_peer1.conf\
1421 test_transport_api_restart_1peer_peer2.conf\
1422 test_transport_api_restart_2peers_peer1.conf\
1423 test_transport_api_restart_2peers_peer2.conf\
1424 test_transport_api_tcp_nat_peer1.conf\
1425 test_transport_api_tcp_nat_peer2.conf\
1426 test_transport_api_tcp_peer1.conf\
1427 test_transport_api_tcp_peer2.conf\
1428 test_transport_api_udp_nat_peer1.conf\
1429 test_transport_api_udp_nat_peer2.conf\
1430 test_transport_api_udp_peer1.conf\
1431 test_transport_api_udp_peer2.conf\
1432 test_transport_api_timeout_udp_peer1.conf\
1433 test_transport_api_timeout_udp_peer2.conf\
1434 test_transport_api_unix_peer1.conf\
1435 test_transport_api_unix_peer2.conf\
1436 test_transport_api_unix_abstract_peer1.conf \
1437 test_transport_api_unix_abstract_peer2.conf \
1438 test_transport_api_timeout_unix_peer1.conf\
1439 test_transport_api_timeout_unix_peer2.conf\
1440 test_transport_api_timeout_wlan_peer1.conf \
1441 test_transport_api_timeout_wlan_peer2.conf \
1442 test_transport_api_timeout_bluetooth_peer1.conf\
1443 test_transport_api_timeout_bluetooth_peer2.conf\
1444 test_transport_api_reliability_udp_peer1.conf\
1445 test_transport_api_reliability_udp_peer2.conf\
1446 test_transport_api_reliability_http_xhr_peer1.conf\
1447 test_transport_api_reliability_http_xhr_peer2.conf\
1448 test_transport_api_reliability_https_xhr_peer1.conf\
1449 test_transport_api_reliability_https_xhr_peer2.conf\
1450 test_transport_api_reliability_unix_peer1.conf\
1451 test_transport_api_reliability_unix_peer2.conf\
1452 test_transport_api_reliability_wlan_peer1.conf\
1453 test_transport_api_reliability_wlan_peer2.conf\
1454 test_transport_api_unreliability_wlan_peer1.conf\
1455 test_transport_api_unreliability_wlan_peer2.conf\
1456 test_transport_api_reliability_bluetooth_peer1.conf\
1457 test_transport_api_reliability_bluetooth_peer2.conf\
1458 test_transport_api_wlan_peer1.conf\
1459 test_transport_api_wlan_peer2.conf\
1460 test_transport_api_bluetooth_peer1.conf\
1461 test_transport_api_bluetooth_peer2.conf\
1462 test_transport_api_monitor_peers_peer1.conf\
1463 test_transport_api_monitor_peers_peer2.conf\
1464 test_transport_api_monitor_validation_peer1.conf\
1465 test_transport_api_monitor_validation_peer2.conf\
1466 test_transport_defaults.conf\
1467 test_transport_api_disconnect_tcp_peer1.conf\
1468 test_transport_api_disconnect_tcp_peer2.conf\
1469 test_transport_api_timeout_http_peer1.conf\
1470 test_transport_api_timeout_http_peer2.conf\
1471 test_transport_api_timeout_https_peer1.conf\
1472 test_transport_api_timeout_https_peer2.conf\
1473 test_transport_blacklisting_cfg_peer1.conf \
1474 test_transport_blacklisting_cfg_peer2.conf \
1475 test_transport_blacklisting_cfg_blp_peer1_full.conf\
1476 test_transport_blacklisting_cfg_blp_peer1_plugin.conf \
1477 test_transport_blacklisting_cfg_blp_peer2_full.conf\
1478 test_transport_blacklisting_cfg_blp_peer2_plugin.conf \
1479 test_transport_blacklisting_cfg_blp_peer1_multiple_plugins.conf \
1480 test_transport_blacklisting_cfg_blp_peer2_multiple_plugins.conf \
1481 test_transport_api_http_reverse_peer1.conf \
1482 test_transport_api_http_reverse_peer2.conf \
1483 perf_tcp_peer1.conf \
1484 perf_tcp_peer2.conf \
1485 test_transport_api_slow_ats_peer1.conf \
1486 test_transport_api_slow_ats_peer2.conf \
1487   tcp_connection_legacy.c \
1488   tcp_server_mst_legacy.c \
1489   tcp_server_legacy.c \
1490   tcp_service_legacy.c