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