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 test_quota_compliance_https
207 # TODO: add tests for nat, etc.
211 test_transport_api_tcp \
212 test_transport_api_tcp_nat \
213 test_transport_api_udp \
214 test_transport_api_udp_nat \
215 $(HTTP_PLUGIN_TEST) \
217 $(HTTPS_PLUGIN_TEST) \
219 test_transport_api_reliability_tcp \
220 test_transport_api_reliability_tcp_nat \
223 test_quota_compliance_tcp \
224 test_quota_compliance_http \
225 test_quota_compliance_https
228 test_transport_api_tcp_SOURCES = \
230 test_transport_api_tcp_LDADD = \
231 $(top_builddir)/src/transport/libgnunettransport.la \
232 $(top_builddir)/src/util/libgnunetutil.la
234 test_transport_api_tcp_nat_SOURCES = \
236 test_transport_api_tcp_nat_LDADD = \
237 $(top_builddir)/src/transport/libgnunettransport.la \
238 $(top_builddir)/src/util/libgnunetutil.la
240 test_transport_api_reliability_tcp_SOURCES = \
241 test_transport_api_reliability.c
242 test_transport_api_reliability_tcp_LDADD = \
243 $(top_builddir)/src/transport/libgnunettransport.la \
244 $(top_builddir)/src/util/libgnunetutil.la
246 test_transport_api_reliability_tcp_nat_SOURCES = \
247 test_transport_api_reliability.c
248 test_transport_api_reliability_tcp_nat_LDADD = \
249 $(top_builddir)/src/transport/libgnunettransport.la \
250 $(top_builddir)/src/util/libgnunetutil.la
252 test_transport_api_reliability_udp_SOURCES = \
253 test_transport_api_reliability.c
254 test_transport_api_reliability_udp_LDADD = \
255 $(top_builddir)/src/transport/libgnunettransport.la \
256 $(top_builddir)/src/util/libgnunetutil.la
258 test_transport_api_udp_SOURCES = \
260 test_transport_api_udp_LDADD = \
261 $(top_builddir)/src/transport/libgnunettransport.la \
262 $(top_builddir)/src/util/libgnunetutil.la
264 test_transport_api_udp_nat_SOURCES = \
266 test_transport_api_udp_nat_LDADD = \
267 $(top_builddir)/src/transport/libgnunettransport.la \
268 $(top_builddir)/src/util/libgnunetutil.la
272 test_plugin_transport_http_SOURCES = \
273 test_plugin_transport_http.c
274 test_plugin_transport_http_LDADD = \
275 $(top_builddir)/src/transport/libgnunettransport.la \
276 $(top_builddir)/src/statistics/libgnunetstatistics.la \
278 $(top_builddir)/src/util/libgnunetutil.la
280 test_transport_api_http_SOURCES = \
282 test_transport_api_http_LDADD = \
283 $(top_builddir)/src/transport/libgnunettransport.la \
284 $(top_builddir)/src/util/libgnunetutil.la
286 test_transport_api_reliability_http_SOURCES = \
287 test_transport_api_reliability.c
288 test_transport_api_reliability_http_LDADD = \
289 $(top_builddir)/src/transport/libgnunettransport.la \
290 $(top_builddir)/src/util/libgnunetutil.la
292 test_plugin_transport_https_SOURCES = \
293 test_plugin_transport_https.c
294 test_plugin_transport_https_LDADD = \
295 $(top_builddir)/src/transport/libgnunettransport.la \
296 $(top_builddir)/src/statistics/libgnunetstatistics.la \
298 $(top_builddir)/src/util/libgnunetutil.la
300 test_transport_api_https_SOURCES = \
302 test_transport_api_https_LDADD = \
303 $(top_builddir)/src/transport/libgnunettransport.la \
304 $(top_builddir)/src/util/libgnunetutil.la
306 test_transport_api_reliability_https_SOURCES = \
307 test_transport_api_reliability.c
308 test_transport_api_reliability_https_LDADD = \
309 $(top_builddir)/src/transport/libgnunettransport.la \
310 $(top_builddir)/src/util/libgnunetutil.la
312 test_quota_compliance_tcp_SOURCES = \
313 test_quota_compliance.c
314 test_quota_compliance_tcp_LDADD = \
315 $(top_builddir)/src/transport/libgnunettransport.la \
316 $(top_builddir)/src/util/libgnunetutil.la
318 test_quota_compliance_http_SOURCES = \
319 test_quota_compliance.c
320 test_quota_compliance_http_LDADD = \
321 $(top_builddir)/src/transport/libgnunettransport.la \
322 $(top_builddir)/src/util/libgnunetutil.la
324 test_quota_compliance_https_SOURCES = \
325 test_quota_compliance.c
326 test_quota_compliance_https_LDADD = \
327 $(top_builddir)/src/transport/libgnunettransport.la \
328 $(top_builddir)/src/util/libgnunetutil.la
333 test_transport_api_data.conf \
334 test_transport_api_tcp_peer1.conf \
335 test_transport_api_tcp_peer2.conf \
336 test_transport_api_udp_peer1.conf \
337 test_transport_api_udp_peer2.conf \
338 test_transport_api_udp_nat_peer1.conf \
339 test_transport_api_udp_nat_peer2.conf \
340 test_transport_api_tcp_nat_peer1.conf \
341 test_transport_api_tcp_nat_peer2.conf \
342 test_plugin_transport_data.conf \
343 test_transport_api_http_peer1.conf \
344 test_transport_api_http_peer2.conf \
345 test_transport_api_https_peer1.conf \
346 test_transport_api_https_peer2.conf \
347 test_transport_api_rel_http_peer1.conf \
348 test_transport_api_rel_http_peer2.conf \
349 test_transport_api_rel_https_peer1.conf \
350 test_transport_api_rel_https_peer2.conf \
351 test_plugin_transport_data_http.conf \
352 test_plugin_transport_data.conf \
353 test_quota_compliance_data.conf \
354 test_quota_compliance_tcp_peer1.conf \
355 test_quota_compliance_tcp_peer2.conf \
356 test_quota_compliance_http_peer1.conf \
357 test_quota_compliance_http_peer2.conf \
358 test_quota_compliance_https_peer1.conf \
359 test_quota_compliance_https_peer2.conf