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 \
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_SOURCES = \
64 gnunet-service-cadet.c gnunet-service-cadet.h \
65 gnunet-service-cadet_channel.c gnunet-service-cadet_channel.h \
66 gnunet-service-cadet_connection.c gnunet-service-cadet_connection.h \
67 gnunet-service-cadet_core.c gnunet-service-cadet_core.h \
68 gnunet-service-cadet_dht.c gnunet-service-cadet_dht.h \
69 gnunet-service-cadet_hello.c gnunet-service-cadet_hello.h \
70 gnunet-service-cadet_tunnels.c gnunet-service-cadet_tunnels.h \
71 gnunet-service-cadet_paths.c gnunet-service-cadet_paths.h \
72 gnunet-service-cadet_peer.c gnunet-service-cadet_peer.h
73 gnunet_service_cadet_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
116 #gnunet_cadet_profiler_SOURCES = \
117 # gnunet-cadet-profiler.c
118 #gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
121 test_cadet_local_mq_SOURCES = \
122 test_cadet_local_mq.c
123 test_cadet_local_mq_LDADD = \
124 libgnunetcadetnew.la \
125 $(top_builddir)/src/testing/libgnunettesting.la \
126 $(top_builddir)/src/util/libgnunetutil.la
129 libgnunetcadettest_la_SOURCES = \
130 cadet_test_lib.c cadet_test_lib.h
131 libgnunetcadettest_la_LIBADD = \
132 $(top_builddir)/src/util/libgnunetutil.la \
133 $(top_builddir)/src/testbed/libgnunettestbed.la \
136 ld_cadet_test_lib = \
137 $(top_builddir)/src/util/libgnunetutil.la \
138 $(top_builddir)/src/testing/libgnunettesting.la \
139 libgnunetcadetnew.la \
140 libgnunetcadettest.la \
141 $(top_builddir)/src/testbed/libgnunettestbed.la \
142 $(top_builddir)/src/statistics/libgnunetstatistics.la
143 dep_cadet_test_lib = \
144 libgnunetcadetnew.la \
145 libgnunetcadettest.la \
146 $(top_builddir)/src/statistics/libgnunetstatistics.la
148 test_cadet_2_forward_SOURCES = \
150 test_cadet_2_forward_LDADD = $(ld_cadet_test_lib)
152 test_cadet_2_signal_SOURCES = \
154 test_cadet_2_signal_LDADD = $(ld_cadet_test_lib)
156 test_cadet_2_keepalive_SOURCES = \
158 test_cadet_2_keepalive_LDADD = $(ld_cadet_test_lib)
160 test_cadet_2_speed_SOURCES = \
162 test_cadet_2_speed_LDADD = $(ld_cadet_test_lib)
164 test_cadet_2_speed_ack_SOURCES = \
166 test_cadet_2_speed_ack_LDADD = $(ld_cadet_test_lib)
168 test_cadet_2_speed_backwards_SOURCES = \
170 test_cadet_2_speed_backwards_LDADD = $(ld_cadet_test_lib)
172 test_cadet_2_speed_reliable_SOURCES = \
174 test_cadet_2_speed_reliable_LDADD = $(ld_cadet_test_lib)
176 test_cadet_2_speed_reliable_backwards_SOURCES = \
178 test_cadet_2_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
180 test_cadet_5_forward_SOURCES = \
182 test_cadet_5_forward_LDADD = $(ld_cadet_test_lib)
184 test_cadet_5_signal_SOURCES = \
186 test_cadet_5_signal_LDADD = $(ld_cadet_test_lib)
188 test_cadet_5_keepalive_SOURCES = \
190 test_cadet_5_keepalive_LDADD = $(ld_cadet_test_lib)
192 test_cadet_5_speed_SOURCES = \
194 test_cadet_5_speed_LDADD = $(ld_cadet_test_lib)
196 test_cadet_5_speed_ack_SOURCES = \
198 test_cadet_5_speed_ack_LDADD = $(ld_cadet_test_lib)
200 test_cadet_5_speed_backwards_SOURCES = \
202 test_cadet_5_speed_backwards_LDADD = $(ld_cadet_test_lib)
204 test_cadet_5_speed_reliable_SOURCES = \
206 test_cadet_5_speed_reliable_LDADD = $(ld_cadet_test_lib)
208 test_cadet_5_speed_reliable_backwards_SOURCES = \
210 test_cadet_5_speed_reliable_backwards_LDADD = $(ld_cadet_test_lib)
214 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
220 cadet.h cadet_protocol.h \