1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols -lole32 -lshell32 -liconv -lstdc++ -lcomdlg32 -lgdi32
7 plugindir = $(libdir)/gnunet
9 pkgcfgdir= $(pkgdatadir)/config.d/
11 libexecdir= $(pkglibdir)/libexec/
17 AM_CFLAGS = --coverage -O0
24 libgnunetdht_la_SOURCES = \
26 libgnunetdht_la_LIBADD = \
27 $(top_builddir)/src/util/libgnunetutil.la \
30 libgnunetdht_la_LDFLAGS = \
31 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
35 plugin_LTLIBRARIES = \
36 libgnunet_plugin_block_dht.la
38 libgnunet_plugin_block_dht_la_SOURCES = \
40 libgnunet_plugin_block_dht_la_LIBADD = \
41 $(top_builddir)/src/hello/libgnunethello.la \
42 $(top_builddir)/src/block/libgnunetblock.la \
43 $(top_builddir)/src/block/libgnunetblockgroup.la \
44 $(top_builddir)/src/util/libgnunetutil.la \
46 libgnunet_plugin_block_dht_la_LDFLAGS = \
55 gnunet-service-dht-xvine \
56 gnunet-service-dht-whanau
69 gnunet_service_dht_SOURCES = \
70 gnunet-service-dht.c gnunet-service-dht.h \
71 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
72 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
73 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
74 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
75 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
76 gnunet_service_dht_LDADD = \
77 $(top_builddir)/src/statistics/libgnunetstatistics.la \
78 $(top_builddir)/src/core/libgnunetcore.la \
79 $(top_builddir)/src/nse/libgnunetnse.la \
80 $(top_builddir)/src/ats/libgnunetats.la \
81 $(top_builddir)/src/transport/libgnunettransport.la \
82 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
83 $(top_builddir)/src/hello/libgnunethello.la \
84 $(top_builddir)/src/block/libgnunetblock.la \
85 $(top_builddir)/src/datacache/libgnunetdatacache.la \
86 $(top_builddir)/src/util/libgnunetutil.la \
89 gnunet_service_dht_xvine_SOURCES = \
90 gnunet-service-xdht.c gnunet-service-dht.h \
91 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
92 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
93 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
94 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
96 gnunet_service_dht_xvine_LDADD = \
97 $(top_builddir)/src/statistics/libgnunetstatistics.la \
98 $(top_builddir)/src/core/libgnunetcore.la \
99 $(top_builddir)/src/nse/libgnunetnse.la \
100 $(top_builddir)/src/ats/libgnunetats.la \
101 $(top_builddir)/src/transport/libgnunettransport.la \
102 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
103 $(top_builddir)/src/hello/libgnunethello.la \
104 $(top_builddir)/src/block/libgnunetblock.la \
105 $(top_builddir)/src/datacache/libgnunetdatacache.la \
106 $(top_builddir)/src/util/libgnunetutil.la \
109 gnunet_service_dht_whanau_SOURCES = \
110 gnunet-service-wdht.c gnunet-service-wdht.h \
111 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
112 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
113 gnunet-service-wdht_neighbours.c gnunet-service-dht_neighbours.h
114 gnunet_service_dht_whanau_LDADD = \
115 $(top_builddir)/src/statistics/libgnunetstatistics.la \
116 $(top_builddir)/src/core/libgnunetcore.la \
117 $(top_builddir)/src/nse/libgnunetnse.la \
118 $(top_builddir)/src/ats/libgnunetats.la \
119 $(top_builddir)/src/transport/libgnunettransport.la \
120 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
121 $(top_builddir)/src/hello/libgnunethello.la \
122 $(top_builddir)/src/block/libgnunetblock.la \
123 $(top_builddir)/src/datacache/libgnunetdatacache.la \
124 $(top_builddir)/src/util/libgnunetutil.la \
127 gnunet_dht_get_SOURCES = \
129 gnunet_dht_get_LDADD = \
131 $(top_builddir)/src/core/libgnunetcore.la \
132 $(top_builddir)/src/util/libgnunetutil.la
134 gnunet_dht_put_SOURCES = \
136 gnunet_dht_put_LDADD = \
138 $(top_builddir)/src/core/libgnunetcore.la \
139 $(top_builddir)/src/util/libgnunetutil.la
141 gnunet_dht_monitor_SOURCES = \
143 gnunet_dht_monitor_LDADD = \
145 $(top_builddir)/src/core/libgnunetcore.la \
146 $(top_builddir)/src/util/libgnunetutil.la
148 gnunet_dht_profiler_SOURCES = \
149 gnunet_dht_profiler.c
150 gnunet_dht_profiler_LDADD = \
152 $(top_builddir)/src/core/libgnunetcore.la \
153 $(top_builddir)/src/util/libgnunetutil.la \
154 $(top_builddir)/src/testbed/libgnunettestbed.la
157 noinst_LIBRARIES = libgnunetdhttest.a
160 libgnunetdhttest_a_SOURCES = \
161 dht_test_lib.c dht_test_lib.h
162 libgnunetdhttest_a_LIBADD = \
163 $(top_builddir)/src/util/libgnunetutil.la \
164 $(top_builddir)/src/testbed/libgnunettestbed.la \
178 # These tests still do not work as testbed does
179 # not support the respective topology op
180 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
184 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
185 TESTS = test_dht_api $(check_SCRIPTS) \
192 test_dht_api_SOURCES = \
194 test_dht_api_LDADD = \
195 $(top_builddir)/src/util/libgnunetutil.la \
196 $(top_builddir)/src/testing/libgnunettesting.la \
197 $(top_builddir)/src/hello/libgnunethello.la \
200 test_dht_twopeer_SOURCES = \
202 test_dht_twopeer_LDADD = \
204 $(top_builddir)/src/util/libgnunetutil.la \
206 $(top_builddir)/src/testbed/libgnunettestbed.la \
209 test_dht_2dtorus_SOURCES = \
211 test_dht_2dtorus_LDADD = \
213 $(top_builddir)/src/util/libgnunetutil.la \
214 $(top_builddir)/src/testbed/libgnunettestbed.la \
217 test_dht_line_SOURCES = \
219 test_dht_line_LDADD = \
221 $(top_builddir)/src/util/libgnunetutil.la \
222 $(top_builddir)/src/testbed/libgnunettestbed.la \
225 test_dht_multipeer_SOURCES = \
227 test_dht_multipeer_LDADD = \
229 $(top_builddir)/src/util/libgnunetutil.la \
230 $(top_builddir)/src/statistics/libgnunetstatistics.la \
231 $(top_builddir)/src/testbed/libgnunettestbed.la \
234 test_dht_monitor_SOURCES = \
236 test_dht_monitor_LDADD = \
238 $(top_builddir)/src/util/libgnunetutil.la \
239 $(top_builddir)/src/testbed/libgnunettestbed.la \
244 test_dht_api_data.conf \
245 test_dht_api_peer1.conf \
246 test_dht_monitor.conf \
247 test_dht_multipeer.conf \
248 test_dht_2dtorus.conf \
250 test_dht_tools.py.in \
251 test_dht_multipeer_topology.dat
258 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
260 %.py: %.py.in Makefile
261 $(do_subst) < $(srcdir)/$< > $@
264 test_dht_tools.py: test_dht_tools.py.in Makefile
265 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
266 chmod +x test_dht_tools.py