4ac2678b0053db0880c6b4a63f6bb248f159612b
[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
172 plugin_LTLIBRARIES = \
173   libgnunet_plugin_transport_tcp.la \
174   libgnunet_plugin_transport_udp.la \
175   $(UNIX_PLUGIN_LA) \
176   $(HTTP_CLIENT_PLUGIN_LA) \
177   $(HTTPS_CLIENT_PLUGIN_LA) \
178   $(HTTP_SERVER_PLUGIN_LA) \
179   $(HTTPS_SERVER_PLUGIN_LA) \
180   $(WLAN_PLUGIN_LA) \
181   libgnunet_plugin_transport_template.la
182
183 libgnunet_plugin_transport_tcp_la_SOURCES = \
184   plugin_transport_tcp.c
185 libgnunet_plugin_transport_tcp_la_LIBADD = \
186   $(top_builddir)/src/hello/libgnunethello.la \
187   $(top_builddir)/src/statistics/libgnunetstatistics.la \
188   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
189   $(top_builddir)/src/nat/libgnunetnat.la \
190   $(top_builddir)/src/util/libgnunetutil.la \
191   $(LTLIBINTL)
192 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
193  $(GN_PLUGIN_LDFLAGS)
194
195 libgnunet_plugin_transport_template_la_SOURCES = \
196   plugin_transport_template.c
197 libgnunet_plugin_transport_template_la_LIBADD = \
198   $(top_builddir)/src/util/libgnunetutil.la \
199   $(LTLIBINTL)
200 libgnunet_plugin_transport_template_la_LDFLAGS = \
201  $(GN_PLUGIN_LDFLAGS)
202
203 libgnunet_plugin_transport_wlan_la_SOURCES = \
204   plugin_transport_wlan.c plugin_transport_wlan.h
205 libgnunet_plugin_transport_wlan_la_LIBADD = \
206   $(top_builddir)/src/hello/libgnunethello.la \
207   $(top_builddir)/src/statistics/libgnunetstatistics.la \
208   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
209   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
210   $(top_builddir)/src/util/libgnunetutil.la 
211 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
212   $(GN_PLUGIN_LDFLAGS)
213
214 libgnunet_plugin_transport_udp_la_SOURCES = \
215   plugin_transport_udp.c plugin_transport_udp.h \
216   plugin_transport_udp_broadcasting.c
217 libgnunet_plugin_transport_udp_la_LIBADD = \
218   $(top_builddir)/src/hello/libgnunethello.la \
219   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
220   $(top_builddir)/src/statistics/libgnunetstatistics.la \
221   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
222   $(top_builddir)/src/nat/libgnunetnat.la \
223   $(top_builddir)/src/util/libgnunetutil.la \
224   $(LTLIBINTL)
225 libgnunet_plugin_transport_udp_la_LDFLAGS = \
226  $(GN_PLUGIN_LDFLAGS)
227
228 libgnunet_plugin_transport_unix_la_SOURCES = \
229   plugin_transport_unix.c
230 libgnunet_plugin_transport_unix_la_LIBADD = \
231   $(top_builddir)/src/hello/libgnunethello.la \
232   $(top_builddir)/src/statistics/libgnunetstatistics.la \
233   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
234   $(top_builddir)/src/util/libgnunetutil.la \
235   $(LTLIBINTL)
236 libgnunet_plugin_transport_unix_la_LDFLAGS = \
237  $(GN_PLUGIN_LDFLAGS)
238  
239  
240 libgnunet_plugin_transport_http_client_la_SOURCES = \
241   plugin_transport_http_client.c plugin_transport_http_common.c
242 libgnunet_plugin_transport_http_client_la_LIBADD = \
243   $(top_builddir)/src/hello/libgnunethello.la \
244   $(top_builddir)/src/statistics/libgnunetstatistics.la \
245   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
246   @LIBCURL@ \
247   $(top_builddir)/src/nat/libgnunetnat.la \
248   $(top_builddir)/src/util/libgnunetutil.la 
249 libgnunet_plugin_transport_http_client_la_LDFLAGS = \
250  $(GN_PLUGIN_LDFLAGS)
251 libgnunet_plugin_transport_http_client_la_CFLAGS = \
252  $(CFLAGS) 
253 libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
254  @LIBCURL_CPPFLAGS@
255  
256  
257 libgnunet_plugin_transport_http_server_la_SOURCES = \
258   plugin_transport_http_server.c plugin_transport_http_common.c
259 libgnunet_plugin_transport_http_server_la_LIBADD = \
260   $(top_builddir)/src/hello/libgnunethello.la \
261   $(top_builddir)/src/statistics/libgnunetstatistics.la \
262   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
263   $(top_builddir)/src/nat/libgnunetnat.la \
264   $(top_builddir)/src/util/libgnunetutil.la 
265 libgnunet_plugin_transport_http_server_la_LDFLAGS = \
266  $(GN_LIBMHD) \
267  $(GN_PLUGIN_LDFLAGS)
268 libgnunet_plugin_transport_http_server_la_CFLAGS = \
269  $(CFLAGS) 
270
271 libgnunet_plugin_transport_https_client_la_SOURCES = \
272   plugin_transport_http_client.c plugin_transport_http_common.c
273 libgnunet_plugin_transport_https_client_la_LIBADD = \
274   $(top_builddir)/src/hello/libgnunethello.la \
275   $(top_builddir)/src/statistics/libgnunetstatistics.la \
276   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
277   @LIBCURL@ \
278   $(top_builddir)/src/nat/libgnunetnat.la \
279   $(top_builddir)/src/util/libgnunetutil.la 
280 libgnunet_plugin_transport_https_client_la_LDFLAGS = \
281  $(GN_PLUGIN_LDFLAGS)
282 libgnunet_plugin_transport_https_client_la_CFLAGS = \
283  $(CFLAGS) -DBUILD_HTTPS 
284 libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
285  @LIBCURL_CPPFLAGS@
286  
287  
288 libgnunet_plugin_transport_https_server_la_SOURCES = \
289   plugin_transport_http_server.c plugin_transport_http_common.c
290 libgnunet_plugin_transport_https_server_la_LIBADD = \
291   $(top_builddir)/src/hello/libgnunethello.la \
292   $(top_builddir)/src/statistics/libgnunetstatistics.la \
293   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
294   $(top_builddir)/src/nat/libgnunetnat.la \
295   $(top_builddir)/src/util/libgnunetutil.la 
296 libgnunet_plugin_transport_https_server_la_LDFLAGS = \
297  $(GN_LIBMHD) \
298  $(GN_PLUGIN_LDFLAGS)
299 libgnunet_plugin_transport_https_server_la_CFLAGS = \
300  $(CFLAGS) -DBUILD_HTTPS 
301
302 check_PROGRAMS = \
303  test_transport_testing_startstop \
304  test_transport_testing_restart \
305  test_transport_testing \
306  test_transport_startonly \
307  test_plugin_tcp \
308  test_plugin_udp \
309  $(UNIX_TEST) \
310  $(WLAN_PLUGIN_TEST) \
311  $(HTTP_CLIENT_PLUGIN_TEST) \
312  $(HTTPS_CLIENT_PLUGIN_TEST) \
313  $(HTTP_SERVER_PLUGIN_TEST) \
314  $(HTTPS_SERVER_PLUGIN_TEST) \
315  test_transport_api_blacklisting \
316  test_transport_api_disconnect_tcp \
317  test_transport_api_bidirectional_connect \
318  test_transport_api_tcp \
319  test_transport_api_restart_1peer \
320  test_transport_api_restart_2peers \
321  test_transport_api_timeout_tcp \
322  test_transport_api_limited_sockets_tcp \
323  test_transport_api_tcp_nat \
324  test_transport_api_udp \
325  test_transport_api_timeout_udp \
326  $(UNIX_PLUGIN_TEST) \
327  $(UNIX_PLUGIN_TIMEOUT_TEST) \
328  test_transport_api_udp_nat \
329  $(HTTP_API_TEST) \
330  $(HTTP_REVERSE_API_TEST) \
331  $(HTTP_API_TIMEOUT_TEST) \
332  $(HTTPS_API_TEST) \
333  $(HTTPS_API_TIMEOUT_TEST) \
334  $(WLAN_API_TEST) \
335  test_transport_api_multi \
336  test_transport_api_reliability_tcp \
337  test_transport_api_reliability_tcp_nat \
338  test_transport_api_unreliability_udp \
339  test_transport_api_unreliability_constant_udp \
340  $(UNIX_REL_TEST) \
341  $(HTTP_REL_TEST) \
342  $(HTTPS_REL_TEST) \
343  $(WLAN_REL_TEST) \
344  $(WLAN_UREL_TEST) \
345  test_quota_compliance_tcp \
346  test_quota_compliance_tcp_asymmetric \
347  test_quota_compliance_udp \
348  $(UNIX_QUOTA_TEST) \
349  $(HTTP_QUOTA_TEST) \
350  $(HTTPS_QUOTA_TEST) \
351  $(WLAN_QUOTA_TEST)
352
353 if ENABLE_TEST_RUN
354 TESTS = \
355  test_transport_testing_startstop \
356  test_transport_testing_restart \
357  test_transport_testing \
358  test_transport_startonly \
359  test_plugin_tcp \
360  test_plugin_udp \
361  $(UNIX_TEST) \
362  $(WLAN_PLUGIN_TEST) \
363  test_transport_api_blacklisting \
364  test_transport_api_disconnect_tcp \
365  test_transport_api_bidirectional_connect \
366  test_transport_api_tcp \
367  test_transport_api_restart_1peer \
368  test_transport_api_restart_2peers \
369  test_transport_api_timeout_tcp \
370  test_transport_api_limited_sockets_tcp \
371  test_transport_api_tcp_nat \
372  test_transport_api_udp \
373  test_transport_api_timeout_udp \
374  $(UNIX_PLUGIN_TEST) \
375  $(UNIX_PLUGIN_TIMEOUT_TEST) \
376  test_transport_api_udp_nat \
377  $(HTTP_API_TEST) \
378  $(HTTP_REVERSE_API_TEST) \
379  $(HTTP_API_TIMEOUT_TEST) \
380  $(HTTPS_API_TEST) \
381  $(HTTPS_API_TIMEOUT_TEST) \
382  $(WLAN_API_TEST) \
383  test_transport_api_multi \
384  test_transport_api_reliability_tcp \
385  test_transport_api_reliability_tcp_nat \
386  test_transport_api_unreliability_udp \
387  test_transport_api_unreliability_constant_udp \
388  $(UNIX_REL_TEST) \
389  $(HTTP_REL_TEST) \
390  $(HTTPS_REL_TEST) \
391  $(WLAN_REL_TEST) \
392  $(WLAN_UREL_TEST) \
393  test_quota_compliance_tcp \
394  test_quota_compliance_tcp_asymmetric \
395  test_quota_compliance_udp \
396  $(UNIX_QUOTA_TEST) \
397  $(HTTP_QUOTA_TEST) \
398  $(HTTPS_QUOTA_TEST)
399 endif
400
401 test_transport_testing_startstop_SOURCES = \
402  test_transport_testing_startstop.c
403 test_transport_testing_startstop_LDADD = \
404  $(top_builddir)/src/util/libgnunetutil.la \
405  $(top_builddir)/src/transport/libgnunettransport.la \
406  $(top_builddir)/src/hello/libgnunethello.la \
407  $(top_builddir)/src/transport/libgnunettransporttesting.la 
408
409 test_transport_testing_restart_SOURCES = \
410  test_transport_testing_restart.c
411 test_transport_testing_restart_LDADD = \
412  $(top_builddir)/src/util/libgnunetutil.la \
413  $(top_builddir)/src/transport/libgnunettransport.la \
414  $(top_builddir)/src/hello/libgnunethello.la \
415  $(top_builddir)/src/transport/libgnunettransporttesting.la 
416
417 test_transport_testing_SOURCES = \
418  test_transport_testing.c
419 test_transport_testing_LDADD = \
420  $(top_builddir)/src/util/libgnunetutil.la \
421  $(top_builddir)/src/transport/libgnunettransport.la \
422  $(top_builddir)/src/hello/libgnunethello.la \
423  $(top_builddir)/src/transport/libgnunettransporttesting.la 
424
425
426 test_transport_api_blacklisting_SOURCES = \
427  test_transport_api_blacklisting.c
428 test_transport_api_blacklisting_LDADD = \
429  $(top_builddir)/src/transport/libgnunettransport.la \
430  $(top_builddir)/src/hello/libgnunethello.la \
431  $(top_builddir)/src/statistics/libgnunetstatistics.la \
432  $(top_builddir)/src/util/libgnunetutil.la \
433  $(top_builddir)/src/transport/libgnunettransporttesting.la 
434
435 test_transport_api_disconnect_tcp_SOURCES = \
436  test_transport_api_disconnect.c
437 test_transport_api_disconnect_tcp_LDADD = \
438  $(top_builddir)/src/transport/libgnunettransport.la \
439  $(top_builddir)/src/hello/libgnunethello.la \
440  $(top_builddir)/src/statistics/libgnunetstatistics.la \
441  $(top_builddir)/src/util/libgnunetutil.la \
442  $(top_builddir)/src/transport/libgnunettransporttesting.la 
443
444 test_transport_startonly_SOURCES = \
445  test_transport_startonly.c
446 test_transport_startonly_LDADD = \
447  $(top_builddir)/src/transport/libgnunettransport.la \
448  $(top_builddir)/src/hello/libgnunethello.la \
449  $(top_builddir)/src/statistics/libgnunetstatistics.la \
450  $(top_builddir)/src/util/libgnunetutil.la \
451  $(top_builddir)/src/transport/libgnunettransporttesting.la 
452
453 test_plugin_tcp_SOURCES = \
454  test_plugin_transport.c
455 test_plugin_tcp_LDADD = \
456  $(top_builddir)/src/transport/libgnunettransport.la \
457  $(top_builddir)/src/statistics/libgnunetstatistics.la \
458  $(top_builddir)/src/hello/libgnunethello.la \
459  $(top_builddir)/src/util/libgnunetutil.la  \
460  $(top_builddir)/src/transport/libgnunettransporttesting.la
461  
462 test_plugin_udp_SOURCES = \
463  test_plugin_transport.c
464 test_plugin_udp_LDADD = \
465  $(top_builddir)/src/transport/libgnunettransport.la \
466  $(top_builddir)/src/statistics/libgnunetstatistics.la \
467  $(top_builddir)/src/hello/libgnunethello.la \
468  $(top_builddir)/src/util/libgnunetutil.la  \
469  $(top_builddir)/src/transport/libgnunettransporttesting.la
470
471 test_plugin_unix_SOURCES = \
472  test_plugin_transport.c
473 test_plugin_unix_LDADD = \
474  $(top_builddir)/src/transport/libgnunettransport.la \
475  $(top_builddir)/src/statistics/libgnunetstatistics.la \
476  $(top_builddir)/src/hello/libgnunethello.la \
477  $(top_builddir)/src/util/libgnunetutil.la  \
478  $(top_builddir)/src/transport/libgnunettransporttesting.la
479
480 test_plugin_wlan_SOURCES = \
481  test_plugin_transport.c
482 test_plugin_wlan_LDADD = \
483  $(top_builddir)/src/transport/libgnunettransport.la \
484  $(top_builddir)/src/statistics/libgnunetstatistics.la \
485  $(top_builddir)/src/hello/libgnunethello.la \
486  $(top_builddir)/src/util/libgnunetutil.la  \
487  $(top_builddir)/src/transport/libgnunettransporttesting.la 
488
489 test_plugin_http_server_SOURCES = \
490  test_plugin_transport.c
491 test_plugin_http_server_LDADD = \
492  $(top_builddir)/src/transport/libgnunettransport.la \
493  $(top_builddir)/src/statistics/libgnunetstatistics.la \
494  $(top_builddir)/src/hello/libgnunethello.la \
495  $(top_builddir)/src/util/libgnunetutil.la  \
496  $(top_builddir)/src/transport/libgnunettransporttesting.la 
497  
498 test_plugin_https_server_SOURCES = \
499  test_plugin_transport.c
500 test_plugin_https_server_LDADD = \
501  $(top_builddir)/src/transport/libgnunettransport.la \
502  $(top_builddir)/src/statistics/libgnunetstatistics.la \
503  $(top_builddir)/src/hello/libgnunethello.la \
504  $(top_builddir)/src/util/libgnunetutil.la  \
505  $(top_builddir)/src/transport/libgnunettransporttesting.la
506  
507 test_plugin_http_client_SOURCES = \
508  test_plugin_transport.c
509 test_plugin_http_client_LDADD = \
510  $(top_builddir)/src/transport/libgnunettransport.la \
511  $(top_builddir)/src/statistics/libgnunetstatistics.la \
512  $(top_builddir)/src/hello/libgnunethello.la \
513  $(top_builddir)/src/util/libgnunetutil.la  \
514  $(top_builddir)/src/transport/libgnunettransporttesting.la 
515  
516 test_plugin_https_client_SOURCES = \
517  test_plugin_transport.c
518 test_plugin_https_client_LDADD = \
519  $(top_builddir)/src/transport/libgnunettransport.la \
520  $(top_builddir)/src/statistics/libgnunetstatistics.la \
521  $(top_builddir)/src/hello/libgnunethello.la \
522  $(top_builddir)/src/util/libgnunetutil.la  \
523  $(top_builddir)/src/transport/libgnunettransporttesting.la  
524
525 test_transport_api_tcp_SOURCES = \
526  test_transport_api.c
527 test_transport_api_tcp_LDADD = \
528  $(top_builddir)/src/transport/libgnunettransport.la \
529  $(top_builddir)/src/hello/libgnunethello.la \
530  $(top_builddir)/src/util/libgnunetutil.la  \
531  $(top_builddir)/src/transport/libgnunettransporttesting.la
532
533 test_transport_api_bidirectional_connect_SOURCES = \
534  test_transport_api_bidirectional_connect.c
535 test_transport_api_bidirectional_connect_LDADD = \
536  $(top_builddir)/src/transport/libgnunettransport.la \
537  $(top_builddir)/src/hello/libgnunethello.la \
538  $(top_builddir)/src/util/libgnunetutil.la  \
539  $(top_builddir)/src/transport/libgnunettransporttesting.la
540
541 test_transport_api_restart_1peer_SOURCES = \
542  test_transport_api_restart_1peer.c
543 test_transport_api_restart_1peer_LDADD = \
544  $(top_builddir)/src/transport/libgnunettransport.la \
545  $(top_builddir)/src/hello/libgnunethello.la \
546  $(top_builddir)/src/statistics/libgnunetstatistics.la \
547  $(top_builddir)/src/util/libgnunetutil.la \
548  $(top_builddir)/src/transport/libgnunettransporttesting.la 
549
550 test_transport_api_restart_2peers_SOURCES = \
551  test_transport_api_restart_2peers.c
552 test_transport_api_restart_2peers_LDADD = \
553  $(top_builddir)/src/transport/libgnunettransport.la \
554  $(top_builddir)/src/hello/libgnunethello.la \
555  $(top_builddir)/src/statistics/libgnunetstatistics.la \
556  $(top_builddir)/src/util/libgnunetutil.la \
557  $(top_builddir)/src/transport/libgnunettransporttesting.la 
558
559 test_transport_api_limited_sockets_tcp_SOURCES = \
560  test_transport_api_limited_sockets.c
561 test_transport_api_limited_sockets_tcp_LDADD = \
562  $(top_builddir)/src/transport/libgnunettransport.la \
563  $(top_builddir)/src/hello/libgnunethello.la \
564  $(top_builddir)/src/util/libgnunetutil.la  \
565  $(top_builddir)/src/transport/libgnunettransporttesting.la
566
567 test_transport_api_tcp_nat_SOURCES = \
568  test_transport_api.c
569 test_transport_api_tcp_nat_LDADD = \
570  $(top_builddir)/src/transport/libgnunettransport.la \
571  $(top_builddir)/src/hello/libgnunethello.la \
572  $(top_builddir)/src/util/libgnunetutil.la \
573  $(top_builddir)/src/transport/libgnunettransporttesting.la 
574
575 test_transport_api_reliability_tcp_SOURCES = \
576  test_transport_api_reliability.c
577 test_transport_api_reliability_tcp_LDADD = \
578  $(top_builddir)/src/transport/libgnunettransport.la \
579  $(top_builddir)/src/hello/libgnunethello.la \
580  $(top_builddir)/src/util/libgnunetutil.la \
581  $(top_builddir)/src/transport/libgnunettransporttesting.la 
582
583 test_transport_api_timeout_tcp_SOURCES = \
584  test_transport_api_timeout.c
585 test_transport_api_timeout_tcp_LDADD = \
586  $(top_builddir)/src/transport/libgnunettransport.la \
587  $(top_builddir)/src/hello/libgnunethello.la \
588  $(top_builddir)/src/util/libgnunetutil.la \
589  $(top_builddir)/src/transport/libgnunettransporttesting.la 
590
591 test_transport_api_timeout_unix_SOURCES = \
592  test_transport_api_timeout.c
593 test_transport_api_timeout_unix_LDADD = \
594  $(top_builddir)/src/transport/libgnunettransport.la \
595  $(top_builddir)/src/hello/libgnunethello.la \
596  $(top_builddir)/src/util/libgnunetutil.la \
597  $(top_builddir)/src/transport/libgnunettransporttesting.la 
598
599 test_transport_api_reliability_tcp_nat_SOURCES = \
600  test_transport_api_reliability.c
601 test_transport_api_reliability_tcp_nat_LDADD = \
602  $(top_builddir)/src/transport/libgnunettransport.la \
603  $(top_builddir)/src/hello/libgnunethello.la \
604  $(top_builddir)/src/util/libgnunetutil.la \
605  $(top_builddir)/src/transport/libgnunettransporttesting.la 
606
607 test_transport_api_reliability_wlan_SOURCES = \
608  test_transport_api_reliability.c
609 test_transport_api_reliability_wlan_LDADD = \
610  $(top_builddir)/src/transport/libgnunettransport.la \
611  $(top_builddir)/src/hello/libgnunethello.la \
612  $(top_builddir)/src/util/libgnunetutil.la \
613  $(top_builddir)/src/transport/libgnunettransporttesting.la 
614
615 test_transport_api_unreliability_wlan_SOURCES = \
616  test_transport_api_unreliability.c
617 test_transport_api_unreliability_wlan_LDADD = \
618  $(top_builddir)/src/transport/libgnunettransport.la \
619  $(top_builddir)/src/hello/libgnunethello.la \
620  $(top_builddir)/src/util/libgnunetutil.la \
621  $(top_builddir)/src/transport/libgnunettransporttesting.la 
622
623 test_transport_api_udp_SOURCES = \
624  test_transport_api.c
625 test_transport_api_udp_LDADD = \
626  $(top_builddir)/src/transport/libgnunettransport.la \
627  $(top_builddir)/src/hello/libgnunethello.la \
628  $(top_builddir)/src/util/libgnunetutil.la  \
629  $(top_builddir)/src/transport/libgnunettransporttesting.la
630
631 test_transport_api_timeout_udp_SOURCES = \
632  test_transport_api_timeout.c
633 test_transport_api_timeout_udp_LDADD = \
634  $(top_builddir)/src/transport/libgnunettransport.la \
635  $(top_builddir)/src/hello/libgnunethello.la \
636  $(top_builddir)/src/util/libgnunetutil.la \
637  $(top_builddir)/src/transport/libgnunettransporttesting.la  
638
639 test_transport_api_udp_nat_SOURCES = \
640  test_transport_api.c
641 test_transport_api_udp_nat_LDADD = \
642  $(top_builddir)/src/transport/libgnunettransport.la \
643  $(top_builddir)/src/hello/libgnunethello.la \
644  $(top_builddir)/src/util/libgnunetutil.la  \
645  $(top_builddir)/src/transport/libgnunettransporttesting.la  
646
647 test_transport_api_unix_SOURCES = \
648  test_transport_api.c
649 test_transport_api_unix_LDADD = \
650  $(top_builddir)/src/transport/libgnunettransport.la \
651  $(top_builddir)/src/hello/libgnunethello.la \
652  $(top_builddir)/src/util/libgnunetutil.la \
653  $(top_builddir)/src/transport/libgnunettransporttesting.la 
654
655 # HTTP tests
656 test_transport_api_http_SOURCES = \
657  test_transport_api.c
658 test_transport_api_http_LDADD = \
659  $(top_builddir)/src/transport/libgnunettransport.la \
660  $(top_builddir)/src/hello/libgnunethello.la \
661  $(top_builddir)/src/util/libgnunetutil.la \
662  $(top_builddir)/src/transport/libgnunettransporttesting.la
663  
664 #if FALSE
665 test_transport_api_http_reverse_SOURCES = \
666  test_transport_api.c
667 test_transport_api_http_reverse_LDADD = \
668  $(top_builddir)/src/transport/libgnunettransport.la \
669  $(top_builddir)/src/hello/libgnunethello.la \
670  $(top_builddir)/src/util/libgnunetutil.la \
671  $(top_builddir)/src/transport/libgnunettransporttesting.la
672  #endif
673  
674 test_transport_api_timeout_http_SOURCES = \
675  test_transport_api_timeout.c
676 test_transport_api_timeout_http_LDADD = \
677  $(top_builddir)/src/transport/libgnunettransport.la \
678  $(top_builddir)/src/hello/libgnunethello.la \
679  $(top_builddir)/src/util/libgnunetutil.la \
680  $(top_builddir)/src/transport/libgnunettransporttesting.la  
681
682 test_transport_api_reliability_http_SOURCES = \
683  test_transport_api_reliability.c
684 test_transport_api_reliability_http_LDADD = \
685  $(top_builddir)/src/transport/libgnunettransport.la \
686  $(top_builddir)/src/hello/libgnunethello.la \
687  $(top_builddir)/src/util/libgnunetutil.la \
688  $(top_builddir)/src/transport/libgnunettransporttesting.la 
689
690 test_quota_compliance_http_SOURCES = \
691  test_quota_compliance.c
692 test_quota_compliance_http_LDADD = \
693  $(top_builddir)/src/transport/libgnunettransport.la \
694  $(top_builddir)/src/hello/libgnunethello.la \
695  $(top_builddir)/src/util/libgnunetutil.la \
696  $(top_builddir)/src/transport/libgnunettransporttesting.la 
697
698 test_quota_compliance_http_asymmetric_SOURCES = \
699  test_quota_compliance.c
700 test_quota_compliance_http_asymmetric_LDADD = \
701  $(top_builddir)/src/transport/libgnunettransport.la \
702  $(top_builddir)/src/hello/libgnunethello.la \
703  $(top_builddir)/src/util/libgnunetutil.la \
704  $(top_builddir)/src/transport/libgnunettransporttesting.la
705
706 test_quota_compliance_https_SOURCES = \
707  test_quota_compliance.c
708 test_quota_compliance_https_LDADD = \
709  $(top_builddir)/src/transport/libgnunettransport.la \
710  $(top_builddir)/src/hello/libgnunethello.la \
711  $(top_builddir)/src/util/libgnunetutil.la \
712  $(top_builddir)/src/transport/libgnunettransporttesting.la
713
714 test_quota_compliance_https_asymmetric_SOURCES = \
715  test_quota_compliance.c
716 test_quota_compliance_https_asymmetric_LDADD = \
717  $(top_builddir)/src/transport/libgnunettransport.la \
718  $(top_builddir)/src/hello/libgnunethello.la \
719  $(top_builddir)/src/util/libgnunetutil.la \
720  $(top_builddir)/src/transport/libgnunettransporttesting.la
721
722 # HTTPS tests
723 test_transport_api_https_SOURCES = \
724  test_transport_api.c
725 test_transport_api_https_LDADD = \
726  $(top_builddir)/src/transport/libgnunettransport.la \
727  $(top_builddir)/src/hello/libgnunethello.la \
728  $(top_builddir)/src/util/libgnunetutil.la  \
729  $(top_builddir)/src/transport/libgnunettransporttesting.la 
730  
731 test_transport_api_timeout_https_SOURCES = \
732  test_transport_api_timeout.c
733 test_transport_api_timeout_https_LDADD = \
734  $(top_builddir)/src/transport/libgnunettransport.la \
735  $(top_builddir)/src/hello/libgnunethello.la \
736  $(top_builddir)/src/util/libgnunetutil.la \
737  $(top_builddir)/src/transport/libgnunettransporttesting.la  
738  
739
740 test_transport_api_reliability_https_SOURCES = \
741  test_transport_api_reliability.c
742 test_transport_api_reliability_https_LDADD = \
743  $(top_builddir)/src/transport/libgnunettransport.la \
744  $(top_builddir)/src/hello/libgnunethello.la \
745  $(top_builddir)/src/util/libgnunetutil.la \
746  $(top_builddir)/src/transport/libgnunettransporttesting.la 
747
748 test_transport_api_unreliability_unix_SOURCES = \
749  test_transport_api_unreliability.c
750 test_transport_api_unreliability_unix_LDADD = \
751  $(top_builddir)/src/transport/libgnunettransport.la \
752  $(top_builddir)/src/hello/libgnunethello.la \
753  $(top_builddir)/src/util/libgnunetutil.la \
754  $(top_builddir)/src/transport/libgnunettransporttesting.la 
755
756 test_transport_api_unreliability_udp_SOURCES = \
757  test_transport_api_unreliability.c
758 test_transport_api_unreliability_udp_LDADD = \
759  $(top_builddir)/src/transport/libgnunettransport.la \
760  $(top_builddir)/src/hello/libgnunethello.la \
761  $(top_builddir)/src/util/libgnunetutil.la \
762  $(top_builddir)/src/transport/libgnunettransporttesting.la 
763
764 test_transport_api_unreliability_constant_udp_SOURCES = \
765  test_transport_api_unreliability_constant.c
766 test_transport_api_unreliability_constant_udp_LDADD = \
767  $(top_builddir)/src/transport/libgnunettransport.la \
768  $(top_builddir)/src/hello/libgnunethello.la \
769  $(top_builddir)/src/util/libgnunetutil.la \
770  $(top_builddir)/src/transport/libgnunettransporttesting.la 
771
772 if LINUX
773 test_transport_api_wlan_SOURCES = \
774  test_transport_api.c
775 test_transport_api_wlan_LDADD = \
776  $(top_builddir)/src/transport/libgnunettransport.la \
777  $(top_builddir)/src/hello/libgnunethello.la \
778  $(top_builddir)/src/util/libgnunetutil.la \
779  $(top_builddir)/src/transport/libgnunettransporttesting.la  
780 endif
781
782 test_quota_compliance_tcp_SOURCES = \
783  test_quota_compliance.c
784 test_quota_compliance_tcp_LDADD = \
785  $(top_builddir)/src/transport/libgnunettransport.la \
786  $(top_builddir)/src/hello/libgnunethello.la \
787  $(top_builddir)/src/util/libgnunetutil.la \
788  $(top_builddir)/src/transport/libgnunettransporttesting.la 
789
790 test_quota_compliance_tcp_asymmetric_SOURCES = \
791  test_quota_compliance.c
792 test_quota_compliance_tcp_asymmetric_LDADD = \
793  $(top_builddir)/src/transport/libgnunettransport.la \
794  $(top_builddir)/src/hello/libgnunethello.la \
795  $(top_builddir)/src/util/libgnunetutil.la \
796  $(top_builddir)/src/transport/libgnunettransporttesting.la 
797
798 test_quota_compliance_udp_SOURCES = \
799  test_quota_compliance.c
800 test_quota_compliance_udp_LDADD = \
801  $(top_builddir)/src/transport/libgnunettransport.la \
802  $(top_builddir)/src/hello/libgnunethello.la \
803  $(top_builddir)/src/util/libgnunetutil.la \
804  $(top_builddir)/src/transport/libgnunettransporttesting.la
805
806 test_quota_compliance_unix_SOURCES = \
807  test_quota_compliance.c
808 test_quota_compliance_unix_LDADD = \
809  $(top_builddir)/src/transport/libgnunettransport.la \
810  $(top_builddir)/src/hello/libgnunethello.la \
811  $(top_builddir)/src/util/libgnunetutil.la \
812  $(top_builddir)/src/transport/libgnunettransporttesting.la
813
814 test_quota_compliance_unix_asymmetric_SOURCES = \
815  test_quota_compliance.c
816 test_quota_compliance_unix_asymmetric_LDADD = \
817  $(top_builddir)/src/transport/libgnunettransport.la \
818  $(top_builddir)/src/hello/libgnunethello.la \
819  $(top_builddir)/src/util/libgnunetutil.la \
820  $(top_builddir)/src/transport/libgnunettransporttesting.la
821
822 test_quota_compliance_wlan_SOURCES = \
823  test_quota_compliance.c
824 test_quota_compliance_wlan_LDADD = \
825  $(top_builddir)/src/transport/libgnunettransport.la \
826  $(top_builddir)/src/hello/libgnunethello.la \
827  $(top_builddir)/src/util/libgnunetutil.la \
828  $(top_builddir)/src/transport/libgnunettransporttesting.la
829
830 test_quota_compliance_wlan_asymmetric_SOURCES = \
831  test_quota_compliance.c
832 test_quota_compliance_wlan_asymmetric_LDADD = \
833  $(top_builddir)/src/transport/libgnunettransport.la \
834  $(top_builddir)/src/hello/libgnunethello.la \
835  $(top_builddir)/src/util/libgnunetutil.la \
836  $(top_builddir)/src/transport/libgnunettransporttesting.la
837
838 test_transport_api_multi_SOURCES = \
839  test_transport_api.c
840 test_transport_api_multi_LDADD = \
841  $(top_builddir)/src/transport/libgnunettransport.la \
842  $(top_builddir)/src/hello/libgnunethello.la \
843  $(top_builddir)/src/util/libgnunetutil.la \
844  $(top_builddir)/src/transport/libgnunettransporttesting.la 
845
846
847 EXTRA_DIST = \
848 gnunet-transport-certificate-creation \
849 template_cfg_peer1.conf\
850 template_cfg_peer2.conf\
851 test_plugin_transport_data.conf\
852 test_plugin_transport_data_udp.conf\
853 test_quota_compliance_data.conf\
854 test_quota_compliance_http_peer1.conf\
855 test_quota_compliance_http_peer2.conf\
856 test_quota_compliance_https_peer1.conf\
857 test_quota_compliance_https_peer2.conf\
858 test_quota_compliance_tcp_peer1.conf\
859 test_quota_compliance_tcp_peer2.conf\
860 test_quota_compliance_udp_peer1.conf\
861 test_quota_compliance_udp_peer2.conf\
862 test_quota_compliance_unix_peer1.conf\
863 test_quota_compliance_unix_peer2.conf\
864 test_quota_compliance_http_asymmetric_peer1.conf\
865 test_quota_compliance_http_asymmetric_peer2.conf\
866 test_quota_compliance_https_asymmetric_peer1.conf\
867 test_quota_compliance_https_asymmetric_peer2.conf\
868 test_quota_compliance_tcp_asymmetric_peer1.conf\
869 test_quota_compliance_tcp_asymmetric_peer2.conf\
870 test_quota_compliance_unix_asymmetric_peer1.conf\
871 test_quota_compliance_unix_asymmetric_peer2.conf\
872 test_transport_api_data.conf\
873 test_transport_api_http_peer1.conf\
874 test_transport_api_http_peer2.conf\
875 test_transport_api_https_peer1.conf\
876 test_transport_api_https_peer2.conf\
877 test_transport_api_limited_sockets_tcp_peer1.conf\
878 test_transport_api_limited_sockets_tcp_peer2.conf\
879 test_transport_api_timeout_tcp_peer1.conf\
880 test_transport_api_timeout_tcp_peer2.conf\
881 test_transport_api_multi_peer1.conf\
882 test_transport_api_multi_peer2.conf\
883 test_transport_api_reliability_http_peer1.conf\
884 test_transport_api_reliability_http_peer2.conf\
885 test_transport_api_reliability_https_peer1.conf\
886 test_transport_api_reliability_https_peer2.conf\
887 test_transport_api_reliability_tcp_nat_peer1.conf\
888 test_transport_api_reliability_tcp_nat_peer2.conf\
889 test_transport_api_reliability_tcp_peer1.conf\
890 test_transport_api_reliability_tcp_peer2.conf\
891 test_transport_api_reliability_wlan_peer1.conf\
892 test_transport_api_reliability_wlan_peer2.conf\
893 test_transport_api_bidirectional_connect_peer1.conf\
894 test_transport_api_bidirectional_connect_peer2.conf\
895 test_transport_api_tcp_nat_peer1.conf\
896 test_transport_api_tcp_nat_peer2.conf\
897 test_transport_api_tcp_peer1.conf\
898 test_transport_api_tcp_peer2.conf\
899 test_transport_api_udp_nat_peer1.conf\
900 test_transport_api_udp_nat_peer2.conf\
901 test_transport_api_udp_peer1.conf\
902 test_transport_api_udp_peer2.conf\
903 test_transport_api_timeout_udp_peer1.conf\
904 test_transport_api_timeout_udp_peer2.conf\
905 test_transport_api_unix_peer1.conf\
906 test_transport_api_unix_peer2.conf\
907 test_transport_api_timeout_unix_peer1.conf\
908 test_transport_api_timeout_unix_peer2.conf\
909 test_transport_api_unreliability_udp_peer1.conf\
910 test_transport_api_unreliability_udp_peer2.conf\
911 test_transport_api_unreliability_unix_peer1.conf\
912 test_transport_api_unreliability_unix_peer2.conf\
913 test_transport_api_unreliability_wlan_peer1.conf\
914 test_transport_api_unreliability_wlan_peer2.conf\
915 test_transport_api_wlan_peer1.conf\
916 test_transport_api_wlan_peer2.conf\
917 test_transport_defaults.conf\
918 test_transport_startonly.conf\
919 test_transport_api_disconnect_tcp_peer1.conf\
920 test_transport_api_disconnect_tcp_peer2.conf\
921 test_transport_api_timeout_http_peer1.conf\
922 test_transport_api_timeout_http_peer2.conf\
923 test_transport_api_timeout_https_peer1.conf\
924 test_transport_api_timeout_https_peer2.conf\
925 test_transport_api_unreliability_constant_udp_peer1.conf\
926 test_transport_api_unreliability_constant_udp_peer2.conf\
927 test_transport_api_http_reverse_proxy.conf