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 libgnunetcadet.la $(EXP_LIB)
35 libgnunetcadet_la_SOURCES = \
36 cadet_api.c cadet_common.c
37 libgnunetcadet_la_LIBADD = \
38 $(top_builddir)/src/util/libgnunetutil.la \
41 libgnunetcadet_la_LDFLAGS = \
42 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
45 gnunet_cadet_SOURCES = \
47 gnunet_cadet_LDADD = \
49 $(top_builddir)/src/util/libgnunetutil.la
51 gnunet_service_cadet_new_SOURCES = \
52 gnunet-service-cadet-new.c gnunet-service-cadet-new.h \
53 gnunet-service-cadet-new_channel.c gnunet-service-cadet-new_channel.h \
54 gnunet-service-cadet-new_connection.c gnunet-service-cadet-new_connection.h \
55 gnunet-service-cadet-new_core.c gnunet-service-cadet-new_core.h \
56 gnunet-service-cadet-new_dht.c gnunet-service-cadet-new_dht.h \
57 gnunet-service-cadet-new_hello.c gnunet-service-cadet-new_hello.h \
58 gnunet-service-cadet-new_tunnels.c gnunet-service-cadet-new_tunnels.h \
59 gnunet-service-cadet-new_paths.c gnunet-service-cadet-new_paths.h \
60 gnunet-service-cadet-new_peer.c gnunet-service-cadet-new_peer.h
61 gnunet_service_cadet_new_LDADD = \
62 $(top_builddir)/src/util/libgnunetutil.la \
63 $(top_builddir)/src/ats/libgnunetats.la \
64 $(top_builddir)/src/core/libgnunetcore.la \
65 $(top_builddir)/src/dht/libgnunetdht.la \
66 $(top_builddir)/src/statistics/libgnunetstatistics.la \
67 $(top_builddir)/src/transport/libgnunettransport.la \
68 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
69 $(top_builddir)/src/hello/libgnunethello.la \
70 $(top_builddir)/src/block/libgnunetblock.la
72 gnunet_service_cadet_SOURCES = \
73 gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \
74 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
75 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
76 gnunet-service-cadet_local.c gnunet-service-cadet_local.h \
77 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \
78 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
79 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
80 cadet_path.c cadet_path.h \
82 gnunet-service-cadet.c
83 gnunet_service_cadet_CFLAGS = $(AM_CFLAGS)
84 gnunet_service_cadet_LDADD = \
85 $(top_builddir)/src/util/libgnunetutil.la \
86 $(top_builddir)/src/transport/libgnunettransport.la \
87 $(top_builddir)/src/core/libgnunetcore.la \
88 $(top_builddir)/src/ats/libgnunetats.la \
89 $(top_builddir)/src/dht/libgnunetdht.la \
90 $(top_builddir)/src/statistics/libgnunetstatistics.la \
91 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
92 $(top_builddir)/src/hello/libgnunethello.la \
93 $(top_builddir)/src/block/libgnunetblock.la
95 gnunet_service_cadet_LDFLAGS = -lrt
100 noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP)
101 noinst_PROGRAMS = gnunet-cadet-profiler
104 libgnunetcadettest_a_SOURCES = \
105 cadet_test_lib.c cadet_test_lib.h
106 libgnunetcadettest_a_LIBADD = \
107 $(top_builddir)/src/util/libgnunetutil.la \
108 $(top_builddir)/src/testbed/libgnunettestbed.la \
113 test_cadet_local_mq \
116 test_cadet_2_forward \
117 test_cadet_2_signal \
118 test_cadet_2_keepalive \
120 test_cadet_2_speed_ack \
121 test_cadet_2_speed_backwards \
122 test_cadet_2_speed_reliable \
123 test_cadet_2_speed_reliable_backwards \
124 test_cadet_5_forward \
125 test_cadet_5_signal \
126 test_cadet_5_keepalive \
128 test_cadet_5_speed_ack \
129 test_cadet_5_speed_reliable \
130 test_cadet_5_speed_reliable_backwards \
131 test_cadet_5_speed_backwards
134 ld_cadet_test_lib = \
135 $(top_builddir)/src/util/libgnunetutil.la \
136 $(top_builddir)/src/testing/libgnunettesting.la \
137 libgnunetcadettest.a \
139 $(top_builddir)/src/testbed/libgnunettestbed.la \
140 $(top_builddir)/src/statistics/libgnunetstatistics.la
142 dep_cadet_test_lib = \
144 libgnunetcadettest.a \
145 $(top_builddir)/src/statistics/libgnunetstatistics.la
148 gnunet_cadet_profiler_SOURCES = \
149 gnunet-cadet-profiler.c
150 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
153 test_cadet_single_SOURCES = \
155 test_cadet_single_LDADD = $(ld_cadet_test_lib)
157 test_cadet_local_SOURCES = \
159 test_cadet_local_LDADD = $(ld_cadet_test_lib)
162 test_cadet_local_mq_SOURCES = \
163 test_cadet_local_mq.c
164 test_cadet_local_mq_LDADD = \
166 $(top_builddir)/src/testing/libgnunettesting.la \
167 $(top_builddir)/src/util/libgnunetutil.la
169 test_cadet_2_forward_SOURCES = \
171 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
173 test_cadet_2_signal_SOURCES = \
175 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
177 test_cadet_2_keepalive_SOURCES = \
179 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
181 test_cadet_2_speed_SOURCES = \
183 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
185 test_cadet_2_speed_ack_SOURCES = \
187 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
189 test_cadet_2_speed_backwards_SOURCES = \
191 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
193 test_cadet_2_speed_reliable_SOURCES = \
195 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
197 test_cadet_2_speed_reliable_backwards_SOURCES = \
199 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
202 test_cadet_5_forward_SOURCES = \
204 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
206 test_cadet_5_signal_SOURCES = \
208 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
210 test_cadet_5_keepalive_SOURCES = \
212 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
214 test_cadet_5_speed_SOURCES = \
216 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
218 test_cadet_5_speed_ack_SOURCES = \
220 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
222 test_cadet_5_speed_backwards_SOURCES = \
224 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
226 test_cadet_5_speed_reliable_SOURCES = \
228 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
230 test_cadet_5_speed_reliable_backwards_SOURCES = \
232 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
236 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
242 cadet.h cadet_protocol.h \