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