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/util/libgnunetutil.la \
45 libgnunet_plugin_block_dht_la_LDFLAGS = \
54 gnunet-service-dht-xvine \
55 gnunet-service-dht-whanau
64 gnunet_service_dht_SOURCES = \
65 gnunet-service-dht.c gnunet-service-dht.h \
66 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
67 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
68 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
69 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
70 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
71 gnunet_service_dht_LDADD = \
72 $(top_builddir)/src/statistics/libgnunetstatistics.la \
73 $(top_builddir)/src/core/libgnunetcore.la \
74 $(top_builddir)/src/nse/libgnunetnse.la \
75 $(top_builddir)/src/ats/libgnunetats.la \
76 $(top_builddir)/src/transport/libgnunettransport.la \
77 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
78 $(top_builddir)/src/hello/libgnunethello.la \
79 $(top_builddir)/src/block/libgnunetblock.la \
80 $(top_builddir)/src/datacache/libgnunetdatacache.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
84 gnunet_service_dht_xvine_SOURCES = \
85 gnunet-service-xdht.c gnunet-service-dht.h \
86 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
87 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
88 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
89 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
91 gnunet_service_dht_xvine_LDADD = \
92 $(top_builddir)/src/statistics/libgnunetstatistics.la \
93 $(top_builddir)/src/core/libgnunetcore.la \
94 $(top_builddir)/src/nse/libgnunetnse.la \
95 $(top_builddir)/src/ats/libgnunetats.la \
96 $(top_builddir)/src/transport/libgnunettransport.la \
97 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
98 $(top_builddir)/src/hello/libgnunethello.la \
99 $(top_builddir)/src/block/libgnunetblock.la \
100 $(top_builddir)/src/datacache/libgnunetdatacache.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
104 gnunet_service_dht_whanau_SOURCES = \
105 gnunet-service-wdht.c gnunet-service-wdht.h \
106 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
107 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
108 gnunet-service-wdht_neighbours.c gnunet-service-dht_neighbours.h
109 gnunet_service_dht_whanau_LDADD = \
110 $(top_builddir)/src/statistics/libgnunetstatistics.la \
111 $(top_builddir)/src/core/libgnunetcore.la \
112 $(top_builddir)/src/nse/libgnunetnse.la \
113 $(top_builddir)/src/ats/libgnunetats.la \
114 $(top_builddir)/src/transport/libgnunettransport.la \
115 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
116 $(top_builddir)/src/hello/libgnunethello.la \
117 $(top_builddir)/src/block/libgnunetblock.la \
118 $(top_builddir)/src/datacache/libgnunetdatacache.la \
119 $(top_builddir)/src/util/libgnunetutil.la \
122 gnunet_dht_get_SOURCES = \
124 gnunet_dht_get_LDADD = \
126 $(top_builddir)/src/core/libgnunetcore.la \
127 $(top_builddir)/src/util/libgnunetutil.la
129 gnunet_dht_put_SOURCES = \
131 gnunet_dht_put_LDADD = \
133 $(top_builddir)/src/core/libgnunetcore.la \
134 $(top_builddir)/src/util/libgnunetutil.la
136 gnunet_dht_monitor_SOURCES = \
138 gnunet_dht_monitor_LDADD = \
140 $(top_builddir)/src/core/libgnunetcore.la \
141 $(top_builddir)/src/util/libgnunetutil.la
143 gnunet_dht_profiler_SOURCES = \
144 gnunet_dht_profiler.c
145 gnunet_dht_profiler_LDADD = \
147 $(top_builddir)/src/core/libgnunetcore.la \
148 $(top_builddir)/src/util/libgnunetutil.la \
149 $(top_builddir)/src/testbed/libgnunettestbed.la
152 noinst_LIBRARIES = libgnunetdhttest.a
155 libgnunetdhttest_a_SOURCES = \
156 dht_test_lib.c dht_test_lib.h
157 libgnunetdhttest_a_LIBADD = \
158 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/testbed/libgnunettestbed.la \
173 # These tests still do not work as testbed does
174 # not support the respective topology op
175 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
179 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
180 TESTS = test_dht_api $(check_SCRIPTS) \
187 test_dht_api_SOURCES = \
189 test_dht_api_LDADD = \
190 $(top_builddir)/src/util/libgnunetutil.la \
191 $(top_builddir)/src/testing/libgnunettesting.la \
192 $(top_builddir)/src/hello/libgnunethello.la \
195 test_dht_twopeer_SOURCES = \
197 test_dht_twopeer_LDADD = \
199 $(top_builddir)/src/util/libgnunetutil.la \
201 $(top_builddir)/src/testbed/libgnunettestbed.la \
204 test_dht_2dtorus_SOURCES = \
206 test_dht_2dtorus_LDADD = \
208 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/testbed/libgnunettestbed.la \
212 test_dht_line_SOURCES = \
214 test_dht_line_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/testbed/libgnunettestbed.la \
220 test_dht_multipeer_SOURCES = \
222 test_dht_multipeer_LDADD = \
224 $(top_builddir)/src/util/libgnunetutil.la \
225 $(top_builddir)/src/statistics/libgnunetstatistics.la \
226 $(top_builddir)/src/testbed/libgnunettestbed.la \
229 test_dht_monitor_SOURCES = \
231 test_dht_monitor_LDADD = \
233 $(top_builddir)/src/util/libgnunetutil.la \
234 $(top_builddir)/src/testbed/libgnunettestbed.la \
239 test_dht_api_data.conf \
240 test_dht_api_peer1.conf \
241 test_dht_monitor.conf \
242 test_dht_multipeer.conf \
243 test_dht_2dtorus.conf \
245 test_dht_tools.py.in \
246 test_dht_multipeer_topology.dat
253 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
255 %.py: %.py.in Makefile
256 $(do_subst) < $(srcdir)/$< > $@
259 test_dht_tools.py: test_dht_tools.py.in Makefile
260 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
261 chmod +x test_dht_tools.py