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