- pausing, unpausing
[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_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  
35  
36  HTTPS_API_TEST = test_transport_api_https
37  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
38  HTTPS_REL_TEST = test_transport_api_reliability_https
39  HTTPS_QUOTA_TEST = test_quota_compliance_https \
40                 test_quota_compliance_https_asymmetric 
41 endif
42 endif 
43
44 #if FALSE
45
46 #endif
47
48 if USE_COVERAGE
49   AM_CFLAGS = --coverage -O0
50 endif
51
52 if LINUX
53  WLAN_BIN = gnunet-helper-transport-wlan
54  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
55  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
56  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
57  WLAN_PLUGIN_TEST = test_plugin_wlan
58  WLAN_API_TEST = test_transport_api_wlan
59  WLAN_REL_TEST = test_transport_api_reliability_wlan
60  WLAN_UREL_TEST = test_transport_api_unreliability_wlan
61  WLAN_QUOTA_TEST = test_quota_compliance_wlan \
62                 test_quota_compliance_wlan_asymmetric
63 endif
64
65
66 if LINUX
67 install-exec-hook:
68         $(top_srcdir)/src/transport/install-wlan-helper.sh $(bindir) $(SUDO_BINARY) || true
69 else
70 install-exec-hook:
71 endif
72
73 if !MINGW
74 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
75 UNIX_PLUGIN_TEST = test_transport_api_unix 
76 UNIX_TEST = test_plugin_unix
77 UNIX_PLUGIN_TIMEOUT_TEST = test_transport_api_timeout_unix
78 UNIX_REL_TEST = test_transport_api_unreliability_unix
79 UNIX_QUOTA_TEST = test_quota_compliance_unix \
80      test_quota_compliance_unix_asymmetric
81 endif
82
83 noinst_PROGRAMS = \
84  $(WLAN_BIN_SENDER)
85
86 lib_LTLIBRARIES = \
87   libgnunettransport.la \
88   libgnunettransporttesting.la
89
90 libgnunettransporttesting_la_SOURCES = \
91   transport-testing.c transport-testing.h
92 libgnunettransporttesting_la_LIBADD = \
93   $(top_builddir)/src/transport/libgnunettransport.la \
94   $(top_builddir)/src/hello/libgnunethello.la \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(top_builddir)/src/testing/libgnunettesting.la \
97   $(GN_LIBINTL) 
98 libgnunettransporttesting_la_DEPENDENCIES = \
99   libgnunettransport.la
100 libgnunettransporttesting_la_LDFLAGS = \
101  $(GN_LIB_LDFLAGS)
102
103 libgnunettransport_la_SOURCES = \
104   transport_api.c transport.h \
105   transport_api_blacklist.c \
106   transport_api_address_to_string.c \
107   transport_api_address_lookup.c
108 libgnunettransport_la_LIBADD = \
109   $(top_builddir)/src/hello/libgnunethello.la \
110   $(top_builddir)/src/util/libgnunetutil.la \
111   $(GN_LIBINTL) 
112 libgnunettransport_la_LDFLAGS = \
113   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
114   -version-info 1:0:0
115
116 bin_PROGRAMS = \
117  gnunet-transport \
118  $(WLAN_BIN) \
119  $(WLAN_BIN_DUMMY) \
120  gnunet-service-transport \
121  gnunet-transport-certificate-creation
122
123 #bin_SCRIPTS = \
124 # gnunet-transport-certificate-creation
125
126 gnunet_transport_certificate_creation_SOURCES = \
127  gnunet-transport-certificate-creation.c
128 gnunet_transport_certificate_creation_LDADD = \
129   $(top_builddir)/src/util/libgnunetutil.la
130
131 gnunet_helper_transport_wlan_SOURCES = \
132  gnunet-helper-transport-wlan.c
133
134 gnunet_helper_transport_wlan_dummy_SOURCES = \
135  gnunet-helper-transport-wlan-dummy.c
136 gnunet_helper_transport_wlan_dummy_LDADD = \
137   $(top_builddir)/src/util/libgnunetutil.la 
138
139 gnunet_transport_wlan_sender_SOURCES = \
140  gnunet-transport-wlan-sender.c
141 gnunet_transport_wlan_sender_LDADD = \
142   $(top_builddir)/src/util/libgnunetutil.la 
143
144 gnunet_transport_SOURCES = \
145  gnunet-transport.c         
146 gnunet_transport_LDADD = \
147   $(top_builddir)/src/transport/libgnunettransport.la \
148   $(top_builddir)/src/nat/libgnunetnat.la \
149   $(top_builddir)/src/hello/libgnunethello.la \
150   $(top_builddir)/src/util/libgnunetutil.la \
151   $(GN_LIBINTL)
152 gnunet_transport_DEPENDENCIES = \
153   libgnunettransport.la                         
154
155 gnunet_service_transport_SOURCES = \
156  gnunet-service-transport.c gnunet-service-transport.h \
157  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
158  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
159  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
160  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
161  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
162  gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
163 gnunet_service_transport_LDADD = \
164   $(top_builddir)/src/ats/libgnunetats.la \
165   $(top_builddir)/src/hello/libgnunethello.la \
166   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
167   $(top_builddir)/src/statistics/libgnunetstatistics.la \
168   $(top_builddir)/src/util/libgnunetutil.la \
169   $(GN_GLPK) \
170   $(GN_LIBINTL)
171 gnunet_service_transport_CFLAGS = \
172   $(CFLAGS)
173 # -DANALYZE
174
175 plugin_LTLIBRARIES = \
176   libgnunet_plugin_transport_tcp.la \
177   libgnunet_plugin_transport_udp.la \
178   $(UNIX_PLUGIN_LA) \
179   $(HTTP_CLIENT_PLUGIN_LA) \
180   $(HTTPS_CLIENT_PLUGIN_LA) \
181   $(HTTP_SERVER_PLUGIN_LA) \
182   $(HTTPS_SERVER_PLUGIN_LA) \
183   $(WLAN_PLUGIN_LA) \
184   libgnunet_plugin_transport_template.la
185
186 libgnunet_plugin_transport_tcp_la_SOURCES = \
187   plugin_transport_tcp.c
188 libgnunet_plugin_transport_tcp_la_LIBADD = \
189   $(top_builddir)/src/hello/libgnunethello.la \
190   $(top_builddir)/src/statistics/libgnunetstatistics.la \
191   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
192   $(top_builddir)/src/nat/libgnunetnat.la \
193   $(top_builddir)/src/util/libgnunetutil.la \
194   $(LTLIBINTL)
195 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
196  $(GN_PLUGIN_LDFLAGS)
197
198 libgnunet_plugin_transport_template_la_SOURCES = \
199   plugin_transport_template.c
200 libgnunet_plugin_transport_template_la_LIBADD = \
201   $(top_builddir)/src/util/libgnunetutil.la \
202   $(LTLIBINTL)
203 libgnunet_plugin_transport_template_la_LDFLAGS = \
204  $(GN_PLUGIN_LDFLAGS)
205
206 libgnunet_plugin_transport_wlan_la_SOURCES = \
207   plugin_transport_wlan.c plugin_transport_wlan.h
208 libgnunet_plugin_transport_wlan_la_LIBADD = \
209   $(top_builddir)/src/hello/libgnunethello.la \
210   $(top_builddir)/src/statistics/libgnunetstatistics.la \
211   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
212   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
213   $(top_builddir)/src/util/libgnunetutil.la 
214 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
215   $(GN_PLUGIN_LDFLAGS)
216
217 libgnunet_plugin_transport_udp_la_SOURCES = \
218   plugin_transport_udp.c plugin_transport_udp.h \
219   plugin_transport_udp_broadcasting.c
220 libgnunet_plugin_transport_udp_la_LIBADD = \
221   $(top_builddir)/src/hello/libgnunethello.la \
222   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
223   $(top_builddir)/src/statistics/libgnunetstatistics.la \
224   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
225   $(top_builddir)/src/nat/libgnunetnat.la \
226   $(top_builddir)/src/util/libgnunetutil.la \
227   $(LTLIBINTL)
228 libgnunet_plugin_transport_udp_la_LDFLAGS = \
229  $(GN_PLUGIN_LDFLAGS)
230
231 libgnunet_plugin_transport_unix_la_SOURCES = \
232   plugin_transport_unix.c
233 libgnunet_plugin_transport_unix_la_LIBADD = \
234   $(top_builddir)/src/hello/libgnunethello.la \
235   $(top_builddir)/src/statistics/libgnunetstatistics.la \
236   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
237   $(top_builddir)/src/util/libgnunetutil.la \
238   $(LTLIBINTL)
239 libgnunet_plugin_transport_unix_la_LDFLAGS = \
240  $(GN_PLUGIN_LDFLAGS)
241  
242  
243 libgnunet_plugin_transport_http_client_la_SOURCES = \
244   plugin_transport_http_client.c plugin_transport_http_common.c
245 libgnunet_plugin_transport_http_client_la_LIBADD = \
246   $(top_builddir)/src/hello/libgnunethello.la \
247   $(top_builddir)/src/statistics/libgnunetstatistics.la \
248   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
249   @LIBCURL@ \
250   $(top_builddir)/src/nat/libgnunetnat.la \
251   $(top_builddir)/src/util/libgnunetutil.la 
252 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
253  $(GN_PLUGIN_LDFLAGS)
254 libgnunet_plugin_transport_http_client_la_CFLAGS = \
255  $(CFLAGS) 
256 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
257  @LIBCURL_CPPFLAGS@
258  
259  
260 libgnunet_plugin_transport_http_server_la_SOURCES = \
261   plugin_transport_http_server.c plugin_transport_http_common.c
262 libgnunet_plugin_transport_http_server_la_LIBADD = \
263   $(top_builddir)/src/hello/libgnunethello.la \
264   $(top_builddir)/src/statistics/libgnunetstatistics.la \
265   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
266   $(top_builddir)/src/nat/libgnunetnat.la \
267   $(top_builddir)/src/util/libgnunetutil.la 
268 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
269  $(GN_LIBMHD) \
270  $(GN_PLUGIN_LDFLAGS)
271 libgnunet_plugin_transport_http_server_la_CFLAGS = \
272  $(CFLAGS) 
273
274 libgnunet_plugin_transport_https_client_la_SOURCES = \
275   plugin_transport_http_client.c plugin_transport_http_common.c
276 libgnunet_plugin_transport_https_client_la_LIBADD = \
277   $(top_builddir)/src/hello/libgnunethello.la \
278   $(top_builddir)/src/statistics/libgnunetstatistics.la \
279   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
280   @LIBCURL@ \
281   $(top_builddir)/src/nat/libgnunetnat.la \
282   $(top_builddir)/src/util/libgnunetutil.la 
283 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
284  $(GN_PLUGIN_LDFLAGS)
285 libgnunet_plugin_transport_https_client_la_CFLAGS = \
286  $(CFLAGS) -DBUILD_HTTPS 
287 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
288  @LIBCURL_CPPFLAGS@
289  
290  
291 libgnunet_plugin_transport_https_server_la_SOURCES = \
292   plugin_transport_http_server.c plugin_transport_http_common.c
293 libgnunet_plugin_transport_https_server_la_LIBADD = \
294   $(top_builddir)/src/hello/libgnunethello.la \
295   $(top_builddir)/src/statistics/libgnunetstatistics.la \
296   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
297   $(top_builddir)/src/nat/libgnunetnat.la \
298   $(top_builddir)/src/util/libgnunetutil.la 
299 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
300  $(GN_LIBMHD) \
301  $(GN_PLUGIN_LDFLAGS)
302 libgnunet_plugin_transport_https_server_la_CFLAGS = \
303  $(CFLAGS) -DBUILD_HTTPS 
304
305 check_PROGRAMS = \
306  test_transport_testing_startstop \
307  test_transport_testing_restart \
308  test_transport_testing \
309  test_transport_startonly \
310  test_plugin_tcp \
311  test_plugin_udp \
312  $(UNIX_TEST) \
313  $(WLAN_PLUGIN_TEST) \
314  $(HTTP_CLIENT_PLUGIN_TEST) \
315  $(HTTPS_CLIENT_PLUGIN_TEST) \
316  $(HTTP_SERVER_PLUGIN_TEST) \
317  $(HTTPS_SERVER_PLUGIN_TEST) \
318  test_transport_api_blacklisting \
319  test_transport_api_disconnect_tcp \
320  test_transport_api_bidirectional_connect \
321  test_transport_api_tcp \
322  test_transport_api_restart_1peer \
323  test_transport_api_restart_2peers \
324  test_transport_api_timeout_tcp \
325  test_transport_api_limited_sockets_tcp \
326  test_transport_api_tcp_nat \
327  test_transport_api_udp \
328  test_transport_api_timeout_udp \
329  $(UNIX_PLUGIN_TEST) \
330  $(UNIX_PLUGIN_TIMEOUT_TEST) \
331  test_transport_api_udp_nat \
332  $(HTTP_API_TEST) \
333  $(HTTP_REVERSE_API_TEST) \
334  $(HTTP_API_TIMEOUT_TEST) \
335  $(HTTPS_API_TEST) \
336  $(HTTPS_API_TIMEOUT_TEST) \
337  $(WLAN_API_TEST) \
338  test_transport_api_multi \
339  test_transport_api_reliability_tcp \
340  test_transport_api_reliability_tcp_nat \
341  test_transport_api_unreliability_udp \
342  test_transport_api_unreliability_constant_udp \
343  $(UNIX_REL_TEST) \
344  $(HTTP_REL_TEST) \
345  $(HTTPS_REL_TEST) \
346  $(WLAN_REL_TEST) \
347  $(WLAN_UREL_TEST) \
348  test_quota_compliance_tcp \
349  test_quota_compliance_tcp_asymmetric \
350  test_quota_compliance_udp \
351  $(UNIX_QUOTA_TEST) \
352  $(HTTP_QUOTA_TEST) \
353  $(HTTPS_QUOTA_TEST) \
354  $(WLAN_QUOTA_TEST)
355
356 if ENABLE_TEST_RUN
357 TESTS = \
358  test_transport_testing_startstop \
359  test_transport_testing_restart \
360  test_transport_testing \
361  test_transport_startonly \
362  test_plugin_tcp \
363  test_plugin_udp \
364  $(UNIX_TEST) \
365  $(WLAN_PLUGIN_TEST) \
366  test_transport_api_blacklisting \
367  test_transport_api_disconnect_tcp \
368  test_transport_api_bidirectional_connect \
369  test_transport_api_tcp \
370  test_transport_api_restart_1peer \
371  test_transport_api_restart_2peers \
372  test_transport_api_timeout_tcp \
373  test_transport_api_limited_sockets_tcp \
374  test_transport_api_tcp_nat \
375  test_transport_api_udp \
376  test_transport_api_timeout_udp \
377  $(UNIX_PLUGIN_TEST) \
378  $(UNIX_PLUGIN_TIMEOUT_TEST) \
379  test_transport_api_udp_nat \
380  $(HTTP_API_TEST) \
381  $(HTTP_REVERSE_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 #if FALSE
668 test_transport_api_http_reverse_SOURCES = \
669  test_transport_api.c
670 test_transport_api_http_reverse_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  #endif
676  
677 test_transport_api_timeout_http_SOURCES = \
678  test_transport_api_timeout.c
679 test_transport_api_timeout_http_LDADD = \
680  $(top_builddir)/src/transport/libgnunettransport.la \
681  $(top_builddir)/src/hello/libgnunethello.la \
682  $(top_builddir)/src/util/libgnunetutil.la \
683  $(top_builddir)/src/transport/libgnunettransporttesting.la  
684
685 test_transport_api_reliability_http_SOURCES = \
686  test_transport_api_reliability.c
687 test_transport_api_reliability_http_LDADD = \
688  $(top_builddir)/src/transport/libgnunettransport.la \
689  $(top_builddir)/src/hello/libgnunethello.la \
690  $(top_builddir)/src/util/libgnunetutil.la \
691  $(top_builddir)/src/transport/libgnunettransporttesting.la 
692
693 test_quota_compliance_http_SOURCES = \
694  test_quota_compliance.c
695 test_quota_compliance_http_LDADD = \
696  $(top_builddir)/src/transport/libgnunettransport.la \
697  $(top_builddir)/src/hello/libgnunethello.la \
698  $(top_builddir)/src/util/libgnunetutil.la \
699  $(top_builddir)/src/transport/libgnunettransporttesting.la 
700
701 test_quota_compliance_http_asymmetric_SOURCES = \
702  test_quota_compliance.c
703 test_quota_compliance_http_asymmetric_LDADD = \
704  $(top_builddir)/src/transport/libgnunettransport.la \
705  $(top_builddir)/src/hello/libgnunethello.la \
706  $(top_builddir)/src/util/libgnunetutil.la \
707  $(top_builddir)/src/transport/libgnunettransporttesting.la
708
709 test_quota_compliance_https_SOURCES = \
710  test_quota_compliance.c
711 test_quota_compliance_https_LDADD = \
712  $(top_builddir)/src/transport/libgnunettransport.la \
713  $(top_builddir)/src/hello/libgnunethello.la \
714  $(top_builddir)/src/util/libgnunetutil.la \
715  $(top_builddir)/src/transport/libgnunettransporttesting.la
716
717 test_quota_compliance_https_asymmetric_SOURCES = \
718  test_quota_compliance.c
719 test_quota_compliance_https_asymmetric_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 # HTTPS tests
726 test_transport_api_https_SOURCES = \
727  test_transport_api.c
728 test_transport_api_https_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_timeout_https_SOURCES = \
735  test_transport_api_timeout.c
736 test_transport_api_timeout_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
743 test_transport_api_reliability_https_SOURCES = \
744  test_transport_api_reliability.c
745 test_transport_api_reliability_https_LDADD = \
746  $(top_builddir)/src/transport/libgnunettransport.la \
747  $(top_builddir)/src/hello/libgnunethello.la \
748  $(top_builddir)/src/util/libgnunetutil.la \
749  $(top_builddir)/src/transport/libgnunettransporttesting.la 
750
751 test_transport_api_unreliability_unix_SOURCES = \
752  test_transport_api_unreliability.c
753 test_transport_api_unreliability_unix_LDADD = \
754  $(top_builddir)/src/transport/libgnunettransport.la \
755  $(top_builddir)/src/hello/libgnunethello.la \
756  $(top_builddir)/src/util/libgnunetutil.la \
757  $(top_builddir)/src/transport/libgnunettransporttesting.la 
758
759 test_transport_api_unreliability_udp_SOURCES = \
760  test_transport_api_unreliability.c
761 test_transport_api_unreliability_udp_LDADD = \
762  $(top_builddir)/src/transport/libgnunettransport.la \
763  $(top_builddir)/src/hello/libgnunethello.la \
764  $(top_builddir)/src/util/libgnunetutil.la \
765  $(top_builddir)/src/transport/libgnunettransporttesting.la 
766
767 test_transport_api_unreliability_constant_udp_SOURCES = \
768  test_transport_api_unreliability_constant.c
769 test_transport_api_unreliability_constant_udp_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
775 if LINUX
776 test_transport_api_wlan_SOURCES = \
777  test_transport_api.c
778 test_transport_api_wlan_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 endif
784
785 test_quota_compliance_tcp_SOURCES = \
786  test_quota_compliance.c
787 test_quota_compliance_tcp_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_quota_compliance_tcp_asymmetric_SOURCES = \
794  test_quota_compliance.c
795 test_quota_compliance_tcp_asymmetric_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_quota_compliance_udp_SOURCES = \
802  test_quota_compliance.c
803 test_quota_compliance_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 test_quota_compliance_unix_SOURCES = \
810  test_quota_compliance.c
811 test_quota_compliance_unix_LDADD = \
812  $(top_builddir)/src/transport/libgnunettransport.la \
813  $(top_builddir)/src/hello/libgnunethello.la \
814  $(top_builddir)/src/util/libgnunetutil.la \
815  $(top_builddir)/src/transport/libgnunettransporttesting.la
816
817 test_quota_compliance_unix_asymmetric_SOURCES = \
818  test_quota_compliance.c
819 test_quota_compliance_unix_asymmetric_LDADD = \
820  $(top_builddir)/src/transport/libgnunettransport.la \
821  $(top_builddir)/src/hello/libgnunethello.la \
822  $(top_builddir)/src/util/libgnunetutil.la \
823  $(top_builddir)/src/transport/libgnunettransporttesting.la
824
825 test_quota_compliance_wlan_SOURCES = \
826  test_quota_compliance.c
827 test_quota_compliance_wlan_LDADD = \
828  $(top_builddir)/src/transport/libgnunettransport.la \
829  $(top_builddir)/src/hello/libgnunethello.la \
830  $(top_builddir)/src/util/libgnunetutil.la \
831  $(top_builddir)/src/transport/libgnunettransporttesting.la
832
833 test_quota_compliance_wlan_asymmetric_SOURCES = \
834  test_quota_compliance.c
835 test_quota_compliance_wlan_asymmetric_LDADD = \
836  $(top_builddir)/src/transport/libgnunettransport.la \
837  $(top_builddir)/src/hello/libgnunethello.la \
838  $(top_builddir)/src/util/libgnunetutil.la \
839  $(top_builddir)/src/transport/libgnunettransporttesting.la
840
841 test_transport_api_multi_SOURCES = \
842  test_transport_api.c
843 test_transport_api_multi_LDADD = \
844  $(top_builddir)/src/transport/libgnunettransport.la \
845  $(top_builddir)/src/hello/libgnunethello.la \
846  $(top_builddir)/src/util/libgnunetutil.la \
847  $(top_builddir)/src/transport/libgnunettransporttesting.la 
848
849
850 EXTRA_DIST = \
851 gnunet-transport-certificate-creation \
852 template_cfg_peer1.conf\
853 template_cfg_peer2.conf\
854 test_plugin_transport_data.conf\
855 test_plugin_transport_data_udp.conf\
856 test_quota_compliance_data.conf\
857 test_quota_compliance_http_peer1.conf\
858 test_quota_compliance_http_peer2.conf\
859 test_quota_compliance_https_peer1.conf\
860 test_quota_compliance_https_peer2.conf\
861 test_quota_compliance_tcp_peer1.conf\
862 test_quota_compliance_tcp_peer2.conf\
863 test_quota_compliance_udp_peer1.conf\
864 test_quota_compliance_udp_peer2.conf\
865 test_quota_compliance_unix_peer1.conf\
866 test_quota_compliance_unix_peer2.conf\
867 test_quota_compliance_http_asymmetric_peer1.conf\
868 test_quota_compliance_http_asymmetric_peer2.conf\
869 test_quota_compliance_https_asymmetric_peer1.conf\
870 test_quota_compliance_https_asymmetric_peer2.conf\
871 test_quota_compliance_tcp_asymmetric_peer1.conf\
872 test_quota_compliance_tcp_asymmetric_peer2.conf\
873 test_quota_compliance_unix_asymmetric_peer1.conf\
874 test_quota_compliance_unix_asymmetric_peer2.conf\
875 test_transport_api_data.conf\
876 test_transport_api_http_peer1.conf\
877 test_transport_api_http_peer2.conf\
878 test_transport_api_https_peer1.conf\
879 test_transport_api_https_peer2.conf\
880 test_transport_api_limited_sockets_tcp_peer1.conf\
881 test_transport_api_limited_sockets_tcp_peer2.conf\
882 test_transport_api_timeout_tcp_peer1.conf\
883 test_transport_api_timeout_tcp_peer2.conf\
884 test_transport_api_multi_peer1.conf\
885 test_transport_api_multi_peer2.conf\
886 test_transport_api_reliability_http_peer1.conf\
887 test_transport_api_reliability_http_peer2.conf\
888 test_transport_api_reliability_https_peer1.conf\
889 test_transport_api_reliability_https_peer2.conf\
890 test_transport_api_reliability_tcp_nat_peer1.conf\
891 test_transport_api_reliability_tcp_nat_peer2.conf\
892 test_transport_api_reliability_tcp_peer1.conf\
893 test_transport_api_reliability_tcp_peer2.conf\
894 test_transport_api_reliability_wlan_peer1.conf\
895 test_transport_api_reliability_wlan_peer2.conf\
896 test_transport_api_bidirectional_connect_peer1.conf\
897 test_transport_api_bidirectional_connect_peer2.conf\
898 test_transport_api_tcp_nat_peer1.conf\
899 test_transport_api_tcp_nat_peer2.conf\
900 test_transport_api_tcp_peer1.conf\
901 test_transport_api_tcp_peer2.conf\
902 test_transport_api_udp_nat_peer1.conf\
903 test_transport_api_udp_nat_peer2.conf\
904 test_transport_api_udp_peer1.conf\
905 test_transport_api_udp_peer2.conf\
906 test_transport_api_timeout_udp_peer1.conf\
907 test_transport_api_timeout_udp_peer2.conf\
908 test_transport_api_unix_peer1.conf\
909 test_transport_api_unix_peer2.conf\
910 test_transport_api_timeout_unix_peer1.conf\
911 test_transport_api_timeout_unix_peer2.conf\
912 test_transport_api_unreliability_udp_peer1.conf\
913 test_transport_api_unreliability_udp_peer2.conf\
914 test_transport_api_unreliability_unix_peer1.conf\
915 test_transport_api_unreliability_unix_peer2.conf\
916 test_transport_api_unreliability_wlan_peer1.conf\
917 test_transport_api_unreliability_wlan_peer2.conf\
918 test_transport_api_wlan_peer1.conf\
919 test_transport_api_wlan_peer2.conf\
920 test_transport_defaults.conf\
921 test_transport_startonly.conf\
922 test_transport_api_disconnect_tcp_peer1.conf\
923 test_transport_api_disconnect_tcp_peer2.conf\
924 test_transport_api_timeout_http_peer1.conf\
925 test_transport_api_timeout_http_peer2.conf\
926 test_transport_api_timeout_https_peer1.conf\
927 test_transport_api_timeout_https_peer2.conf\
928 test_transport_api_unreliability_constant_udp_peer1.conf\
929 test_transport_api_unreliability_constant_udp_peer2.conf\
930 test_transport_api_http_reverse_peer1.conf \
931 test_transport_api_http_reverse_peer2.conf