1 INCLUDES = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
17 plugindir = $(libdir)/gnunet
20 lib_LTLIBRARIES = libgnunetfs.la
22 plugin_LTLIBRARIES = \
23 libgnunet_plugin_block_fs.la
25 noinst_LIBRARIES = libgnunetfstest.a
27 libgnunetfs_la_SOURCES = \
28 fs_api.c fs_api.h fs.h \
32 fs_file_information.c \
44 libgnunetfs_la_LIBADD = \
45 $(top_builddir)/src/datastore/libgnunetdatastore.la \
46 $(top_builddir)/src/util/libgnunetutil.la \
47 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor
49 libgnunetfs_la_LDFLAGS = \
50 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
54 libgnunetfstest_a_SOURCES = \
55 fs_test_lib.c fs_test_lib.h
57 libgnunetfstest_a_LIBADD = \
58 $(top_builddir)/src/testing/libgnunettesting.la
64 gnunet-helper-fs-publish \
72 gnunet-download-manager.scm
74 gnunet_directory_SOURCES = \
76 gnunet_directory_LDADD = \
77 $(top_builddir)/src/fs/libgnunetfs.la \
78 $(top_builddir)/src/util/libgnunetutil.la \
81 gnunet_directory_DEPENDENCIES = \
87 $(top_builddir)/src/fs/libgnunetfs.la \
88 $(top_builddir)/src/util/libgnunetutil.la \
91 gnunet_fs_DEPENDENCIES = \
94 gnunet_download_SOURCES = \
96 gnunet_download_LDADD = \
97 $(top_builddir)/src/fs/libgnunetfs.la \
98 $(top_builddir)/src/util/libgnunetutil.la \
100 gnunet_download_DEPENDENCIES = \
103 gnunet_publish_SOURCES = \
105 gnunet_publish_LDADD = \
106 $(top_builddir)/src/fs/libgnunetfs.la \
107 $(top_builddir)/src/util/libgnunetutil.la \
110 gnunet_publish_DEPENDENCIES = \
113 gnunet_helper_fs_publish_SOURCES = \
114 gnunet-helper-fs-publish.c
115 gnunet_helper_fs_publish_LDADD = \
116 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_helper_fs_publish_DEPENDENCIES = \
122 gnunet_pseudonym_SOURCES = \
124 gnunet_pseudonym_LDADD = \
125 $(top_builddir)/src/fs/libgnunetfs.la \
126 $(top_builddir)/src/util/libgnunetutil.la \
129 gnunet_pseudonym_DEPENDENCIES = \
132 gnunet_search_SOURCES = \
134 gnunet_search_LDADD = \
135 $(top_builddir)/src/fs/libgnunetfs.la \
136 $(top_builddir)/src/util/libgnunetutil.la \
139 gnunet_search_DEPENDENCIES = \
142 gnunet_service_fs_SOURCES = \
143 gnunet-service-fs.c gnunet-service-fs.h \
144 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
145 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
146 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
147 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
148 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
149 gnunet-service-fs_push.c gnunet-service-fs_push.h \
150 gnunet-service-fs_put.c gnunet-service-fs_put.h
151 gnunet_service_fs_LDADD = \
152 $(top_builddir)/src/fs/libgnunetfs.la \
153 $(top_builddir)/src/dht/libgnunetdht.la \
154 $(top_builddir)/src/block/libgnunetblock.la \
155 $(top_builddir)/src/datastore/libgnunetdatastore.la \
156 $(top_builddir)/src/statistics/libgnunetstatistics.la \
157 $(top_builddir)/src/ats/libgnunetats.la \
158 $(top_builddir)/src/core/libgnunetcore.la \
159 $(top_builddir)/src/util/libgnunetutil.la \
161 gnunet_service_fs_DEPENDENCIES = \
164 gnunet_unindex_SOURCES = \
166 gnunet_unindex_LDADD = \
167 $(top_builddir)/src/fs/libgnunetfs.la \
168 $(top_builddir)/src/util/libgnunetutil.la \
170 gnunet_unindex_DEPENDENCIES = \
174 libgnunet_plugin_block_fs_la_SOURCES = \
176 libgnunet_plugin_block_fs_la_LIBADD = \
177 $(top_builddir)/src/block/libgnunetblock.la \
178 $(top_builddir)/src/util/libgnunetutil.la
179 libgnunet_plugin_block_fs_la_LDFLAGS = \
181 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
182 $(top_builddir)/src/block/libgnunetblock.la
188 perf_gnunet_service_fs_p2p \
189 perf_gnunet_service_fs_p2p_dht \
190 perf_gnunet_service_fs_p2p_index \
191 perf_gnunet_service_fs_p2p_trust
197 test_fs_download_indexed \
198 test_fs_download_persistence \
199 test_fs_file_information \
201 test_fs_list_indexed \
203 test_fs_namespace_list_updateable \
205 test_fs_publish_persistence \
207 test_fs_search_persistence \
211 test_fs_unindex_persistence \
213 test_gnunet_service_fs_migration \
214 test_gnunet_service_fs_p2p \
218 if HAVE_PYTHON_PEXPECT
220 test_gnunet_fs_psd.py \
221 test_gnunet_fs_rec.py \
222 test_gnunet_fs_idx.py \
231 test_fs_download_indexed \
232 test_fs_download_persistence \
233 test_fs_file_information \
234 test_fs_list_indexed \
236 test_fs_namespace_list_updateable \
238 test_fs_publish_persistence \
240 test_fs_search_persistence \
243 test_fs_unindex_persistence \
246 test_gnunet_service_fs_migration \
247 test_gnunet_service_fs_p2p \
248 perf_gnunet_service_fs_p2p \
249 perf_gnunet_service_fs_p2p_index \
250 perf_gnunet_service_fs_p2p_trust \
257 test_fs_directory_SOURCES = \
259 test_fs_directory_LDADD = \
261 $(top_builddir)/src/fs/libgnunetfs.la \
262 $(top_builddir)/src/util/libgnunetutil.la
264 test_fs_download_SOURCES = \
266 test_fs_download_LDADD = \
267 $(top_builddir)/src/fs/libgnunetfs.la \
268 $(top_builddir)/src/util/libgnunetutil.la
270 test_fs_download_indexed_SOURCES = \
271 test_fs_download_indexed.c
272 test_fs_download_indexed_LDADD = \
273 $(top_builddir)/src/fs/libgnunetfs.la \
274 $(top_builddir)/src/util/libgnunetutil.la
276 test_fs_download_persistence_SOURCES = \
277 test_fs_download_persistence.c
278 test_fs_download_persistence_LDADD = \
279 $(top_builddir)/src/fs/libgnunetfs.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_fs_file_information_SOURCES = \
283 test_fs_file_information.c
284 test_fs_file_information_LDADD = \
286 $(top_builddir)/src/fs/libgnunetfs.la \
287 $(top_builddir)/src/util/libgnunetutil.la
289 test_fs_getopt_SOURCES = \
291 test_fs_getopt_LDADD = \
292 $(top_builddir)/src/fs/libgnunetfs.la \
293 $(top_builddir)/src/util/libgnunetutil.la
295 test_fs_list_indexed_SOURCES = \
296 test_fs_list_indexed.c
297 test_fs_list_indexed_LDADD = \
298 $(top_builddir)/src/fs/libgnunetfs.la \
299 $(top_builddir)/src/util/libgnunetutil.la
301 test_fs_namespace_SOURCES = \
303 test_fs_namespace_LDADD = \
304 $(top_builddir)/src/fs/libgnunetfs.la \
305 $(top_builddir)/src/util/libgnunetutil.la
307 test_fs_namespace_list_updateable_SOURCES = \
308 test_fs_namespace_list_updateable.c
309 test_fs_namespace_list_updateable_LDADD = \
310 $(top_builddir)/src/fs/libgnunetfs.la \
311 $(top_builddir)/src/util/libgnunetutil.la
313 test_fs_publish_SOURCES = \
315 test_fs_publish_LDADD = \
316 $(top_builddir)/src/fs/libgnunetfs.la \
317 $(top_builddir)/src/util/libgnunetutil.la
319 test_fs_publish_persistence_SOURCES = \
320 test_fs_publish_persistence.c
321 test_fs_publish_persistence_LDADD = \
322 $(top_builddir)/src/fs/libgnunetfs.la \
323 $(top_builddir)/src/util/libgnunetutil.la
325 test_fs_search_SOURCES = \
327 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
328 $(top_builddir)/src/util/libgnunetutil.la
330 test_fs_search_persistence_SOURCES = \
331 test_fs_search_persistence.c
332 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
333 $(top_builddir)/src/util/libgnunetutil.la
335 test_fs_start_stop_SOURCES = \
337 test_fs_start_stop_LDADD = \
338 $(top_builddir)/src/fs/libgnunetfs.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 test_fs_unindex_SOURCES = \
343 test_fs_unindex_LDADD = \
344 $(top_builddir)/src/fs/libgnunetfs.la \
345 $(top_builddir)/src/util/libgnunetutil.la
347 test_fs_unindex_persistence_SOURCES = \
348 test_fs_unindex_persistence.c
349 test_fs_unindex_persistence_LDADD = \
350 $(top_builddir)/src/fs/libgnunetfs.la \
351 $(top_builddir)/src/util/libgnunetutil.la
353 test_fs_uri_SOURCES = \
355 test_fs_uri_LDADD = \
356 $(top_builddir)/src/fs/libgnunetfs.la \
357 $(top_builddir)/src/util/libgnunetutil.la
359 test_fs_test_lib_SOURCES = \
361 test_fs_test_lib_LDADD = \
362 $(top_builddir)/src/fs/libgnunetfstest.a \
363 $(top_builddir)/src/testing/libgnunettesting.la \
364 $(top_builddir)/src/fs/libgnunetfs.la \
365 $(top_builddir)/src/util/libgnunetutil.la
367 test_gnunet_service_fs_p2p_SOURCES = \
368 test_gnunet_service_fs_p2p.c
369 test_gnunet_service_fs_p2p_LDADD = \
370 $(top_builddir)/src/fs/libgnunetfstest.a \
371 $(top_builddir)/src/testing/libgnunettesting.la \
372 $(top_builddir)/src/fs/libgnunetfs.la \
373 $(top_builddir)/src/util/libgnunetutil.la
375 test_gnunet_service_fs_migration_SOURCES = \
376 test_gnunet_service_fs_migration.c
377 test_gnunet_service_fs_migration_LDADD = \
378 $(top_builddir)/src/fs/libgnunetfstest.a \
379 $(top_builddir)/src/testing/libgnunettesting.la \
380 $(top_builddir)/src/fs/libgnunetfs.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 perf_gnunet_service_fs_p2p_SOURCES = \
384 perf_gnunet_service_fs_p2p.c
385 perf_gnunet_service_fs_p2p_LDADD = \
386 $(top_builddir)/src/fs/libgnunetfstest.a \
387 $(top_builddir)/src/statistics/libgnunetstatistics.la \
388 $(top_builddir)/src/testing/libgnunettesting.la \
389 $(top_builddir)/src/fs/libgnunetfs.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 perf_gnunet_service_fs_p2p_index_SOURCES = \
393 perf_gnunet_service_fs_p2p.c
394 perf_gnunet_service_fs_p2p_index_LDADD = \
395 $(top_builddir)/src/fs/libgnunetfstest.a \
396 $(top_builddir)/src/statistics/libgnunetstatistics.la \
397 $(top_builddir)/src/testing/libgnunettesting.la \
398 $(top_builddir)/src/fs/libgnunetfs.la \
399 $(top_builddir)/src/util/libgnunetutil.la
401 perf_gnunet_service_fs_p2p_dht_SOURCES = \
402 perf_gnunet_service_fs_p2p.c
403 perf_gnunet_service_fs_p2p_dht_LDADD = \
404 $(top_builddir)/src/fs/libgnunetfstest.a \
405 $(top_builddir)/src/statistics/libgnunetstatistics.la \
406 $(top_builddir)/src/testing/libgnunettesting.la \
407 $(top_builddir)/src/fs/libgnunetfs.la \
408 $(top_builddir)/src/util/libgnunetutil.la
410 perf_gnunet_service_fs_p2p_trust_SOURCES = \
411 perf_gnunet_service_fs_p2p_trust.c
412 perf_gnunet_service_fs_p2p_trust_LDADD = \
413 $(top_builddir)/src/fs/libgnunetfstest.a \
414 $(top_builddir)/src/statistics/libgnunetstatistics.la \
415 $(top_builddir)/src/testing/libgnunettesting.la \
416 $(top_builddir)/src/fs/libgnunetfs.la \
417 $(top_builddir)/src/util/libgnunetutil.la
420 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
422 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
423 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
424 chmod +x test_gnunet_fs_psd.py
426 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
427 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
428 chmod +x test_gnunet_fs_rec.py
430 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
431 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
432 chmod +x test_gnunet_fs_ns.py
434 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
435 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
436 chmod +x test_gnunet_fs_idx.py
440 test_fs_defaults.conf \
441 fs_test_lib_data.conf \
443 test_fs_download_data.conf \
444 test_fs_file_information_data.conf \
445 test_fs_file_information_meta_data_image.jpg \
446 fs_test_lib_data.conf \
447 test_fs_list_indexed_data.conf \
448 test_fs_namespace_data.conf \
449 test_fs_publish_data.conf \
450 test_fs_search_data.conf \
451 test_fs_unindex_data.conf \
452 test_fs_uri_data.conf \
453 test_gnunet_service_fs_migration_data.conf \
454 test_gnunet_fs_idx_data.conf \
455 test_gnunet_fs_ns_data.conf \
456 test_gnunet_fs_psd_data.conf \
457 test_gnunet_fs_rec_data.conf \
458 test_gnunet_fs_rec_data.tgz \
459 test_gnunet_fs_psd.py.in \
460 test_gnunet_fs_rec.py.in \
461 test_gnunet_fs_ns.py.in \
462 test_gnunet_fs_idx.py.in
464 CLEANFILES = $(check_SCRIPTS)