1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7 NATBIN = gnunet-nat-server gnunet-nat-client
8 NATSERVER = gnunet-nat-server-windows.c
9 NATCLIENT = gnunet-nat-client-windows.c
11 NATSERVER = gnunet-nat-server.c
12 NATCLIENT = gnunet-nat-client.c
16 GN_LIBMHD = -lmicrohttpd
17 HTTP_PLUGIN_LA = libgnunet_plugin_transport_http.la
18 HTTP_PLUGIN_TEST = test_plugin_transport_http
19 HTTP_API_TEST = test_transport_api_http
20 HTTP_REL_TEST = test_transport_api_reliability_http
22 HTTPS_PLUGIN_LA = libgnunet_plugin_transport_https.la
23 HTTPS_PLUGIN_TEST = test_plugin_transport_https
24 HTTPS_API_TEST = test_transport_api_https
25 HTTPS_REL_TEST = test_transport_api_reliability_https
29 AM_CFLAGS = --coverage -O0
34 WANBIN = gnunet-transport-wlan-helper
35 WLAN_PLUGIN_LA = libgnunet_plugin_transport_wlan.la
40 NATBIN = gnunet-nat-server gnunet-nat-client
42 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
43 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client $(bindir)/gnunet-wlan || true
48 #noinst_PROGRAMS = ${check_PROGRAMS}
53 libgnunettransport_la_SOURCES = \
54 transport_api.c transport.h \
55 transport_api_blacklist.c \
56 transport_api_address_lookup.c
57 libgnunettransport_la_LIBADD = \
58 $(top_builddir)/src/hello/libgnunethello.la \
59 $(top_builddir)/src/util/libgnunetutil.la \
61 libgnunettransport_la_LDFLAGS = \
62 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
69 gnunet-service-transport $(NATBIN)
72 gnunet-transport-certificate-creation
74 gnunet_nat_server_SOURCES = \
77 gnunet_transport_wlan_helper_SOURCES = \
78 gnunet-transport-wlan-helper.c
79 gnunet_transport_wlan_helper_LDADD = \
82 gnunet_nat_client_SOURCES = \
85 gnunet_transport_SOURCES = \
87 gnunet_transport_LDADD = \
88 $(top_builddir)/src/transport/libgnunettransport.la \
89 $(top_builddir)/src/util/libgnunetutil.la \
92 gnunet_service_transport_SOURCES = \
93 gnunet-service-transport.c plugin_transport.h
94 gnunet_service_transport_LDADD = \
95 $(top_builddir)/src/hello/libgnunethello.la \
96 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
97 $(top_builddir)/src/statistics/libgnunetstatistics.la \
98 $(top_builddir)/src/util/libgnunetutil.la \
102 plugin_LTLIBRARIES = \
103 libgnunet_plugin_transport_tcp.la \
104 libgnunet_plugin_transport_udp.la \
108 libgnunet_plugin_transport_template.la
109 # TODO: add nat, etc.
111 libgnunet_plugin_transport_tcp_la_SOURCES = \
112 plugin_transport_tcp.c
113 libgnunet_plugin_transport_tcp_la_LIBADD = \
114 $(top_builddir)/src/hello/libgnunethello.la \
115 $(top_builddir)/src/statistics/libgnunetstatistics.la \
116 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
117 $(top_builddir)/src/util/libgnunetutil.la
118 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
121 libgnunet_plugin_transport_template_la_SOURCES = \
122 plugin_transport_template.c
123 libgnunet_plugin_transport_template_la_LIBADD = \
124 $(top_builddir)/src/util/libgnunetutil.la
125 libgnunet_plugin_transport_template_la_LDFLAGS = \
130 libgnunet_plugin_transport_wlan_la_SOURCES = \
131 plugin_transport_wlan.c
132 libgnunet_plugin_transport_wlan_la_LIBADD = \
133 $(top_builddir)/src/hello/libgnunethello.la \
134 $(top_builddir)/src/statistics/libgnunetstatistics.la \
135 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
136 $(top_builddir)/src/util/libgnunetutil.la
137 libgnunet_plugin_transport_wlan_la_LDFLAGS = \
142 libgnunet_plugin_transport_udp_la_SOURCES = \
143 plugin_transport_udp.c
144 libgnunet_plugin_transport_udp_la_LIBADD = \
145 $(top_builddir)/src/hello/libgnunethello.la \
146 $(top_builddir)/src/statistics/libgnunetstatistics.la \
147 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
148 $(top_builddir)/src/util/libgnunetutil.la
149 libgnunet_plugin_transport_udp_la_LDFLAGS = \
152 #libgnunet_plugin_transport_udp_nat_la_SOURCES = \
153 # plugin_transport_udp_nat.c
154 #libgnunet_plugin_transport_udp_nat_la_LIBADD = \
155 # $(top_builddir)/src/hello/libgnunethello.la \
156 # $(top_builddir)/src/statistics/libgnunetstatistics.la \
157 # $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
158 # $(top_builddir)/src/util/libgnunetutil.la
159 #libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \
160 # $(GN_PLUGIN_LDFLAGS)
163 libgnunet_plugin_transport_http_la_SOURCES = \
164 plugin_transport_http.c
165 libgnunet_plugin_transport_http_la_LIBADD = \
166 $(top_builddir)/src/hello/libgnunethello.la \
167 $(top_builddir)/src/statistics/libgnunetstatistics.la \
168 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
170 $(top_builddir)/src/util/libgnunetutil.la
171 libgnunet_plugin_transport_http_la_LDFLAGS = \
175 libgnunet_plugin_transport_https_la_SOURCES = \
176 plugin_transport_http.c
177 libgnunet_plugin_transport_https_la_LIBADD = \
178 $(top_builddir)/src/hello/libgnunethello.la \
179 $(top_builddir)/src/statistics/libgnunetstatistics.la \
180 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
182 $(top_builddir)/src/util/libgnunetutil.la
183 libgnunet_plugin_transport_https_la_LDFLAGS = \
186 libgnunet_plugin_transport_https_la_CFLAGS = \
187 $(CFLAGS) -DBUILD_HTTPS
191 test_transport_api_tcp \
192 test_transport_api_tcp_nat \
193 test_transport_api_udp \
194 test_transport_api_udp_nat \
195 $(HTTP_PLUGIN_TEST) \
197 $(HTTPS_PLUGIN_TEST) \
199 test_transport_api_reliability_tcp \
200 test_transport_api_reliability_tcp_nat \
201 test_transport_api_reliability_udp \
204 test_quota_compliance_tcp \
205 test_quota_compliance_http
206 # TODO: add tests for nat, etc.
210 test_transport_api_tcp \
211 test_transport_api_tcp_nat \
212 test_transport_api_udp \
213 test_transport_api_udp_nat \
214 $(HTTP_PLUGIN_TEST) \
216 $(HTTPS_PLUGIN_TEST) \
218 test_transport_api_reliability_tcp \
219 test_transport_api_reliability_tcp_nat \
222 test_quota_compliance_tcp \
223 test_quota_compliance_http
226 test_transport_api_tcp_SOURCES = \
228 test_transport_api_tcp_LDADD = \
229 $(top_builddir)/src/transport/libgnunettransport.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 test_transport_api_tcp_nat_SOURCES = \
234 test_transport_api_tcp_nat_LDADD = \
235 $(top_builddir)/src/transport/libgnunettransport.la \
236 $(top_builddir)/src/util/libgnunetutil.la
238 test_transport_api_reliability_tcp_SOURCES = \
239 test_transport_api_reliability.c
240 test_transport_api_reliability_tcp_LDADD = \
241 $(top_builddir)/src/transport/libgnunettransport.la \
242 $(top_builddir)/src/util/libgnunetutil.la
244 test_transport_api_reliability_tcp_nat_SOURCES = \
245 test_transport_api_reliability.c
246 test_transport_api_reliability_tcp_nat_LDADD = \
247 $(top_builddir)/src/transport/libgnunettransport.la \
248 $(top_builddir)/src/util/libgnunetutil.la
250 test_transport_api_reliability_udp_SOURCES = \
251 test_transport_api_reliability.c
252 test_transport_api_reliability_udp_LDADD = \
253 $(top_builddir)/src/transport/libgnunettransport.la \
254 $(top_builddir)/src/util/libgnunetutil.la
256 test_transport_api_udp_SOURCES = \
258 test_transport_api_udp_LDADD = \
259 $(top_builddir)/src/transport/libgnunettransport.la \
260 $(top_builddir)/src/util/libgnunetutil.la
262 test_transport_api_udp_nat_SOURCES = \
264 test_transport_api_udp_nat_LDADD = \
265 $(top_builddir)/src/transport/libgnunettransport.la \
266 $(top_builddir)/src/util/libgnunetutil.la
270 test_plugin_transport_http_SOURCES = \
271 test_plugin_transport_http.c
272 test_plugin_transport_http_LDADD = \
273 $(top_builddir)/src/transport/libgnunettransport.la \
274 $(top_builddir)/src/statistics/libgnunetstatistics.la \
276 $(top_builddir)/src/util/libgnunetutil.la
278 test_transport_api_http_SOURCES = \
280 test_transport_api_http_LDADD = \
281 $(top_builddir)/src/transport/libgnunettransport.la \
282 $(top_builddir)/src/util/libgnunetutil.la
284 test_transport_api_reliability_http_SOURCES = \
285 test_transport_api_reliability.c
286 test_transport_api_reliability_http_LDADD = \
287 $(top_builddir)/src/transport/libgnunettransport.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_plugin_transport_https_SOURCES = \
291 test_plugin_transport_https.c
292 test_plugin_transport_https_LDADD = \
293 $(top_builddir)/src/transport/libgnunettransport.la \
294 $(top_builddir)/src/statistics/libgnunetstatistics.la \
296 $(top_builddir)/src/util/libgnunetutil.la
298 test_transport_api_https_SOURCES = \
300 test_transport_api_https_LDADD = \
301 $(top_builddir)/src/transport/libgnunettransport.la \
302 $(top_builddir)/src/util/libgnunetutil.la
304 test_transport_api_reliability_https_SOURCES = \
305 test_transport_api_reliability.c
306 test_transport_api_reliability_https_LDADD = \
307 $(top_builddir)/src/transport/libgnunettransport.la \
308 $(top_builddir)/src/util/libgnunetutil.la
310 test_quota_compliance_tcp_SOURCES = \
311 test_quota_compliance.c
312 test_quota_compliance_tcp_LDADD = \
313 $(top_builddir)/src/transport/libgnunettransport.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_quota_compliance_http_SOURCES = \
317 test_quota_compliance.c
318 test_quota_compliance_http_LDADD = \
319 $(top_builddir)/src/transport/libgnunettransport.la \
320 $(top_builddir)/src/util/libgnunetutil.la
325 test_transport_api_data.conf \
326 test_transport_api_tcp_peer1.conf \
327 test_transport_api_tcp_peer2.conf \
328 test_transport_api_udp_peer1.conf \
329 test_transport_api_udp_peer2.conf \
330 test_transport_api_udp_nat_peer1.conf \
331 test_transport_api_udp_nat_peer2.conf \
332 test_transport_api_tcp_nat_peer1.conf \
333 test_transport_api_tcp_nat_peer2.conf \
334 test_plugin_transport_data.conf \
335 test_transport_api_http_peer1.conf \
336 test_transport_api_http_peer2.conf \
337 test_transport_api_https_peer1.conf \
338 test_transport_api_https_peer2.conf \
339 test_transport_api_rel_http_peer1.conf \
340 test_transport_api_rel_http_peer2.conf \
341 test_transport_api_rel_https_peer1.conf \
342 test_transport_api_rel_https_peer2.conf \
343 test_plugin_transport_data_http.conf \
344 test_plugin_transport_data.conf \
345 test_quota_compliance_data.conf \
346 test_quota_compliance_tcp_peer1.conf \
347 test_quota_compliance_tcp_peer2.conf \
348 test_quota_compliance_http_peer1.conf \
349 test_quota_compliance_http_peer2.conf