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_clients.c gnunet-service-dht_clients.h \
67 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
68 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
69 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
70 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
71 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
72 gnunet_service_dht_LDADD = \
73 $(top_builddir)/src/statistics/libgnunetstatistics.la \
74 $(top_builddir)/src/core/libgnunetcore.la \
75 $(top_builddir)/src/nse/libgnunetnse.la \
76 $(top_builddir)/src/ats/libgnunetats.la \
77 $(top_builddir)/src/transport/libgnunettransport.la \
78 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
79 $(top_builddir)/src/hello/libgnunethello.la \
80 $(top_builddir)/src/block/libgnunetblock.la \
81 $(top_builddir)/src/datacache/libgnunetdatacache.la \
82 $(top_builddir)/src/util/libgnunetutil.la \
85 gnunet_service_dht_xvine_SOURCES = \
86 gnunet-service-xdht.c gnunet-service-xdht.h \
87 gnunet-service-xdht_clients.c gnunet-service-xdht_clients.h \
88 gnunet-service-xdht_datacache.c gnunet-service-xdht_datacache.h \
89 gnunet-service-xdht_nse.c gnunet-service-xdht_nse.h \
90 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
91 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
93 gnunet_service_dht_xvine_LDADD = \
94 $(top_builddir)/src/statistics/libgnunetstatistics.la \
95 $(top_builddir)/src/core/libgnunetcore.la \
96 $(top_builddir)/src/nse/libgnunetnse.la \
97 $(top_builddir)/src/ats/libgnunetats.la \
98 $(top_builddir)/src/transport/libgnunettransport.la \
99 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
100 $(top_builddir)/src/hello/libgnunethello.la \
101 $(top_builddir)/src/block/libgnunetblock.la \
102 $(top_builddir)/src/datacache/libgnunetdatacache.la \
103 $(top_builddir)/src/util/libgnunetutil.la \
106 gnunet_service_dht_whanau_SOURCES = \
107 gnunet-service-wdht.c gnunet-service-wdht.h \
108 gnunet-service-wdht_clients.c gnunet-service-wdht_clients.h \
109 gnunet-service-wdht_datacache.c gnunet-service-wdht_datacache.h \
110 gnunet-service-wdht_nse.c gnunet-service-wdht_nse.h \
111 gnunet-service-wdht_neighbours.c gnunet-service-wdht_neighbours.h
112 gnunet_service_dht_whanau_LDADD = \
113 $(top_builddir)/src/statistics/libgnunetstatistics.la \
114 $(top_builddir)/src/core/libgnunetcore.la \
115 $(top_builddir)/src/nse/libgnunetnse.la \
116 $(top_builddir)/src/ats/libgnunetats.la \
117 $(top_builddir)/src/transport/libgnunettransport.la \
118 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
119 $(top_builddir)/src/hello/libgnunethello.la \
120 $(top_builddir)/src/block/libgnunetblock.la \
121 $(top_builddir)/src/datacache/libgnunetdatacache.la \
122 $(top_builddir)/src/util/libgnunetutil.la \
125 gnunet_dht_get_SOURCES = \
127 gnunet_dht_get_LDADD = \
129 $(top_builddir)/src/core/libgnunetcore.la \
130 $(top_builddir)/src/util/libgnunetutil.la
132 gnunet_dht_put_SOURCES = \
134 gnunet_dht_put_LDADD = \
136 $(top_builddir)/src/core/libgnunetcore.la \
137 $(top_builddir)/src/util/libgnunetutil.la
139 gnunet_dht_monitor_SOURCES = \
141 gnunet_dht_monitor_LDADD = \
143 $(top_builddir)/src/core/libgnunetcore.la \
144 $(top_builddir)/src/util/libgnunetutil.la
146 gnunet_dht_profiler_SOURCES = \
147 gnunet_dht_profiler.c
148 gnunet_dht_profiler_LDADD = \
150 $(top_builddir)/src/core/libgnunetcore.la \
151 $(top_builddir)/src/util/libgnunetutil.la \
152 $(top_builddir)/src/testbed/libgnunettestbed.la
155 noinst_LIBRARIES = libgnunetdhttest.a
158 libgnunetdhttest_a_SOURCES = \
159 dht_test_lib.c dht_test_lib.h
160 libgnunetdhttest_a_LIBADD = \
161 $(top_builddir)/src/util/libgnunetutil.la \
162 $(top_builddir)/src/testbed/libgnunettestbed.la \
176 # These tests still do not work as testbed does
177 # not support the respective topology op
178 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
182 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
183 TESTS = test_dht_api $(check_SCRIPTS) \
190 test_dht_api_SOURCES = \
192 test_dht_api_LDADD = \
193 $(top_builddir)/src/util/libgnunetutil.la \
194 $(top_builddir)/src/testing/libgnunettesting.la \
195 $(top_builddir)/src/hello/libgnunethello.la \
198 test_dht_twopeer_SOURCES = \
200 test_dht_twopeer_LDADD = \
202 $(top_builddir)/src/util/libgnunetutil.la \
204 $(top_builddir)/src/testbed/libgnunettestbed.la \
207 test_dht_2dtorus_SOURCES = \
209 test_dht_2dtorus_LDADD = \
211 $(top_builddir)/src/util/libgnunetutil.la \
212 $(top_builddir)/src/testbed/libgnunettestbed.la \
215 test_dht_line_SOURCES = \
217 test_dht_line_LDADD = \
219 $(top_builddir)/src/util/libgnunetutil.la \
220 $(top_builddir)/src/testbed/libgnunettestbed.la \
223 test_dht_multipeer_SOURCES = \
225 test_dht_multipeer_LDADD = \
227 $(top_builddir)/src/util/libgnunetutil.la \
228 $(top_builddir)/src/statistics/libgnunetstatistics.la \
229 $(top_builddir)/src/testbed/libgnunettestbed.la \
232 test_dht_monitor_SOURCES = \
234 test_dht_monitor_LDADD = \
236 $(top_builddir)/src/util/libgnunetutil.la \
237 $(top_builddir)/src/testbed/libgnunettestbed.la \
242 test_dht_api_data.conf \
243 test_dht_api_peer1.conf \
244 test_dht_monitor.conf \
245 test_dht_multipeer.conf \
246 test_dht_2dtorus.conf \
248 test_dht_tools.py.in \
249 test_dht_multipeer_topology.dat
256 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
258 %.py: %.py.in Makefile
259 $(do_subst) < $(srcdir)/$< > $@
262 test_dht_tools.py: test_dht_tools.py.in Makefile
263 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
264 chmod +x test_dht_tools.py