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/
18 AM_CFLAGS = --coverage -O0
25 libgnunetdht_la_SOURCES = \
27 libgnunetdht_la_LIBADD = \
28 $(top_builddir)/src/util/libgnunetutil.la \
31 libgnunetdht_la_LDFLAGS = \
32 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
36 plugin_LTLIBRARIES = \
37 libgnunet_plugin_block_dht.la
39 libgnunet_plugin_block_dht_la_SOURCES = \
41 libgnunet_plugin_block_dht_la_LIBADD = \
42 $(top_builddir)/src/hello/libgnunethello.la \
43 $(top_builddir)/src/block/libgnunetblock.la \
44 $(top_builddir)/src/util/libgnunetutil.la \
46 libgnunet_plugin_block_dht_la_LDFLAGS = \
48 libgnunet_plugin_block_dht_la_DEPENDENCIES = \
49 $(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 = \
111 test_dht_twopeer_put_get \
112 test_dht_twopeer_get_put \
113 test_dht_twopeer_path_tracking \
120 TESTS = test_dht_api $(check_SCRIPTS) \
122 test_dht_twopeer_put_get \
123 test_dht_twopeer_get_put \
124 test_dht_twopeer_path_tracking \
131 test_dht_api_SOURCES = \
133 test_dht_api_LDADD = \
134 $(top_builddir)/src/util/libgnunetutil.la \
135 $(top_builddir)/src/testing/libgnunettesting.la \
136 $(top_builddir)/src/hello/libgnunethello.la \
137 $(top_builddir)/src/dht/libgnunetdht.la
138 test_dht_api_DEPENDENCIES = \
141 test_dht_twopeer_SOURCES = \
143 test_dht_twopeer_LDADD = \
144 $(top_builddir)/src/util/libgnunetutil.la \
145 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
146 $(top_builddir)/src/dht/libgnunetdht.la
147 test_dht_twopeer_DEPENDENCIES = \
150 test_dht_twopeer_put_get_SOURCES = \
151 test_dht_twopeer_put_get.c
152 test_dht_twopeer_put_get_LDADD = \
153 $(top_builddir)/src/util/libgnunetutil.la \
154 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
155 $(top_builddir)/src/dht/libgnunetdht.la
157 test_dht_twopeer_get_put_SOURCES = \
158 test_dht_twopeer_get_put.c
159 test_dht_twopeer_get_put_LDADD = \
160 $(top_builddir)/src/util/libgnunetutil.la \
161 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
162 $(top_builddir)/src/dht/libgnunetdht.la
164 test_dht_twopeer_path_tracking_SOURCES = \
165 test_dht_twopeer_path_tracking.c
166 test_dht_twopeer_path_tracking_LDADD = \
167 $(top_builddir)/src/util/libgnunetutil.la \
168 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
169 $(top_builddir)/src/dht/libgnunetdht.la
171 test_dht_multipeer_SOURCES = \
173 test_dht_multipeer_LDADD = \
174 $(top_builddir)/src/util/libgnunetutil.la \
175 $(top_builddir)/src/statistics/libgnunetstatistics.la \
176 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
177 $(top_builddir)/src/dht/libgnunetdht.la
178 test_dht_multipeer_DEPENDENCIES = \
181 test_dht_2dtorus_SOURCES = \
183 test_dht_2dtorus_LDADD = \
184 $(top_builddir)/src/util/libgnunetutil.la \
185 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
186 $(top_builddir)/src/dht/libgnunetdht.la
187 test_dht_2dtorus_DEPENDENCIES = \
190 test_dht_line_SOURCES = \
192 test_dht_line_LDADD = \
193 $(top_builddir)/src/util/libgnunetutil.la \
194 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
195 $(top_builddir)/src/dht/libgnunetdht.la
196 test_dht_line_DEPENDENCIES = \
199 test_dht_monitor_SOURCES = test_dht_monitor.c
200 test_dht_monitor_LDADD = \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/testing_old/libgnunettesting_old.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_twopeer_data.conf \
212 test_dht_multipeer_data.conf \
213 test_dht_2dtorus.conf \
215 test_dht_tools.py.in \
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