1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
14 libexecdir= $(pkglibdir)/libexec/
19 plugindir = $(libdir)/gnunet
24 gnunet-service-cadet $(EXP_LIBEXEC)
30 libgnunetcadet.la $(EXP_LIB)
32 libgnunetcadet_la_SOURCES = \
33 cadet_api.c cadet_common.c
34 libgnunetcadet_la_LIBADD = \
35 $(top_builddir)/src/util/libgnunetutil.la \
38 libgnunetcadet_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
42 gnunet_cadet_SOURCES = \
44 gnunet_cadet_LDADD = \
45 $(top_builddir)/src/cadet/libgnunetcadet.la \
46 $(top_builddir)/src/util/libgnunetutil.la
47 gnunet_cadet_DEPENDENCIES = \
50 gnunet_service_cadet_SOURCES = \
51 gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \
52 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
53 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
54 gnunet-service-cadet_local.c gnunet-service-cadet_local.h \
55 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \
56 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
57 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
58 cadet_path.c cadet_path.h \
60 gnunet-service-cadet.c
61 gnunet_service_cadet_CFLAGS = $(AM_CFLAGS)
62 gnunet_service_cadet_LDADD = \
63 $(top_builddir)/src/util/libgnunetutil.la \
64 $(top_builddir)/src/transport/libgnunettransport.la \
65 $(top_builddir)/src/core/libgnunetcore.la \
66 $(top_builddir)/src/dht/libgnunetdht.la \
67 $(top_builddir)/src/statistics/libgnunetstatistics.la \
68 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
69 $(top_builddir)/src/hello/libgnunethello.la \
70 $(top_builddir)/src/block/libgnunetblock.la
71 gnunet_service_cadet_DEPENDENCIES = \
72 $(top_builddir)/src/util/libgnunetutil.la \
73 $(top_builddir)/src/transport/libgnunettransport.la \
74 $(top_builddir)/src/core/libgnunetcore.la \
75 $(top_builddir)/src/dht/libgnunetdht.la \
76 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
78 $(top_builddir)/src/hello/libgnunethello.la \
79 $(top_builddir)/src/block/libgnunetblock.la
81 gnunet_service_cadet_LDFLAGS = -lrt
86 noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP)
87 noinst_PROGRAMS = gnunet-cadet-profiler
90 libgnunetcadettest_a_SOURCES = \
91 cadet_test_lib.c cadet_test_lib.h
92 libgnunetcadettest_a_LIBADD = \
93 $(top_builddir)/src/util/libgnunetutil.la \
94 $(top_builddir)/src/testbed/libgnunettestbed.la \
95 $(top_builddir)/src/cadet/libgnunetcadet.la
96 libgnunetcadettest_a_DEPENDENCIES = \
103 test_cadet_2_forward \
104 test_cadet_2_signal \
105 test_cadet_2_keepalive \
107 test_cadet_2_speed_ack \
108 test_cadet_2_speed_backwards \
109 test_cadet_2_speed_reliable \
110 test_cadet_2_speed_reliable_backwards \
111 test_cadet_5_forward \
112 test_cadet_5_signal \
113 test_cadet_5_keepalive \
115 test_cadet_5_speed_ack \
116 test_cadet_5_speed_backwards \
117 test_cadet_5_speed_reliable \
118 test_cadet_5_speed_reliable_backwards
121 ld_cadet_test_lib = \
122 $(top_builddir)/src/util/libgnunetutil.la \
123 $(top_builddir)/src/testing/libgnunettesting.la \
124 $(top_builddir)/src/cadet/libgnunetcadettest.a \
125 $(top_builddir)/src/cadet/libgnunetcadet.la \
126 $(top_builddir)/src/testbed/libgnunettestbed.la \
127 $(top_builddir)/src/statistics/libgnunetstatistics.la
129 dep_cadet_test_lib = \
131 libgnunetcadettest.a \
132 $(top_builddir)/src/statistics/libgnunetstatistics.la
135 gnunet_cadet_profiler_SOURCES = \
136 gnunet-cadet-profiler.c
137 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
138 gnunet_cadet_profiler_DEPENDENCIES = $(dep_cadet_test_lib)
141 test_cadet_single_SOURCES = \
143 test_cadet_single_LDADD = $(ld_cadet_test_lib)
144 test_cadet_single_DEPENDENCIES = $(dep_cadet_test_lib)
146 test_cadet_local_SOURCES = \
148 test_cadet_local_LDADD = $(ld_cadet_test_lib)
149 test_cadet_local_DEPENDENCIES = $(dep_cadet_test_lib)
153 test_cadet_2_forward_SOURCES = \
155 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
156 test_cadet_2_forward_DEPENDENCIES = $(dep_cadet_test_lib)
158 test_cadet_2_signal_SOURCES = \
160 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
161 test_cadet_2_signal_DEPENDENCIES = $(dep_cadet_test_lib)
163 test_cadet_2_keepalive_SOURCES = \
165 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
166 test_cadet_2_keepalive_DEPENDENCIES = $(dep_cadet_test_lib)
168 test_cadet_2_speed_SOURCES = \
170 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
171 test_cadet_2_speed_DEPENDENCIES = $(dep_cadet_test_lib)
173 test_cadet_2_speed_ack_SOURCES = \
175 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
176 test_cadet_2_speed_ack_DEPENDENCIES = $(dep_cadet_test_lib)
178 test_cadet_2_speed_backwards_SOURCES = \
180 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
181 test_cadet_2_speed_backwards_DEPENDENCIES = $(dep_cadet_test_lib)
183 test_cadet_2_speed_reliable_SOURCES = \
185 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
186 test_cadet_2_speed_reliable_DEPENDENCIES = $(dep_cadet_test_lib)
188 test_cadet_2_speed_reliable_backwards_SOURCES = \
190 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
191 test_cadet_2_speed_reliable_backwards_DEPENDENCIES = $(dep_cadet_test_lib)
195 test_cadet_5_forward_SOURCES = \
197 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
198 test_cadet_5_forward_DEPENDENCIES = $(dep_cadet_test_lib)
200 test_cadet_5_signal_SOURCES = \
202 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
203 test_cadet_5_signal_DEPENDENCIES = $(dep_cadet_test_lib)
205 test_cadet_5_keepalive_SOURCES = \
207 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
208 test_cadet_5_keepalive_DEPENDENCIES = $(dep_cadet_test_lib)
210 test_cadet_5_speed_SOURCES = \
212 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
213 test_cadet_5_speed_DEPENDENCIES = $(dep_cadet_test_lib)
215 test_cadet_5_speed_ack_SOURCES = \
217 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
218 test_cadet_5_speed_ack_DEPENDENCIES = $(dep_cadet_test_lib)
220 test_cadet_5_speed_backwards_SOURCES = \
222 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
223 test_cadet_5_speed_backwards_DEPENDENCIES = $(dep_cadet_test_lib)
225 test_cadet_5_speed_reliable_SOURCES = \
227 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
228 test_cadet_5_speed_reliable_DEPENDENCIES = $(dep_cadet_test_lib)
230 test_cadet_5_speed_reliable_backwards_SOURCES = \
232 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
233 test_cadet_5_speed_reliable_backwards_DEPENDENCIES = $(dep_cadet_test_lib)
237 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
243 cadet.h cadet_protocol.h \