1 INCLUDES = -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
110 libgnunetdhttest_a_SOURCES = \
111 dht_test_lib.c dht_test_lib.h
112 libgnunetdhttest_a_LIBADD = \
113 $(top_builddir)/src/util/libgnunetutil.la \
114 $(top_builddir)/src/testbed/libgnunettestbed.la \
115 $(top_builddir)/src/dht/libgnunetdht.la
116 libgnunetdhttest_a_DEPENDENCIES = \
128 # These tests still do not work as testbed does
129 # not support the respective topology op
130 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
134 TESTS = test_dht_api $(check_SCRIPTS) \
141 test_dht_api_SOURCES = \
143 test_dht_api_LDADD = \
144 $(top_builddir)/src/util/libgnunetutil.la \
145 $(top_builddir)/src/testing/libgnunettesting.la \
146 $(top_builddir)/src/hello/libgnunethello.la \
147 $(top_builddir)/src/dht/libgnunetdht.la
148 test_dht_api_DEPENDENCIES = \
151 test_dht_twopeer_SOURCES = \
153 test_dht_twopeer_LDADD = \
154 $(top_builddir)/src/dht/libgnunetdhttest.a \
155 $(top_builddir)/src/util/libgnunetutil.la \
156 $(top_builddir)/src/dht/libgnunetdhttest.a \
157 $(top_builddir)/src/testbed/libgnunettestbed.la \
158 $(top_builddir)/src/dht/libgnunetdht.la
159 test_dht_twopeer_DEPENDENCIES = \
162 test_dht_2dtorus_SOURCES = \
164 test_dht_2dtorus_LDADD = \
165 $(top_builddir)/src/dht/libgnunetdhttest.a \
166 $(top_builddir)/src/util/libgnunetutil.la \
167 $(top_builddir)/src/testbed/libgnunettestbed.la \
168 $(top_builddir)/src/dht/libgnunetdht.la
169 test_dht_2dtorus_DEPENDENCIES = \
172 test_dht_line_SOURCES = \
174 test_dht_line_LDADD = \
175 $(top_builddir)/src/dht/libgnunetdhttest.a \
176 $(top_builddir)/src/util/libgnunetutil.la \
177 $(top_builddir)/src/testbed/libgnunettestbed.la \
178 $(top_builddir)/src/dht/libgnunetdht.la
179 test_dht_line_DEPENDENCIES = \
182 test_dht_multipeer_SOURCES = \
184 test_dht_multipeer_LDADD = \
185 $(top_builddir)/src/dht/libgnunetdhttest.a \
186 $(top_builddir)/src/util/libgnunetutil.la \
187 $(top_builddir)/src/statistics/libgnunetstatistics.la \
188 $(top_builddir)/src/testbed/libgnunettestbed.la \
189 $(top_builddir)/src/dht/libgnunetdht.la
190 test_dht_multipeer_DEPENDENCIES = \
193 test_dht_monitor_SOURCES = \
195 test_dht_monitor_LDADD = \
196 $(top_builddir)/src/dht/libgnunetdhttest.a \
197 $(top_builddir)/src/util/libgnunetutil.la \
198 $(top_builddir)/src/testbed/libgnunettestbed.la \
199 $(top_builddir)/src/dht/libgnunetdht.la
200 test_dht_monitor_DEPENDENCIES = \
205 test_dht_api_data.conf \
206 test_dht_api_peer1.conf \
207 test_dht_monitor.conf \
208 test_dht_multipeer.conf \
209 test_dht_2dtorus.conf \
211 test_dht_tools.py.in \
212 test_dht_multipeer_topology.dat
217 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
219 %.py: %.py.in Makefile
220 $(do_subst) < $(srcdir)/$< > $@
223 test_dht_tools.py: test_dht_tools.py.in Makefile
224 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
225 chmod +x test_dht_tools.py