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 = \
115 test_dht_twopeer_put_get \
116 test_dht_twopeer_get_put \
117 test_dht_twopeer_path_tracking \
124 TESTS = test_dht_api $(check_SCRIPTS) \
126 test_dht_twopeer_put_get \
127 test_dht_twopeer_get_put \
128 test_dht_twopeer_path_tracking \
135 test_dht_api_SOURCES = \
137 test_dht_api_LDADD = \
138 $(top_builddir)/src/util/libgnunetutil.la \
139 $(top_builddir)/src/testing/libgnunettesting.la \
140 $(top_builddir)/src/hello/libgnunethello.la \
141 $(top_builddir)/src/dht/libgnunetdht.la
142 test_dht_api_DEPENDENCIES = \
145 test_dht_twopeer_SOURCES = \
147 test_dht_twopeer_LDADD = \
148 $(top_builddir)/src/util/libgnunetutil.la \
149 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
150 $(top_builddir)/src/dht/libgnunetdht.la
151 test_dht_twopeer_DEPENDENCIES = \
154 test_dht_twopeer_put_get_SOURCES = \
155 test_dht_twopeer_put_get.c
156 test_dht_twopeer_put_get_LDADD = \
157 $(top_builddir)/src/util/libgnunetutil.la \
158 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
159 $(top_builddir)/src/dht/libgnunetdht.la
161 test_dht_twopeer_get_put_SOURCES = \
162 test_dht_twopeer_get_put.c
163 test_dht_twopeer_get_put_LDADD = \
164 $(top_builddir)/src/util/libgnunetutil.la \
165 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
166 $(top_builddir)/src/dht/libgnunetdht.la
168 test_dht_twopeer_path_tracking_SOURCES = \
169 test_dht_twopeer_path_tracking.c
170 test_dht_twopeer_path_tracking_LDADD = \
171 $(top_builddir)/src/util/libgnunetutil.la \
172 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
173 $(top_builddir)/src/dht/libgnunetdht.la
175 test_dht_multipeer_SOURCES = \
177 test_dht_multipeer_LDADD = \
178 $(top_builddir)/src/util/libgnunetutil.la \
179 $(top_builddir)/src/statistics/libgnunetstatistics.la \
180 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
181 $(top_builddir)/src/dht/libgnunetdht.la
182 test_dht_multipeer_DEPENDENCIES = \
185 test_dht_2dtorus_SOURCES = \
187 test_dht_2dtorus_LDADD = \
188 $(top_builddir)/src/util/libgnunetutil.la \
189 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
190 $(top_builddir)/src/dht/libgnunetdht.la
191 test_dht_2dtorus_DEPENDENCIES = \
194 test_dht_line_SOURCES = \
196 test_dht_line_LDADD = \
197 $(top_builddir)/src/util/libgnunetutil.la \
198 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
199 $(top_builddir)/src/dht/libgnunetdht.la
200 test_dht_line_DEPENDENCIES = \
203 test_dht_monitor_SOURCES = test_dht_monitor.c
204 test_dht_monitor_LDADD = \
205 $(top_builddir)/src/util/libgnunetutil.la \
206 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
207 $(top_builddir)/src/dht/libgnunetdht.la
208 test_dht_monitor_DEPENDENCIES = \
213 test_dht_api_data.conf \
214 test_dht_api_peer1.conf \
215 test_dht_twopeer_data.conf \
216 test_dht_multipeer_data.conf \
217 test_dht_2dtorus.conf \
219 test_dht_tools.py.in \
225 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
227 %.py: %.py.in Makefile
228 $(do_subst) < $(srcdir)/$< > $@
231 test_dht_tools.py: test_dht_tools.py.in Makefile
232 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
233 chmod +x test_dht_tools.py