1 INCLUDES = -I$(top_srcdir)/src/include
3 plugindir = $(libdir)/gnunet
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 GN_LIBMHD = -lmicrohttpd
11 HTTP_PLUGIN_LA = libgnunet_plugin_transport_http.la
12 HTTP_PLGUIN_CHECK = test_plugin_transport_http
16 AM_CFLAGS = --coverage -O0
20 NATBIN = gnunet-nat-server gnunet-nat-client
22 chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client || true
23 chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client || true
32 libgnunettransport_la_SOURCES = \
33 transport_api.c transport.h \
34 transport_api_blacklist.c \
35 transport_api_address_lookup.c
36 libgnunettransport_la_LIBADD = \
37 $(top_builddir)/src/arm/libgnunetarm.la \
38 $(top_builddir)/src/hello/libgnunethello.la \
39 $(top_builddir)/src/util/libgnunetutil.la \
41 libgnunettransport_la_LDFLAGS = \
42 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
48 gnunet-service-transport $(NATBIN)
51 gnunet_nat_server_SOURCES = \
54 gnunet_nat_client_SOURCES = \
58 gnunet_transport_SOURCES = \
60 gnunet_transport_LDADD = \
61 $(top_builddir)/src/transport/libgnunettransport.la \
62 $(top_builddir)/src/util/libgnunetutil.la \
65 gnunet_service_transport_SOURCES = \
66 gnunet-service-transport.c plugin_transport.h
67 gnunet_service_transport_LDADD = \
68 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
69 $(top_builddir)/src/statistics/libgnunetstatistics.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
74 plugin_LTLIBRARIES = \
75 libgnunet_plugin_transport_tcp.la \
76 libgnunet_plugin_transport_udp.la \
77 libgnunet_plugin_transport_udp_nat.la \
79 libgnunet_plugin_transport_template.la
80 # TODO: add http, nat, etc.
82 libgnunet_plugin_transport_tcp_la_SOURCES = \
83 plugin_transport_tcp.c
84 libgnunet_plugin_transport_tcp_la_LIBADD = \
85 $(top_builddir)/src/hello/libgnunethello.la \
86 $(top_builddir)/src/statistics/libgnunetstatistics.la \
87 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
88 $(top_builddir)/src/util/libgnunetutil.la
89 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
92 libgnunet_plugin_transport_template_la_SOURCES = \
93 plugin_transport_template.c
94 libgnunet_plugin_transport_template_la_LIBADD = \
95 $(top_builddir)/src/util/libgnunetutil.la
96 libgnunet_plugin_transport_template_la_LDFLAGS = \
99 libgnunet_plugin_transport_udp_la_SOURCES = \
100 plugin_transport_udp.c
101 libgnunet_plugin_transport_udp_la_LIBADD = \
102 $(top_builddir)/src/hello/libgnunethello.la \
103 $(top_builddir)/src/statistics/libgnunetstatistics.la \
104 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
105 $(top_builddir)/src/util/libgnunetutil.la
106 libgnunet_plugin_transport_udp_la_LDFLAGS = \
109 libgnunet_plugin_transport_udp_nat_la_SOURCES = \
110 plugin_transport_udp_nat.c
111 libgnunet_plugin_transport_udp_nat_la_LIBADD = \
112 $(top_builddir)/src/hello/libgnunethello.la \
113 $(top_builddir)/src/statistics/libgnunetstatistics.la \
114 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
115 $(top_builddir)/src/util/libgnunetutil.la
116 libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \
120 libgnunet_plugin_transport_http_la_SOURCES = \
121 plugin_transport_http.c
122 libgnunet_plugin_transport_http_la_LIBADD = \
123 $(top_builddir)/src/hello/libgnunethello.la \
124 $(top_builddir)/src/statistics/libgnunetstatistics.la \
125 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
127 $(top_builddir)/src/util/libgnunetutil.la
128 libgnunet_plugin_transport_http_la_LDFLAGS = \
134 test_transport_api_tcp \
135 test_transport_api_udp \
136 $(HTTP_PLGUIN_CHECK) \
137 test_transport_api_udp_nat
138 # test_transport_api_http \
139 # TODO: add tests for http, nat, etc.
141 TESTS = $(check_PROGRAMS)
143 test_transport_api_tcp_SOURCES = \
145 test_transport_api_tcp_LDADD = \
146 $(top_builddir)/src/transport/libgnunettransport.la \
147 $(top_builddir)/src/util/libgnunetutil.la
149 test_transport_api_udp_SOURCES = \
151 test_transport_api_udp_LDADD = \
152 $(top_builddir)/src/transport/libgnunettransport.la \
153 $(top_builddir)/src/util/libgnunetutil.la
155 test_transport_api_udp_nat_SOURCES = \
157 test_transport_api_udp_nat_LDADD = \
158 $(top_builddir)/src/transport/libgnunettransport.la \
159 $(top_builddir)/src/util/libgnunetutil.la
161 #test_transport_api_http_SOURCES = \
162 # test_transport_api.c
163 #test_transport_api_http_LDADD = \
164 # $(top_builddir)/src/transport/libgnunettransport.la \
165 # $(top_builddir)/src/util/libgnunetutil.la
167 test_plugin_transport_http_SOURCES = \
168 test_plugin_transport_http.c
169 test_plugin_transport_http_LDADD = \
170 $(top_builddir)/src/transport/libgnunettransport.la \
171 $(top_builddir)/src/util/libgnunetutil.la
175 test_transport_api_data.conf \
176 test_transport_api_tcp_peer1.conf \
177 test_transport_api_tcp_peer2.conf \
178 test_transport_api_udp_peer1.conf \
179 test_transport_api_udp_peer2.conf \
180 test_transport_api_udp_nat_peer1.conf \
181 test_transport_api_udp_nat_peer2.conf \
182 test_plugin_transport_data.conf \
183 test_plugin_transport_data_http.conf