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 = \
63 gnunet_service_dht_SOURCES = \
64 gnunet-service-dht.c gnunet-service-dht.h \
65 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
66 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
67 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
68 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
69 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
70 gnunet_service_dht_LDADD = \
71 $(top_builddir)/src/statistics/libgnunetstatistics.la \
72 $(top_builddir)/src/core/libgnunetcore.la \
73 $(top_builddir)/src/nse/libgnunetnse.la \
74 $(top_builddir)/src/ats/libgnunetats.la \
75 $(top_builddir)/src/transport/libgnunettransport.la \
76 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
77 $(top_builddir)/src/hello/libgnunethello.la \
78 $(top_builddir)/src/block/libgnunetblock.la \
79 $(top_builddir)/src/datacache/libgnunetdatacache.la \
80 $(top_builddir)/src/util/libgnunetutil.la \
83 gnunet_dht_get_SOURCES = \
85 gnunet_dht_get_LDADD = \
87 $(top_builddir)/src/core/libgnunetcore.la \
88 $(top_builddir)/src/util/libgnunetutil.la
90 gnunet_dht_put_SOURCES = \
92 gnunet_dht_put_LDADD = \
94 $(top_builddir)/src/core/libgnunetcore.la \
95 $(top_builddir)/src/util/libgnunetutil.la
97 gnunet_dht_monitor_SOURCES = \
99 gnunet_dht_monitor_LDADD = \
101 $(top_builddir)/src/core/libgnunetcore.la \
102 $(top_builddir)/src/util/libgnunetutil.la
104 gnunet_dht_profiler_SOURCES = \
105 gnunet_dht_profiler.c
106 gnunet_dht_profiler_LDADD = \
108 $(top_builddir)/src/core/libgnunetcore.la \
109 $(top_builddir)/src/util/libgnunetutil.la \
110 $(top_builddir)/src/testbed/libgnunettestbed.la
113 noinst_LIBRARIES = libgnunetdhttest.a
116 libgnunetdhttest_a_SOURCES = \
117 dht_test_lib.c dht_test_lib.h
118 libgnunetdhttest_a_LIBADD = \
119 $(top_builddir)/src/util/libgnunetutil.la \
120 $(top_builddir)/src/testbed/libgnunettestbed.la \
134 # These tests still do not work as testbed does
135 # not support the respective topology op
136 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
140 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
141 TESTS = test_dht_api $(check_SCRIPTS) \
148 test_dht_api_SOURCES = \
150 test_dht_api_LDADD = \
151 $(top_builddir)/src/util/libgnunetutil.la \
152 $(top_builddir)/src/testing/libgnunettesting.la \
153 $(top_builddir)/src/hello/libgnunethello.la \
156 test_dht_twopeer_SOURCES = \
158 test_dht_twopeer_LDADD = \
160 $(top_builddir)/src/util/libgnunetutil.la \
162 $(top_builddir)/src/testbed/libgnunettestbed.la \
165 test_dht_2dtorus_SOURCES = \
167 test_dht_2dtorus_LDADD = \
169 $(top_builddir)/src/util/libgnunetutil.la \
170 $(top_builddir)/src/testbed/libgnunettestbed.la \
173 test_dht_line_SOURCES = \
175 test_dht_line_LDADD = \
177 $(top_builddir)/src/util/libgnunetutil.la \
178 $(top_builddir)/src/testbed/libgnunettestbed.la \
181 test_dht_multipeer_SOURCES = \
183 test_dht_multipeer_LDADD = \
185 $(top_builddir)/src/util/libgnunetutil.la \
186 $(top_builddir)/src/statistics/libgnunetstatistics.la \
187 $(top_builddir)/src/testbed/libgnunettestbed.la \
190 test_dht_monitor_SOURCES = \
192 test_dht_monitor_LDADD = \
194 $(top_builddir)/src/util/libgnunetutil.la \
195 $(top_builddir)/src/testbed/libgnunettestbed.la \
200 test_dht_api_data.conf \
201 test_dht_api_peer1.conf \
202 test_dht_monitor.conf \
203 test_dht_multipeer.conf \
204 test_dht_2dtorus.conf \
206 test_dht_tools.py.in \
207 test_dht_multipeer_topology.dat
214 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' -e 's,[@]bindir[@],$(bindir),g'
216 %.py: %.py.in Makefile
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