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