1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 pkgcfgdir= $(pkgdatadir)/config.d/
8 libexecdir= $(pkglibdir)/libexec/
14 AM_CFLAGS = --coverage -O0
21 libgnunetdht_la_SOURCES = \
23 libgnunetdht_la_LIBADD = \
24 $(top_builddir)/src/util/libgnunetutil.la \
27 libgnunetdht_la_LDFLAGS = \
32 plugin_LTLIBRARIES = \
33 libgnunet_plugin_block_dht.la
35 libgnunet_plugin_block_dht_la_SOURCES = \
37 libgnunet_plugin_block_dht_la_LIBADD = \
38 $(top_builddir)/src/hello/libgnunethello.la \
39 $(top_builddir)/src/block/libgnunetblock.la \
40 $(top_builddir)/src/block/libgnunetblockgroup.la \
41 $(top_builddir)/src/util/libgnunetutil.la \
43 libgnunet_plugin_block_dht_la_LDFLAGS = \
60 gnunet_service_dht_SOURCES = \
61 gnunet-service-dht.c gnunet-service-dht.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 = \
84 $(top_builddir)/src/core/libgnunetcore.la \
85 $(top_builddir)/src/util/libgnunetutil.la
87 gnunet_dht_put_SOURCES = \
89 gnunet_dht_put_LDADD = \
91 $(top_builddir)/src/core/libgnunetcore.la \
92 $(top_builddir)/src/util/libgnunetutil.la
94 gnunet_dht_monitor_SOURCES = \
96 gnunet_dht_monitor_LDADD = \
98 $(top_builddir)/src/core/libgnunetcore.la \
99 $(top_builddir)/src/util/libgnunetutil.la
101 gnunet_dht_profiler_SOURCES = \
102 gnunet_dht_profiler.c
103 gnunet_dht_profiler_LDADD = \
105 $(top_builddir)/src/core/libgnunetcore.la \
106 $(top_builddir)/src/util/libgnunetutil.la \
107 $(top_builddir)/src/testbed/libgnunettestbed.la
110 noinst_LIBRARIES = libgnunetdhttest.a
113 libgnunetdhttest_a_SOURCES = \
114 dht_test_lib.c dht_test_lib.h
115 libgnunetdhttest_a_LIBADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
117 $(top_builddir)/src/testbed/libgnunettestbed.la \
131 # These tests still do not work as testbed does
132 # not support the respective topology op
133 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
137 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
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 \
153 test_dht_twopeer_SOURCES = \
155 test_dht_twopeer_LDADD = \
157 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/testbed/libgnunettestbed.la \
162 test_dht_2dtorus_SOURCES = \
164 test_dht_2dtorus_LDADD = \
166 $(top_builddir)/src/util/libgnunetutil.la \
167 $(top_builddir)/src/testbed/libgnunettestbed.la \
170 test_dht_line_SOURCES = \
172 test_dht_line_LDADD = \
174 $(top_builddir)/src/util/libgnunetutil.la \
175 $(top_builddir)/src/testbed/libgnunettestbed.la \
178 test_dht_multipeer_SOURCES = \
180 test_dht_multipeer_LDADD = \
182 $(top_builddir)/src/util/libgnunetutil.la \
183 $(top_builddir)/src/statistics/libgnunetstatistics.la \
184 $(top_builddir)/src/testbed/libgnunettestbed.la \
187 test_dht_monitor_SOURCES = \
189 test_dht_monitor_LDADD = \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/testbed/libgnunettestbed.la \
197 gnunet-service-dht_clients.c \
198 test_dht_api_data.conf \
199 test_dht_api_peer1.conf \
200 test_dht_monitor.conf \
201 test_dht_multipeer.conf \
202 test_dht_2dtorus.conf \
204 test_dht_tools.conf \
205 test_dht_tools.py.in \
206 test_dht_multipeer_topology.dat
213 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
215 SUFFIXES = .py.in .py
217 $(do_subst) < $(srcdir)/$< > $@
220 test_dht_tools.py: test_dht_tools.py.in Makefile
221 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
222 chmod +x test_dht_tools.py