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
205 # TODO: add tests for nat, etc.
209 test_transport_api_tcp \
210 test_transport_api_tcp_nat \
211 test_transport_api_udp \
212 test_transport_api_udp_nat \
213 $(HTTP_PLUGIN_TEST) \
215 $(HTTPS_PLUGIN_TEST) \
217 test_transport_api_reliability_tcp \
218 test_transport_api_reliability_tcp_nat \
221 test_quota_compliance
224 test_transport_api_tcp_SOURCES = \
226 test_transport_api_tcp_LDADD = \
227 $(top_builddir)/src/transport/libgnunettransport.la \
228 $(top_builddir)/src/util/libgnunetutil.la
230 test_transport_api_tcp_nat_SOURCES = \
232 test_transport_api_tcp_nat_LDADD = \
233 $(top_builddir)/src/transport/libgnunettransport.la \
234 $(top_builddir)/src/util/libgnunetutil.la
236 test_transport_api_reliability_tcp_SOURCES = \
237 test_transport_api_reliability.c
238 test_transport_api_reliability_tcp_LDADD = \
239 $(top_builddir)/src/transport/libgnunettransport.la \
240 $(top_builddir)/src/util/libgnunetutil.la
242 test_transport_api_reliability_tcp_nat_SOURCES = \
243 test_transport_api_reliability.c
244 test_transport_api_reliability_tcp_nat_LDADD = \
245 $(top_builddir)/src/transport/libgnunettransport.la \
246 $(top_builddir)/src/util/libgnunetutil.la
248 test_transport_api_reliability_udp_SOURCES = \
249 test_transport_api_reliability.c
250 test_transport_api_reliability_udp_LDADD = \
251 $(top_builddir)/src/transport/libgnunettransport.la \
252 $(top_builddir)/src/util/libgnunetutil.la
254 test_transport_api_udp_SOURCES = \
256 test_transport_api_udp_LDADD = \
257 $(top_builddir)/src/transport/libgnunettransport.la \
258 $(top_builddir)/src/util/libgnunetutil.la
260 test_transport_api_udp_nat_SOURCES = \
262 test_transport_api_udp_nat_LDADD = \
263 $(top_builddir)/src/transport/libgnunettransport.la \
264 $(top_builddir)/src/util/libgnunetutil.la
268 test_plugin_transport_http_SOURCES = \
269 test_plugin_transport_http.c
270 test_plugin_transport_http_LDADD = \
271 $(top_builddir)/src/transport/libgnunettransport.la \
272 $(top_builddir)/src/statistics/libgnunetstatistics.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 test_transport_api_http_SOURCES = \
278 test_transport_api_http_LDADD = \
279 $(top_builddir)/src/transport/libgnunettransport.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_transport_api_reliability_http_SOURCES = \
283 test_transport_api_reliability.c
284 test_transport_api_reliability_http_LDADD = \
285 $(top_builddir)/src/transport/libgnunettransport.la \
286 $(top_builddir)/src/util/libgnunetutil.la
288 test_plugin_transport_https_SOURCES = \
289 test_plugin_transport_https.c
290 test_plugin_transport_https_LDADD = \
291 $(top_builddir)/src/transport/libgnunettransport.la \
292 $(top_builddir)/src/statistics/libgnunetstatistics.la \
294 $(top_builddir)/src/util/libgnunetutil.la
296 test_transport_api_https_SOURCES = \
298 test_transport_api_https_LDADD = \
299 $(top_builddir)/src/transport/libgnunettransport.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_transport_api_reliability_https_SOURCES = \
303 test_transport_api_reliability.c
304 test_transport_api_reliability_https_LDADD = \
305 $(top_builddir)/src/transport/libgnunettransport.la \
306 $(top_builddir)/src/util/libgnunetutil.la
308 test_quota_compliance_SOURCES = \
309 test_quota_compliance.c
310 test_quota_compliance_LDADD = \
311 $(top_builddir)/src/transport/libgnunettransport.la \
312 $(top_builddir)/src/util/libgnunetutil.la
317 test_transport_api_data.conf \
318 test_transport_api_tcp_peer1.conf \
319 test_transport_api_tcp_peer2.conf \
320 test_transport_api_udp_peer1.conf \
321 test_transport_api_udp_peer2.conf \
322 test_transport_api_udp_nat_peer1.conf \
323 test_transport_api_udp_nat_peer2.conf \
324 test_transport_api_tcp_nat_peer1.conf \
325 test_transport_api_tcp_nat_peer2.conf \
326 test_plugin_transport_data.conf \
327 test_transport_api_http_peer1.conf \
328 test_transport_api_http_peer2.conf \
329 test_transport_api_https_peer1.conf \
330 test_transport_api_https_peer2.conf \
331 test_transport_api_rel_http_peer1.conf \
332 test_transport_api_rel_http_peer2.conf \
333 test_transport_api_rel_https_peer1.conf \
334 test_transport_api_rel_https_peer2.conf \
335 test_plugin_transport_data_http.conf \
336 test_plugin_transport_data.conf \
337 test_quota_compliance_data.conf \
338 test_quota_compliance_peer1.conf \
339 test_quota_compliance_peer2.conf