remove old CADET service code
[oweals/gnunet.git] / src / cadet / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 pkgcfgdir= $(pkgdatadir)/config.d/
14
15 libexecdir= $(pkglibdir)/libexec/
16
17 pkgcfg_DATA = \
18   cadet.conf
19
20 plugindir = $(libdir)/gnunet
21
22 AM_CLFAGS = -g
23
24 libexec_PROGRAMS = \
25  gnunet-service-cadet-new \
26  $(EXP_LIBEXEC)
27
28 bin_PROGRAMS = \
29  gnunet-cadet
30
31 lib_LTLIBRARIES = \
32   libgnunetcadetnew.la \
33   libgnunetcadet.la \
34   $(EXP_LIB)
35
36 libgnunetcadet_la_SOURCES = \
37   cadet_api.c cadet_common.c
38 libgnunetcadet_la_LIBADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(XLIB) \
41   $(LTLIBINTL)
42 libgnunetcadet_la_LDFLAGS = \
43   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44   -version-info 5:0:0
45
46
47 libgnunetcadetnew_la_SOURCES = \
48   cadet_api_new.c
49 libgnunetcadetnew_la_LIBADD = \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(XLIB) \
52   $(LTLIBINTL)
53 libgnunetcadetnew_la_LDFLAGS = \
54   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
55   -version-info 6:0:0
56
57 gnunet_cadet_SOURCES = \
58   gnunet-cadet.c
59 gnunet_cadet_LDADD = \
60   libgnunetcadetnew.la \
61   $(top_builddir)/src/util/libgnunetutil.la
62
63 gnunet_service_cadet_new_SOURCES = \
64  gnunet-service-cadet-new.c gnunet-service-cadet-new.h \
65  gnunet-service-cadet-new_channel.c gnunet-service-cadet-new_channel.h \
66  gnunet-service-cadet-new_connection.c gnunet-service-cadet-new_connection.h \
67  gnunet-service-cadet-new_core.c gnunet-service-cadet-new_core.h \
68  gnunet-service-cadet-new_dht.c gnunet-service-cadet-new_dht.h \
69  gnunet-service-cadet-new_hello.c gnunet-service-cadet-new_hello.h \
70  gnunet-service-cadet-new_tunnels.c gnunet-service-cadet-new_tunnels.h \
71  gnunet-service-cadet-new_paths.c gnunet-service-cadet-new_paths.h \
72  gnunet-service-cadet-new_peer.c gnunet-service-cadet-new_peer.h
73 gnunet_service_cadet_new_LDADD = \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/ats/libgnunetats.la \
76   $(top_builddir)/src/core/libgnunetcore.la \
77   $(top_builddir)/src/dht/libgnunetdht.la \
78   $(top_builddir)/src/statistics/libgnunetstatistics.la \
79   $(top_builddir)/src/transport/libgnunettransport.la \
80   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
81   $(top_builddir)/src/hello/libgnunethello.la \
82   $(top_builddir)/src/block/libgnunetblock.la
83 if LINUX
84   gnunet_service_cadet_new_LDFLAGS = -lrt
85 endif
86
87
88 if HAVE_TESTING
89  noinst_LTLIBRARIES = libgnunetcadettest.la libgnunetcadettestnew.la $(noinst_LIB_EXP)
90  noinst_PROGRAMS = gnunet-cadet-profiler
91 endif
92
93 libgnunetcadettest_la_SOURCES = \
94   cadet_test_lib.c cadet_test_lib.h
95 libgnunetcadettest_la_LIBADD = \
96  $(top_builddir)/src/util/libgnunetutil.la \
97  $(top_builddir)/src/testbed/libgnunettestbed.la \
98  libgnunetcadet.la
99
100 if HAVE_TESTING
101 check_PROGRAMS = \
102   test_cadet_local_mq \
103   test_cadet_2_forward_new \
104   test_cadet_2_forward_new \
105   test_cadet_2_signal_new \
106   test_cadet_2_keepalive_new \
107   test_cadet_2_speed_new \
108   test_cadet_2_speed_ack_new \
109   test_cadet_2_speed_backwards_new \
110   test_cadet_2_speed_reliable_new \
111   test_cadet_2_speed_reliable_backwards_new \
112   test_cadet_5_forward_new \
113   test_cadet_5_signal_new \
114   test_cadet_5_keepalive_new \
115   test_cadet_5_speed_new \
116   test_cadet_5_speed_ack_new \
117   test_cadet_5_speed_reliable_new \
118   test_cadet_5_speed_reliable_backwards_new \
119   test_cadet_5_speed_backwards_new \
120   test_cadet_single \
121   test_cadet_local \
122   test_cadet_2_forward \
123   test_cadet_2_signal \
124   test_cadet_2_keepalive \
125   test_cadet_2_speed \
126   test_cadet_2_speed_ack \
127   test_cadet_2_speed_backwards \
128   test_cadet_2_speed_reliable \
129   test_cadet_2_speed_reliable_backwards \
130   test_cadet_5_forward \
131   test_cadet_5_signal \
132   test_cadet_5_keepalive \
133   test_cadet_5_speed \
134   test_cadet_5_speed_ack \
135   test_cadet_5_speed_reliable \
136   test_cadet_5_speed_reliable_backwards \
137   test_cadet_5_speed_backwards
138 endif
139
140 ld_cadet_test_lib = \
141   $(top_builddir)/src/util/libgnunetutil.la \
142   $(top_builddir)/src/testing/libgnunettesting.la \
143   libgnunetcadettest.la \
144   libgnunetcadet.la \
145   $(top_builddir)/src/testbed/libgnunettestbed.la \
146   $(top_builddir)/src/statistics/libgnunetstatistics.la
147
148 dep_cadet_test_lib = \
149   libgnunetcadet.la \
150   libgnunetcadettest.la \
151   $(top_builddir)/src/statistics/libgnunetstatistics.la
152
153
154 gnunet_cadet_profiler_SOURCES = \
155   gnunet-cadet-profiler.c
156 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
157
158
159 test_cadet_single_SOURCES = \
160   test_cadet_single.c
161 test_cadet_single_LDADD = $(ld_cadet_test_lib)
162
163 test_cadet_local_SOURCES = \
164   test_cadet_local.c
165 test_cadet_local_LDADD = $(ld_cadet_test_lib)
166
167
168 test_cadet_local_mq_SOURCES = \
169   test_cadet_local_mq.c
170 test_cadet_local_mq_LDADD = \
171   libgnunetcadetnew.la \
172   $(top_builddir)/src/testing/libgnunettesting.la \
173   $(top_builddir)/src/util/libgnunetutil.la
174
175 test_cadet_2_forward_SOURCES = \
176   test_cadet.c
177 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
178
179 test_cadet_2_signal_SOURCES = \
180   test_cadet.c
181 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
182
183 test_cadet_2_keepalive_SOURCES = \
184   test_cadet.c
185 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
186
187 test_cadet_2_speed_SOURCES = \
188   test_cadet.c
189 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
190
191 test_cadet_2_speed_ack_SOURCES = \
192   test_cadet.c
193 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
194
195 test_cadet_2_speed_backwards_SOURCES = \
196   test_cadet.c
197 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
198
199 test_cadet_2_speed_reliable_SOURCES = \
200   test_cadet.c
201 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
202
203 test_cadet_2_speed_reliable_backwards_SOURCES = \
204   test_cadet.c
205 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
206
207
208 test_cadet_5_forward_SOURCES = \
209   test_cadet.c
210 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
211
212 test_cadet_5_signal_SOURCES = \
213   test_cadet.c
214 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
215
216 test_cadet_5_keepalive_SOURCES = \
217   test_cadet.c
218 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
219
220 test_cadet_5_speed_SOURCES = \
221   test_cadet.c
222 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
223
224 test_cadet_5_speed_ack_SOURCES = \
225   test_cadet.c
226 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
227
228 test_cadet_5_speed_backwards_SOURCES = \
229   test_cadet.c
230 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
231
232 test_cadet_5_speed_reliable_SOURCES = \
233   test_cadet.c
234 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
235
236 test_cadet_5_speed_reliable_backwards_SOURCES = \
237   test_cadet.c
238 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
239
240
241 # NEW TESTS
242 libgnunetcadettestnew_la_SOURCES = \
243   cadet_test_lib_new.c cadet_test_lib_new.h
244 libgnunetcadettestnew_la_LIBADD = \
245  $(top_builddir)/src/util/libgnunetutil.la \
246  $(top_builddir)/src/testbed/libgnunettestbed.la \
247  libgnunetcadetnew.la
248
249 ld_cadet_test_lib_new = \
250   $(top_builddir)/src/util/libgnunetutil.la \
251   $(top_builddir)/src/testing/libgnunettesting.la \
252   libgnunetcadetnew.la \
253   libgnunetcadettestnew.la \
254   $(top_builddir)/src/testbed/libgnunettestbed.la \
255   $(top_builddir)/src/statistics/libgnunetstatistics.la
256 dep_cadet_test_lib_new = \
257   libgnunetcadetnew.la \
258   libgnunetcadettestnew.la \
259   $(top_builddir)/src/statistics/libgnunetstatistics.la
260
261 test_cadet_2_forward_new_SOURCES = \
262   test_cadet_new.c
263 test_cadet_2_forward_new_LDADD = $(ld_cadet_test_lib_new)
264
265 test_cadet_2_signal_new_SOURCES = \
266   test_cadet_new.c
267 test_cadet_2_signal_new_LDADD = $(ld_cadet_test_lib_new)
268
269 test_cadet_2_keepalive_new_SOURCES = \
270   test_cadet_new.c
271 test_cadet_2_keepalive_new_LDADD = $(ld_cadet_test_lib_new)
272
273 test_cadet_2_speed_new_SOURCES = \
274   test_cadet_new.c
275 test_cadet_2_speed_new_LDADD = $(ld_cadet_test_lib_new)
276
277 test_cadet_2_speed_ack_new_SOURCES = \
278   test_cadet_new.c
279 test_cadet_2_speed_ack_new_LDADD = $(ld_cadet_test_lib_new)
280
281 test_cadet_2_speed_backwards_new_SOURCES = \
282   test_cadet_new.c
283 test_cadet_2_speed_backwards_new_LDADD = $(ld_cadet_test_lib_new)
284
285 test_cadet_2_speed_reliable_new_SOURCES = \
286   test_cadet_new.c
287 test_cadet_2_speed_reliable_new_LDADD = $(ld_cadet_test_lib_new)
288
289 test_cadet_2_speed_reliable_backwards_new_SOURCES = \
290   test_cadet_new.c
291 test_cadet_2_speed_reliable_backwards_new_LDADD = $(ld_cadet_test_lib_new)
292
293
294 test_cadet_5_forward_new_SOURCES = \
295   test_cadet_new.c
296 test_cadet_5_forward_new_LDADD = $(ld_cadet_test_lib_new)
297
298 test_cadet_5_signal_new_SOURCES = \
299   test_cadet_new.c
300 test_cadet_5_signal_new_LDADD = $(ld_cadet_test_lib_new)
301
302 test_cadet_5_keepalive_new_SOURCES = \
303   test_cadet_new.c
304 test_cadet_5_keepalive_new_LDADD = $(ld_cadet_test_lib_new)
305
306 test_cadet_5_speed_new_SOURCES = \
307   test_cadet_new.c
308 test_cadet_5_speed_new_LDADD = $(ld_cadet_test_lib_new)
309
310 test_cadet_5_speed_ack_new_SOURCES = \
311   test_cadet_new.c
312 test_cadet_5_speed_ack_new_LDADD = $(ld_cadet_test_lib_new)
313
314 test_cadet_5_speed_backwards_new_SOURCES = \
315   test_cadet_new.c
316 test_cadet_5_speed_backwards_new_LDADD = $(ld_cadet_test_lib_new)
317
318 test_cadet_5_speed_reliable_new_SOURCES = \
319   test_cadet_new.c
320 test_cadet_5_speed_reliable_new_LDADD = $(ld_cadet_test_lib_new)
321
322 test_cadet_5_speed_reliable_backwards_new_SOURCES = \
323   test_cadet_new.c
324 test_cadet_5_speed_reliable_backwards_new_LDADD = $(ld_cadet_test_lib_new)
325
326
327 if ENABLE_TEST_RUN
328 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
329 TESTS = \
330  $(check_PROGRAMS)
331 endif
332
333 EXTRA_DIST = \
334   cadet.h cadet_protocol.h \
335   test_cadet.conf \
336   test_cadet_drop.conf