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 = \
46 $(top_builddir)/src/util/libgnunetutil.la
48 gnunet_service_cadet_SOURCES = \
49 gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \
50 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
51 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
52 gnunet-service-cadet_local.c gnunet-service-cadet_local.h \
53 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \
54 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
55 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
56 cadet_path.c cadet_path.h \
58 gnunet-service-cadet.c
59 gnunet_service_cadet_CFLAGS = $(AM_CFLAGS)
60 gnunet_service_cadet_LDADD = \
61 $(top_builddir)/src/util/libgnunetutil.la \
62 $(top_builddir)/src/transport/libgnunettransport.la \
63 $(top_builddir)/src/core/libgnunetcore.la \
64 $(top_builddir)/src/dht/libgnunetdht.la \
65 $(top_builddir)/src/statistics/libgnunetstatistics.la \
66 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
67 $(top_builddir)/src/hello/libgnunethello.la \
68 $(top_builddir)/src/block/libgnunetblock.la
70 gnunet_service_cadet_LDFLAGS = -lrt
75 noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP)
76 noinst_PROGRAMS = gnunet-cadet-profiler
79 libgnunetcadettest_a_SOURCES = \
80 cadet_test_lib.c cadet_test_lib.h
81 libgnunetcadettest_a_LIBADD = \
82 $(top_builddir)/src/util/libgnunetutil.la \
83 $(top_builddir)/src/testbed/libgnunettestbed.la \
90 test_cadet_2_forward \
92 test_cadet_2_keepalive \
94 test_cadet_2_speed_ack \
95 test_cadet_2_speed_backwards \
96 test_cadet_2_speed_reliable \
97 test_cadet_2_speed_reliable_backwards \
98 test_cadet_5_forward \
100 test_cadet_5_keepalive \
102 test_cadet_5_speed_ack \
103 test_cadet_5_speed_backwards \
104 test_cadet_5_speed_reliable \
105 test_cadet_5_speed_reliable_backwards
108 ld_cadet_test_lib = \
109 $(top_builddir)/src/util/libgnunetutil.la \
110 $(top_builddir)/src/testing/libgnunettesting.la \
111 libgnunetcadettest.a \
113 $(top_builddir)/src/testbed/libgnunettestbed.la \
114 $(top_builddir)/src/statistics/libgnunetstatistics.la
116 dep_cadet_test_lib = \
118 libgnunetcadettest.a \
119 $(top_builddir)/src/statistics/libgnunetstatistics.la
122 gnunet_cadet_profiler_SOURCES = \
123 gnunet-cadet-profiler.c
124 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
127 test_cadet_single_SOURCES = \
129 test_cadet_single_LDADD = $(ld_cadet_test_lib)
131 test_cadet_local_SOURCES = \
133 test_cadet_local_LDADD = $(ld_cadet_test_lib)
136 test_cadet_2_forward_SOURCES = \
138 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
140 test_cadet_2_signal_SOURCES = \
142 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
144 test_cadet_2_keepalive_SOURCES = \
146 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
148 test_cadet_2_speed_SOURCES = \
150 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
152 test_cadet_2_speed_ack_SOURCES = \
154 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
156 test_cadet_2_speed_backwards_SOURCES = \
158 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
160 test_cadet_2_speed_reliable_SOURCES = \
162 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
164 test_cadet_2_speed_reliable_backwards_SOURCES = \
166 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
169 test_cadet_5_forward_SOURCES = \
171 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
173 test_cadet_5_signal_SOURCES = \
175 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
177 test_cadet_5_keepalive_SOURCES = \
179 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
181 test_cadet_5_speed_SOURCES = \
183 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
185 test_cadet_5_speed_ack_SOURCES = \
187 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
189 test_cadet_5_speed_backwards_SOURCES = \
191 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
193 test_cadet_5_speed_reliable_SOURCES = \
195 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
197 test_cadet_5_speed_reliable_backwards_SOURCES = \
199 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
203 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
209 cadet.h cadet_protocol.h \