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 $(EXP_LIBEXEC)
31 libgnunetcadet.la $(EXP_LIB)
33 libgnunetcadet_la_SOURCES = \
34 cadet_api.c cadet_common.c
35 libgnunetcadet_la_LIBADD = \
36 $(top_builddir)/src/util/libgnunetutil.la \
39 libgnunetcadet_la_LDFLAGS = \
40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
43 gnunet_cadet_SOURCES = \
45 gnunet_cadet_LDADD = \
47 $(top_builddir)/src/util/libgnunetutil.la
49 gnunet_service_cadet_SOURCES = \
50 gnunet-service-cadet_tunnel.c gnunet-service-cadet_tunnel.h \
51 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
52 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
53 gnunet-service-cadet_local.c gnunet-service-cadet_local.h \
54 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h \
55 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
56 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
57 cadet_path.c cadet_path.h \
59 gnunet-service-cadet.c
60 gnunet_service_cadet_CFLAGS = $(AM_CFLAGS)
61 gnunet_service_cadet_LDADD = \
62 $(top_builddir)/src/util/libgnunetutil.la \
63 $(top_builddir)/src/transport/libgnunettransport.la \
64 $(top_builddir)/src/core/libgnunetcore.la \
65 $(top_builddir)/src/ats/libgnunetats.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
72 gnunet_service_cadet_LDFLAGS = -lrt
77 noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP)
78 noinst_PROGRAMS = gnunet-cadet-profiler
81 libgnunetcadettest_a_SOURCES = \
82 cadet_test_lib.c cadet_test_lib.h
83 libgnunetcadettest_a_LIBADD = \
84 $(top_builddir)/src/util/libgnunetutil.la \
85 $(top_builddir)/src/testbed/libgnunettestbed.la \
92 test_cadet_2_forward \
94 test_cadet_2_keepalive \
96 test_cadet_2_speed_ack \
97 test_cadet_2_speed_backwards \
98 test_cadet_2_speed_reliable \
99 test_cadet_2_speed_reliable_backwards \
100 test_cadet_5_forward \
101 test_cadet_5_signal \
102 test_cadet_5_keepalive \
104 test_cadet_5_speed_ack \
105 test_cadet_5_speed_backwards \
106 test_cadet_5_speed_reliable \
107 test_cadet_5_speed_reliable_backwards
110 ld_cadet_test_lib = \
111 $(top_builddir)/src/util/libgnunetutil.la \
112 $(top_builddir)/src/testing/libgnunettesting.la \
113 libgnunetcadettest.a \
115 $(top_builddir)/src/testbed/libgnunettestbed.la \
116 $(top_builddir)/src/statistics/libgnunetstatistics.la
118 dep_cadet_test_lib = \
120 libgnunetcadettest.a \
121 $(top_builddir)/src/statistics/libgnunetstatistics.la
124 gnunet_cadet_profiler_SOURCES = \
125 gnunet-cadet-profiler.c
126 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
129 test_cadet_single_SOURCES = \
131 test_cadet_single_LDADD = $(ld_cadet_test_lib)
133 test_cadet_local_SOURCES = \
135 test_cadet_local_LDADD = $(ld_cadet_test_lib)
138 test_cadet_2_forward_SOURCES = \
140 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
142 test_cadet_2_signal_SOURCES = \
144 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
146 test_cadet_2_keepalive_SOURCES = \
148 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
150 test_cadet_2_speed_SOURCES = \
152 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
154 test_cadet_2_speed_ack_SOURCES = \
156 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
158 test_cadet_2_speed_backwards_SOURCES = \
160 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
162 test_cadet_2_speed_reliable_SOURCES = \
164 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
166 test_cadet_2_speed_reliable_backwards_SOURCES = \
168 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
171 test_cadet_5_forward_SOURCES = \
173 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
175 test_cadet_5_signal_SOURCES = \
177 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
179 test_cadet_5_keepalive_SOURCES = \
181 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
183 test_cadet_5_speed_SOURCES = \
185 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
187 test_cadet_5_speed_ack_SOURCES = \
189 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
191 test_cadet_5_speed_backwards_SOURCES = \
193 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
195 test_cadet_5_speed_reliable_SOURCES = \
197 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
199 test_cadet_5_speed_reliable_backwards_SOURCES = \
201 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
205 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
211 cadet.h cadet_protocol.h \