2 INCLUDES = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
14 lib_LTLIBRARIES = libgnunetfs.la
16 noinst_LIBRARIES = libgnunetfstest.a
18 libgnunetfs_la_SOURCES = \
23 fs_file_information.c \
33 libgnunetfs_la_LIBADD = \
34 $(top_builddir)/src/datastore/libgnunetdatastore.la \
35 $(top_builddir)/src/util/libgnunetutil.la \
39 libgnunetfs_la_LDFLAGS = \
40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44 libgnunetfstest_a_SOURCES = \
45 fs_test_lib.c fs_test_lib.h
47 libgnunetfstest_a_LIBADD = \
48 $(top_builddir)/src/testing/libgnunettesting.la
59 gnunet_directory_SOURCES = \
61 gnunet_directory_LDADD = \
62 $(top_builddir)/src/fs/libgnunetfs.la \
63 $(top_builddir)/src/util/libgnunetutil.la \
66 gnunet_download_SOURCES = \
68 gnunet_download_LDADD = \
69 $(top_builddir)/src/fs/libgnunetfs.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
73 gnunet_publish_SOURCES = \
75 gnunet_publish_LDADD = \
76 $(top_builddir)/src/fs/libgnunetfs.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
80 gnunet_pseudonym_SOURCES = \
82 gnunet_pseudonym_LDADD = \
83 $(top_builddir)/src/fs/libgnunetfs.la \
84 $(top_builddir)/src/util/libgnunetutil.la \
88 gnunet_search_SOURCES = \
90 gnunet_search_LDADD = \
91 $(top_builddir)/src/fs/libgnunetfs.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_service_fs_SOURCES = \
97 gnunet-service-fs_drq.c gnunet-service-fs_drq.h \
98 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
99 gnunet_service_fs_LDADD = \
100 $(top_builddir)/src/fs/libgnunetfs.la \
101 $(top_builddir)/src/block/libgnunetblock.la \
102 $(top_builddir)/src/datastore/libgnunetdatastore.la \
103 $(top_builddir)/src/statistics/libgnunetstatistics.la \
104 $(top_builddir)/src/core/libgnunetcore.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_unindex_SOURCES = \
110 gnunet_unindex_LDADD = \
111 $(top_builddir)/src/fs/libgnunetfs.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
122 test_fs_file_information \
124 test_fs_list_indexed \
132 test_gnunet_service_fs_p2p
135 if HAVE_PYTHON_PEXPECT
137 test_gnunet_fs_psd.py \
138 test_gnunet_fs_rec.py \
139 test_gnunet_fs_ns.py \
140 test_gnunet_fs_idx.py
143 TESTS = $(check_SCRIPTS) \
146 test_fs_file_information \
147 test_fs_list_indexed \
155 test_gnunet_service_fs_p2p
159 test_fs_collection_SOURCES = \
161 test_fs_collection_LDADD = \
162 $(top_builddir)/src/fs/libgnunetfs.la \
163 $(top_builddir)/src/util/libgnunetutil.la
165 test_fs_directory_SOURCES = \
167 test_fs_directory_LDADD = \
168 $(top_builddir)/src/fs/libgnunetfs.la \
169 $(top_builddir)/src/util/libgnunetutil.la
171 test_fs_download_SOURCES = \
173 test_fs_download_LDADD = \
174 $(top_builddir)/src/fs/libgnunetfs.la \
175 $(top_builddir)/src/arm/libgnunetarm.la \
176 $(top_builddir)/src/util/libgnunetutil.la
178 test_fs_file_information_SOURCES = \
179 test_fs_file_information.c
180 test_fs_file_information_LDADD = \
181 $(top_builddir)/src/fs/libgnunetfs.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 test_fs_getopt_SOURCES = \
186 test_fs_getopt_LDADD = \
187 $(top_builddir)/src/fs/libgnunetfs.la \
188 $(top_builddir)/src/util/libgnunetutil.la
190 test_fs_list_indexed_SOURCES = \
191 test_fs_list_indexed.c
192 test_fs_list_indexed_LDADD = \
193 $(top_builddir)/src/fs/libgnunetfs.la \
194 $(top_builddir)/src/arm/libgnunetarm.la \
195 $(top_builddir)/src/util/libgnunetutil.la
197 test_fs_namespace_SOURCES = \
199 test_fs_namespace_LDADD = \
200 $(top_builddir)/src/fs/libgnunetfs.la \
201 $(top_builddir)/src/arm/libgnunetarm.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 test_fs_publish_SOURCES = \
206 test_fs_publish_LDADD = \
207 $(top_builddir)/src/fs/libgnunetfs.la \
208 $(top_builddir)/src/arm/libgnunetarm.la \
209 $(top_builddir)/src/util/libgnunetutil.la
211 test_fs_search_SOURCES = \
213 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
214 $(top_builddir)/src/arm/libgnunetarm.la \
215 $(top_builddir)/src/util/libgnunetutil.la
217 test_fs_start_stop_SOURCES = \
219 test_fs_start_stop_LDADD = \
220 $(top_builddir)/src/fs/libgnunetfs.la \
221 $(top_builddir)/src/arm/libgnunetarm.la \
222 $(top_builddir)/src/util/libgnunetutil.la
224 test_fs_unindex_SOURCES = \
226 test_fs_unindex_LDADD = \
227 $(top_builddir)/src/fs/libgnunetfs.la \
228 $(top_builddir)/src/arm/libgnunetarm.la \
229 $(top_builddir)/src/util/libgnunetutil.la
231 test_fs_uri_SOURCES = \
233 test_fs_uri_LDADD = \
234 $(top_builddir)/src/fs/libgnunetfs.la \
235 $(top_builddir)/src/util/libgnunetutil.la
237 test_fs_test_lib_SOURCES = \
239 test_fs_test_lib_LDADD = \
240 $(top_builddir)/src/fs/libgnunetfstest.a \
241 $(top_builddir)/src/testing/libgnunettesting.la \
242 $(top_builddir)/src/fs/libgnunetfs.la \
243 $(top_builddir)/src/util/libgnunetutil.la
245 test_gnunet_service_fs_p2p_SOURCES = \
246 test_gnunet_service_fs_p2p.c
247 test_gnunet_service_fs_p2p_LDADD = \
248 $(top_builddir)/src/fs/libgnunetfstest.a \
249 $(top_builddir)/src/testing/libgnunettesting.la \
250 $(top_builddir)/src/fs/libgnunetfs.la \
251 $(top_builddir)/src/util/libgnunetutil.la
253 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
255 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
256 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
257 chmod +x test_gnunet_fs_psd.py
259 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
260 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
261 chmod +x test_gnunet_fs_rec.py
263 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
264 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
265 chmod +x test_gnunet_fs_ns.py
267 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
268 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
269 chmod +x test_gnunet_fs_idx.py
273 fs_test_lib_data.conf \
275 test_fs_collection_data.conf \
276 test_fs_download_data.conf \
277 test_fs_file_information_data.conf \
278 fs_test_lib_data.conf \
279 test_fs_list_indexed_data.conf \
280 test_fs_namespace_data.conf \
281 test_fs_publish_data.conf \
282 test_fs_search_data.conf \
283 test_fs_unindex_data.conf \
284 test_fs_uri_data.conf \
285 test_gnunet_fs_idx_data.conf \
286 test_gnunet_fs_ns_data.conf \
287 test_gnunet_fs_psd_data.conf \
288 test_gnunet_fs_rec_data.conf \
289 test_gnunet_fs_rec_data.tgz \
290 test_gnunet_fs_psd.py.in \
291 test_gnunet_fs_rec.py.in \
292 test_gnunet_fs_ns.py.in \
293 test_gnunet_fs_idx.py.in
295 CLEANFILES = $(check_SCRIPTS)