1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
6 plugindir = $(libdir)/gnunet
8 pkgcfgdir= $(pkgdatadir)/config.d/
10 libexecdir= $(pkglibdir)/libexec/
16 AM_CFLAGS = --coverage -O0
23 libgnunetdht_la_SOURCES = \
25 libgnunetdht_la_LIBADD = \
26 $(top_builddir)/src/util/libgnunetutil.la \
29 libgnunetdht_la_LDFLAGS = \
30 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
34 plugin_LTLIBRARIES = \
35 libgnunet_plugin_block_dht.la
37 libgnunet_plugin_block_dht_la_SOURCES = \
39 libgnunet_plugin_block_dht_la_LIBADD = \
40 $(top_builddir)/src/hello/libgnunethello.la \
41 $(top_builddir)/src/block/libgnunetblock.la \
42 $(top_builddir)/src/util/libgnunetutil.la \
44 libgnunet_plugin_block_dht_la_LDFLAGS = \
46 libgnunet_plugin_block_dht_la_DEPENDENCIES = \
47 $(top_builddir)/src/block/libgnunetblock.la
59 gnunet_service_dht_SOURCES = \
60 gnunet-service-dht.c gnunet-service-dht.h \
61 gnunet-service-dht_clients.c gnunet-service-dht_clients.h \
62 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
63 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
64 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
65 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
66 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
67 gnunet_service_dht_LDADD = \
68 $(top_builddir)/src/statistics/libgnunetstatistics.la \
69 $(top_builddir)/src/core/libgnunetcore.la \
70 $(top_builddir)/src/nse/libgnunetnse.la \
71 $(top_builddir)/src/ats/libgnunetats.la \
72 $(top_builddir)/src/transport/libgnunettransport.la \
73 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
74 $(top_builddir)/src/hello/libgnunethello.la \
75 $(top_builddir)/src/block/libgnunetblock.la \
76 $(top_builddir)/src/datacache/libgnunetdatacache.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
80 gnunet_dht_get_SOURCES = \
82 gnunet_dht_get_LDADD = \
83 $(top_builddir)/src/dht/libgnunetdht.la \
84 $(top_builddir)/src/core/libgnunetcore.la \
85 $(top_builddir)/src/util/libgnunetutil.la
86 gnunet_dht_get_DEPENDENCIES = \
89 gnunet_dht_put_SOURCES = \
91 gnunet_dht_put_LDADD = \
92 $(top_builddir)/src/dht/libgnunetdht.la \
93 $(top_builddir)/src/core/libgnunetcore.la \
94 $(top_builddir)/src/util/libgnunetutil.la
95 gnunet_dht_put_DEPENDENCIES = \
98 gnunet_dht_monitor_SOURCES = \
100 gnunet_dht_monitor_LDADD = \
101 $(top_builddir)/src/dht/libgnunetdht.la \
102 $(top_builddir)/src/core/libgnunetcore.la \
103 $(top_builddir)/src/util/libgnunetutil.la
104 gnunet_dht_monitor_DEPENDENCIES = \
108 noinst_LIBRARIES = libgnunetdhttest.a
111 libgnunetdhttest_a_SOURCES = \
112 dht_test_lib.c dht_test_lib.h
113 libgnunetdhttest_a_LIBADD = \
114 $(top_builddir)/src/util/libgnunetutil.la \
115 $(top_builddir)/src/testbed/libgnunettestbed.la \
116 $(top_builddir)/src/dht/libgnunetdht.la
117 libgnunetdhttest_a_DEPENDENCIES = \
131 # These tests still do not work as testbed does
132 # not support the respective topology op
133 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
137 TESTS = test_dht_api $(check_SCRIPTS) \
144 test_dht_api_SOURCES = \
146 test_dht_api_LDADD = \
147 $(top_builddir)/src/util/libgnunetutil.la \
148 $(top_builddir)/src/testing/libgnunettesting.la \
149 $(top_builddir)/src/hello/libgnunethello.la \
150 $(top_builddir)/src/dht/libgnunetdht.la
151 test_dht_api_DEPENDENCIES = \
154 test_dht_twopeer_SOURCES = \
156 test_dht_twopeer_LDADD = \
157 $(top_builddir)/src/dht/libgnunetdhttest.a \
158 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/dht/libgnunetdhttest.a \
160 $(top_builddir)/src/testbed/libgnunettestbed.la \
161 $(top_builddir)/src/dht/libgnunetdht.la
162 test_dht_twopeer_DEPENDENCIES = \
165 test_dht_2dtorus_SOURCES = \
167 test_dht_2dtorus_LDADD = \
168 $(top_builddir)/src/dht/libgnunetdhttest.a \
169 $(top_builddir)/src/util/libgnunetutil.la \
170 $(top_builddir)/src/testbed/libgnunettestbed.la \
171 $(top_builddir)/src/dht/libgnunetdht.la
172 test_dht_2dtorus_DEPENDENCIES = \
175 test_dht_line_SOURCES = \
177 test_dht_line_LDADD = \
178 $(top_builddir)/src/dht/libgnunetdhttest.a \
179 $(top_builddir)/src/util/libgnunetutil.la \
180 $(top_builddir)/src/testbed/libgnunettestbed.la \
181 $(top_builddir)/src/dht/libgnunetdht.la
182 test_dht_line_DEPENDENCIES = \
185 test_dht_multipeer_SOURCES = \
187 test_dht_multipeer_LDADD = \
188 $(top_builddir)/src/dht/libgnunetdhttest.a \
189 $(top_builddir)/src/util/libgnunetutil.la \
190 $(top_builddir)/src/statistics/libgnunetstatistics.la \
191 $(top_builddir)/src/testbed/libgnunettestbed.la \
192 $(top_builddir)/src/dht/libgnunetdht.la
193 test_dht_multipeer_DEPENDENCIES = \
196 test_dht_monitor_SOURCES = \
198 test_dht_monitor_LDADD = \
199 $(top_builddir)/src/dht/libgnunetdhttest.a \
200 $(top_builddir)/src/util/libgnunetutil.la \
201 $(top_builddir)/src/testbed/libgnunettestbed.la \
202 $(top_builddir)/src/dht/libgnunetdht.la
203 test_dht_monitor_DEPENDENCIES = \
208 test_dht_api_data.conf \
209 test_dht_api_peer1.conf \
210 test_dht_monitor.conf \
211 test_dht_multipeer.conf \
212 test_dht_2dtorus.conf \
214 test_dht_tools.py.in \
215 test_dht_multipeer_topology.dat
222 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
224 %.py: %.py.in Makefile
225 $(do_subst) < $(srcdir)/$< > $@
228 test_dht_tools.py: test_dht_tools.py.in Makefile
229 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
230 chmod +x test_dht_tools.py