aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gns/Makefile.am12
-rw-r--r--src/hostlist/Makefile.am14
-rw-r--r--src/pt/Makefile.am44
-rw-r--r--src/transport/Makefile.am37
4 files changed, 89 insertions, 18 deletions
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index f8d266748..61e52ee98 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -55,6 +55,14 @@ if HAVE_MHD
55if HAVE_GNUTLS 55if HAVE_GNUTLS
56if HAVE_LIBGNURL 56if HAVE_LIBGNURL
57 DO_PROXY=gnunet-gns-proxy 57 DO_PROXY=gnunet-gns-proxy
58LIB_GNURL=@LIBGNURL@
59CPP_GNURL=@LIBGNURL_CPPFLAGS@
60else
61if HAVE_LIBCURL
62 DO_PROXY=gnunet-gns-proxy
63LIB_GNURL=@LIBCURL@
64CPP_GNURL=@LIBCURL_CPPFLAGS@
65endif
58endif 66endif
59endif 67endif
60endif 68endif
@@ -141,8 +149,8 @@ gnunet_dns2gns_DEPENDENCIES = \
141 149
142gnunet_gns_proxy_SOURCES = \ 150gnunet_gns_proxy_SOURCES = \
143 gnunet-gns-proxy.c 151 gnunet-gns-proxy.c
144gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(LIBGNURL_CPPFLAGS) 152gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL)
145gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIBGNURL) -lgnutls \ 153gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \
146 $(top_builddir)/src/gns/libgnunetgns.la \ 154 $(top_builddir)/src/gns/libgnunetgns.la \
147 $(top_builddir)/src/identity/libgnunetidentity.la \ 155 $(top_builddir)/src/identity/libgnunetidentity.la \
148 $(top_builddir)/src/util/libgnunetutil.la \ 156 $(top_builddir)/src/util/libgnunetutil.la \
diff --git a/src/hostlist/Makefile.am b/src/hostlist/Makefile.am
index d777cd658..5d5a94b5d 100644
--- a/src/hostlist/Makefile.am
+++ b/src/hostlist/Makefile.am
@@ -20,6 +20,15 @@ endif
20if HAVE_LIBGNURL 20if HAVE_LIBGNURL
21libexec_PROGRAMS = \ 21libexec_PROGRAMS = \
22 gnunet-daemon-hostlist 22 gnunet-daemon-hostlist
23LIB_GNURL=@LIBGNURL@
24CPP_GNURL=@LIBGNURL_CPPFLAGS@
25else
26if HAVE_LIBCURL
27libexec_PROGRAMS = \
28 gnunet-daemon-hostlist
29LIB_GNURL=@LIBCURL@
30CPP_GNURL=@LIBCURL_CPPFLAGS@
31endif
23endif 32endif
24 33
25gnunet_daemon_hostlist_SOURCES = \ 34gnunet_daemon_hostlist_SOURCES = \
@@ -35,11 +44,12 @@ gnunet_daemon_hostlist_LDADD = \
35 $(top_builddir)/src/transport/libgnunettransport.la \ 44 $(top_builddir)/src/transport/libgnunettransport.la \
36 $(top_builddir)/src/util/libgnunetutil.la \ 45 $(top_builddir)/src/util/libgnunetutil.la \
37 $(GN_LIBMHD) \ 46 $(GN_LIBMHD) \
38 @LIBGNURL@ \ 47 $(LIB_GNURL) \
39 $(GN_LIBINTL) 48 $(GN_LIBINTL)
40 49
41gnunet_daemon_hostlist_CPPFLAGS = \ 50gnunet_daemon_hostlist_CPPFLAGS = \
42 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 51 $(CPP_GNURL) \
52 $(AM_CPPFLAGS)
43 53
44if HAVE_LIBGNURL 54if HAVE_LIBGNURL
45check_PROGRAMS = \ 55check_PROGRAMS = \
diff --git a/src/pt/Makefile.am b/src/pt/Makefile.am
index 650fabf09..9783ffc07 100644
--- a/src/pt/Makefile.am
+++ b/src/pt/Makefile.am
@@ -34,7 +34,29 @@ gnunet_daemon_pt_LDADD = \
34 34
35if HAVE_TESTING 35if HAVE_TESTING
36if HAVE_MHD 36if HAVE_MHD
37
37if HAVE_LIBGNURL 38if HAVE_LIBGNURL
39LIB_GNURL=@LIBGNURL@
40CPP_GNURL=@LIBGNURL_CPPFLAGS@
41if LINUX
42 VPN_TEST = \
43 test_gnunet_vpn-4_to_6 \
44 test_gnunet_vpn-6_to_4 \
45 test_gnunet_vpn-6_over \
46 test_gnunet_vpn-4_over \
47 test_gns_vpn
48endif
49if MINGW
50 VPN_TEST = \
51 test_gnunet_vpn-4_to_6 \
52 test_gnunet_vpn-6_to_4 \
53 test_gnunet_vpn-6_over \
54 test_gnunet_vpn-4_over
55endif
56else
57if HAVE_LIBCURL
58LIB_GNURL=@LIBCURL@
59CPP_GNURL=@LIBCURL_CPPFLAGS@
38if LINUX 60if LINUX
39 VPN_TEST = \ 61 VPN_TEST = \
40 test_gnunet_vpn-4_to_6 \ 62 test_gnunet_vpn-4_to_6 \
@@ -52,6 +74,8 @@ if MINGW
52endif 74endif
53endif 75endif
54endif 76endif
77
78endif
55endif 79endif
56 80
57check_PROGRAMS = $(VPN_TEST) 81check_PROGRAMS = $(VPN_TEST)
@@ -69,48 +93,48 @@ EXTRA_DIST = \
69 93
70test_gns_vpn_SOURCES = \ 94test_gns_vpn_SOURCES = \
71 test_gns_vpn.c 95 test_gns_vpn.c
72test_gns_vpn_LDADD = -lmicrohttpd @LIBGNURL@ \ 96test_gns_vpn_LDADD = -lmicrohttpd $(LIB_GNURL) \
73 $(top_builddir)/src/namestore/libgnunetnamestore.la \ 97 $(top_builddir)/src/namestore/libgnunetnamestore.la \
74 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ 98 $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
75 $(top_builddir)/src/testing/libgnunettesting.la \ 99 $(top_builddir)/src/testing/libgnunettesting.la \
76 $(top_builddir)/src/util/libgnunetutil.la 100 $(top_builddir)/src/util/libgnunetutil.la
77test_gns_vpn_CPPFLAGS = \ 101test_gns_vpn_CPPFLAGS = \
78 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 102 $(CPP_GNURL) $(AM_CPPFLAGS)
79 103
80test_gnunet_vpn_4_over_SOURCES = \ 104test_gnunet_vpn_4_over_SOURCES = \
81 test_gnunet_vpn.c 105 test_gnunet_vpn.c
82test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBGNURL@ \ 106test_gnunet_vpn_4_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
83 $(top_builddir)/src/vpn/libgnunetvpn.la \ 107 $(top_builddir)/src/vpn/libgnunetvpn.la \
84 $(top_builddir)/src/testing/libgnunettesting.la \ 108 $(top_builddir)/src/testing/libgnunettesting.la \
85 $(top_builddir)/src/util/libgnunetutil.la 109 $(top_builddir)/src/util/libgnunetutil.la
86test_gnunet_vpn_4_over_CPPFLAGS = \ 110test_gnunet_vpn_4_over_CPPFLAGS = \
87 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 111 $(LIB_GNURL) $(AM_CPPFLAGS)
88 112
89test_gnunet_vpn_6_over_SOURCES = \ 113test_gnunet_vpn_6_over_SOURCES = \
90 test_gnunet_vpn.c 114 test_gnunet_vpn.c
91test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBGNURL@ \ 115test_gnunet_vpn_6_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
92 $(top_builddir)/src/vpn/libgnunetvpn.la \ 116 $(top_builddir)/src/vpn/libgnunetvpn.la \
93 $(top_builddir)/src/testing/libgnunettesting.la \ 117 $(top_builddir)/src/testing/libgnunettesting.la \
94 $(top_builddir)/src/util/libgnunetutil.la 118 $(top_builddir)/src/util/libgnunetutil.la
95test_gnunet_vpn_6_over_CPPFLAGS = \ 119test_gnunet_vpn_6_over_CPPFLAGS = \
96 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 120 $(CPP_GNURL) $(AM_CPPFLAGS)
97 121
98test_gnunet_vpn_4_to_6_SOURCES = \ 122test_gnunet_vpn_4_to_6_SOURCES = \
99 test_gnunet_vpn.c 123 test_gnunet_vpn.c
100test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBGNURL@ \ 124test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd $(LIB_GNURL) \
101 $(top_builddir)/src/vpn/libgnunetvpn.la \ 125 $(top_builddir)/src/vpn/libgnunetvpn.la \
102 $(top_builddir)/src/testing/libgnunettesting.la \ 126 $(top_builddir)/src/testing/libgnunettesting.la \
103 $(top_builddir)/src/util/libgnunetutil.la 127 $(top_builddir)/src/util/libgnunetutil.la
104test_gnunet_vpn_4_to_6_CPPFLAGS = \ 128test_gnunet_vpn_4_to_6_CPPFLAGS = \
105 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 129 $(CPP_GNURL) $(AM_CPPFLAGS)
106 130
107test_gnunet_vpn_6_to_4_SOURCES = \ 131test_gnunet_vpn_6_to_4_SOURCES = \
108 test_gnunet_vpn.c 132 test_gnunet_vpn.c
109test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBGNURL@ \ 133test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd $(LIB_GNURL) \
110 $(top_builddir)/src/vpn/libgnunetvpn.la \ 134 $(top_builddir)/src/vpn/libgnunetvpn.la \
111 $(top_builddir)/src/testing/libgnunettesting.la \ 135 $(top_builddir)/src/testing/libgnunettesting.la \
112 $(top_builddir)/src/util/libgnunetutil.la 136 $(top_builddir)/src/util/libgnunetutil.la
113test_gnunet_vpn_6_to_4_CPPFLAGS = \ 137test_gnunet_vpn_6_to_4_CPPFLAGS = \
114 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 138 $(CPP_GNURL) $(AM_CPPFLAGS)
115 139
116 140
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index d4a1001c9..dd7bedbae 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -23,6 +23,17 @@ if HAVE_LIBGNURL
23 HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client 23 HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
24 HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la 24 HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
25 HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la 25 HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
26LIB_GNURL=@LIBGNURL@
27CPP_GNURL=@LIBGNURL_CPPFLAGS@
28else
29if HAVE_LIBCURL
30 HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
31 HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client
32 HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la
33 HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la
34LIB_GNURL=@LIBCURL@
35CPP_GNURL=@LIBCURL_CPPFLAGS@
36endif
26endif 37endif
27 38
28if HAVE_MHD 39if HAVE_MHD
@@ -42,6 +53,24 @@ if HAVE_LIBGNURL
42 HTTPS_QUOTA_TEST = test_quota_compliance_https \ 53 HTTPS_QUOTA_TEST = test_quota_compliance_https \
43 test_quota_compliance_https_asymmetric 54 test_quota_compliance_https_asymmetric
44 HTTPS_SWITCH = test_transport_address_switch_https 55 HTTPS_SWITCH = test_transport_address_switch_https
56else
57if HAVE_LIBCURL
58 HTTP_API_TEST = test_transport_api_http
59 HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
60 HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http
61 HTTP_REL_TEST = test_transport_api_reliability_http \
62 test_transport_api_reliability_http_xhr
63 HTTP_QUOTA_TEST = test_quota_compliance_http \
64 test_quota_compliance_http_asymmetric
65 HTTP_SWITCH = test_transport_address_switch_http
66 HTTPS_API_TEST = test_transport_api_https
67 HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https
68 HTTPS_REL_TEST = test_transport_api_reliability_https \
69 test_transport_api_reliability_https_xhr
70 HTTPS_QUOTA_TEST = test_quota_compliance_https \
71 test_quota_compliance_https_asymmetric
72 HTTPS_SWITCH = test_transport_address_switch_https
73endif
45endif 74endif
46endif 75endif
47 76
@@ -334,7 +363,7 @@ libgnunet_plugin_transport_http_client_la_LIBADD = \
334 $(top_builddir)/src/hello/libgnunethello.la \ 363 $(top_builddir)/src/hello/libgnunethello.la \
335 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 364 $(top_builddir)/src/statistics/libgnunetstatistics.la \
336 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ 365 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
337 @LIBGNURL@ \ 366 $(LIB_GNURL) \
338 $(top_builddir)/src/nat/libgnunetnat.la \ 367 $(top_builddir)/src/nat/libgnunetnat.la \
339 $(top_builddir)/src/util/libgnunetutil.la 368 $(top_builddir)/src/util/libgnunetutil.la
340libgnunet_plugin_transport_http_client_la_LDFLAGS = \ 369libgnunet_plugin_transport_http_client_la_LDFLAGS = \
@@ -342,7 +371,7 @@ libgnunet_plugin_transport_http_client_la_LDFLAGS = \
342libgnunet_plugin_transport_http_client_la_CFLAGS = \ 371libgnunet_plugin_transport_http_client_la_CFLAGS = \
343 $(CFLAGS) 372 $(CFLAGS)
344libgnunet_plugin_transport_http_client_la_CPPFLAGS = \ 373libgnunet_plugin_transport_http_client_la_CPPFLAGS = \
345 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 374 $(CPP_GNURL) $(AM_CPPFLAGS)
346 375
347 376
348libgnunet_plugin_transport_http_server_la_SOURCES = \ 377libgnunet_plugin_transport_http_server_la_SOURCES = \
@@ -365,7 +394,7 @@ libgnunet_plugin_transport_https_client_la_LIBADD = \
365 $(top_builddir)/src/hello/libgnunethello.la \ 394 $(top_builddir)/src/hello/libgnunethello.la \
366 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 395 $(top_builddir)/src/statistics/libgnunetstatistics.la \
367 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ 396 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
368 @LIBGNURL@ \ 397 $(LIB_GNURL) \
369 $(top_builddir)/src/nat/libgnunetnat.la \ 398 $(top_builddir)/src/nat/libgnunetnat.la \
370 $(top_builddir)/src/util/libgnunetutil.la 399 $(top_builddir)/src/util/libgnunetutil.la
371libgnunet_plugin_transport_https_client_la_LDFLAGS = \ 400libgnunet_plugin_transport_https_client_la_LDFLAGS = \
@@ -373,7 +402,7 @@ libgnunet_plugin_transport_https_client_la_LDFLAGS = \
373libgnunet_plugin_transport_https_client_la_CFLAGS = \ 402libgnunet_plugin_transport_https_client_la_CFLAGS = \
374 $(CFLAGS) -DBUILD_HTTPS 403 $(CFLAGS) -DBUILD_HTTPS
375libgnunet_plugin_transport_https_client_la_CPPFLAGS = \ 404libgnunet_plugin_transport_https_client_la_CPPFLAGS = \
376 @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) 405 $(CPP_GNURL) $(AM_CPPFLAGS)
377 406
378 407
379libgnunet_plugin_transport_https_server_la_SOURCES = \ 408libgnunet_plugin_transport_https_server_la_SOURCES = \