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