-some fixes for monkey
[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  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
31  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
32  HTTP_REL_TEST = test_transport_api_reliability_http
33  HTTP_QUOTA_TEST = test_quota_compliance_http \
34                    test_quota_compliance_http_asymmetric
35  
36  
37  HTTPS_API_TEST = test_transport_api_https
38  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
39  HTTPS_REL_TEST = test_transport_api_reliability_https
40  HTTPS_QUOTA_TEST = test_quota_compliance_https \
41                 test_quota_compliance_https_asymmetric 
42 endif
43 endif 
44
45 #if FALSE
46
47 #endif
48
49 if USE_COVERAGE
50   AM_CFLAGS = --coverage -O0
51 endif
52
53 if LINUX
54  WLAN_BIN = gnunet-helper-transport-wlan
55  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
56  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
57  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
58  WLAN_PLUGIN_TEST = test_plugin_wlan
59  WLAN_API_TEST = test_transport_api_wlan
60  WLAN_REL_TEST = test_transport_api_reliability_wlan
61  WLAN_UREL_TEST = test_transport_api_unreliability_wlan
62  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
63                 test_quota_compliance_wlan_asymmetric
64 endif
65
66
67 if LINUX
68 install-exec-hook:
69         $(top_srcdir)/src/transport/install-wlan-helper.sh $(bindir) $(SUDO_BINARY) || true
70 else
71 install-exec-hook:
72 endif
73
74 if !MINGW
75 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
76 UNIX_PLUGIN_TEST = test_transport_api_unix 
77 UNIX_TEST = test_plugin_unix
78 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
79 UNIX_REL_TEST = test_transport_api_unreliability_unix
80 UNIX_QUOTA_TEST = test_quota_compliance_unix \
81      test_quota_compliance_unix_asymmetric
82 endif
83
84 noinst_PROGRAMS = \
85  $(WLAN_BIN_SENDER)
86
87 lib_LTLIBRARIES = \
88   libgnunettransport.la \
89   libgnunettransporttesting.la
90
91 libgnunettransporttesting_la_SOURCES = \
92   transport-testing.c transport-testing.h
93 libgnunettransporttesting_la_LIBADD = \
94   $(top_builddir)/src/transport/libgnunettransport.la \
95   $(top_builddir)/src/hello/libgnunethello.la \
96   $(top_builddir)/src/util/libgnunetutil.la \
97   $(top_builddir)/src/testing/libgnunettesting.la \
98   $(GN_LIBINTL) 
99 libgnunettransporttesting_la_DEPENDENCIES = \
100   libgnunettransport.la
101 libgnunettransporttesting_la_LDFLAGS = \
102  $(GN_LIB_LDFLAGS)
103
104 libgnunettransport_la_SOURCES = \
105   transport_api.c transport.h \
106   transport_api_blacklist.c \
107   transport_api_address_to_string.c \
108   transport_api_address_lookup.c
109 libgnunettransport_la_LIBADD = \
110   $(top_builddir)/src/hello/libgnunethello.la \
111   $(top_builddir)/src/util/libgnunetutil.la \
112   $(GN_LIBINTL) 
113 libgnunettransport_la_LDFLAGS = \
114   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
115   -version-info 1:0:0
116
117 bin_PROGRAMS = \
118  gnunet-transport \
119  $(WLAN_BIN) \
120  $(WLAN_BIN_DUMMY) \
121  gnunet-service-transport \
122  gnunet-transport-certificate-creation
123
124 #bin_SCRIPTS = \
125 # gnunet-transport-certificate-creation
126
127 gnunet_transport_certificate_creation_SOURCES = \
128  gnunet-transport-certificate-creation.c
129 gnunet_transport_certificate_creation_LDADD = \
130   $(top_builddir)/src/util/libgnunetutil.la
131
132 gnunet_helper_transport_wlan_SOURCES = \
133  gnunet-helper-transport-wlan.c
134
135 gnunet_helper_transport_wlan_dummy_SOURCES = \
136  gnunet-helper-transport-wlan-dummy.c
137 gnunet_helper_transport_wlan_dummy_LDADD = \
138   $(top_builddir)/src/util/libgnunetutil.la 
139
140 gnunet_transport_wlan_sender_SOURCES = \
141  gnunet-transport-wlan-sender.c
142 gnunet_transport_wlan_sender_LDADD = \
143   $(top_builddir)/src/util/libgnunetutil.la 
144
145 gnunet_transport_SOURCES = \
146  gnunet-transport.c         
147 gnunet_transport_LDADD = \
148   $(top_builddir)/src/transport/libgnunettransport.la \
149   $(top_builddir)/src/nat/libgnunetnat.la \
150   $(top_builddir)/src/hello/libgnunethello.la \
151   $(top_builddir)/src/util/libgnunetutil.la \
152   $(GN_LIBINTL)
153 gnunet_transport_DEPENDENCIES = \
154   libgnunettransport.la                         
155
156 gnunet_service_transport_SOURCES = \
157  gnunet-service-transport.c gnunet-service-transport.h \
158  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
159  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
160  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
161  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
162  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
163  gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
164 gnunet_service_transport_LDADD = \
165   $(top_builddir)/src/ats/libgnunetats.la \
166   $(top_builddir)/src/hello/libgnunethello.la \
167   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
168   $(top_builddir)/src/statistics/libgnunetstatistics.la \
169   $(top_builddir)/src/util/libgnunetutil.la \
170   $(GN_GLPK) \
171   $(GN_LIBINTL)
172 gnunet_service_transport_CFLAGS = \
173   $(CFLAGS)
174 # -DANALYZE
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_la_LDFLAGS = \
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_la_LDFLAGS = \
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_REVERSE_API_TEST) \
335  $(HTTP_API_TIMEOUT_TEST) \
336  $(HTTPS_API_TEST) \
337  $(HTTPS_API_TIMEOUT_TEST) \
338  $(WLAN_API_TEST) \
339  test_transport_api_multi \
340  test_transport_api_reliability_tcp \
341  test_transport_api_reliability_tcp_nat \
342  test_transport_api_unreliability_udp \
343  test_transport_api_unreliability_constant_udp \
344  $(UNIX_REL_TEST) \
345  $(HTTP_REL_TEST) \
346  $(HTTPS_REL_TEST) \
347  $(WLAN_REL_TEST) \
348  $(WLAN_UREL_TEST) \
349  test_quota_compliance_tcp \
350  test_quota_compliance_tcp_asymmetric \
351  test_quota_compliance_udp \
352  $(UNIX_QUOTA_TEST) \
353  $(HTTP_QUOTA_TEST) \
354  $(HTTPS_QUOTA_TEST) \
355  $(WLAN_QUOTA_TEST)
356
357 if ENABLE_TEST_RUN
358 TESTS = \
359  test_transport_testing_startstop \
360  test_transport_testing_restart \
361  test_transport_testing \
362  test_transport_startonly \
363  test_plugin_tcp \
364  test_plugin_udp \
365  $(UNIX_TEST) \
366  $(WLAN_PLUGIN_TEST) \
367  test_transport_api_blacklisting \
368  test_transport_api_disconnect_tcp \
369  test_transport_api_bidirectional_connect \
370  test_transport_api_tcp \
371  test_transport_api_restart_1peer \
372  test_transport_api_restart_2peers \
373  test_transport_api_timeout_tcp \
374  test_transport_api_limited_sockets_tcp \
375  test_transport_api_tcp_nat \
376  test_transport_api_udp \
377  test_transport_api_timeout_udp \
378  $(UNIX_PLUGIN_TEST) \
379  $(UNIX_PLUGIN_TIMEOUT_TEST) \
380  test_transport_api_udp_nat \
381  $(HTTP_API_TEST) \
382  $(HTTP_API_TIMEOUT_TEST) \
383  $(HTTPS_API_TEST) \
384  $(HTTPS_API_TIMEOUT_TEST) \
385  $(WLAN_API_TEST) \
386  test_transport_api_multi \
387  test_transport_api_reliability_tcp \
388  test_transport_api_reliability_tcp_nat \
389  test_transport_api_unreliability_udp \
390  test_transport_api_unreliability_constant_udp \
391  $(UNIX_REL_TEST) \
392  $(HTTP_REL_TEST) \
393  $(HTTPS_REL_TEST) \
394  $(WLAN_REL_TEST) \
395  $(WLAN_UREL_TEST) \
396  test_quota_compliance_tcp \
397  test_quota_compliance_tcp_asymmetric \
398  test_quota_compliance_udp \
399  $(UNIX_QUOTA_TEST) \
400  $(HTTP_QUOTA_TEST) \
401  $(HTTPS_QUOTA_TEST)
402 endif
403
404 test_transport_testing_startstop_SOURCES = \
405  test_transport_testing_startstop.c
406 test_transport_testing_startstop_LDADD = \
407  $(top_builddir)/src/util/libgnunetutil.la \
408  $(top_builddir)/src/transport/libgnunettransport.la \
409  $(top_builddir)/src/hello/libgnunethello.la \
410  $(top_builddir)/src/transport/libgnunettransporttesting.la 
411
412 test_transport_testing_restart_SOURCES = \
413  test_transport_testing_restart.c
414 test_transport_testing_restart_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_SOURCES = \
421  test_transport_testing.c
422 test_transport_testing_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
429 test_transport_api_blacklisting_SOURCES = \
430  test_transport_api_blacklisting.c
431 test_transport_api_blacklisting_LDADD = \
432  $(top_builddir)/src/transport/libgnunettransport.la \
433  $(top_builddir)/src/hello/libgnunethello.la \
434  $(top_builddir)/src/statistics/libgnunetstatistics.la \
435  $(top_builddir)/src/util/libgnunetutil.la \
436  $(top_builddir)/src/transport/libgnunettransporttesting.la 
437
438 test_transport_api_disconnect_tcp_SOURCES = \
439  test_transport_api_disconnect.c
440 test_transport_api_disconnect_tcp_LDADD = \
441  $(top_builddir)/src/transport/libgnunettransport.la \
442  $(top_builddir)/src/hello/libgnunethello.la \
443  $(top_builddir)/src/statistics/libgnunetstatistics.la \
444  $(top_builddir)/src/util/libgnunetutil.la \
445  $(top_builddir)/src/transport/libgnunettransporttesting.la 
446
447 test_transport_startonly_SOURCES = \
448  test_transport_startonly.c
449 test_transport_startonly_LDADD = \
450  $(top_builddir)/src/transport/libgnunettransport.la \
451  $(top_builddir)/src/hello/libgnunethello.la \
452  $(top_builddir)/src/statistics/libgnunetstatistics.la \
453  $(top_builddir)/src/util/libgnunetutil.la \
454  $(top_builddir)/src/transport/libgnunettransporttesting.la 
455
456 test_plugin_tcp_SOURCES = \
457  test_plugin_transport.c
458 test_plugin_tcp_LDADD = \
459  $(top_builddir)/src/transport/libgnunettransport.la \
460  $(top_builddir)/src/statistics/libgnunetstatistics.la \
461  $(top_builddir)/src/hello/libgnunethello.la \
462  $(top_builddir)/src/util/libgnunetutil.la  \
463  $(top_builddir)/src/transport/libgnunettransporttesting.la
464  
465 test_plugin_udp_SOURCES = \
466  test_plugin_transport.c
467 test_plugin_udp_LDADD = \
468  $(top_builddir)/src/transport/libgnunettransport.la \
469  $(top_builddir)/src/statistics/libgnunetstatistics.la \
470  $(top_builddir)/src/hello/libgnunethello.la \
471  $(top_builddir)/src/util/libgnunetutil.la  \
472  $(top_builddir)/src/transport/libgnunettransporttesting.la
473
474 test_plugin_unix_SOURCES = \
475  test_plugin_transport.c
476 test_plugin_unix_LDADD = \
477  $(top_builddir)/src/transport/libgnunettransport.la \
478  $(top_builddir)/src/statistics/libgnunetstatistics.la \
479  $(top_builddir)/src/hello/libgnunethello.la \
480  $(top_builddir)/src/util/libgnunetutil.la  \
481  $(top_builddir)/src/transport/libgnunettransporttesting.la
482
483 test_plugin_wlan_SOURCES = \
484  test_plugin_transport.c
485 test_plugin_wlan_LDADD = \
486  $(top_builddir)/src/transport/libgnunettransport.la \
487  $(top_builddir)/src/statistics/libgnunetstatistics.la \
488  $(top_builddir)/src/hello/libgnunethello.la \
489  $(top_builddir)/src/util/libgnunetutil.la  \
490  $(top_builddir)/src/transport/libgnunettransporttesting.la 
491
492 test_plugin_http_server_SOURCES = \
493  test_plugin_transport.c
494 test_plugin_http_server_LDADD = \
495  $(top_builddir)/src/transport/libgnunettransport.la \
496  $(top_builddir)/src/statistics/libgnunetstatistics.la \
497  $(top_builddir)/src/hello/libgnunethello.la \
498  $(top_builddir)/src/util/libgnunetutil.la  \
499  $(top_builddir)/src/transport/libgnunettransporttesting.la 
500  
501 test_plugin_https_server_SOURCES = \
502  test_plugin_transport.c
503 test_plugin_https_server_LDADD = \
504  $(top_builddir)/src/transport/libgnunettransport.la \
505  $(top_builddir)/src/statistics/libgnunetstatistics.la \
506  $(top_builddir)/src/hello/libgnunethello.la \
507  $(top_builddir)/src/util/libgnunetutil.la  \
508  $(top_builddir)/src/transport/libgnunettransporttesting.la
509  
510 test_plugin_http_client_SOURCES = \
511  test_plugin_transport.c
512 test_plugin_http_client_LDADD = \
513  $(top_builddir)/src/transport/libgnunettransport.la \
514  $(top_builddir)/src/statistics/libgnunetstatistics.la \
515  $(top_builddir)/src/hello/libgnunethello.la \
516  $(top_builddir)/src/util/libgnunetutil.la  \
517  $(top_builddir)/src/transport/libgnunettransporttesting.la 
518  
519 test_plugin_https_client_SOURCES = \
520  test_plugin_transport.c
521 test_plugin_https_client_LDADD = \
522  $(top_builddir)/src/transport/libgnunettransport.la \
523  $(top_builddir)/src/statistics/libgnunetstatistics.la \
524  $(top_builddir)/src/hello/libgnunethello.la \
525  $(top_builddir)/src/util/libgnunetutil.la  \
526  $(top_builddir)/src/transport/libgnunettransporttesting.la  
527
528 test_transport_api_tcp_SOURCES = \
529  test_transport_api.c
530 test_transport_api_tcp_LDADD = \
531  $(top_builddir)/src/transport/libgnunettransport.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_bidirectional_connect_SOURCES = \
537  test_transport_api_bidirectional_connect.c
538 test_transport_api_bidirectional_connect_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_restart_1peer_SOURCES = \
545  test_transport_api_restart_1peer.c
546 test_transport_api_restart_1peer_LDADD = \
547  $(top_builddir)/src/transport/libgnunettransport.la \
548  $(top_builddir)/src/hello/libgnunethello.la \
549  $(top_builddir)/src/statistics/libgnunetstatistics.la \
550  $(top_builddir)/src/util/libgnunetutil.la \
551  $(top_builddir)/src/transport/libgnunettransporttesting.la 
552
553 test_transport_api_restart_2peers_SOURCES = \
554  test_transport_api_restart_2peers.c
555 test_transport_api_restart_2peers_LDADD = \
556  $(top_builddir)/src/transport/libgnunettransport.la \
557  $(top_builddir)/src/hello/libgnunethello.la \
558  $(top_builddir)/src/statistics/libgnunetstatistics.la \
559  $(top_builddir)/src/util/libgnunetutil.la \
560  $(top_builddir)/src/transport/libgnunettransporttesting.la 
561
562 test_transport_api_limited_sockets_tcp_SOURCES = \
563  test_transport_api_limited_sockets.c
564 test_transport_api_limited_sockets_tcp_LDADD = \
565  $(top_builddir)/src/transport/libgnunettransport.la \
566  $(top_builddir)/src/hello/libgnunethello.la \
567  $(top_builddir)/src/util/libgnunetutil.la  \
568  $(top_builddir)/src/transport/libgnunettransporttesting.la
569
570 test_transport_api_tcp_nat_SOURCES = \
571  test_transport_api.c
572 test_transport_api_tcp_nat_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_reliability_tcp_SOURCES = \
579  test_transport_api_reliability.c
580 test_transport_api_reliability_tcp_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_timeout_tcp_SOURCES = \
587  test_transport_api_timeout.c
588 test_transport_api_timeout_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_unix_SOURCES = \
595  test_transport_api_timeout.c
596 test_transport_api_timeout_unix_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_reliability_tcp_nat_SOURCES = \
603  test_transport_api_reliability.c
604 test_transport_api_reliability_tcp_nat_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_wlan_SOURCES = \
611  test_transport_api_reliability.c
612 test_transport_api_reliability_wlan_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_unreliability_wlan_SOURCES = \
619  test_transport_api_unreliability.c
620 test_transport_api_unreliability_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_udp_SOURCES = \
627  test_transport_api.c
628 test_transport_api_udp_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_timeout_udp_SOURCES = \
635  test_transport_api_timeout.c
636 test_transport_api_timeout_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_udp_nat_SOURCES = \
643  test_transport_api.c
644 test_transport_api_udp_nat_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_unix_SOURCES = \
651  test_transport_api.c
652 test_transport_api_unix_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 # HTTP tests
659 test_transport_api_http_SOURCES = \
660  test_transport_api.c
661 test_transport_api_http_LDADD = \
662  $(top_builddir)/src/transport/libgnunettransport.la \
663  $(top_builddir)/src/hello/libgnunethello.la \
664  $(top_builddir)/src/util/libgnunetutil.la \
665  $(top_builddir)/src/transport/libgnunettransporttesting.la
666  
667 test_transport_api_http_reverse_SOURCES = \
668  test_transport_api.c
669 test_transport_api_http_reverse_LDADD = \
670  $(top_builddir)/src/transport/libgnunettransport.la \
671  $(top_builddir)/src/hello/libgnunethello.la \
672  $(top_builddir)/src/util/libgnunetutil.la \
673  $(top_builddir)/src/transport/libgnunettransporttesting.la
674  
675 test_transport_api_timeout_http_SOURCES = \
676  test_transport_api_timeout.c
677 test_transport_api_timeout_http_LDADD = \
678  $(top_builddir)/src/transport/libgnunettransport.la \
679  $(top_builddir)/src/hello/libgnunethello.la \
680  $(top_builddir)/src/util/libgnunetutil.la \
681  $(top_builddir)/src/transport/libgnunettransporttesting.la  
682
683 test_transport_api_reliability_http_SOURCES = \
684  test_transport_api_reliability.c
685 test_transport_api_reliability_http_LDADD = \
686  $(top_builddir)/src/transport/libgnunettransport.la \
687  $(top_builddir)/src/hello/libgnunethello.la \
688  $(top_builddir)/src/util/libgnunetutil.la \
689  $(top_builddir)/src/transport/libgnunettransporttesting.la 
690
691 test_quota_compliance_http_SOURCES = \
692  test_quota_compliance.c
693 test_quota_compliance_http_LDADD = \
694  $(top_builddir)/src/transport/libgnunettransport.la \
695  $(top_builddir)/src/hello/libgnunethello.la \
696  $(top_builddir)/src/util/libgnunetutil.la \
697  $(top_builddir)/src/transport/libgnunettransporttesting.la 
698
699 test_quota_compliance_http_asymmetric_SOURCES = \
700  test_quota_compliance.c
701 test_quota_compliance_http_asymmetric_LDADD = \
702  $(top_builddir)/src/transport/libgnunettransport.la \
703  $(top_builddir)/src/hello/libgnunethello.la \
704  $(top_builddir)/src/util/libgnunetutil.la \
705  $(top_builddir)/src/transport/libgnunettransporttesting.la
706
707 test_quota_compliance_https_SOURCES = \
708  test_quota_compliance.c
709 test_quota_compliance_https_LDADD = \
710  $(top_builddir)/src/transport/libgnunettransport.la \
711  $(top_builddir)/src/hello/libgnunethello.la \
712  $(top_builddir)/src/util/libgnunetutil.la \
713  $(top_builddir)/src/transport/libgnunettransporttesting.la
714
715 test_quota_compliance_https_asymmetric_SOURCES = \
716  test_quota_compliance.c
717 test_quota_compliance_https_asymmetric_LDADD = \
718  $(top_builddir)/src/transport/libgnunettransport.la \
719  $(top_builddir)/src/hello/libgnunethello.la \
720  $(top_builddir)/src/util/libgnunetutil.la \
721  $(top_builddir)/src/transport/libgnunettransporttesting.la
722
723 # HTTPS tests
724 test_transport_api_https_SOURCES = \
725  test_transport_api.c
726 test_transport_api_https_LDADD = \
727  $(top_builddir)/src/transport/libgnunettransport.la \
728  $(top_builddir)/src/hello/libgnunethello.la \
729  $(top_builddir)/src/util/libgnunetutil.la  \
730  $(top_builddir)/src/transport/libgnunettransporttesting.la 
731  
732 test_transport_api_timeout_https_SOURCES = \
733  test_transport_api_timeout.c
734 test_transport_api_timeout_https_LDADD = \
735  $(top_builddir)/src/transport/libgnunettransport.la \
736  $(top_builddir)/src/hello/libgnunethello.la \
737  $(top_builddir)/src/util/libgnunetutil.la \
738  $(top_builddir)/src/transport/libgnunettransporttesting.la  
739  
740
741 test_transport_api_reliability_https_SOURCES = \
742  test_transport_api_reliability.c
743 test_transport_api_reliability_https_LDADD = \
744  $(top_builddir)/src/transport/libgnunettransport.la \
745  $(top_builddir)/src/hello/libgnunethello.la \
746  $(top_builddir)/src/util/libgnunetutil.la \
747  $(top_builddir)/src/transport/libgnunettransporttesting.la 
748
749 test_transport_api_unreliability_unix_SOURCES = \
750  test_transport_api_unreliability.c
751 test_transport_api_unreliability_unix_LDADD = \
752  $(top_builddir)/src/transport/libgnunettransport.la \
753  $(top_builddir)/src/hello/libgnunethello.la \
754  $(top_builddir)/src/util/libgnunetutil.la \
755  $(top_builddir)/src/transport/libgnunettransporttesting.la 
756
757 test_transport_api_unreliability_udp_SOURCES = \
758  test_transport_api_unreliability.c
759 test_transport_api_unreliability_udp_LDADD = \
760  $(top_builddir)/src/transport/libgnunettransport.la \
761  $(top_builddir)/src/hello/libgnunethello.la \
762  $(top_builddir)/src/util/libgnunetutil.la \
763  $(top_builddir)/src/transport/libgnunettransporttesting.la 
764
765 test_transport_api_unreliability_constant_udp_SOURCES = \
766  test_transport_api_unreliability_constant.c
767 test_transport_api_unreliability_constant_udp_LDADD = \
768  $(top_builddir)/src/transport/libgnunettransport.la \
769  $(top_builddir)/src/hello/libgnunethello.la \
770  $(top_builddir)/src/util/libgnunetutil.la \
771  $(top_builddir)/src/transport/libgnunettransporttesting.la 
772
773 if LINUX
774 test_transport_api_wlan_SOURCES = \
775  test_transport_api.c
776 test_transport_api_wlan_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 endif
782
783 test_quota_compliance_tcp_SOURCES = \
784  test_quota_compliance.c
785 test_quota_compliance_tcp_LDADD = \
786  $(top_builddir)/src/transport/libgnunettransport.la \
787  $(top_builddir)/src/hello/libgnunethello.la \
788  $(top_builddir)/src/util/libgnunetutil.la \
789  $(top_builddir)/src/transport/libgnunettransporttesting.la 
790
791 test_quota_compliance_tcp_asymmetric_SOURCES = \
792  test_quota_compliance.c
793 test_quota_compliance_tcp_asymmetric_LDADD = \
794  $(top_builddir)/src/transport/libgnunettransport.la \
795  $(top_builddir)/src/hello/libgnunethello.la \
796  $(top_builddir)/src/util/libgnunetutil.la \
797  $(top_builddir)/src/transport/libgnunettransporttesting.la 
798
799 test_quota_compliance_udp_SOURCES = \
800  test_quota_compliance.c
801 test_quota_compliance_udp_LDADD = \
802  $(top_builddir)/src/transport/libgnunettransport.la \
803  $(top_builddir)/src/hello/libgnunethello.la \
804  $(top_builddir)/src/util/libgnunetutil.la \
805  $(top_builddir)/src/transport/libgnunettransporttesting.la
806
807 test_quota_compliance_unix_SOURCES = \
808  test_quota_compliance.c
809 test_quota_compliance_unix_LDADD = \
810  $(top_builddir)/src/transport/libgnunettransport.la \
811  $(top_builddir)/src/hello/libgnunethello.la \
812  $(top_builddir)/src/util/libgnunetutil.la \
813  $(top_builddir)/src/transport/libgnunettransporttesting.la
814
815 test_quota_compliance_unix_asymmetric_SOURCES = \
816  test_quota_compliance.c
817 test_quota_compliance_unix_asymmetric_LDADD = \
818  $(top_builddir)/src/transport/libgnunettransport.la \
819  $(top_builddir)/src/hello/libgnunethello.la \
820  $(top_builddir)/src/util/libgnunetutil.la \
821  $(top_builddir)/src/transport/libgnunettransporttesting.la
822
823 test_quota_compliance_wlan_SOURCES = \
824  test_quota_compliance.c
825 test_quota_compliance_wlan_LDADD = \
826  $(top_builddir)/src/transport/libgnunettransport.la \
827  $(top_builddir)/src/hello/libgnunethello.la \
828  $(top_builddir)/src/util/libgnunetutil.la \
829  $(top_builddir)/src/transport/libgnunettransporttesting.la
830
831 test_quota_compliance_wlan_asymmetric_SOURCES = \
832  test_quota_compliance.c
833 test_quota_compliance_wlan_asymmetric_LDADD = \
834  $(top_builddir)/src/transport/libgnunettransport.la \
835  $(top_builddir)/src/hello/libgnunethello.la \
836  $(top_builddir)/src/util/libgnunetutil.la \
837  $(top_builddir)/src/transport/libgnunettransporttesting.la
838
839 test_transport_api_multi_SOURCES = \
840  test_transport_api.c
841 test_transport_api_multi_LDADD = \
842  $(top_builddir)/src/transport/libgnunettransport.la \
843  $(top_builddir)/src/hello/libgnunethello.la \
844  $(top_builddir)/src/util/libgnunetutil.la \
845  $(top_builddir)/src/transport/libgnunettransporttesting.la 
846
847
848 EXTRA_DIST = \
849 gnunet-transport-certificate-creation \
850 template_cfg_peer1.conf\
851 template_cfg_peer2.conf\
852 test_plugin_transport_data.conf\
853 test_plugin_transport_data_udp.conf\
854 test_quota_compliance_data.conf\
855 test_quota_compliance_http_peer1.conf\
856 test_quota_compliance_http_peer2.conf\
857 test_quota_compliance_https_peer1.conf\
858 test_quota_compliance_https_peer2.conf\
859 test_quota_compliance_tcp_peer1.conf\
860 test_quota_compliance_tcp_peer2.conf\
861 test_quota_compliance_udp_peer1.conf\
862 test_quota_compliance_udp_peer2.conf\
863 test_quota_compliance_unix_peer1.conf\
864 test_quota_compliance_unix_peer2.conf\
865 test_quota_compliance_http_asymmetric_peer1.conf\
866 test_quota_compliance_http_asymmetric_peer2.conf\
867 test_quota_compliance_https_asymmetric_peer1.conf\
868 test_quota_compliance_https_asymmetric_peer2.conf\
869 test_quota_compliance_tcp_asymmetric_peer1.conf\
870 test_quota_compliance_tcp_asymmetric_peer2.conf\
871 test_quota_compliance_unix_asymmetric_peer1.conf\
872 test_quota_compliance_unix_asymmetric_peer2.conf\
873 test_transport_api_data.conf\
874 test_transport_api_http_peer1.conf\
875 test_transport_api_http_peer2.conf\
876 test_transport_api_https_peer1.conf\
877 test_transport_api_https_peer2.conf\
878 test_transport_api_limited_sockets_tcp_peer1.conf\
879 test_transport_api_limited_sockets_tcp_peer2.conf\
880 test_transport_api_timeout_tcp_peer1.conf\
881 test_transport_api_timeout_tcp_peer2.conf\
882 test_transport_api_multi_peer1.conf\
883 test_transport_api_multi_peer2.conf\
884 test_transport_api_reliability_http_peer1.conf\
885 test_transport_api_reliability_http_peer2.conf\
886 test_transport_api_reliability_https_peer1.conf\
887 test_transport_api_reliability_https_peer2.conf\
888 test_transport_api_reliability_tcp_nat_peer1.conf\
889 test_transport_api_reliability_tcp_nat_peer2.conf\
890 test_transport_api_reliability_tcp_peer1.conf\
891 test_transport_api_reliability_tcp_peer2.conf\
892 test_transport_api_reliability_wlan_peer1.conf\
893 test_transport_api_reliability_wlan_peer2.conf\
894 test_transport_api_bidirectional_connect_peer1.conf\
895 test_transport_api_bidirectional_connect_peer2.conf\
896 test_transport_api_tcp_nat_peer1.conf\
897 test_transport_api_tcp_nat_peer2.conf\
898 test_transport_api_tcp_peer1.conf\
899 test_transport_api_tcp_peer2.conf\
900 test_transport_api_udp_nat_peer1.conf\
901 test_transport_api_udp_nat_peer2.conf\
902 test_transport_api_udp_peer1.conf\
903 test_transport_api_udp_peer2.conf\
904 test_transport_api_timeout_udp_peer1.conf\
905 test_transport_api_timeout_udp_peer2.conf\
906 test_transport_api_unix_peer1.conf\
907 test_transport_api_unix_peer2.conf\
908 test_transport_api_timeout_unix_peer1.conf\
909 test_transport_api_timeout_unix_peer2.conf\
910 test_transport_api_unreliability_udp_peer1.conf\
911 test_transport_api_unreliability_udp_peer2.conf\
912 test_transport_api_unreliability_unix_peer1.conf\
913 test_transport_api_unreliability_unix_peer2.conf\
914 test_transport_api_unreliability_wlan_peer1.conf\
915 test_transport_api_unreliability_wlan_peer2.conf\
916 test_transport_api_wlan_peer1.conf\
917 test_transport_api_wlan_peer2.conf\
918 test_transport_defaults.conf\
919 test_transport_startonly.conf\
920 test_transport_api_disconnect_tcp_peer1.conf\
921 test_transport_api_disconnect_tcp_peer2.conf\
922 test_transport_api_timeout_http_peer1.conf\
923 test_transport_api_timeout_http_peer2.conf\
924 test_transport_api_timeout_https_peer1.conf\
925 test_transport_api_timeout_https_peer2.conf\
926 test_transport_api_unreliability_constant_udp_peer1.conf\
927 test_transport_api_unreliability_constant_udp_peer2.conf\
928 test_transport_api_http_reverse_peer1.conf \
929 test_transport_api_http_reverse_peer2.conf