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/dht/libgnunetdht.la \
66 $(top_builddir)/src/statistics/libgnunetstatistics.la \
67 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
68 $(top_builddir)/src/hello/libgnunethello.la \
69 $(top_builddir)/src/block/libgnunetblock.la
71 gnunet_service_cadet_LDFLAGS = -lrt
76 noinst_LIBRARIES = libgnunetcadettest.a $(noinst_LIB_EXP)
77 noinst_PROGRAMS = gnunet-cadet-profiler
80 libgnunetcadettest_a_SOURCES = \
81 cadet_test_lib.c cadet_test_lib.h
82 libgnunetcadettest_a_LIBADD = \
83 $(top_builddir)/src/util/libgnunetutil.la \
84 $(top_builddir)/src/testbed/libgnunettestbed.la \
91 test_cadet_2_forward \
93 test_cadet_2_keepalive \
95 test_cadet_2_speed_ack \
96 test_cadet_2_speed_backwards \
97 test_cadet_2_speed_reliable \
98 test_cadet_2_speed_reliable_backwards \
99 test_cadet_5_forward \
100 test_cadet_5_signal \
101 test_cadet_5_keepalive \
103 test_cadet_5_speed_ack \
104 test_cadet_5_speed_backwards \
105 test_cadet_5_speed_reliable \
106 test_cadet_5_speed_reliable_backwards
109 ld_cadet_test_lib = \
110 $(top_builddir)/src/util/libgnunetutil.la \
111 $(top_builddir)/src/testing/libgnunettesting.la \
112 libgnunetcadettest.a \
114 $(top_builddir)/src/testbed/libgnunettestbed.la \
115 $(top_builddir)/src/statistics/libgnunetstatistics.la
117 dep_cadet_test_lib = \
119 libgnunetcadettest.a \
120 $(top_builddir)/src/statistics/libgnunetstatistics.la
123 gnunet_cadet_profiler_SOURCES = \
124 gnunet-cadet-profiler.c
125 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
128 test_cadet_single_SOURCES = \
130 test_cadet_single_LDADD = $(ld_cadet_test_lib)
132 test_cadet_local_SOURCES = \
134 test_cadet_local_LDADD = $(ld_cadet_test_lib)
137 test_cadet_2_forward_SOURCES = \
139 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
141 test_cadet_2_signal_SOURCES = \
143 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
145 test_cadet_2_keepalive_SOURCES = \
147 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
149 test_cadet_2_speed_SOURCES = \
151 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
153 test_cadet_2_speed_ack_SOURCES = \
155 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
157 test_cadet_2_speed_backwards_SOURCES = \
159 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
161 test_cadet_2_speed_reliable_SOURCES = \
163 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
165 test_cadet_2_speed_reliable_backwards_SOURCES = \
167 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
170 test_cadet_5_forward_SOURCES = \
172 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
174 test_cadet_5_signal_SOURCES = \
176 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
178 test_cadet_5_keepalive_SOURCES = \
180 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
182 test_cadet_5_speed_SOURCES = \
184 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
186 test_cadet_5_speed_ack_SOURCES = \
188 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
190 test_cadet_5_speed_backwards_SOURCES = \
192 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
194 test_cadet_5_speed_reliable_SOURCES = \
196 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
198 test_cadet_5_speed_reliable_backwards_SOURCES = \
200 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
204 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
210 cadet.h cadet_protocol.h \