-simplify
[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_PLUGIN_LA = libgnunet_plugin_transport_http.la
14  HTTP_API_TEST = test_transport_api_http
15  HTTP_NAT_API_TEST = test_transport_api_http_nat
16  HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
17  HTTP_REL_TEST = test_transport_api_reliability_http
18  HTTP_NAT_REL_TEST = test_transport_api_reliability_http_nat
19  HTTP_QUOTA_TEST = test_quota_compliance_http \
20                    test_quota_compliance_http_asymmetric
21  HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la
22  HTTPS_API_TEST = test_transport_api_https
23  HTTPS_NAT_API_TEST = test_transport_api_https_nat
24  HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
25  HTTPS_REL_TEST = test_transport_api_reliability_https
26  HTTPS_NAT_REL_TEST = test_transport_api_reliability_https_nat
27  HTTPS_QUOTA_TEST = test_quota_compliance_https \
28                 test_quota_compliance_https_asymmetric
29 endif
30
31 if USE_COVERAGE
32   AM_CFLAGS = --coverage -O0
33 endif
34
35 if LINUX
36  WLAN_BIN = gnunet-helper-transport-wlan
37  WLAN_BIN_DUMMY = gnunet-helper-transport-wlan-dummy
38  WLAN_BIN_SENDER = gnunet-transport-wlan-sender
39  WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
40  WLAN_API_TEST = test_transport_api_wlan
41  WLAN_REL_TEST = test_transport_api_reliability_wlan
42  WLAN_UREL_TEST = test_transport_api_unreliability_wlan
43 endif
44
45
46 if LINUX
47 install-exec-hook:
48         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-transport-wlan || true
49         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-transport-wlan || true
50 else
51 install-exec-hook:
52 endif
53
54 if !MINGW
55 UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la
56 UNIX_PLUGIN_TEST = test_transport_api_unix 
57 UNIX_REL_TEST = test_transport_api_unreliability_unix
58 UNIX_QUOTA_TEST = test_quota_compliance_unix \
59      test_quota_compliance_unix_asymmetric
60 endif
61
62 noinst_PROGRAMS = \
63  $(WLAN_BIN_DUMMY) \
64  $(WLAN_BIN_SENDER)
65 # gnunet-transport-connect-running-peers
66
67 lib_LTLIBRARIES = \
68   libgnunettransport.la \
69   libgnunettransporttesting.la
70
71 libgnunettransporttesting_la_SOURCES = \
72   transport-testing.c transport-testing.h
73 libgnunettransporttesting_la_LIBADD = \
74   $(top_builddir)/src/transport/libgnunettransport.la \
75   $(top_builddir)/src/hello/libgnunethello.la \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(GN_LIBINTL) 
78 libgnunettransporttesting_la_DEPENDENCIES = \
79   libgnunettransport.la
80 libgnunettransporttesting_la_LDFLAGS = \
81  $(GN_LIB_LDFLAGS)
82
83 libgnunettransport_la_SOURCES = \
84   transport_api.c transport.h \
85   transport_api_blacklist.c \
86   transport_api_address_to_string.c \
87   transport_api_address_lookup.c
88 libgnunettransport_la_LIBADD = \
89   $(top_builddir)/src/hello/libgnunethello.la \
90   $(top_builddir)/src/util/libgnunetutil.la \
91   $(GN_LIBINTL) 
92 libgnunettransport_la_LDFLAGS = \
93   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
94   -version-info 0:0:0
95
96 bin_PROGRAMS = \
97  gnunet-transport \
98  $(WLAN_BIN) \
99  gnunet-service-transport \
100  gnunet-transport-certificate-creation
101
102 #bin_SCRIPTS = \
103 # gnunet-transport-certificate-creation
104
105 gnunet_transport_certificate_creation_SOURCES = \
106  gnunet-transport-certificate-creation.c
107 gnunet_transport_certificate_creation_LDADD = \
108   $(top_builddir)/src/util/libgnunetutil.la
109
110 gnunet_helper_transport_wlan_SOURCES = \
111  gnunet-helper-transport-wlan.c
112
113 gnunet_helper_transport_wlan_dummy_SOURCES = \
114  gnunet-helper-transport-wlan-dummy.c
115 gnunet_helper_transport_wlan_dummy_LDADD = \
116   $(top_builddir)/src/util/libgnunetutil.la 
117
118 gnunet_transport_wlan_sender_SOURCES = \
119  gnunet-transport-wlan-sender.c
120 gnunet_transport_wlan_sender_LDADD = \
121   $(top_builddir)/src/util/libgnunetutil.la 
122
123 gnunet_transport_SOURCES = \
124  gnunet-transport.c         
125 gnunet_transport_LDADD = \
126   $(top_builddir)/src/transport/libgnunettransport.la \
127   $(top_builddir)/src/nat/libgnunetnat.la \
128   $(top_builddir)/src/hello/libgnunethello.la \
129   $(top_builddir)/src/util/libgnunetutil.la \
130   $(GN_LIBINTL)
131 gnunet_transport_DEPENDENCIES = \
132   libgnunettransport.la                         
133
134 gnunet_service_transport_SOURCES = \
135  gnunet-service-transport.c gnunet-service-transport.h \
136  gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
137  gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
138  gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
139  gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
140  gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
141  gnunet-service-transport_validation.h gnunet-service-transport_validation.c 
142 gnunet_service_transport_LDADD = \
143   $(top_builddir)/src/ats/libgnunetats.la \
144   $(top_builddir)/src/hello/libgnunethello.la \
145   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
146   $(top_builddir)/src/statistics/libgnunetstatistics.la \
147   $(top_builddir)/src/util/libgnunetutil.la \
148   $(GN_GLPK) \
149   $(GN_LIBINTL)
150
151 plugin_LTLIBRARIES = \
152   libgnunet_plugin_transport_tcp.la \
153   libgnunet_plugin_transport_udp.la \
154   $(UNIX_PLUGIN_LA) \
155   $(HTTP_PLUGIN_LA) \
156   $(HTTPS_PLUGIN_LA) \
157   $(WLAN_PLUGIN_LA) \
158   libgnunet_plugin_transport_template.la
159
160 libgnunet_plugin_transport_tcp_la_SOURCES = \
161   plugin_transport_tcp.c
162 libgnunet_plugin_transport_tcp_la_LIBADD = \
163   $(top_builddir)/src/hello/libgnunethello.la \
164   $(top_builddir)/src/statistics/libgnunetstatistics.la \
165   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
166   $(top_builddir)/src/nat/libgnunetnat.la \
167   $(top_builddir)/src/util/libgnunetutil.la 
168 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
169  $(GN_PLUGIN_LDFLAGS)
170
171 libgnunet_plugin_transport_template_la_SOURCES = \
172   plugin_transport_template.c
173 libgnunet_plugin_transport_template_la_LIBADD = \
174   $(top_builddir)/src/util/libgnunetutil.la 
175 libgnunet_plugin_transport_template_la_LDFLAGS = \
176  $(GN_PLUGIN_LDFLAGS)
177
178 libgnunet_plugin_transport_wlan_la_SOURCES = \
179   plugin_transport_wlan.c plugin_transport_wlan.h
180 libgnunet_plugin_transport_wlan_la_LIBADD = \
181   $(top_builddir)/src/hello/libgnunethello.la \
182   $(top_builddir)/src/statistics/libgnunetstatistics.la \
183   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
184   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
185   $(top_builddir)/src/util/libgnunetutil.la 
186 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
187   $(GN_PLUGIN_LDFLAGS)
188
189 libgnunet_plugin_transport_udp_la_SOURCES = \
190   plugin_transport_udp.c
191 libgnunet_plugin_transport_udp_la_LIBADD = \
192   $(top_builddir)/src/hello/libgnunethello.la \
193   $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \
194   $(top_builddir)/src/statistics/libgnunetstatistics.la \
195   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
196   $(top_builddir)/src/nat/libgnunetnat.la \
197   $(top_builddir)/src/util/libgnunetutil.la 
198 libgnunet_plugin_transport_udp_la_LDFLAGS = \
199  $(GN_PLUGIN_LDFLAGS)
200
201 libgnunet_plugin_transport_unix_la_SOURCES = \
202   plugin_transport_unix.c
203 libgnunet_plugin_transport_unix_la_LIBADD = \
204   $(top_builddir)/src/hello/libgnunethello.la \
205   $(top_builddir)/src/statistics/libgnunetstatistics.la \
206   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
207   $(top_builddir)/src/util/libgnunetutil.la 
208 libgnunet_plugin_transport_unix_la_LDFLAGS = \
209  $(GN_PLUGIN_LDFLAGS)
210
211 libgnunet_plugin_transport_http_la_SOURCES = \
212   plugin_transport_http.c plugin_transport_http.h \
213   plugin_transport_http_client.c plugin_transport_http_server.c
214 libgnunet_plugin_transport_http_la_LIBADD = \
215   $(top_builddir)/src/hello/libgnunethello.la \
216   $(top_builddir)/src/statistics/libgnunetstatistics.la \
217   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
218   @LIBCURL@ \
219   $(top_builddir)/src/nat/libgnunetnat.la \
220   $(top_builddir)/src/util/libgnunetutil.la 
221 libgnunet_plugin_transport_http_la_LDFLAGS = \
222  $(GN_LIBMHD) \
223  $(GN_PLUGIN_LDFLAGS)
224 libgnunet_plugin_transport_http_la_CFLAGS = \
225  $(CFLAGS) 
226 libgnunet_plugin_transport_http_la_CPPFLAGS = \
227  @LIBCURL_CPPFLAGS@
228
229 libgnunet_plugin_transport_https_la_SOURCES = \
230   plugin_transport_http.c plugin_transport_http.h \
231   plugin_transport_http_client.c plugin_transport_http_server.c
232 libgnunet_plugin_transport_https_la_LIBADD = \
233   $(top_builddir)/src/hello/libgnunethello.la \
234   $(top_builddir)/src/statistics/libgnunetstatistics.la \
235   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
236   @LIBCURL@ \
237   $(top_builddir)/src/nat/libgnunetnat.la \
238   $(top_builddir)/src/util/libgnunetutil.la 
239 libgnunet_plugin_transport_https_la_LDFLAGS = \
240  $(GN_LIBMHD) \
241  $(GN_PLUGIN_LDFLAGS)
242 libgnunet_plugin_transport_https_la_CFLAGS = \
243  $(CFLAGS) -DBUILD_HTTPS 
244 libgnunet_plugin_transport_https_la_CPPFLAGS = \
245  @LIBCURL_CPPFLAGS@
246
247
248 check_PROGRAMS = \
249  test_transport_testing \
250  test_transport_startonly \
251  test_transport_api_disconnect_tcp \
252  test_transport_api_bidirectional_connect \
253  test_transport_api_tcp \
254  test_transport_api_restart_1peer \
255  test_transport_api_restart_2peers \
256  test_transport_api_timeout_tcp \
257  test_transport_api_limited_sockets_tcp \
258  test_transport_api_tcp_nat \
259  test_transport_api_udp \
260  $(UNIX_PLUGIN_TEST) \
261  test_transport_api_udp_nat \
262  $(HTTP_API_TEST) \
263  $(HTTP_NAT_API_TEST) \
264  $(HTTP_API_TIMEOUT_TEST) \
265  $(HTTPS_API_TEST) \
266  $(HTTPS_NAT_API_TEST) \
267  $(HTTPS_API_TIMEOUT_TEST) \
268  test_transport_api_multi \
269  test_transport_api_reliability_tcp \
270  test_transport_api_reliability_tcp_nat \
271  test_transport_api_unreliability_udp \
272  test_transport_api_unreliability_constant_udp \
273  $(UNIX_REL_TEST) \
274  $(HTTP_REL_TEST) \
275  $(HTTP_NAT_REL_TEST) \
276  $(HTTPS_REL_TEST) \
277  $(HTTPS_NAT_REL_TEST) \
278  test_quota_compliance_tcp \
279  test_quota_compliance_tcp_asymmetric \
280  test_quota_compliance_udp \
281  $(UNIX_QUOTA_TEST) \
282  $(HTTP_QUOTA_TEST) \
283  $(HTTPS_QUOTA_TEST) \
284  $(WLAN_API_TEST) \
285  $(WLAN_REL_TEST) \
286  $(WLAN_UREL_TEST)
287
288 if ENABLE_TEST_RUN
289 TESTS = \
290  test_transport_testing \
291  test_transport_startonly \
292  test_transport_api_disconnect_tcp \
293  test_transport_api_bidirectional_connect \
294  test_transport_api_tcp \
295  test_transport_api_restart_1peer \
296  test_transport_api_restart_2peers \
297  test_transport_api_timeout_tcp \
298  test_transport_api_limited_sockets_tcp \
299  test_transport_api_tcp_nat \
300  test_transport_api_udp \
301  $(UNIX_PLUGIN_TEST) \
302  test_transport_api_udp_nat \
303  $(HTTP_API_TEST) \
304  $(HTTP_NAT_API_TEST) \
305  $(HTTP_API_TIMEOUT_TEST) \
306  $(HTTPS_API_TEST) \
307  $(HTTPS_NAT_API_TEST) \
308  $(HTTPS_API_TIMEOUT_TEST) \
309  test_transport_api_multi \
310  test_transport_api_reliability_tcp \
311  test_transport_api_reliability_tcp_nat \
312  test_transport_api_unreliability_udp \
313  test_transport_api_unreliability_constant_udp \
314  $(UNIX_REL_TEST) \
315  $(HTTP_REL_TEST) \
316  $(HTTP_NAT_REL_TEST) \
317  $(HTTPS_REL_TEST) \
318  $(HTTPS_NAT_REL_TEST) \
319  test_quota_compliance_tcp \
320  test_quota_compliance_tcp_asymmetric \
321  test_quota_compliance_udp \
322  $(UNIX_QUOTA_TEST) \
323  $(HTTP_QUOTA_TEST) \
324  $(HTTPS_QUOTA_TEST) \
325  $(WLAN_API_TEST) \
326  $(WLAN_REL_TEST) \
327  $(WLAN_UREL_TEST)
328 endif
329
330 test_transport_testing_SOURCES = \
331  test_transport_testing.c
332 test_transport_testing_LDADD = \
333  $(top_builddir)/src/util/libgnunetutil.la \
334  $(top_builddir)/src/transport/libgnunettransport.la \
335  $(top_builddir)/src/hello/libgnunethello.la \
336  $(top_builddir)/src/transport/libgnunettransporttesting.la 
337
338 #gnunet_transport_connect_running_peers_SOURCES = \
339 # gnunet-transport-connect-running-peers.c
340 #gnunet_transport_connect_running_peers_LDADD = \
341 # $(top_builddir)/src/transport/libgnunettransport.la \
342 # $(top_builddir)/src/hello/libgnunethello.la \
343 # $(top_builddir)/src/util/libgnunetutil.la \
344 # $(top_builddir)/src/transport/libgnunettransporttesting.la 
345
346 test_transport_api_disconnect_tcp_SOURCES = \
347  test_transport_api_disconnect.c
348 test_transport_api_disconnect_tcp_LDADD = \
349  $(top_builddir)/src/transport/libgnunettransport.la \
350  $(top_builddir)/src/hello/libgnunethello.la \
351  $(top_builddir)/src/statistics/libgnunetstatistics.la \
352  $(top_builddir)/src/util/libgnunetutil.la \
353  $(top_builddir)/src/transport/libgnunettransporttesting.la 
354
355 test_transport_startonly_SOURCES = \
356  test_transport_startonly.c
357 test_transport_startonly_LDADD = \
358  $(top_builddir)/src/transport/libgnunettransport.la \
359  $(top_builddir)/src/hello/libgnunethello.la \
360  $(top_builddir)/src/statistics/libgnunetstatistics.la \
361  $(top_builddir)/src/util/libgnunetutil.la \
362  $(top_builddir)/src/transport/libgnunettransporttesting.la 
363
364 test_transport_api_tcp_SOURCES = \
365  test_transport_api.c
366 test_transport_api_tcp_LDADD = \
367  $(top_builddir)/src/transport/libgnunettransport.la \
368  $(top_builddir)/src/hello/libgnunethello.la \
369  $(top_builddir)/src/util/libgnunetutil.la  \
370  $(top_builddir)/src/transport/libgnunettransporttesting.la
371
372 test_transport_api_bidirectional_connect_SOURCES = \
373  test_transport_api_bidirectional_connect.c
374 test_transport_api_bidirectional_connect_LDADD = \
375  $(top_builddir)/src/transport/libgnunettransport.la \
376  $(top_builddir)/src/hello/libgnunethello.la \
377  $(top_builddir)/src/util/libgnunetutil.la  \
378  $(top_builddir)/src/transport/libgnunettransporttesting.la
379
380 test_transport_api_restart_1peer_SOURCES = \
381  test_transport_api_restart_1peer.c
382 test_transport_api_restart_1peer_LDADD = \
383  $(top_builddir)/src/transport/libgnunettransport.la \
384  $(top_builddir)/src/hello/libgnunethello.la \
385  $(top_builddir)/src/statistics/libgnunetstatistics.la \
386  $(top_builddir)/src/util/libgnunetutil.la \
387  $(top_builddir)/src/transport/libgnunettransporttesting.la 
388
389 test_transport_api_restart_2peers_SOURCES = \
390  test_transport_api_restart_2peers.c
391 test_transport_api_restart_2peers_LDADD = \
392  $(top_builddir)/src/transport/libgnunettransport.la \
393  $(top_builddir)/src/hello/libgnunethello.la \
394  $(top_builddir)/src/statistics/libgnunetstatistics.la \
395  $(top_builddir)/src/util/libgnunetutil.la \
396  $(top_builddir)/src/transport/libgnunettransporttesting.la 
397
398 test_transport_api_limited_sockets_tcp_SOURCES = \
399  test_transport_api_limited_sockets.c
400 test_transport_api_limited_sockets_tcp_LDADD = \
401  $(top_builddir)/src/transport/libgnunettransport.la \
402  $(top_builddir)/src/hello/libgnunethello.la \
403  $(top_builddir)/src/util/libgnunetutil.la  \
404  $(top_builddir)/src/transport/libgnunettransporttesting.la
405
406 test_transport_api_tcp_nat_SOURCES = \
407  test_transport_api.c
408 test_transport_api_tcp_nat_LDADD = \
409  $(top_builddir)/src/transport/libgnunettransport.la \
410  $(top_builddir)/src/hello/libgnunethello.la \
411  $(top_builddir)/src/util/libgnunetutil.la \
412  $(top_builddir)/src/transport/libgnunettransporttesting.la 
413
414 test_transport_api_reliability_tcp_SOURCES = \
415  test_transport_api_reliability.c
416 test_transport_api_reliability_tcp_LDADD = \
417  $(top_builddir)/src/transport/libgnunettransport.la \
418  $(top_builddir)/src/hello/libgnunethello.la \
419  $(top_builddir)/src/util/libgnunetutil.la \
420  $(top_builddir)/src/transport/libgnunettransporttesting.la 
421
422 test_transport_api_timeout_tcp_SOURCES = \
423  test_transport_api_timeout.c
424 test_transport_api_timeout_tcp_LDADD = \
425  $(top_builddir)/src/transport/libgnunettransport.la \
426  $(top_builddir)/src/hello/libgnunethello.la \
427  $(top_builddir)/src/util/libgnunetutil.la \
428  $(top_builddir)/src/transport/libgnunettransporttesting.la 
429
430 test_transport_api_timeout_http_SOURCES = \
431  test_transport_api_timeout.c
432 test_transport_api_timeout_http_LDADD = \
433  $(top_builddir)/src/transport/libgnunettransport.la \
434  $(top_builddir)/src/hello/libgnunethello.la \
435  $(top_builddir)/src/util/libgnunetutil.la \
436  $(top_builddir)/src/transport/libgnunettransporttesting.la 
437
438 test_transport_api_timeout_https_SOURCES = \
439  test_transport_api_timeout.c
440 test_transport_api_timeout_https_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_reliability_tcp_nat_SOURCES = \
447  test_transport_api_reliability.c
448 test_transport_api_reliability_tcp_nat_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_reliability_wlan_SOURCES = \
455  test_transport_api_reliability.c
456 test_transport_api_reliability_wlan_LDADD = \
457  $(top_builddir)/src/transport/libgnunettransport.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_transport_api_unreliability_wlan_SOURCES = \
463  test_transport_api_unreliability.c
464 test_transport_api_unreliability_wlan_LDADD = \
465  $(top_builddir)/src/transport/libgnunettransport.la \
466  $(top_builddir)/src/hello/libgnunethello.la \
467  $(top_builddir)/src/util/libgnunetutil.la \
468  $(top_builddir)/src/transport/libgnunettransporttesting.la 
469  
470 test_transport_api_udp_SOURCES = \
471  test_transport_api.c
472 test_transport_api_udp_LDADD = \
473  $(top_builddir)/src/transport/libgnunettransport.la \
474  $(top_builddir)/src/hello/libgnunethello.la \
475  $(top_builddir)/src/util/libgnunetutil.la  \
476  $(top_builddir)/src/transport/libgnunettransporttesting.la 
477
478 test_transport_api_udp_nat_SOURCES = \
479  test_transport_api.c
480 test_transport_api_udp_nat_LDADD = \
481  $(top_builddir)/src/transport/libgnunettransport.la \
482  $(top_builddir)/src/hello/libgnunethello.la \
483  $(top_builddir)/src/util/libgnunetutil.la  \
484  $(top_builddir)/src/transport/libgnunettransporttesting.la  
485
486 test_transport_api_unix_SOURCES = \
487  test_transport_api.c
488 test_transport_api_unix_LDADD = \
489  $(top_builddir)/src/transport/libgnunettransport.la \
490  $(top_builddir)/src/hello/libgnunethello.la \
491  $(top_builddir)/src/util/libgnunetutil.la \
492  $(top_builddir)/src/transport/libgnunettransporttesting.la 
493
494 #test_plugin_transport_http_SOURCES = \
495 # test_plugin_transport_http.c
496 #test_plugin_transport_http_LDADD = \
497 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
498 # @LIBCURL@ \
499 # $(top_builddir)/src/hello/libgnunethello.la \
500 # $(top_builddir)/src/util/libgnunetutil.la  
501
502 test_transport_api_http_SOURCES = \
503  test_transport_api.c
504 test_transport_api_http_LDADD = \
505  $(top_builddir)/src/transport/libgnunettransport.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_transport_api_http_nat_SOURCES = \
511  test_transport_api.c
512 test_transport_api_http_nat_LDADD = \
513  $(top_builddir)/src/transport/libgnunettransport.la \
514  $(top_builddir)/src/hello/libgnunethello.la \
515  $(top_builddir)/src/util/libgnunetutil.la \
516  $(top_builddir)/src/transport/libgnunettransporttesting.la 
517
518 test_transport_api_reliability_http_SOURCES = \
519  test_transport_api_reliability.c
520 test_transport_api_reliability_http_LDADD = \
521  $(top_builddir)/src/transport/libgnunettransport.la \
522  $(top_builddir)/src/hello/libgnunethello.la \
523  $(top_builddir)/src/util/libgnunetutil.la \
524  $(top_builddir)/src/transport/libgnunettransporttesting.la 
525
526 test_transport_api_reliability_http_nat_SOURCES = \
527  test_transport_api_reliability.c
528 test_transport_api_reliability_http_nat_LDADD = \
529  $(top_builddir)/src/transport/libgnunettransport.la \
530  $(top_builddir)/src/hello/libgnunethello.la \
531  $(top_builddir)/src/util/libgnunetutil.la \
532  $(top_builddir)/src/transport/libgnunettransporttesting.la 
533
534 test_transport_api_https_SOURCES = \
535  test_transport_api.c
536 test_transport_api_https_LDADD = \
537  $(top_builddir)/src/transport/libgnunettransport.la \
538  $(top_builddir)/src/hello/libgnunethello.la \
539  $(top_builddir)/src/util/libgnunetutil.la  \
540  $(top_builddir)/src/transport/libgnunettransporttesting.la 
541
542 test_transport_api_https_nat_SOURCES = \
543  test_transport_api.c
544 test_transport_api_https_nat_LDADD = \
545  $(top_builddir)/src/transport/libgnunettransport.la \
546  $(top_builddir)/src/hello/libgnunethello.la \
547  $(top_builddir)/src/util/libgnunetutil.la \
548  $(top_builddir)/src/transport/libgnunettransporttesting.la 
549
550 test_transport_api_reliability_https_SOURCES = \
551  test_transport_api_reliability.c
552 test_transport_api_reliability_https_LDADD = \
553  $(top_builddir)/src/transport/libgnunettransport.la \
554  $(top_builddir)/src/hello/libgnunethello.la \
555  $(top_builddir)/src/util/libgnunetutil.la \
556  $(top_builddir)/src/transport/libgnunettransporttesting.la 
557
558 test_transport_api_reliability_https_nat_SOURCES = \
559  test_transport_api_reliability.c
560 test_transport_api_reliability_https_nat_LDADD = \
561  $(top_builddir)/src/transport/libgnunettransport.la \
562  $(top_builddir)/src/hello/libgnunethello.la \
563  $(top_builddir)/src/util/libgnunetutil.la \
564  $(top_builddir)/src/transport/libgnunettransporttesting.la 
565
566 test_transport_api_unreliability_unix_SOURCES = \
567  test_transport_api_unreliability.c
568 test_transport_api_unreliability_unix_LDADD = \
569  $(top_builddir)/src/transport/libgnunettransport.la \
570  $(top_builddir)/src/hello/libgnunethello.la \
571  $(top_builddir)/src/util/libgnunetutil.la \
572  $(top_builddir)/src/transport/libgnunettransporttesting.la 
573
574 test_transport_api_unreliability_udp_SOURCES = \
575  test_transport_api_unreliability.c
576 test_transport_api_unreliability_udp_LDADD = \
577  $(top_builddir)/src/transport/libgnunettransport.la \
578  $(top_builddir)/src/hello/libgnunethello.la \
579  $(top_builddir)/src/util/libgnunetutil.la \
580  $(top_builddir)/src/transport/libgnunettransporttesting.la 
581
582 test_transport_api_unreliability_constant_udp_SOURCES = \
583  test_transport_api_unreliability_constant.c
584 test_transport_api_unreliability_constant_udp_LDADD = \
585  $(top_builddir)/src/transport/libgnunettransport.la \
586  $(top_builddir)/src/hello/libgnunethello.la \
587  $(top_builddir)/src/util/libgnunetutil.la \
588  $(top_builddir)/src/transport/libgnunettransporttesting.la 
589
590 if LINUX
591 test_transport_api_wlan_SOURCES = \
592  test_transport_api.c
593 test_transport_api_wlan_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 endif
599
600 test_quota_compliance_tcp_SOURCES = \
601  test_quota_compliance.c
602 test_quota_compliance_tcp_LDADD = \
603  $(top_builddir)/src/transport/libgnunettransport.la \
604  $(top_builddir)/src/hello/libgnunethello.la \
605  $(top_builddir)/src/util/libgnunetutil.la \
606  $(top_builddir)/src/transport/libgnunettransporttesting.la 
607
608 test_quota_compliance_tcp_asymmetric_SOURCES = \
609  test_quota_compliance.c
610 test_quota_compliance_tcp_asymmetric_LDADD = \
611  $(top_builddir)/src/transport/libgnunettransport.la \
612  $(top_builddir)/src/hello/libgnunethello.la \
613  $(top_builddir)/src/util/libgnunetutil.la \
614  $(top_builddir)/src/transport/libgnunettransporttesting.la 
615
616 #test_quota_compliance_tcp_asymmetric_send_constant_SOURCES = \
617 # test_quota_compliance.c
618 #test_quota_compliance_tcp_asymmetric_send_constant_LDADD = \
619 # $(top_builddir)/src/transport/libgnunettransport.la \
620 # $(top_builddir)/src/util/libgnunetutil.la
621
622 test_quota_compliance_http_SOURCES = \
623  test_quota_compliance.c
624 test_quota_compliance_http_LDADD = \
625  $(top_builddir)/src/transport/libgnunettransport.la \
626  $(top_builddir)/src/hello/libgnunethello.la \
627  $(top_builddir)/src/util/libgnunetutil.la \
628  $(top_builddir)/src/transport/libgnunettransporttesting.la 
629
630  test_quota_compliance_http_asymmetric_SOURCES = \
631  test_quota_compliance.c
632 test_quota_compliance_http_asymmetric_LDADD = \
633  $(top_builddir)/src/transport/libgnunettransport.la \
634  $(top_builddir)/src/hello/libgnunethello.la \
635  $(top_builddir)/src/util/libgnunetutil.la \
636  $(top_builddir)/src/transport/libgnunettransporttesting.la
637
638 #test_quota_compliance_http_asymmetric_send_constant_SOURCES = \
639 # test_quota_compliance.c
640 #test_quota_compliance_http_asymmetric_send_constant_LDADD = \
641 # $(top_builddir)/src/transport/libgnunettransport.la \
642 # $(top_builddir)/src/util/libgnunetutil.la
643
644 test_quota_compliance_https_SOURCES = \
645  test_quota_compliance.c
646 test_quota_compliance_https_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_https_asymmetric_SOURCES = \
653  test_quota_compliance.c
654 test_quota_compliance_https_asymmetric_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_https_asymmetric_send_constant_SOURCES = \
661 # test_quota_compliance.c
662 #test_quota_compliance_https_asymmetric_send_constant_LDADD = \
663 # $(top_builddir)/src/transport/libgnunettransport.la \
664 # $(top_builddir)/src/util/libgnunetutil.la
665
666 test_quota_compliance_udp_SOURCES = \
667  test_quota_compliance.c
668 test_quota_compliance_udp_LDADD = \
669  $(top_builddir)/src/transport/libgnunettransport.la \
670  $(top_builddir)/src/hello/libgnunethello.la \
671  $(top_builddir)/src/util/libgnunetutil.la \
672  $(top_builddir)/src/transport/libgnunettransporttesting.la
673
674 test_quota_compliance_unix_SOURCES = \
675  test_quota_compliance.c
676 test_quota_compliance_unix_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_quota_compliance_unix_asymmetric_SOURCES = \
683  test_quota_compliance.c
684 test_quota_compliance_unix_asymmetric_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_transport_api_multi_SOURCES = \
691  test_transport_api.c
692 test_transport_api_multi_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
699 EXTRA_DIST = \
700 gnunet-transport-certificate-creation \
701 template_cfg_peer1.conf\
702 template_cfg_peer2.conf\
703 test_plugin_transport_data.conf\
704 test_plugin_transport_data_udp.conf\
705 test_quota_compliance_data.conf\
706 test_quota_compliance_http_peer1.conf\
707 test_quota_compliance_http_peer2.conf\
708 test_quota_compliance_https_peer1.conf\
709 test_quota_compliance_https_peer2.conf\
710 test_quota_compliance_tcp_peer1.conf\
711 test_quota_compliance_tcp_peer2.conf\
712 test_quota_compliance_udp_peer1.conf\
713 test_quota_compliance_udp_peer2.conf\
714 test_quota_compliance_unix_peer1.conf\
715 test_quota_compliance_unix_peer2.conf\
716 test_quota_compliance_http_asymmetric_peer1.conf\
717 test_quota_compliance_http_asymmetric_peer2.conf\
718 test_quota_compliance_https_asymmetric_peer1.conf\
719 test_quota_compliance_https_asymmetric_peer2.conf\
720 test_quota_compliance_tcp_asymmetric_peer1.conf\
721 test_quota_compliance_tcp_asymmetric_peer2.conf\
722 test_quota_compliance_unix_asymmetric_peer1.conf\
723 test_quota_compliance_unix_asymmetric_peer2.conf\
724 test_transport_api_data.conf\
725 test_transport_api_http_peer1.conf\
726 test_transport_api_http_peer2.conf\
727 test_transport_api_https_peer1.conf\
728 test_transport_api_https_peer2.conf\
729 test_transport_api_limited_sockets_tcp_peer1.conf\
730 test_transport_api_limited_sockets_tcp_peer2.conf\
731 test_transport_api_timeout_tcp_peer1.conf\
732 test_transport_api_timeout_tcp_peer2.conf\
733 test_transport_api_multi_peer1.conf\
734 test_transport_api_multi_peer2.conf\
735 test_transport_api_reliability_http_peer1.conf\
736 test_transport_api_reliability_http_peer2.conf\
737 test_transport_api_reliability_https_peer1.conf\
738 test_transport_api_reliability_https_peer2.conf\
739 test_transport_api_reliability_tcp_nat_peer1.conf\
740 test_transport_api_reliability_tcp_nat_peer2.conf\
741 test_transport_api_reliability_tcp_peer1.conf\
742 test_transport_api_reliability_tcp_peer2.conf\
743 test_transport_api_reliability_wlan_peer1.conf\
744 test_transport_api_reliability_wlan_peer2.conf\
745 test_transport_api_bidirectional_connect_peer1.conf\
746 test_transport_api_bidirectional_connect_peer2.conf\
747 test_transport_api_tcp_nat_peer1.conf\
748 test_transport_api_tcp_nat_peer2.conf\
749 test_transport_api_tcp_peer1.conf\
750 test_transport_api_tcp_peer2.conf\
751 test_transport_api_udp_nat_peer1.conf\
752 test_transport_api_udp_nat_peer2.conf\
753 test_transport_api_udp_peer1.conf\
754 test_transport_api_udp_peer2.conf\
755 test_transport_api_unix_peer1.conf\
756 test_transport_api_unix_peer2.conf\
757 test_transport_api_unreliability_udp_peer1.conf\
758 test_transport_api_unreliability_udp_peer2.conf\
759 test_transport_api_unreliability_unix_peer1.conf\
760 test_transport_api_unreliability_unix_peer2.conf\
761 test_transport_api_unreliability_wlan_peer1.conf\
762 test_transport_api_unreliability_wlan_peer2.conf\
763 test_transport_api_wlan_peer1.conf\
764 test_transport_api_wlan_peer2.conf\
765 test_transport_defaults.conf\
766 test_transport_startonly.conf\
767 test_transport_api_disconnect_tcp_peer1.conf\
768 test_transport_api_disconnect_tcp_peer2.conf\
769 test_transport_api_http_nat_peer1.conf\
770 test_transport_api_http_nat_peer2.conf\
771 test_transport_api_https_nat_peer1.conf\
772 test_transport_api_https_nat_peer2.conf\
773 test_transport_api_reliability_http_nat_peer1.conf\
774 test_transport_api_reliability_http_nat_peer2.conf\
775 test_transport_api_reliability_https_nat_peer1.conf\
776 test_transport_api_reliability_https_nat_peer2.conf\
777 test_transport_api_timeout_http_peer1.conf\
778 test_transport_api_timeout_http_peer2.conf\
779 test_transport_api_timeout_https_peer1.conf\
780 test_transport_api_timeout_https_peer2.conf\
781 test_transport_api_unreliability_constant_udp_peer1.conf\
782 test_transport_api_unreliability_constant_udp_peer2.conf