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-new \
32 libgnunetcadetnew.la \
36 libgnunetcadet_la_SOURCES = \
37 cadet_api.c cadet_common.c
38 libgnunetcadet_la_LIBADD = \
39 $(top_builddir)/src/util/libgnunetutil.la \
42 libgnunetcadet_la_LDFLAGS = \
43 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
47 libgnunetcadetnew_la_SOURCES = \
49 libgnunetcadetnew_la_LIBADD = \
50 $(top_builddir)/src/util/libgnunetutil.la \
53 libgnunetcadetnew_la_LDFLAGS = \
54 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
57 gnunet_cadet_SOURCES = \
59 gnunet_cadet_LDADD = \
60 libgnunetcadetnew.la \
61 $(top_builddir)/src/util/libgnunetutil.la
63 gnunet_service_cadet_new_SOURCES = \
64 gnunet-service-cadet-new.c gnunet-service-cadet-new.h \
65 gnunet-service-cadet-new_channel.c gnunet-service-cadet-new_channel.h \
66 gnunet-service-cadet-new_connection.c gnunet-service-cadet-new_connection.h \
67 gnunet-service-cadet-new_core.c gnunet-service-cadet-new_core.h \
68 gnunet-service-cadet-new_dht.c gnunet-service-cadet-new_dht.h \
69 gnunet-service-cadet-new_hello.c gnunet-service-cadet-new_hello.h \
70 gnunet-service-cadet-new_tunnels.c gnunet-service-cadet-new_tunnels.h \
71 gnunet-service-cadet-new_paths.c gnunet-service-cadet-new_paths.h \
72 gnunet-service-cadet-new_peer.c gnunet-service-cadet-new_peer.h
73 gnunet_service_cadet_new_LDADD = \
74 $(top_builddir)/src/util/libgnunetutil.la \
75 $(top_builddir)/src/ats/libgnunetats.la \
76 $(top_builddir)/src/core/libgnunetcore.la \
77 $(top_builddir)/src/dht/libgnunetdht.la \
78 $(top_builddir)/src/statistics/libgnunetstatistics.la \
79 $(top_builddir)/src/transport/libgnunettransport.la \
80 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
81 $(top_builddir)/src/hello/libgnunethello.la \
82 $(top_builddir)/src/block/libgnunetblock.la
84 gnunet_service_cadet_new_LDFLAGS = -lrt
89 noinst_LTLIBRARIES = libgnunetcadettest.la $(noinst_LIB_EXP)
90 noinst_PROGRAMS = gnunet-cadet-profiler
96 test_cadet_2_forward \
97 test_cadet_2_forward \
99 test_cadet_2_keepalive \
101 test_cadet_2_speed_ack \
102 test_cadet_2_speed_backwards \
103 test_cadet_2_speed_reliable \
104 test_cadet_2_speed_reliable_backwards \
105 test_cadet_5_forward \
106 test_cadet_5_signal \
107 test_cadet_5_keepalive \
109 test_cadet_5_speed_ack \
110 test_cadet_5_speed_reliable \
111 test_cadet_5_speed_reliable_backwards \
112 test_cadet_5_speed_backwards
115 ld_cadet_test_lib = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/testing/libgnunettesting.la \
118 libgnunetcadettest.la \
120 $(top_builddir)/src/testbed/libgnunettestbed.la \
121 $(top_builddir)/src/statistics/libgnunetstatistics.la
123 dep_cadet_test_lib = \
125 libgnunetcadettest.la \
126 $(top_builddir)/src/statistics/libgnunetstatistics.la
129 gnunet_cadet_profiler_SOURCES = \
130 gnunet-cadet-profiler.c
131 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
134 test_cadet_local_mq_SOURCES = \
135 test_cadet_local_mq.c
136 test_cadet_local_mq_LDADD = \
137 libgnunetcadetnew.la \
138 $(top_builddir)/src/testing/libgnunettesting.la \
139 $(top_builddir)/src/util/libgnunetutil.la
142 libgnunetcadettest_la_SOURCES = \
143 cadet_test_lib_new.c cadet_test_lib_new.h
144 libgnunetcadettest_la_LIBADD = \
145 $(top_builddir)/src/util/libgnunetutil.la \
146 $(top_builddir)/src/testbed/libgnunettestbed.la \
149 ld_cadet_test_lib = \
150 $(top_builddir)/src/util/libgnunetutil.la \
151 $(top_builddir)/src/testing/libgnunettesting.la \
152 libgnunetcadetnew.la \
153 libgnunetcadettest.la \
154 $(top_builddir)/src/testbed/libgnunettestbed.la \
155 $(top_builddir)/src/statistics/libgnunetstatistics.la
156 dep_cadet_test_lib = \
157 libgnunetcadetnew.la \
158 libgnunetcadettest.la \
159 $(top_builddir)/src/statistics/libgnunetstatistics.la
161 test_cadet_2_forward_SOURCES = \
163 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
165 test_cadet_2_signal_SOURCES = \
167 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
169 test_cadet_2_keepalive_SOURCES = \
171 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
173 test_cadet_2_speed_SOURCES = \
175 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
177 test_cadet_2_speed_ack_SOURCES = \
179 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
181 test_cadet_2_speed_backwards_SOURCES = \
183 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
185 test_cadet_2_speed_reliable_SOURCES = \
187 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
189 test_cadet_2_speed_reliable_backwards_SOURCES = \
191 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
194 test_cadet_5_forward_SOURCES = \
196 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
198 test_cadet_5_signal_SOURCES = \
200 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
202 test_cadet_5_keepalive_SOURCES = \
204 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
206 test_cadet_5_speed_SOURCES = \
208 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
210 test_cadet_5_speed_ack_SOURCES = \
212 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
214 test_cadet_5_speed_backwards_SOURCES = \
216 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
218 test_cadet_5_speed_reliable_SOURCES = \
220 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
222 test_cadet_5_speed_reliable_backwards_SOURCES = \
224 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
228 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
234 cadet.h cadet_protocol.h \