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