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/
20 AM_CFLAGS = --coverage -O0
27 libgnunetdht_la_SOURCES = \
29 libgnunetdht_la_LIBADD = \
30 $(top_builddir)/src/util/libgnunetutil.la \
33 libgnunetdht_la_LDFLAGS = \
34 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
38 plugin_LTLIBRARIES = \
39 libgnunet_plugin_block_dht.la
41 libgnunet_plugin_block_dht_la_SOURCES = \
43 libgnunet_plugin_block_dht_la_LIBADD = \
44 $(top_builddir)/src/hello/libgnunethello.la \
45 $(top_builddir)/src/block/libgnunetblock.la \
46 $(top_builddir)/src/util/libgnunetutil.la \
48 libgnunet_plugin_block_dht_la_LDFLAGS = \
50 libgnunet_plugin_block_dht_la_DEPENDENCIES = \
51 $(top_builddir)/src/block/libgnunetblock.la
63 gnunet_service_dht_SOURCES = \
64 gnunet-service-dht.c gnunet-service-dht.h \
65 gnunet-service-dht_clients.c gnunet-service-dht_clients.h \
66 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
67 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
68 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
69 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
70 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
71 gnunet_service_dht_LDADD = \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/core/libgnunetcore.la \
74 $(top_builddir)/src/nse/libgnunetnse.la \
75 $(top_builddir)/src/ats/libgnunetats.la \
76 $(top_builddir)/src/transport/libgnunettransport.la \
77 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
78 $(top_builddir)/src/hello/libgnunethello.la \
79 $(top_builddir)/src/block/libgnunetblock.la \
80 $(top_builddir)/src/datacache/libgnunetdatacache.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
84 gnunet_dht_get_SOURCES = \
86 gnunet_dht_get_LDADD = \
87 $(top_builddir)/src/dht/libgnunetdht.la \
88 $(top_builddir)/src/core/libgnunetcore.la \
89 $(top_builddir)/src/util/libgnunetutil.la
90 gnunet_dht_get_DEPENDENCIES = \
93 gnunet_dht_put_SOURCES = \
95 gnunet_dht_put_LDADD = \
96 $(top_builddir)/src/dht/libgnunetdht.la \
97 $(top_builddir)/src/core/libgnunetcore.la \
98 $(top_builddir)/src/util/libgnunetutil.la
99 gnunet_dht_put_DEPENDENCIES = \
102 gnunet_dht_monitor_SOURCES = \
104 gnunet_dht_monitor_LDADD = \
105 $(top_builddir)/src/dht/libgnunetdht.la \
106 $(top_builddir)/src/core/libgnunetcore.la \
107 $(top_builddir)/src/util/libgnunetutil.la
108 gnunet_dht_monitor_DEPENDENCIES = \
112 noinst_LIBRARIES = libgnunetdhttest.a
114 libgnunetdhttest_a_SOURCES = \
115 dht_test_lib.c dht_test_lib.h
116 libgnunetdhttest_a_LIBADD = \
117 $(top_builddir)/src/util/libgnunetutil.la \
118 $(top_builddir)/src/testbed/libgnunettestbed.la \
119 $(top_builddir)/src/dht/libgnunetdht.la
120 libgnunetdhttest_a_DEPENDENCIES = \
132 # These tests still do not work as testbed does
133 # not support the respective topology op
134 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
138 TESTS = test_dht_api $(check_SCRIPTS) \
145 test_dht_api_SOURCES = \
147 test_dht_api_LDADD = \
148 $(top_builddir)/src/util/libgnunetutil.la \
149 $(top_builddir)/src/testing/libgnunettesting.la \
150 $(top_builddir)/src/hello/libgnunethello.la \
151 $(top_builddir)/src/dht/libgnunetdht.la
152 test_dht_api_DEPENDENCIES = \
155 test_dht_twopeer_SOURCES = \
157 test_dht_twopeer_LDADD = \
158 $(top_builddir)/src/dht/libgnunetdhttest.a \
159 $(top_builddir)/src/util/libgnunetutil.la \
160 $(top_builddir)/src/dht/libgnunetdhttest.a \
161 $(top_builddir)/src/testbed/libgnunettestbed.la \
162 $(top_builddir)/src/dht/libgnunetdht.la
163 test_dht_twopeer_DEPENDENCIES = \
166 test_dht_2dtorus_SOURCES = \
168 test_dht_2dtorus_LDADD = \
169 $(top_builddir)/src/dht/libgnunetdhttest.a \
170 $(top_builddir)/src/util/libgnunetutil.la \
171 $(top_builddir)/src/testbed/libgnunettestbed.la \
172 $(top_builddir)/src/dht/libgnunetdht.la
173 test_dht_2dtorus_DEPENDENCIES = \
176 test_dht_line_SOURCES = \
178 test_dht_line_LDADD = \
179 $(top_builddir)/src/dht/libgnunetdhttest.a \
180 $(top_builddir)/src/util/libgnunetutil.la \
181 $(top_builddir)/src/testbed/libgnunettestbed.la \
182 $(top_builddir)/src/dht/libgnunetdht.la
183 test_dht_line_DEPENDENCIES = \
186 test_dht_multipeer_SOURCES = \
188 test_dht_multipeer_LDADD = \
189 $(top_builddir)/src/dht/libgnunetdhttest.a \
190 $(top_builddir)/src/util/libgnunetutil.la \
191 $(top_builddir)/src/statistics/libgnunetstatistics.la \
192 $(top_builddir)/src/testbed/libgnunettestbed.la \
193 $(top_builddir)/src/dht/libgnunetdht.la
194 test_dht_multipeer_DEPENDENCIES = \
197 test_dht_monitor_SOURCES = \
199 test_dht_monitor_LDADD = \
200 $(top_builddir)/src/dht/libgnunetdhttest.a \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/testbed/libgnunettestbed.la \
203 $(top_builddir)/src/dht/libgnunetdht.la
204 test_dht_monitor_DEPENDENCIES = \
209 test_dht_api_data.conf \
210 test_dht_api_peer1.conf \
211 test_dht_monitor.conf \
212 test_dht_multipeer.conf \
213 test_dht_2dtorus.conf \
215 test_dht_tools.py.in \
216 test_dht_multipeer_topology.dat
221 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
223 %.py: %.py.in Makefile
224 $(do_subst) < $(srcdir)/$< > $@
227 test_dht_tools.py: test_dht_tools.py.in Makefile
228 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
229 chmod +x test_dht_tools.py