1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
4 plugindir = $(libdir)/gnunet
6 pkgcfgdir= $(pkgdatadir)/config.d/
8 libexecdir= $(pkglibdir)/libexec/
14 AM_CFLAGS = --coverage -O0
21 libgnunetdht_la_SOURCES = \
23 libgnunetdht_la_LIBADD = \
24 $(top_builddir)/src/util/libgnunetutil.la \
27 libgnunetdht_la_LDFLAGS = \
32 plugin_LTLIBRARIES = \
33 libgnunet_plugin_block_dht.la
35 libgnunet_plugin_block_dht_la_SOURCES = \
37 libgnunet_plugin_block_dht_la_LIBADD = \
38 $(top_builddir)/src/hello/libgnunethello.la \
39 $(top_builddir)/src/block/libgnunetblock.la \
40 $(top_builddir)/src/block/libgnunetblockgroup.la \
41 $(top_builddir)/src/util/libgnunetutil.la \
43 libgnunet_plugin_block_dht_la_LDFLAGS = \
60 gnunet_service_dht_SOURCES = \
61 gnunet-service-dht.c gnunet-service-dht.h \
62 gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \
63 gnunet-service-dht_hello.c gnunet-service-dht_hello.h \
64 gnunet-service-dht_nse.c gnunet-service-dht_nse.h \
65 gnunet-service-dht_neighbours.c gnunet-service-dht_neighbours.h \
66 gnunet-service-dht_routing.c gnunet-service-dht_routing.h
67 gnunet_service_dht_LDADD = \
68 $(top_builddir)/src/statistics/libgnunetstatistics.la \
69 $(top_builddir)/src/core/libgnunetcore.la \
70 $(top_builddir)/src/nse/libgnunetnse.la \
71 $(top_builddir)/src/ats/libgnunetats.la \
72 $(top_builddir)/src/transport/libgnunettransport.la \
73 $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
74 $(top_builddir)/src/hello/libgnunethello.la \
75 $(top_builddir)/src/block/libgnunetblock.la \
76 $(top_builddir)/src/datacache/libgnunetdatacache.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
79 gnunet_service_dht_LDFLAGS = \
82 gnunet_dht_get_SOURCES = \
84 gnunet_dht_get_LDADD = \
86 $(top_builddir)/src/core/libgnunetcore.la \
87 $(top_builddir)/src/util/libgnunetutil.la
88 gnunet_dht_get_LDFLAGS = \
91 gnunet_dht_put_SOURCES = \
93 gnunet_dht_put_LDADD = \
95 $(top_builddir)/src/core/libgnunetcore.la \
96 $(top_builddir)/src/util/libgnunetutil.la
97 gnunet_dht_put_LDFLAGS = \
100 gnunet_dht_monitor_SOURCES = \
102 gnunet_dht_monitor_LDADD = \
104 $(top_builddir)/src/core/libgnunetcore.la \
105 $(top_builddir)/src/util/libgnunetutil.la
106 gnunet_dht_monitor_LDFLAGS = \
109 gnunet_dht_profiler_SOURCES = \
110 gnunet_dht_profiler.c
111 gnunet_dht_profiler_LDADD = \
113 $(top_builddir)/src/core/libgnunetcore.la \
114 $(top_builddir)/src/util/libgnunetutil.la \
115 $(top_builddir)/src/testbed/libgnunettestbed.la
116 gnunet_dht_profiler_LDFLAGS = \
120 noinst_LIBRARIES = libgnunetdhttest.a
123 libgnunetdhttest_a_SOURCES = \
124 dht_test_lib.c dht_test_lib.h
125 libgnunetdhttest_a_LIBADD = \
126 $(top_builddir)/src/util/libgnunetutil.la \
127 $(top_builddir)/src/testbed/libgnunettestbed.la \
141 # These tests still do not work as testbed does
142 # not support the respective topology op
143 NEW_TESTS = test_dht_2dtorus test_dht_multipeer
147 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
148 TESTS = test_dht_api $(check_SCRIPTS) \
155 test_dht_api_SOURCES = \
157 test_dht_api_LDADD = \
158 $(top_builddir)/src/util/libgnunetutil.la \
159 $(top_builddir)/src/testing/libgnunettesting.la \
160 $(top_builddir)/src/hello/libgnunethello.la \
163 test_dht_twopeer_SOURCES = \
165 test_dht_twopeer_LDADD = \
167 $(top_builddir)/src/util/libgnunetutil.la \
169 $(top_builddir)/src/testbed/libgnunettestbed.la \
172 test_dht_2dtorus_SOURCES = \
174 test_dht_2dtorus_LDADD = \
176 $(top_builddir)/src/util/libgnunetutil.la \
177 $(top_builddir)/src/testbed/libgnunettestbed.la \
180 test_dht_line_SOURCES = \
182 test_dht_line_LDADD = \
184 $(top_builddir)/src/util/libgnunetutil.la \
185 $(top_builddir)/src/testbed/libgnunettestbed.la \
188 test_dht_multipeer_SOURCES = \
190 test_dht_multipeer_LDADD = \
192 $(top_builddir)/src/util/libgnunetutil.la \
193 $(top_builddir)/src/statistics/libgnunetstatistics.la \
194 $(top_builddir)/src/testbed/libgnunettestbed.la \
197 test_dht_monitor_SOURCES = \
199 test_dht_monitor_LDADD = \
201 $(top_builddir)/src/util/libgnunetutil.la \
202 $(top_builddir)/src/testbed/libgnunettestbed.la \
207 gnunet-service-dht_clients.c \
208 test_dht_api_data.conf \
209 test_dht_api_peer1.conf \
210 test_dht_monitor.conf \
211 test_dht_multipeer.conf \
212 test_dht_2dtorus.conf \
214 test_dht_tools.conf \
215 test_dht_tools.py.in \
216 test_dht_multipeer_topology.dat
223 SUFFIXES = .py.in .py
225 $(AWK) -v bdir="$(bindir)" -v py="$(PYTHON)" -v awkay="$(AWK_BINARY)" -v pfx="$(prefix)" -v prl="$(PERL)" -v sysconfdirectory="$(sysconfdir)" -v pkgdatadirectory="$(pkgdatadir)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/$< > $@