1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
13 pkgcfgdir= $(pkgdatadir)/config.d/
15 libexecdir= $(pkglibdir)/libexec/
20 plugindir = $(libdir)/gnunet
25 gnunet-service-cadet \
26 gnunet-service-cadet-new \
33 libgnunetcadetnew.la \
37 libgnunetcadet_la_SOURCES = \
38 cadet_api.c cadet_common.c
39 libgnunetcadet_la_LIBADD = \
40 $(top_builddir)/src/util/libgnunetutil.la \
43 libgnunetcadet_la_LDFLAGS = \
44 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
48 libgnunetcadetnew_la_SOURCES = \
50 libgnunetcadetnew_la_LIBADD = \
51 $(top_builddir)/src/util/libgnunetutil.la \
54 libgnunetcadetnew_la_LDFLAGS = \
55 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
58 gnunet_cadet_SOURCES = \
60 gnunet_cadet_LDADD = \
61 libgnunetcadetnew.la \
62 $(top_builddir)/src/util/libgnunetutil.la
64 gnunet_service_cadet_new_SOURCES = \
65 gnunet-service-cadet-new.c gnunet-service-cadet-new.h \
66 gnunet-service-cadet-new_channel.c gnunet-service-cadet-new_channel.h \
67 gnunet-service-cadet-new_connection.c gnunet-service-cadet-new_connection.h \
68 gnunet-service-cadet-new_core.c gnunet-service-cadet-new_core.h \
69 gnunet-service-cadet-new_dht.c gnunet-service-cadet-new_dht.h \
70 gnunet-service-cadet-new_hello.c gnunet-service-cadet-new_hello.h \
71 gnunet-service-cadet-new_tunnels.c gnunet-service-cadet-new_tunnels.h \
72 gnunet-service-cadet-new_paths.c gnunet-service-cadet-new_paths.h \
73 gnunet-service-cadet-new_peer.c gnunet-service-cadet-new_peer.h
74 gnunet_service_cadet_new_LDADD = \
75 $(top_builddir)/src/util/libgnunetutil.la \
76 $(top_builddir)/src/ats/libgnunetats.la \
77 $(top_builddir)/src/core/libgnunetcore.la \
78 $(top_builddir)/src/dht/libgnunetdht.la \
79 $(top_builddir)/src/statistics/libgnunetstatistics.la \
80 $(top_builddir)/src/transport/libgnunettransport.la \
81 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
82 $(top_builddir)/src/hello/libgnunethello.la \
83 $(top_builddir)/src/block/libgnunetblock.la
85 gnunet_service_cadet_SOURCES = \
86 gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \
87 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
88 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
89 gnunet-service-cadet_local.c gnunet-service-cadet_local.h \
90 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \
91 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
92 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
93 cadet_path.c cadet_path.h \
95 gnunet-service-cadet.c
96 gnunet_service_cadet_CFLAGS = $(AM_CFLAGS)
97 gnunet_service_cadet_LDADD = \
98 $(top_builddir)/src/util/libgnunetutil.la \
99 $(top_builddir)/src/transport/libgnunettransport.la \
100 $(top_builddir)/src/core/libgnunetcore.la \
101 $(top_builddir)/src/ats/libgnunetats.la \
102 $(top_builddir)/src/dht/libgnunetdht.la \
103 $(top_builddir)/src/statistics/libgnunetstatistics.la \
104 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
105 $(top_builddir)/src/hello/libgnunethello.la \
106 $(top_builddir)/src/block/libgnunetblock.la
108 gnunet_service_cadet_LDFLAGS = -lrt
113 noinst_LIBRARIES = libgnunetcadettest.a libgnunetcadettestnew.a $(noinst_LIB_EXP)
114 noinst_PROGRAMS = gnunet-cadet-profiler
117 libgnunetcadettest_a_SOURCES = \
118 cadet_test_lib.c cadet_test_lib.h
119 libgnunetcadettest_a_LIBADD = \
120 $(top_builddir)/src/util/libgnunetutil.la \
121 $(top_builddir)/src/testbed/libgnunettestbed.la \
126 test_cadet_local_mq \
127 test_cadet_2_forward_new \
130 test_cadet_2_forward \
131 test_cadet_2_signal \
132 test_cadet_2_keepalive \
134 test_cadet_2_speed_ack \
135 test_cadet_2_speed_backwards \
136 test_cadet_2_speed_reliable \
137 test_cadet_2_speed_reliable_backwards \
138 test_cadet_5_forward \
139 test_cadet_5_signal \
140 test_cadet_5_keepalive \
142 test_cadet_5_speed_ack \
143 test_cadet_5_speed_reliable \
144 test_cadet_5_speed_reliable_backwards \
145 test_cadet_5_speed_backwards
148 ld_cadet_test_lib = \
149 $(top_builddir)/src/util/libgnunetutil.la \
150 $(top_builddir)/src/testing/libgnunettesting.la \
151 libgnunetcadettest.a \
153 $(top_builddir)/src/testbed/libgnunettestbed.la \
154 $(top_builddir)/src/statistics/libgnunetstatistics.la
156 dep_cadet_test_lib = \
158 libgnunetcadettest.a \
159 $(top_builddir)/src/statistics/libgnunetstatistics.la
162 gnunet_cadet_profiler_SOURCES = \
163 gnunet-cadet-profiler.c
164 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
167 test_cadet_single_SOURCES = \
169 test_cadet_single_LDADD = $(ld_cadet_test_lib)
171 test_cadet_local_SOURCES = \
173 test_cadet_local_LDADD = $(ld_cadet_test_lib)
176 test_cadet_local_mq_SOURCES = \
177 test_cadet_local_mq.c
178 test_cadet_local_mq_LDADD = \
179 libgnunetcadetnew.la \
180 $(top_builddir)/src/testing/libgnunettesting.la \
181 $(top_builddir)/src/util/libgnunetutil.la
183 test_cadet_2_forward_SOURCES = \
185 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
187 test_cadet_2_signal_SOURCES = \
189 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
191 test_cadet_2_keepalive_SOURCES = \
193 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
195 test_cadet_2_speed_SOURCES = \
197 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
199 test_cadet_2_speed_ack_SOURCES = \
201 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
203 test_cadet_2_speed_backwards_SOURCES = \
205 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
207 test_cadet_2_speed_reliable_SOURCES = \
209 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
211 test_cadet_2_speed_reliable_backwards_SOURCES = \
213 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
216 test_cadet_5_forward_SOURCES = \
218 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
220 test_cadet_5_signal_SOURCES = \
222 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
224 test_cadet_5_keepalive_SOURCES = \
226 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
228 test_cadet_5_speed_SOURCES = \
230 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
232 test_cadet_5_speed_ack_SOURCES = \
234 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
236 test_cadet_5_speed_backwards_SOURCES = \
238 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
240 test_cadet_5_speed_reliable_SOURCES = \
242 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
244 test_cadet_5_speed_reliable_backwards_SOURCES = \
246 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
250 libgnunetcadettestnew_a_SOURCES = \
251 cadet_test_lib_new.c cadet_test_lib_new.h
252 libgnunetcadettestnew_a_LIBADD = \
253 $(top_builddir)/src/util/libgnunetutil.la \
254 $(top_builddir)/src/testbed/libgnunettestbed.la \
257 ld_cadet_test_lib_new = \
258 $(top_builddir)/src/util/libgnunetutil.la \
259 $(top_builddir)/src/testing/libgnunettesting.la \
260 libgnunetcadetnew.la \
261 libgnunetcadettestnew.a \
262 $(top_builddir)/src/testbed/libgnunettestbed.la \
263 $(top_builddir)/src/statistics/libgnunetstatistics.la
264 dep_cadet_test_lib_new = \
265 libgnunetcadetnew.la \
266 libgnunetcadettestnew.a \
267 $(top_builddir)/src/statistics/libgnunetstatistics.la
269 test_cadet_2_forward_new_SOURCES = \
271 test_cadet_2_forward_new_LDADD = $(ld_cadet_test_lib_new)
275 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
281 cadet.h cadet_protocol.h \