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 = \
51 gnunet-service-dht-xvine
52 # gnunet-service-dht-whanau
60 gnunet_service_dht_SOURCES = \
61 gnunet-service-dht.c gnunet-service-dht.h \
62 gnunet-service-dht_clients.c gnunet-service-dht_clients.h \
63 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
64 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
65 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
66 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
67 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
68 gnunet_service_dht_LDADD = \
69 $(top_builddir)/src/statistics/libgnunetstatistics.la \
70 $(top_builddir)/src/core/libgnunetcore.la \
71 $(top_builddir)/src/nse/libgnunetnse.la \
72 $(top_builddir)/src/ats/libgnunetats.la \
73 $(top_builddir)/src/transport/libgnunettransport.la \
74 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
75 $(top_builddir)/src/hello/libgnunethello.la \
76 $(top_builddir)/src/block/libgnunetblock.la \
77 $(top_builddir)/src/datacache/libgnunetdatacache.la \
78 $(top_builddir)/src/util/libgnunetutil.la \
81 gnunet_service_dht_xvine_SOURCES = \
82 gnunet-service-xdht.c gnunet-service-xdht.h \
83 gnunet-service-xdht_clients.c gnunet-service-xdht_clients.h \
84 gnunet-service-xdht_datacache.c gnunet-service-xdht_datacache.h \
85 gnunet-service-xdht_hello.c gnunet-service-xdht_hello.h \
86 gnunet-service-xdht_nse.c gnunet-service-xdht_nse.h \
87 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
88 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
89 gnunet_service_dht_xvine_LDADD = \
90 $(top_builddir)/src/statistics/libgnunetstatistics.la \
91 $(top_builddir)/src/core/libgnunetcore.la \
92 $(top_builddir)/src/nse/libgnunetnse.la \
93 $(top_builddir)/src/ats/libgnunetats.la \
94 $(top_builddir)/src/transport/libgnunettransport.la \
95 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
96 $(top_builddir)/src/hello/libgnunethello.la \
97 $(top_builddir)/src/block/libgnunetblock.la \
98 $(top_builddir)/src/datacache/libgnunetdatacache.la \
99 $(top_builddir)/src/util/libgnunetutil.la \
102 gnunet_service_dht_whanau_SOURCES = \
103 gnunet-service-wdht.c gnunet-service-wdht.h \
104 gnunet-service-wdht_clients.c gnunet-service-wdht_clients.h \
105 gnunet-service-wdht_datacache.c gnunet-service-wdht_datacache.h \
106 gnunet-service-wdht_hello.c gnunet-service-wdht_hello.h \
107 gnunet-service-wdht_nse.c gnunet-service-wdht_nse.h \
108 gnunet-service-wdht_neighbours.c gnunet-service-wdht_neighbours.h \
109 gnunet-service-wdht_routing.c gnunet-service-wdht_routing.h
110 gnunet_service_dht_whanau_LDADD = \
111 $(top_builddir)/src/statistics/libgnunetstatistics.la \
112 $(top_builddir)/src/core/libgnunetcore.la \
113 $(top_builddir)/src/nse/libgnunetnse.la \
114 $(top_builddir)/src/ats/libgnunetats.la \
115 $(top_builddir)/src/transport/libgnunettransport.la \
116 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
117 $(top_builddir)/src/hello/libgnunethello.la \
118 $(top_builddir)/src/block/libgnunetblock.la \
119 $(top_builddir)/src/datacache/libgnunetdatacache.la \
120 $(top_builddir)/src/util/libgnunetutil.la \
123 gnunet_dht_get_SOURCES = \
125 gnunet_dht_get_LDADD = \
127 $(top_builddir)/src/core/libgnunetcore.la \
128 $(top_builddir)/src/util/libgnunetutil.la
130 gnunet_dht_put_SOURCES = \
132 gnunet_dht_put_LDADD = \
134 $(top_builddir)/src/core/libgnunetcore.la \
135 $(top_builddir)/src/util/libgnunetutil.la
137 gnunet_dht_monitor_SOURCES = \
139 gnunet_dht_monitor_LDADD = \
141 $(top_builddir)/src/core/libgnunetcore.la \
142 $(top_builddir)/src/util/libgnunetutil.la
144 gnunet_dht_profiler_SOURCES = \
145 gnunet_dht_profiler.c
146 gnunet_dht_profiler_LDADD = \
148 $(top_builddir)/src/core/libgnunetcore.la \
149 $(top_builddir)/src/util/libgnunetutil.la \
150 $(top_builddir)/src/testbed/libgnunettestbed.la
153 noinst_LIBRARIES = libgnunetdhttest.a
156 libgnunetdhttest_a_SOURCES = \
157 dht_test_lib.c dht_test_lib.h
158 libgnunetdhttest_a_LIBADD = \
159 $(top_builddir)/src/util/libgnunetutil.la \
160 $(top_builddir)/src/testbed/libgnunettestbed.la \
174 # These tests still do not work as testbed does
175 # not support the respective topology op
176 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
180 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
181 TESTS = test_dht_api $(check_SCRIPTS) \
188 test_dht_api_SOURCES = \
190 test_dht_api_LDADD = \
191 $(top_builddir)/src/util/libgnunetutil.la \
192 $(top_builddir)/src/testing/libgnunettesting.la \
193 $(top_builddir)/src/hello/libgnunethello.la \
196 test_dht_twopeer_SOURCES = \
198 test_dht_twopeer_LDADD = \
200 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/testbed/libgnunettestbed.la \
205 test_dht_2dtorus_SOURCES = \
207 test_dht_2dtorus_LDADD = \
209 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/testbed/libgnunettestbed.la \
213 test_dht_line_SOURCES = \
215 test_dht_line_LDADD = \
217 $(top_builddir)/src/util/libgnunetutil.la \
218 $(top_builddir)/src/testbed/libgnunettestbed.la \
221 test_dht_multipeer_SOURCES = \
223 test_dht_multipeer_LDADD = \
225 $(top_builddir)/src/util/libgnunetutil.la \
226 $(top_builddir)/src/statistics/libgnunetstatistics.la \
227 $(top_builddir)/src/testbed/libgnunettestbed.la \
230 test_dht_monitor_SOURCES = \
232 test_dht_monitor_LDADD = \
234 $(top_builddir)/src/util/libgnunetutil.la \
235 $(top_builddir)/src/testbed/libgnunettestbed.la \
240 test_dht_api_data.conf \
241 test_dht_api_peer1.conf \
242 test_dht_monitor.conf \
243 test_dht_multipeer.conf \
244 test_dht_2dtorus.conf \
246 test_dht_tools.py.in \
247 test_dht_multipeer_topology.dat
254 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
256 %.py: %.py.in Makefile
257 $(do_subst) < $(srcdir)/$< > $@
260 test_dht_tools.py: test_dht_tools.py.in Makefile
261 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
262 chmod +x test_dht_tools.py