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/block/libgnunetblockgroup.la \
86 $(top_builddir)/src/datacache/libgnunetdatacache.la \
87 $(top_builddir)/src/util/libgnunetutil.la \
90 gnunet_service_dht_xvine_SOURCES = \
91 gnunet-service-xdht.c gnunet-service-dht.h \
92 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
93 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
94 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
95 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
97 gnunet_service_dht_xvine_LDADD = \
98 $(top_builddir)/src/statistics/libgnunetstatistics.la \
99 $(top_builddir)/src/core/libgnunetcore.la \
100 $(top_builddir)/src/nse/libgnunetnse.la \
101 $(top_builddir)/src/ats/libgnunetats.la \
102 $(top_builddir)/src/transport/libgnunettransport.la \
103 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
104 $(top_builddir)/src/hello/libgnunethello.la \
105 $(top_builddir)/src/block/libgnunetblock.la \
106 $(top_builddir)/src/block/libgnunetblockgroup.la \
107 $(top_builddir)/src/datacache/libgnunetdatacache.la \
108 $(top_builddir)/src/util/libgnunetutil.la \
111 gnunet_service_dht_whanau_SOURCES = \
112 gnunet-service-wdht.c gnunet-service-wdht.h \
113 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
114 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
115 gnunet-service-wdht_neighbours.c gnunet-service-dht_neighbours.h
116 gnunet_service_dht_whanau_LDADD = \
117 $(top_builddir)/src/statistics/libgnunetstatistics.la \
118 $(top_builddir)/src/core/libgnunetcore.la \
119 $(top_builddir)/src/nse/libgnunetnse.la \
120 $(top_builddir)/src/ats/libgnunetats.la \
121 $(top_builddir)/src/transport/libgnunettransport.la \
122 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
123 $(top_builddir)/src/hello/libgnunethello.la \
124 $(top_builddir)/src/block/libgnunetblock.la \
125 $(top_builddir)/src/block/libgnunetblockgroup.la \
126 $(top_builddir)/src/datacache/libgnunetdatacache.la \
127 $(top_builddir)/src/util/libgnunetutil.la \
130 gnunet_dht_get_SOURCES = \
132 gnunet_dht_get_LDADD = \
134 $(top_builddir)/src/core/libgnunetcore.la \
135 $(top_builddir)/src/util/libgnunetutil.la
137 gnunet_dht_put_SOURCES = \
139 gnunet_dht_put_LDADD = \
141 $(top_builddir)/src/core/libgnunetcore.la \
142 $(top_builddir)/src/util/libgnunetutil.la
144 gnunet_dht_monitor_SOURCES = \
146 gnunet_dht_monitor_LDADD = \
148 $(top_builddir)/src/core/libgnunetcore.la \
149 $(top_builddir)/src/util/libgnunetutil.la
151 gnunet_dht_profiler_SOURCES = \
152 gnunet_dht_profiler.c
153 gnunet_dht_profiler_LDADD = \
155 $(top_builddir)/src/core/libgnunetcore.la \
156 $(top_builddir)/src/util/libgnunetutil.la \
157 $(top_builddir)/src/testbed/libgnunettestbed.la
160 noinst_LIBRARIES = libgnunetdhttest.a
163 libgnunetdhttest_a_SOURCES = \
164 dht_test_lib.c dht_test_lib.h
165 libgnunetdhttest_a_LIBADD = \
166 $(top_builddir)/src/util/libgnunetutil.la \
167 $(top_builddir)/src/testbed/libgnunettestbed.la \
181 # These tests still do not work as testbed does
182 # not support the respective topology op
183 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
187 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
188 TESTS = test_dht_api $(check_SCRIPTS) \
195 test_dht_api_SOURCES = \
197 test_dht_api_LDADD = \
198 $(top_builddir)/src/util/libgnunetutil.la \
199 $(top_builddir)/src/testing/libgnunettesting.la \
200 $(top_builddir)/src/hello/libgnunethello.la \
203 test_dht_twopeer_SOURCES = \
205 test_dht_twopeer_LDADD = \
207 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/testbed/libgnunettestbed.la \
212 test_dht_2dtorus_SOURCES = \
214 test_dht_2dtorus_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/testbed/libgnunettestbed.la \
220 test_dht_line_SOURCES = \
222 test_dht_line_LDADD = \
224 $(top_builddir)/src/util/libgnunetutil.la \
225 $(top_builddir)/src/testbed/libgnunettestbed.la \
228 test_dht_multipeer_SOURCES = \
230 test_dht_multipeer_LDADD = \
232 $(top_builddir)/src/util/libgnunetutil.la \
233 $(top_builddir)/src/statistics/libgnunetstatistics.la \
234 $(top_builddir)/src/testbed/libgnunettestbed.la \
237 test_dht_monitor_SOURCES = \
239 test_dht_monitor_LDADD = \
241 $(top_builddir)/src/util/libgnunetutil.la \
242 $(top_builddir)/src/testbed/libgnunettestbed.la \
247 test_dht_api_data.conf \
248 test_dht_api_peer1.conf \
249 test_dht_monitor.conf \
250 test_dht_multipeer.conf \
251 test_dht_2dtorus.conf \
253 test_dht_tools.py.in \
254 test_dht_multipeer_topology.dat
261 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
263 %.py: %.py.in Makefile
264 $(do_subst) < $(srcdir)/$< > $@
267 test_dht_tools.py: test_dht_tools.py.in Makefile
268 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
269 chmod +x test_dht_tools.py