b8d220e7281d81116259eba7c6f2dffb22995618
[oweals/gnunet.git] / src / transport / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 pkgcfgdir= $(pkgdatadir)/config.d/
6
7 pkgcfg_DATA = \
8   transport.conf
9
10
11 if HAVE_MHD
12  GN_LIBMHD = -lmicrohttpd
13  HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
14  HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
15  HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
16  HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
17 endif
18
19 if HAVE_LIBCURL
20  HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
21  HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
22  HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
23  HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
24 endif
25
26 if HAVE_MHD 
27 if HAVE_LIBCURL
28  HTTP_API_TEST = test_transport_api_http
29  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
30  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
31  HTTP_REL_TEST = test_transport_api_reliability_http
32  HTTP_QUOTA_TEST = test_quota_compliance_http \
33                    test_quota_compliance_http_asymmetric
34  HTTPS_API_TEST = test_transport_api_https
35  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
36  HTTPS_REL_TEST = test_transport_api_reliability_https
37  HTTPS_QUOTA_TEST = test_quota_compliance_https \
38                 test_quota_compliance_https_asymmetric 
39 endif
40 endif 
41
42 if USE_COVERAGE
43   AM_CFLAGS = --coverage -O0
44 endif
45
46 if LINUX
47  WLAN_BIN = gnunet-helper-transport-wlan
48  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
49  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
50  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
51  WLAN_PLUGIN_TEST = test_plugin_wlan
52  WLAN_API_TEST = test_transport_api_wlan
53  WLAN_REL_TEST = test_transport_api_reliability_wlan
54  WLAN_UREL_TEST = test_transport_api_unreliability_wlan
55  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
56                 test_quota_compliance_wlan_asymmetric
57 endif
58
59
60 if LINUX
61 install-exec-hook:
62         $(top_srcdir)/src/transport/install-wlan-helper.sh $(bindir) $(SUDO_BINARY) || true
63 else
64 install-exec-hook:
65 endif
66
67 if !MINGW
68 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
69 UNIX_PLUGIN_TEST = test_transport_api_unix 
70 UNIX_TEST = test_plugin_unix
71 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
72 UNIX_REL_TEST = test_transport_api_unreliability_unix
73 UNIX_QUOTA_TEST = test_quota_compliance_unix \
74      test_quota_compliance_unix_asymmetric
75 endif
76
77 noinst_PROGRAMS = \
78  $(WLAN_BIN_SENDER)
79
80 lib_LTLIBRARIES = \
81   libgnunettransport.la \
82   libgnunettransporttesting.la
83
84 libgnunettransporttesting_la_SOURCES = \
85   transport-testing.c transport-testing.h
86 libgnunettransporttesting_la_LIBADD = \
87   $(top_builddir)/src/transport/libgnunettransport.la \
88   $(top_builddir)/src/hello/libgnunethello.la \
89   $(top_builddir)/src/util/libgnunetutil.la \
90   $(top_builddir)/src/testing/libgnunettesting.la \
91   $(GN_LIBINTL) 
92 libgnunettransporttesting_la_DEPENDENCIES = \
93   libgnunettransport.la
94 libgnunettransporttesting_la_LDFLAGS = \
95  $(GN_LIB_LDFLAGS)
96
97 libgnunettransport_la_SOURCES = \
98   transport_api.c transport.h \
99   transport_api_blacklist.c \
100   transport_api_address_to_string.c \
101   transport_api_address_lookup.c
102 libgnunettransport_la_LIBADD = \
103   $(top_builddir)/src/hello/libgnunethello.la \
104   $(top_builddir)/src/util/libgnunetutil.la \
105   $(GN_LIBINTL) 
106 libgnunettransport_la_LDFLAGS = \
107   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
108   -version-info 1:0:0
109
110 bin_PROGRAMS = \
111  gnunet-transport \
112  $(WLAN_BIN) \
113  $(WLAN_BIN_DUMMY) \
114  gnunet-service-transport \
115  gnunet-transport-certificate-creation
116
117 #bin_SCRIPTS = \
118 # gnunet-transport-certificate-creation
119
120 gnunet_transport_certificate_creation_SOURCES = \
121  gnunet-transport-certificate-creation.c
122 gnunet_transport_certificate_creation_LDADD = \
123   $(top_builddir)/src/util/libgnunetutil.la
124
125 gnunet_helper_transport_wlan_SOURCES = \
126  gnunet-helper-transport-wlan.c
127
128 gnunet_helper_transport_wlan_dummy_SOURCES = \
129  gnunet-helper-transport-wlan-dummy.c
130 gnunet_helper_transport_wlan_dummy_LDADD = \
131   $(top_builddir)/src/util/libgnunetutil.la 
132
133 gnunet_transport_wlan_sender_SOURCES = \
134  gnunet-transport-wlan-sender.c
135 gnunet_transport_wlan_sender_LDADD = \
136   $(top_builddir)/src/util/libgnunetutil.la 
137
138 gnunet_transport_SOURCES = \
139  gnunet-transport.c         
140 gnunet_transport_LDADD = \
141   $(top_builddir)/src/transport/libgnunettransport.la \
142   $(top_builddir)/src/nat/libgnunetnat.la \
143   $(top_builddir)/src/hello/libgnunethello.la \
144   $(top_builddir)/src/util/libgnunetutil.la \
145   $(GN_LIBINTL)
146 gnunet_transport_DEPENDENCIES = \
147   libgnunettransport.la                         
148
149 gnunet_service_transport_SOURCES = \
150  gnunet-service-transport.c gnunet-service-transport.h \
151  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
152  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
153  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
154  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
155  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
156  gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
157 gnunet_service_transport_LDADD = \
158   $(top_builddir)/src/ats/libgnunetats.la \
159   $(top_builddir)/src/hello/libgnunethello.la \
160   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
161   $(top_builddir)/src/statistics/libgnunetstatistics.la \
162   $(top_builddir)/src/util/libgnunetutil.la \
163   $(GN_GLPK) \
164   $(GN_LIBINTL)
165 gnunet_service_transport_CFLAGS = \
166   $(CFLAGS)
167 # -DANALYZE
168
169 plugin_LTLIBRARIES = \
170   libgnunet_plugin_transport_tcp.la \
171   libgnunet_plugin_transport_udp.la \
172   $(UNIX_PLUGIN_LA) \
173   $(HTTP_CLIENT_PLUGIN_LA) \
174   $(HTTPS_CLIENT_PLUGIN_LA) \
175   $(HTTP_SERVER_PLUGIN_LA) \
176   $(HTTPS_SERVER_PLUGIN_LA) \
177   $(WLAN_PLUGIN_LA) \
178   libgnunet_plugin_transport_template.la
179
180 libgnunet_plugin_transport_tcp_la_SOURCES = \
181   plugin_transport_tcp.c
182 libgnunet_plugin_transport_tcp_la_LIBADD = \
183   $(top_builddir)/src/hello/libgnunethello.la \
184   $(top_builddir)/src/statistics/libgnunetstatistics.la \
185   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
186   $(top_builddir)/src/nat/libgnunetnat.la \
187   $(top_builddir)/src/util/libgnunetutil.la \
188   $(LTLIBINTL)
189 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
190  $(GN_PLUGIN_LDFLAGS)
191
192 libgnunet_plugin_transport_template_la_SOURCES = \
193   plugin_transport_template.c
194 libgnunet_plugin_transport_template_la_LIBADD = \
195   $(top_builddir)/src/util/libgnunetutil.la \
196   $(LTLIBINTL)
197 libgnunet_plugin_transport_template_la_LDFLAGS = \
198  $(GN_PLUGIN_LDFLAGS)
199
200 libgnunet_plugin_transport_wlan_la_SOURCES = \
201   plugin_transport_wlan.c plugin_transport_wlan.h
202 libgnunet_plugin_transport_wlan_la_LIBADD = \
203   $(top_builddir)/src/hello/libgnunethello.la \
204   $(top_builddir)/src/statistics/libgnunetstatistics.la \
205   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
206   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
207   $(top_builddir)/src/util/libgnunetutil.la 
208 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
209   $(GN_PLUGIN_LDFLAGS)
210
211 libgnunet_plugin_transport_udp_la_SOURCES = \
212   plugin_transport_udp.c plugin_transport_udp.h \
213   plugin_transport_udp_broadcasting.c
214 libgnunet_plugin_transport_udp_la_LIBADD = \
215   $(top_builddir)/src/hello/libgnunethello.la \
216   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
217   $(top_builddir)/src/statistics/libgnunetstatistics.la \
218   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
219   $(top_builddir)/src/nat/libgnunetnat.la \
220   $(top_builddir)/src/util/libgnunetutil.la \
221   $(LTLIBINTL)
222 libgnunet_plugin_transport_udp_la_LDFLAGS = \
223  $(GN_PLUGIN_LDFLAGS)
224
225 libgnunet_plugin_transport_unix_la_SOURCES = \
226   plugin_transport_unix.c
227 libgnunet_plugin_transport_unix_la_LIBADD = \
228   $(top_builddir)/src/hello/libgnunethello.la \
229   $(top_builddir)/src/statistics/libgnunetstatistics.la \
230   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
231   $(top_builddir)/src/util/libgnunetutil.la \
232   $(LTLIBINTL)
233 libgnunet_plugin_transport_unix_la_LDFLAGS = \
234  $(GN_PLUGIN_LDFLAGS)
235
236
237 libgnunet_plugin_transport_http_client_la_SOURCES = \
238   plugin_transport_http_client.c plugin_transport_http_common.c
239 libgnunet_plugin_transport_http_client_la_LIBADD = \
240   $(top_builddir)/src/hello/libgnunethello.la \
241   $(top_builddir)/src/statistics/libgnunetstatistics.la \
242   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
243   @LIBCURL@ \
244   $(top_builddir)/src/nat/libgnunetnat.la \
245   $(top_builddir)/src/util/libgnunetutil.la 
246 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
247  $(GN_PLUGIN_LDFLAGS)
248 libgnunet_plugin_transport_http_client_la_CFLAGS = \
249  $(CFLAGS) 
250 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
251  @LIBCURL_CPPFLAGS@
252
253
254 libgnunet_plugin_transport_http_server_la_SOURCES = \
255   plugin_transport_http_server.c plugin_transport_http_common.c
256 libgnunet_plugin_transport_http_server_la_LIBADD = \
257   $(top_builddir)/src/hello/libgnunethello.la \
258   $(top_builddir)/src/statistics/libgnunetstatistics.la \
259   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
260   $(top_builddir)/src/nat/libgnunetnat.la \
261   $(top_builddir)/src/util/libgnunetutil.la 
262 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
263  $(GN_LIBMHD) \
264  $(GN_PLUGIN_LDFLAGS)
265 libgnunet_plugin_transport_http_server_la_CFLAGS = \
266  $(CFLAGS) 
267
268 libgnunet_plugin_transport_https_client_la_SOURCES = \
269   plugin_transport_http_client.c plugin_transport_http_common.c
270 libgnunet_plugin_transport_https_client_la_LIBADD = \
271   $(top_builddir)/src/hello/libgnunethello.la \
272   $(top_builddir)/src/statistics/libgnunetstatistics.la \
273   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
274   @LIBCURL@ \
275   $(top_builddir)/src/nat/libgnunetnat.la \
276   $(top_builddir)/src/util/libgnunetutil.la 
277 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
278  $(GN_PLUGIN_LDFLAGS)
279 libgnunet_plugin_transport_https_client_la_CFLAGS = \
280  $(CFLAGS) -DBUILD_HTTPS 
281 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
282  @LIBCURL_CPPFLAGS@
283
284
285 libgnunet_plugin_transport_https_server_la_SOURCES = \
286   plugin_transport_http_server.c plugin_transport_http_common.c
287 libgnunet_plugin_transport_https_server_la_LIBADD = \
288   $(top_builddir)/src/hello/libgnunethello.la \
289   $(top_builddir)/src/statistics/libgnunetstatistics.la \
290   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
291   $(top_builddir)/src/nat/libgnunetnat.la \
292   $(top_builddir)/src/util/libgnunetutil.la 
293 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
294  $(GN_LIBMHD) \
295  $(GN_PLUGIN_LDFLAGS)
296 libgnunet_plugin_transport_https_server_la_CFLAGS = \
297  $(CFLAGS) -DBUILD_HTTPS 
298
299 check_PROGRAMS = \
300  test_transport_testing_startstop \
301  test_transport_testing_restart \
302  test_transport_testing \
303  test_transport_startonly \
304  test_plugin_tcp \
305  test_plugin_udp \
306  $(UNIX_TEST) \
307  $(WLAN_PLUGIN_TEST) \
308  $(HTTP_CLIENT_PLUGIN_TEST) \
309  $(HTTPS_CLIENT_PLUGIN_TEST) \
310  $(HTTP_SERVER_PLUGIN_TEST) \
311  $(HTTPS_SERVER_PLUGIN_TEST) \
312  test_transport_api_blacklisting \
313  test_transport_api_disconnect_tcp \
314  test_transport_api_bidirectional_connect \
315  test_transport_api_tcp \
316  test_transport_api_restart_1peer \
317  test_transport_api_restart_2peers \
318  test_transport_api_timeout_tcp \
319  test_transport_api_limited_sockets_tcp \
320  test_transport_api_tcp_nat \
321  test_transport_api_udp \
322  test_transport_api_timeout_udp \
323  $(UNIX_PLUGIN_TEST) \
324  $(UNIX_PLUGIN_TIMEOUT_TEST) \
325  test_transport_api_udp_nat \
326  $(HTTP_API_TEST) \
327  $(HTTP_REVERSE_API_TEST) \
328  $(HTTP_API_TIMEOUT_TEST) \
329  $(HTTPS_API_TEST) \
330  $(HTTPS_API_TIMEOUT_TEST) \
331  $(WLAN_API_TEST) \
332  test_transport_api_multi \
333  test_transport_api_reliability_tcp \
334  test_transport_api_reliability_tcp_nat \
335  test_transport_api_unreliability_udp \
336  test_transport_api_unreliability_constant_udp \
337  $(UNIX_REL_TEST) \
338  $(HTTP_REL_TEST) \
339  $(HTTPS_REL_TEST) \
340  $(WLAN_REL_TEST) \
341  $(WLAN_UREL_TEST) \
342  test_quota_compliance_tcp \
343  test_quota_compliance_tcp_asymmetric \
344  test_quota_compliance_udp \
345  $(UNIX_QUOTA_TEST) \
346  $(HTTP_QUOTA_TEST) \
347  $(HTTPS_QUOTA_TEST) \
348  $(WLAN_QUOTA_TEST)
349
350 if ENABLE_TEST_RUN
351 TESTS = \
352  test_transport_testing_startstop \
353  test_transport_testing_restart \
354  test_transport_testing \
355  test_transport_startonly \
356  test_plugin_tcp \
357  test_plugin_udp \
358  $(UNIX_TEST) \
359  $(WLAN_PLUGIN_TEST) \
360  test_transport_api_blacklisting \
361  test_transport_api_disconnect_tcp \
362  test_transport_api_bidirectional_connect \
363  test_transport_api_tcp \
364  test_transport_api_restart_1peer \
365  test_transport_api_restart_2peers \
366  test_transport_api_timeout_tcp \
367  test_transport_api_limited_sockets_tcp \
368  test_transport_api_tcp_nat \
369  test_transport_api_udp \
370  test_transport_api_timeout_udp \
371  $(UNIX_PLUGIN_TEST) \
372  $(UNIX_PLUGIN_TIMEOUT_TEST) \
373  test_transport_api_udp_nat \
374  $(HTTP_API_TEST) \
375  $(HTTP_API_TIMEOUT_TEST) \
376  $(HTTPS_API_TEST) \
377  $(HTTPS_API_TIMEOUT_TEST) \
378  $(WLAN_API_TEST) \
379  test_transport_api_multi \
380  test_transport_api_reliability_tcp \
381  test_transport_api_reliability_tcp_nat \
382  test_transport_api_unreliability_udp \
383  test_transport_api_unreliability_constant_udp \
384  $(UNIX_REL_TEST) \
385  $(HTTP_REL_TEST) \
386  $(HTTPS_REL_TEST) \
387  $(WLAN_REL_TEST) \
388  $(WLAN_UREL_TEST) \
389  test_quota_compliance_tcp \
390  test_quota_compliance_tcp_asymmetric \
391  test_quota_compliance_udp \
392  $(UNIX_QUOTA_TEST) \
393  $(HTTP_QUOTA_TEST) \
394  $(HTTPS_QUOTA_TEST)
395 endif
396
397 test_transport_testing_startstop_SOURCES = \
398  test_transport_testing_startstop.c
399 test_transport_testing_startstop_LDADD = \
400  $(top_builddir)/src/util/libgnunetutil.la \
401  $(top_builddir)/src/transport/libgnunettransport.la \
402  $(top_builddir)/src/hello/libgnunethello.la \
403  $(top_builddir)/src/transport/libgnunettransporttesting.la 
404
405 test_transport_testing_restart_SOURCES = \
406  test_transport_testing_restart.c
407 test_transport_testing_restart_LDADD = \
408  $(top_builddir)/src/util/libgnunetutil.la \
409  $(top_builddir)/src/transport/libgnunettransport.la \
410  $(top_builddir)/src/hello/libgnunethello.la \
411  $(top_builddir)/src/transport/libgnunettransporttesting.la 
412
413 test_transport_testing_SOURCES = \
414  test_transport_testing.c
415 test_transport_testing_LDADD = \
416  $(top_builddir)/src/util/libgnunetutil.la \
417  $(top_builddir)/src/transport/libgnunettransport.la \
418  $(top_builddir)/src/hello/libgnunethello.la \
419  $(top_builddir)/src/transport/libgnunettransporttesting.la 
420
421
422 test_transport_api_blacklisting_SOURCES = \
423  test_transport_api_blacklisting.c
424 test_transport_api_blacklisting_LDADD = \
425  $(top_builddir)/src/transport/libgnunettransport.la \
426  $(top_builddir)/src/hello/libgnunethello.la \
427  $(top_builddir)/src/statistics/libgnunetstatistics.la \
428  $(top_builddir)/src/util/libgnunetutil.la \
429  $(top_builddir)/src/transport/libgnunettransporttesting.la 
430
431 test_transport_api_disconnect_tcp_SOURCES = \
432  test_transport_api_disconnect.c
433 test_transport_api_disconnect_tcp_LDADD = \
434  $(top_builddir)/src/transport/libgnunettransport.la \
435  $(top_builddir)/src/hello/libgnunethello.la \
436  $(top_builddir)/src/statistics/libgnunetstatistics.la \
437  $(top_builddir)/src/util/libgnunetutil.la \
438  $(top_builddir)/src/transport/libgnunettransporttesting.la 
439
440 test_transport_startonly_SOURCES = \
441  test_transport_startonly.c
442 test_transport_startonly_LDADD = \
443  $(top_builddir)/src/transport/libgnunettransport.la \
444  $(top_builddir)/src/hello/libgnunethello.la \
445  $(top_builddir)/src/statistics/libgnunetstatistics.la \
446  $(top_builddir)/src/util/libgnunetutil.la \
447  $(top_builddir)/src/transport/libgnunettransporttesting.la 
448
449 test_plugin_tcp_SOURCES = \
450  test_plugin_transport.c
451 test_plugin_tcp_LDADD = \
452  $(top_builddir)/src/transport/libgnunettransport.la \
453  $(top_builddir)/src/statistics/libgnunetstatistics.la \
454  $(top_builddir)/src/hello/libgnunethello.la \
455  $(top_builddir)/src/util/libgnunetutil.la  \
456  $(top_builddir)/src/transport/libgnunettransporttesting.la
457  
458 test_plugin_udp_SOURCES = \
459  test_plugin_transport.c
460 test_plugin_udp_LDADD = \
461  $(top_builddir)/src/transport/libgnunettransport.la \
462  $(top_builddir)/src/statistics/libgnunetstatistics.la \
463  $(top_builddir)/src/hello/libgnunethello.la \
464  $(top_builddir)/src/util/libgnunetutil.la  \
465  $(top_builddir)/src/transport/libgnunettransporttesting.la
466
467 test_plugin_unix_SOURCES = \
468  test_plugin_transport.c
469 test_plugin_unix_LDADD = \
470  $(top_builddir)/src/transport/libgnunettransport.la \
471  $(top_builddir)/src/statistics/libgnunetstatistics.la \
472  $(top_builddir)/src/hello/libgnunethello.la \
473  $(top_builddir)/src/util/libgnunetutil.la  \
474  $(top_builddir)/src/transport/libgnunettransporttesting.la
475
476 test_plugin_wlan_SOURCES = \
477  test_plugin_transport.c
478 test_plugin_wlan_LDADD = \
479  $(top_builddir)/src/transport/libgnunettransport.la \
480  $(top_builddir)/src/statistics/libgnunetstatistics.la \
481  $(top_builddir)/src/hello/libgnunethello.la \
482  $(top_builddir)/src/util/libgnunetutil.la  \
483  $(top_builddir)/src/transport/libgnunettransporttesting.la 
484
485 test_plugin_http_server_SOURCES = \
486  test_plugin_transport.c
487 test_plugin_http_server_LDADD = \
488  $(top_builddir)/src/transport/libgnunettransport.la \
489  $(top_builddir)/src/statistics/libgnunetstatistics.la \
490  $(top_builddir)/src/hello/libgnunethello.la \
491  $(top_builddir)/src/util/libgnunetutil.la  \
492  $(top_builddir)/src/transport/libgnunettransporttesting.la 
493
494 test_plugin_https_server_SOURCES = \
495  test_plugin_transport.c
496 test_plugin_https_server_LDADD = \
497  $(top_builddir)/src/transport/libgnunettransport.la \
498  $(top_builddir)/src/statistics/libgnunetstatistics.la \
499  $(top_builddir)/src/hello/libgnunethello.la \
500  $(top_builddir)/src/util/libgnunetutil.la  \
501  $(top_builddir)/src/transport/libgnunettransporttesting.la
502
503 test_plugin_http_client_SOURCES = \
504  test_plugin_transport.c
505 test_plugin_http_client_LDADD = \
506  $(top_builddir)/src/transport/libgnunettransport.la \
507  $(top_builddir)/src/statistics/libgnunetstatistics.la \
508  $(top_builddir)/src/hello/libgnunethello.la \
509  $(top_builddir)/src/util/libgnunetutil.la  \
510  $(top_builddir)/src/transport/libgnunettransporttesting.la 
511
512 test_plugin_https_client_SOURCES = \
513  test_plugin_transport.c
514 test_plugin_https_client_LDADD = \
515  $(top_builddir)/src/transport/libgnunettransport.la \
516  $(top_builddir)/src/statistics/libgnunetstatistics.la \
517  $(top_builddir)/src/hello/libgnunethello.la \
518  $(top_builddir)/src/util/libgnunetutil.la  \
519  $(top_builddir)/src/transport/libgnunettransporttesting.la  
520
521 test_transport_api_tcp_SOURCES = \
522  test_transport_api.c
523 test_transport_api_tcp_LDADD = \
524  $(top_builddir)/src/transport/libgnunettransport.la \
525  $(top_builddir)/src/hello/libgnunethello.la \
526  $(top_builddir)/src/util/libgnunetutil.la  \
527  $(top_builddir)/src/transport/libgnunettransporttesting.la
528
529 test_transport_api_bidirectional_connect_SOURCES = \
530  test_transport_api_bidirectional_connect.c
531 test_transport_api_bidirectional_connect_LDADD = \
532  $(top_builddir)/src/transport/libgnunettransport.la \
533  $(top_builddir)/src/hello/libgnunethello.la \
534  $(top_builddir)/src/util/libgnunetutil.la  \
535  $(top_builddir)/src/transport/libgnunettransporttesting.la
536
537 test_transport_api_restart_1peer_SOURCES = \
538  test_transport_api_restart_1peer.c
539 test_transport_api_restart_1peer_LDADD = \
540  $(top_builddir)/src/transport/libgnunettransport.la \
541  $(top_builddir)/src/hello/libgnunethello.la \
542  $(top_builddir)/src/statistics/libgnunetstatistics.la \
543  $(top_builddir)/src/util/libgnunetutil.la \
544  $(top_builddir)/src/transport/libgnunettransporttesting.la 
545
546 test_transport_api_restart_2peers_SOURCES = \
547  test_transport_api_restart_2peers.c
548 test_transport_api_restart_2peers_LDADD = \
549  $(top_builddir)/src/transport/libgnunettransport.la \
550  $(top_builddir)/src/hello/libgnunethello.la \
551  $(top_builddir)/src/statistics/libgnunetstatistics.la \
552  $(top_builddir)/src/util/libgnunetutil.la \
553  $(top_builddir)/src/transport/libgnunettransporttesting.la 
554
555 test_transport_api_limited_sockets_tcp_SOURCES = \
556  test_transport_api_limited_sockets.c
557 test_transport_api_limited_sockets_tcp_LDADD = \
558  $(top_builddir)/src/transport/libgnunettransport.la \
559  $(top_builddir)/src/hello/libgnunethello.la \
560  $(top_builddir)/src/util/libgnunetutil.la  \
561  $(top_builddir)/src/transport/libgnunettransporttesting.la
562
563 test_transport_api_tcp_nat_SOURCES = \
564  test_transport_api.c
565 test_transport_api_tcp_nat_LDADD = \
566  $(top_builddir)/src/transport/libgnunettransport.la \
567  $(top_builddir)/src/hello/libgnunethello.la \
568  $(top_builddir)/src/util/libgnunetutil.la \
569  $(top_builddir)/src/transport/libgnunettransporttesting.la 
570
571 test_transport_api_reliability_tcp_SOURCES = \
572  test_transport_api_reliability.c
573 test_transport_api_reliability_tcp_LDADD = \
574  $(top_builddir)/src/transport/libgnunettransport.la \
575  $(top_builddir)/src/hello/libgnunethello.la \
576  $(top_builddir)/src/util/libgnunetutil.la \
577  $(top_builddir)/src/transport/libgnunettransporttesting.la 
578
579 test_transport_api_timeout_tcp_SOURCES = \
580  test_transport_api_timeout.c
581 test_transport_api_timeout_tcp_LDADD = \
582  $(top_builddir)/src/transport/libgnunettransport.la \
583  $(top_builddir)/src/hello/libgnunethello.la \
584  $(top_builddir)/src/util/libgnunetutil.la \
585  $(top_builddir)/src/transport/libgnunettransporttesting.la 
586
587 test_transport_api_timeout_unix_SOURCES = \
588  test_transport_api_timeout.c
589 test_transport_api_timeout_unix_LDADD = \
590  $(top_builddir)/src/transport/libgnunettransport.la \
591  $(top_builddir)/src/hello/libgnunethello.la \
592  $(top_builddir)/src/util/libgnunetutil.la \
593  $(top_builddir)/src/transport/libgnunettransporttesting.la 
594
595 test_transport_api_reliability_tcp_nat_SOURCES = \
596  test_transport_api_reliability.c
597 test_transport_api_reliability_tcp_nat_LDADD = \
598  $(top_builddir)/src/transport/libgnunettransport.la \
599  $(top_builddir)/src/hello/libgnunethello.la \
600  $(top_builddir)/src/util/libgnunetutil.la \
601  $(top_builddir)/src/transport/libgnunettransporttesting.la 
602
603 test_transport_api_reliability_wlan_SOURCES = \
604  test_transport_api_reliability.c
605 test_transport_api_reliability_wlan_LDADD = \
606  $(top_builddir)/src/transport/libgnunettransport.la \
607  $(top_builddir)/src/hello/libgnunethello.la \
608  $(top_builddir)/src/util/libgnunetutil.la \
609  $(top_builddir)/src/transport/libgnunettransporttesting.la 
610
611 test_transport_api_unreliability_wlan_SOURCES = \
612  test_transport_api_unreliability.c
613 test_transport_api_unreliability_wlan_LDADD = \
614  $(top_builddir)/src/transport/libgnunettransport.la \
615  $(top_builddir)/src/hello/libgnunethello.la \
616  $(top_builddir)/src/util/libgnunetutil.la \
617  $(top_builddir)/src/transport/libgnunettransporttesting.la 
618
619 test_transport_api_udp_SOURCES = \
620  test_transport_api.c
621 test_transport_api_udp_LDADD = \
622  $(top_builddir)/src/transport/libgnunettransport.la \
623  $(top_builddir)/src/hello/libgnunethello.la \
624  $(top_builddir)/src/util/libgnunetutil.la  \
625  $(top_builddir)/src/transport/libgnunettransporttesting.la
626
627 test_transport_api_timeout_udp_SOURCES = \
628  test_transport_api_timeout.c
629 test_transport_api_timeout_udp_LDADD = \
630  $(top_builddir)/src/transport/libgnunettransport.la \
631  $(top_builddir)/src/hello/libgnunethello.la \
632  $(top_builddir)/src/util/libgnunetutil.la \
633  $(top_builddir)/src/transport/libgnunettransporttesting.la  
634
635 test_transport_api_udp_nat_SOURCES = \
636  test_transport_api.c
637 test_transport_api_udp_nat_LDADD = \
638  $(top_builddir)/src/transport/libgnunettransport.la \
639  $(top_builddir)/src/hello/libgnunethello.la \
640  $(top_builddir)/src/util/libgnunetutil.la  \
641  $(top_builddir)/src/transport/libgnunettransporttesting.la  
642
643 test_transport_api_unix_SOURCES = \
644  test_transport_api.c
645 test_transport_api_unix_LDADD = \
646  $(top_builddir)/src/transport/libgnunettransport.la \
647  $(top_builddir)/src/hello/libgnunethello.la \
648  $(top_builddir)/src/util/libgnunetutil.la \
649  $(top_builddir)/src/transport/libgnunettransporttesting.la 
650
651 # HTTP tests
652 test_transport_api_http_SOURCES = \
653  test_transport_api.c
654 test_transport_api_http_LDADD = \
655  $(top_builddir)/src/transport/libgnunettransport.la \
656  $(top_builddir)/src/hello/libgnunethello.la \
657  $(top_builddir)/src/util/libgnunetutil.la \
658  $(top_builddir)/src/transport/libgnunettransporttesting.la
659
660 test_transport_api_http_reverse_SOURCES = \
661  test_transport_api.c
662 test_transport_api_http_reverse_LDADD = \
663  $(top_builddir)/src/transport/libgnunettransport.la \
664  $(top_builddir)/src/hello/libgnunethello.la \
665  $(top_builddir)/src/util/libgnunetutil.la \
666  $(top_builddir)/src/transport/libgnunettransporttesting.la
667
668 test_transport_api_timeout_http_SOURCES = \
669  test_transport_api_timeout.c
670 test_transport_api_timeout_http_LDADD = \
671  $(top_builddir)/src/transport/libgnunettransport.la \
672  $(top_builddir)/src/hello/libgnunethello.la \
673  $(top_builddir)/src/util/libgnunetutil.la \
674  $(top_builddir)/src/transport/libgnunettransporttesting.la  
675
676 test_transport_api_reliability_http_SOURCES = \
677  test_transport_api_reliability.c
678 test_transport_api_reliability_http_LDADD = \
679  $(top_builddir)/src/transport/libgnunettransport.la \
680  $(top_builddir)/src/hello/libgnunethello.la \
681  $(top_builddir)/src/util/libgnunetutil.la \
682  $(top_builddir)/src/transport/libgnunettransporttesting.la 
683
684 test_quota_compliance_http_SOURCES = \
685  test_quota_compliance.c
686 test_quota_compliance_http_LDADD = \
687  $(top_builddir)/src/transport/libgnunettransport.la \
688  $(top_builddir)/src/hello/libgnunethello.la \
689  $(top_builddir)/src/util/libgnunetutil.la \
690  $(top_builddir)/src/transport/libgnunettransporttesting.la 
691
692 test_quota_compliance_http_asymmetric_SOURCES = \
693  test_quota_compliance.c
694 test_quota_compliance_http_asymmetric_LDADD = \
695  $(top_builddir)/src/transport/libgnunettransport.la \
696  $(top_builddir)/src/hello/libgnunethello.la \
697  $(top_builddir)/src/util/libgnunetutil.la \
698  $(top_builddir)/src/transport/libgnunettransporttesting.la
699
700 test_quota_compliance_https_SOURCES = \
701  test_quota_compliance.c
702 test_quota_compliance_https_LDADD = \
703  $(top_builddir)/src/transport/libgnunettransport.la \
704  $(top_builddir)/src/hello/libgnunethello.la \
705  $(top_builddir)/src/util/libgnunetutil.la \
706  $(top_builddir)/src/transport/libgnunettransporttesting.la
707
708 test_quota_compliance_https_asymmetric_SOURCES = \
709  test_quota_compliance.c
710 test_quota_compliance_https_asymmetric_LDADD = \
711  $(top_builddir)/src/transport/libgnunettransport.la \
712  $(top_builddir)/src/hello/libgnunethello.la \
713  $(top_builddir)/src/util/libgnunetutil.la \
714  $(top_builddir)/src/transport/libgnunettransporttesting.la
715
716 # HTTPS tests
717 test_transport_api_https_SOURCES = \
718  test_transport_api.c
719 test_transport_api_https_LDADD = \
720  $(top_builddir)/src/transport/libgnunettransport.la \
721  $(top_builddir)/src/hello/libgnunethello.la \
722  $(top_builddir)/src/util/libgnunetutil.la  \
723  $(top_builddir)/src/transport/libgnunettransporttesting.la 
724
725 test_transport_api_timeout_https_SOURCES = \
726  test_transport_api_timeout.c
727 test_transport_api_timeout_https_LDADD = \
728  $(top_builddir)/src/transport/libgnunettransport.la \
729  $(top_builddir)/src/hello/libgnunethello.la \
730  $(top_builddir)/src/util/libgnunetutil.la \
731  $(top_builddir)/src/transport/libgnunettransporttesting.la  
732
733
734 test_transport_api_reliability_https_SOURCES = \
735  test_transport_api_reliability.c
736 test_transport_api_reliability_https_LDADD = \
737  $(top_builddir)/src/transport/libgnunettransport.la \
738  $(top_builddir)/src/hello/libgnunethello.la \
739  $(top_builddir)/src/util/libgnunetutil.la \
740  $(top_builddir)/src/transport/libgnunettransporttesting.la 
741
742 test_transport_api_unreliability_unix_SOURCES = \
743  test_transport_api_unreliability.c
744 test_transport_api_unreliability_unix_LDADD = \
745  $(top_builddir)/src/transport/libgnunettransport.la \
746  $(top_builddir)/src/hello/libgnunethello.la \
747  $(top_builddir)/src/util/libgnunetutil.la \
748  $(top_builddir)/src/transport/libgnunettransporttesting.la 
749
750 test_transport_api_unreliability_udp_SOURCES = \
751  test_transport_api_unreliability.c
752 test_transport_api_unreliability_udp_LDADD = \
753  $(top_builddir)/src/transport/libgnunettransport.la \
754  $(top_builddir)/src/hello/libgnunethello.la \
755  $(top_builddir)/src/util/libgnunetutil.la \
756  $(top_builddir)/src/transport/libgnunettransporttesting.la 
757
758 test_transport_api_unreliability_constant_udp_SOURCES = \
759  test_transport_api_unreliability_constant.c
760 test_transport_api_unreliability_constant_udp_LDADD = \
761  $(top_builddir)/src/transport/libgnunettransport.la \
762  $(top_builddir)/src/hello/libgnunethello.la \
763  $(top_builddir)/src/util/libgnunetutil.la \
764  $(top_builddir)/src/transport/libgnunettransporttesting.la 
765
766 if LINUX
767 test_transport_api_wlan_SOURCES = \
768  test_transport_api.c
769 test_transport_api_wlan_LDADD = \
770  $(top_builddir)/src/transport/libgnunettransport.la \
771  $(top_builddir)/src/hello/libgnunethello.la \
772  $(top_builddir)/src/util/libgnunetutil.la \
773  $(top_builddir)/src/transport/libgnunettransporttesting.la  
774 endif
775
776 test_quota_compliance_tcp_SOURCES = \
777  test_quota_compliance.c
778 test_quota_compliance_tcp_LDADD = \
779  $(top_builddir)/src/transport/libgnunettransport.la \
780  $(top_builddir)/src/hello/libgnunethello.la \
781  $(top_builddir)/src/util/libgnunetutil.la \
782  $(top_builddir)/src/transport/libgnunettransporttesting.la 
783
784 test_quota_compliance_tcp_asymmetric_SOURCES = \
785  test_quota_compliance.c
786 test_quota_compliance_tcp_asymmetric_LDADD = \
787  $(top_builddir)/src/transport/libgnunettransport.la \
788  $(top_builddir)/src/hello/libgnunethello.la \
789  $(top_builddir)/src/util/libgnunetutil.la \
790  $(top_builddir)/src/transport/libgnunettransporttesting.la 
791
792 test_quota_compliance_udp_SOURCES = \
793  test_quota_compliance.c
794 test_quota_compliance_udp_LDADD = \
795  $(top_builddir)/src/transport/libgnunettransport.la \
796  $(top_builddir)/src/hello/libgnunethello.la \
797  $(top_builddir)/src/util/libgnunetutil.la \
798  $(top_builddir)/src/transport/libgnunettransporttesting.la
799
800 test_quota_compliance_unix_SOURCES = \
801  test_quota_compliance.c
802 test_quota_compliance_unix_LDADD = \
803  $(top_builddir)/src/transport/libgnunettransport.la \
804  $(top_builddir)/src/hello/libgnunethello.la \
805  $(top_builddir)/src/util/libgnunetutil.la \
806  $(top_builddir)/src/transport/libgnunettransporttesting.la
807
808 test_quota_compliance_unix_asymmetric_SOURCES = \
809  test_quota_compliance.c
810 test_quota_compliance_unix_asymmetric_LDADD = \
811  $(top_builddir)/src/transport/libgnunettransport.la \
812  $(top_builddir)/src/hello/libgnunethello.la \
813  $(top_builddir)/src/util/libgnunetutil.la \
814  $(top_builddir)/src/transport/libgnunettransporttesting.la
815
816 test_quota_compliance_wlan_SOURCES = \
817  test_quota_compliance.c
818 test_quota_compliance_wlan_LDADD = \
819  $(top_builddir)/src/transport/libgnunettransport.la \
820  $(top_builddir)/src/hello/libgnunethello.la \
821  $(top_builddir)/src/util/libgnunetutil.la \
822  $(top_builddir)/src/transport/libgnunettransporttesting.la
823
824 test_quota_compliance_wlan_asymmetric_SOURCES = \
825  test_quota_compliance.c
826 test_quota_compliance_wlan_asymmetric_LDADD = \
827  $(top_builddir)/src/transport/libgnunettransport.la \
828  $(top_builddir)/src/hello/libgnunethello.la \
829  $(top_builddir)/src/util/libgnunetutil.la \
830  $(top_builddir)/src/transport/libgnunettransporttesting.la
831
832 test_transport_api_multi_SOURCES = \
833  test_transport_api.c
834 test_transport_api_multi_LDADD = \
835  $(top_builddir)/src/transport/libgnunettransport.la \
836  $(top_builddir)/src/hello/libgnunethello.la \
837  $(top_builddir)/src/util/libgnunetutil.la \
838  $(top_builddir)/src/transport/libgnunettransporttesting.la 
839
840
841 EXTRA_DIST = \
842 test_plugin_hostkey \
843 gnunet-transport-certificate-creation \
844 template_cfg_peer1.conf\
845 template_cfg_peer2.conf\
846 test_plugin_transport_data.conf\
847 test_plugin_transport_data_udp.conf\
848 test_quota_compliance_data.conf\
849 test_quota_compliance_http_peer1.conf\
850 test_quota_compliance_http_peer2.conf\
851 test_quota_compliance_https_peer1.conf\
852 test_quota_compliance_https_peer2.conf\
853 test_quota_compliance_tcp_peer1.conf\
854 test_quota_compliance_tcp_peer2.conf\
855 test_quota_compliance_udp_peer1.conf\
856 test_quota_compliance_udp_peer2.conf\
857 test_quota_compliance_unix_peer1.conf\
858 test_quota_compliance_unix_peer2.conf\
859 test_quota_compliance_http_asymmetric_peer1.conf\
860 test_quota_compliance_http_asymmetric_peer2.conf\
861 test_quota_compliance_https_asymmetric_peer1.conf\
862 test_quota_compliance_https_asymmetric_peer2.conf\
863 test_quota_compliance_tcp_asymmetric_peer1.conf\
864 test_quota_compliance_tcp_asymmetric_peer2.conf\
865 test_quota_compliance_unix_asymmetric_peer1.conf\
866 test_quota_compliance_unix_asymmetric_peer2.conf\
867 test_transport_api_data.conf\
868 test_transport_api_http_peer1.conf\
869 test_transport_api_http_peer2.conf\
870 test_transport_api_https_peer1.conf\
871 test_transport_api_https_peer2.conf\
872 test_transport_api_limited_sockets_tcp_peer1.conf\
873 test_transport_api_limited_sockets_tcp_peer2.conf\
874 test_transport_api_timeout_tcp_peer1.conf\
875 test_transport_api_timeout_tcp_peer2.conf\
876 test_transport_api_multi_peer1.conf\
877 test_transport_api_multi_peer2.conf\
878 test_transport_api_reliability_http_peer1.conf\
879 test_transport_api_reliability_http_peer2.conf\
880 test_transport_api_reliability_https_peer1.conf\
881 test_transport_api_reliability_https_peer2.conf\
882 test_transport_api_reliability_tcp_nat_peer1.conf\
883 test_transport_api_reliability_tcp_nat_peer2.conf\
884 test_transport_api_reliability_tcp_peer1.conf\
885 test_transport_api_reliability_tcp_peer2.conf\
886 test_transport_api_reliability_wlan_peer1.conf\
887 test_transport_api_reliability_wlan_peer2.conf\
888 test_transport_api_bidirectional_connect_peer1.conf\
889 test_transport_api_bidirectional_connect_peer2.conf\
890 test_transport_api_tcp_nat_peer1.conf\
891 test_transport_api_tcp_nat_peer2.conf\
892 test_transport_api_tcp_peer1.conf\
893 test_transport_api_tcp_peer2.conf\
894 test_transport_api_udp_nat_peer1.conf\
895 test_transport_api_udp_nat_peer2.conf\
896 test_transport_api_udp_peer1.conf\
897 test_transport_api_udp_peer2.conf\
898 test_transport_api_timeout_udp_peer1.conf\
899 test_transport_api_timeout_udp_peer2.conf\
900 test_transport_api_unix_peer1.conf\
901 test_transport_api_unix_peer2.conf\
902 test_transport_api_timeout_unix_peer1.conf\
903 test_transport_api_timeout_unix_peer2.conf\
904 test_transport_api_unreliability_udp_peer1.conf\
905 test_transport_api_unreliability_udp_peer2.conf\
906 test_transport_api_unreliability_unix_peer1.conf\
907 test_transport_api_unreliability_unix_peer2.conf\
908 test_transport_api_unreliability_wlan_peer1.conf\
909 test_transport_api_unreliability_wlan_peer2.conf\
910 test_transport_api_wlan_peer1.conf\
911 test_transport_api_wlan_peer2.conf\
912 test_transport_defaults.conf\
913 test_transport_startonly.conf\
914 test_transport_api_disconnect_tcp_peer1.conf\
915 test_transport_api_disconnect_tcp_peer2.conf\
916 test_transport_api_timeout_http_peer1.conf\
917 test_transport_api_timeout_http_peer2.conf\
918 test_transport_api_timeout_https_peer1.conf\
919 test_transport_api_timeout_https_peer2.conf\
920 test_transport_api_unreliability_constant_udp_peer1.conf\
921 test_transport_api_unreliability_constant_udp_peer2.conf\
922 test_transport_api_http_reverse_peer1.conf \
923 test_transport_api_http_reverse_peer2.conf