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
68 gnunet_service_dht_SOURCES = \
69 gnunet-service-dht.c gnunet-service-dht.h \
70 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
71 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
72 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
73 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
74 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
75 gnunet_service_dht_LDADD = \
76 $(top_builddir)/src/statistics/libgnunetstatistics.la \
77 $(top_builddir)/src/core/libgnunetcore.la \
78 $(top_builddir)/src/nse/libgnunetnse.la \
79 $(top_builddir)/src/ats/libgnunetats.la \
80 $(top_builddir)/src/transport/libgnunettransport.la \
81 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
82 $(top_builddir)/src/hello/libgnunethello.la \
83 $(top_builddir)/src/block/libgnunetblock.la \
84 $(top_builddir)/src/datacache/libgnunetdatacache.la \
85 $(top_builddir)/src/util/libgnunetutil.la \
88 gnunet_service_dht_xvine_SOURCES = \
89 gnunet-service-xdht.c gnunet-service-dht.h \
90 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
91 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
92 gnunet-service-xdht_neighbours.c gnunet-service-xdht_neighbours.h \
93 gnunet-service-xdht_routing.c gnunet-service-xdht_routing.h
95 gnunet_service_dht_xvine_LDADD = \
96 $(top_builddir)/src/statistics/libgnunetstatistics.la \
97 $(top_builddir)/src/core/libgnunetcore.la \
98 $(top_builddir)/src/nse/libgnunetnse.la \
99 $(top_builddir)/src/ats/libgnunetats.la \
100 $(top_builddir)/src/transport/libgnunettransport.la \
101 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
102 $(top_builddir)/src/hello/libgnunethello.la \
103 $(top_builddir)/src/block/libgnunetblock.la \
104 $(top_builddir)/src/datacache/libgnunetdatacache.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_service_dht_whanau_SOURCES = \
109 gnunet-service-wdht.c gnunet-service-wdht.h \
110 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
111 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
112 gnunet-service-wdht_neighbours.c gnunet-service-dht_neighbours.h
113 gnunet_service_dht_whanau_LDADD = \
114 $(top_builddir)/src/statistics/libgnunetstatistics.la \
115 $(top_builddir)/src/core/libgnunetcore.la \
116 $(top_builddir)/src/nse/libgnunetnse.la \
117 $(top_builddir)/src/ats/libgnunetats.la \
118 $(top_builddir)/src/transport/libgnunettransport.la \
119 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
120 $(top_builddir)/src/hello/libgnunethello.la \
121 $(top_builddir)/src/block/libgnunetblock.la \
122 $(top_builddir)/src/datacache/libgnunetdatacache.la \
123 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_dht_get_SOURCES = \
128 gnunet_dht_get_LDADD = \
130 $(top_builddir)/src/core/libgnunetcore.la \
131 $(top_builddir)/src/util/libgnunetutil.la
133 gnunet_dht_put_SOURCES = \
135 gnunet_dht_put_LDADD = \
137 $(top_builddir)/src/core/libgnunetcore.la \
138 $(top_builddir)/src/util/libgnunetutil.la
140 gnunet_dht_monitor_SOURCES = \
142 gnunet_dht_monitor_LDADD = \
144 $(top_builddir)/src/core/libgnunetcore.la \
145 $(top_builddir)/src/util/libgnunetutil.la
147 gnunet_dht_profiler_SOURCES = \
148 gnunet_dht_profiler.c
149 gnunet_dht_profiler_LDADD = \
151 $(top_builddir)/src/core/libgnunetcore.la \
152 $(top_builddir)/src/util/libgnunetutil.la \
153 $(top_builddir)/src/testbed/libgnunettestbed.la
156 noinst_LIBRARIES = libgnunetdhttest.a
159 libgnunetdhttest_a_SOURCES = \
160 dht_test_lib.c dht_test_lib.h
161 libgnunetdhttest_a_LIBADD = \
162 $(top_builddir)/src/util/libgnunetutil.la \
163 $(top_builddir)/src/testbed/libgnunettestbed.la \
177 # These tests still do not work as testbed does
178 # not support the respective topology op
179 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
183 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
184 TESTS = test_dht_api $(check_SCRIPTS) \
191 test_dht_api_SOURCES = \
193 test_dht_api_LDADD = \
194 $(top_builddir)/src/util/libgnunetutil.la \
195 $(top_builddir)/src/testing/libgnunettesting.la \
196 $(top_builddir)/src/hello/libgnunethello.la \
199 test_dht_twopeer_SOURCES = \
201 test_dht_twopeer_LDADD = \
203 $(top_builddir)/src/util/libgnunetutil.la \
205 $(top_builddir)/src/testbed/libgnunettestbed.la \
208 test_dht_2dtorus_SOURCES = \
210 test_dht_2dtorus_LDADD = \
212 $(top_builddir)/src/util/libgnunetutil.la \
213 $(top_builddir)/src/testbed/libgnunettestbed.la \
216 test_dht_line_SOURCES = \
218 test_dht_line_LDADD = \
220 $(top_builddir)/src/util/libgnunetutil.la \
221 $(top_builddir)/src/testbed/libgnunettestbed.la \
224 test_dht_multipeer_SOURCES = \
226 test_dht_multipeer_LDADD = \
228 $(top_builddir)/src/util/libgnunetutil.la \
229 $(top_builddir)/src/statistics/libgnunetstatistics.la \
230 $(top_builddir)/src/testbed/libgnunettestbed.la \
233 test_dht_monitor_SOURCES = \
235 test_dht_monitor_LDADD = \
237 $(top_builddir)/src/util/libgnunetutil.la \
238 $(top_builddir)/src/testbed/libgnunettestbed.la \
243 test_dht_api_data.conf \
244 test_dht_api_peer1.conf \
245 test_dht_monitor.conf \
246 test_dht_multipeer.conf \
247 test_dht_2dtorus.conf \
249 test_dht_tools.py.in \
250 test_dht_multipeer_topology.dat
257 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
259 %.py: %.py.in Makefile
260 $(do_subst) < $(srcdir)/$< > $@
263 test_dht_tools.py: test_dht_tools.py.in Makefile
264 $(do_subst) < $(srcdir)/test_dht_tools.py.in > test_dht_tools.py
265 chmod +x test_dht_tools.py