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/
14 libexecdir= $(pkglibdir)/libexec/
19 plugindir = $(libdir)/gnunet
22 lib_LTLIBRARIES = libgnunetfs.la
24 plugin_LTLIBRARIES = \
25 libgnunet_plugin_block_fs.la
27 noinst_LIBRARIES = libgnunetfstest.a
29 libgnunetfs_la_SOURCES = \
30 fs_api.c fs_api.h fs.h \
34 fs_file_information.c \
41 fs_namespace_advertise.c \
48 libgnunetfs_la_LIBADD = \
49 $(top_builddir)/src/datastore/libgnunetdatastore.la \
50 $(top_builddir)/src/util/libgnunetutil.la \
51 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor
53 libgnunetfs_la_LDFLAGS = \
54 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
58 libgnunetfstest_a_SOURCES = \
59 fs_test_lib.c fs_test_lib.h
61 libgnunetfstest_a_LIBADD = \
62 $(top_builddir)/src/testing/libgnunettesting.la \
63 $(top_builddir)/src/testbed/libgnunettestbed.la
66 gnunet-helper-fs-publish \
80 gnunet-download-manager.scm
82 gnunet_directory_SOURCES = \
84 gnunet_directory_LDADD = \
85 $(top_builddir)/src/fs/libgnunetfs.la \
86 $(top_builddir)/src/util/libgnunetutil.la \
89 gnunet_directory_DEPENDENCIES = \
95 $(top_builddir)/src/fs/libgnunetfs.la \
96 $(top_builddir)/src/util/libgnunetutil.la \
99 gnunet_fs_DEPENDENCIES = \
102 gnunet_download_SOURCES = \
104 gnunet_download_LDADD = \
105 $(top_builddir)/src/fs/libgnunetfs.la \
106 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_download_DEPENDENCIES = \
111 gnunet_publish_SOURCES = \
113 gnunet_publish_LDADD = \
114 $(top_builddir)/src/fs/libgnunetfs.la \
115 $(top_builddir)/src/util/libgnunetutil.la \
118 gnunet_publish_DEPENDENCIES = \
121 gnunet_auto_share_SOURCES = \
123 gnunet_auto_share_LDADD = \
124 $(top_builddir)/src/util/libgnunetutil.la \
127 gnunet_auto_share_DEPENDENCIES = \
130 gnunet_helper_fs_publish_SOURCES = \
131 gnunet-helper-fs-publish.c
132 gnunet_helper_fs_publish_LDADD = \
133 $(top_builddir)/src/util/libgnunetutil.la \
136 gnunet_helper_fs_publish_DEPENDENCIES = \
139 gnunet_pseudonym_SOURCES = \
141 gnunet_pseudonym_LDADD = \
142 $(top_builddir)/src/fs/libgnunetfs.la \
143 $(top_builddir)/src/util/libgnunetutil.la \
146 gnunet_pseudonym_DEPENDENCIES = \
149 gnunet_search_SOURCES = \
151 gnunet_search_LDADD = \
152 $(top_builddir)/src/fs/libgnunetfs.la \
153 $(top_builddir)/src/util/libgnunetutil.la \
156 gnunet_search_DEPENDENCIES = \
159 gnunet_service_fs_SOURCES = \
160 gnunet-service-fs.c gnunet-service-fs.h \
161 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
162 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
163 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
164 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
165 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
166 gnunet-service-fs_push.c gnunet-service-fs_push.h \
167 gnunet-service-fs_put.c gnunet-service-fs_put.h \
168 gnunet-service-fs_stream.c gnunet-service-fs_sream.h
169 gnunet_service_fs_LDADD = \
170 $(top_builddir)/src/fs/libgnunetfs.la \
171 $(top_builddir)/src/dht/libgnunetdht.la \
172 $(top_builddir)/src/block/libgnunetblock.la \
173 $(top_builddir)/src/datastore/libgnunetdatastore.la \
174 $(top_builddir)/src/statistics/libgnunetstatistics.la \
175 $(top_builddir)/src/stream/libgnunetstream.la \
176 $(top_builddir)/src/ats/libgnunetats.la \
177 $(top_builddir)/src/core/libgnunetcore.la \
178 $(top_builddir)/src/util/libgnunetutil.la \
180 gnunet_service_fs_DEPENDENCIES = \
183 gnunet_unindex_SOURCES = \
185 gnunet_unindex_LDADD = \
186 $(top_builddir)/src/fs/libgnunetfs.la \
187 $(top_builddir)/src/util/libgnunetutil.la \
189 gnunet_unindex_DEPENDENCIES = \
193 libgnunet_plugin_block_fs_la_SOURCES = \
195 libgnunet_plugin_block_fs_la_LIBADD = \
196 $(top_builddir)/src/block/libgnunetblock.la \
197 $(top_builddir)/src/util/libgnunetutil.la \
199 libgnunet_plugin_block_fs_la_LDFLAGS = \
201 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
202 $(top_builddir)/src/block/libgnunetblock.la
208 perf_gnunet_service_fs_p2p \
209 perf_gnunet_service_fs_p2p_dht \
210 perf_gnunet_service_fs_p2p_index \
211 perf_gnunet_service_fs_p2p_respect
215 test_plugin_block_fs \
218 test_fs_download_indexed \
219 test_fs_download_persistence \
220 test_fs_file_information \
222 test_fs_list_indexed \
224 test_fs_namespace_list_updateable \
226 test_fs_publish_persistence \
228 test_fs_search_probes \
229 test_fs_search_persistence \
233 test_fs_unindex_persistence \
235 test_gnunet_service_fs_migration \
236 test_gnunet_service_fs_p2p \
239 test_plugin_block_fs_SOURCES = \
240 test_plugin_block_fs.c
241 test_plugin_block_fs_LDADD = \
242 $(top_builddir)/src/block/libgnunetblock.la \
243 $(top_builddir)/src/util/libgnunetutil.la
247 test_gnunet_fs_psd.py \
248 test_gnunet_fs_rec.py \
249 test_gnunet_fs_idx.py \
254 TESTS_ENVIRONMENT = @MONKEYPREFIX@
255 AM_LDFLAGS = -no-install
263 test_fs_download_indexed \
264 test_fs_download_persistence \
265 test_fs_file_information \
266 test_fs_list_indexed \
268 test_fs_namespace_list_updateable \
270 test_fs_publish_persistence \
272 test_fs_search_probes \
273 test_fs_search_persistence \
276 test_fs_unindex_persistence \
279 test_gnunet_service_fs_migration \
280 test_gnunet_service_fs_p2p \
281 perf_gnunet_service_fs_p2p \
282 perf_gnunet_service_fs_p2p_index \
283 perf_gnunet_service_fs_p2p_respect \
288 test_fs_directory_SOURCES = \
290 test_fs_directory_LDADD = \
292 $(top_builddir)/src/fs/libgnunetfs.la \
293 $(top_builddir)/src/util/libgnunetutil.la
295 test_fs_download_SOURCES = \
297 test_fs_download_LDADD = \
298 $(top_builddir)/src/testing/libgnunettesting.la \
299 $(top_builddir)/src/fs/libgnunetfs.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_fs_download_indexed_SOURCES = \
303 test_fs_download_indexed.c
304 test_fs_download_indexed_LDADD = \
305 $(top_builddir)/src/testing/libgnunettesting.la \
306 $(top_builddir)/src/fs/libgnunetfs.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_fs_download_persistence_SOURCES = \
310 test_fs_download_persistence.c
311 test_fs_download_persistence_LDADD = \
312 $(top_builddir)/src/testing/libgnunettesting.la \
313 $(top_builddir)/src/fs/libgnunetfs.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_fs_file_information_SOURCES = \
317 test_fs_file_information.c
318 test_fs_file_information_LDADD = \
320 $(top_builddir)/src/fs/libgnunetfs.la \
321 $(top_builddir)/src/util/libgnunetutil.la
323 test_fs_getopt_SOURCES = \
325 test_fs_getopt_LDADD = \
326 $(top_builddir)/src/fs/libgnunetfs.la \
327 $(top_builddir)/src/util/libgnunetutil.la
329 test_fs_list_indexed_SOURCES = \
330 test_fs_list_indexed.c
331 test_fs_list_indexed_LDADD = \
332 $(top_builddir)/src/testing/libgnunettesting.la \
333 $(top_builddir)/src/fs/libgnunetfs.la \
334 $(top_builddir)/src/util/libgnunetutil.la
336 test_fs_namespace_SOURCES = \
338 test_fs_namespace_LDADD = \
339 $(top_builddir)/src/testing/libgnunettesting.la \
340 $(top_builddir)/src/fs/libgnunetfs.la \
341 $(top_builddir)/src/util/libgnunetutil.la
343 test_fs_namespace_list_updateable_SOURCES = \
344 test_fs_namespace_list_updateable.c
345 test_fs_namespace_list_updateable_LDADD = \
346 $(top_builddir)/src/testing/libgnunettesting.la \
347 $(top_builddir)/src/fs/libgnunetfs.la \
348 $(top_builddir)/src/util/libgnunetutil.la
350 test_fs_publish_SOURCES = \
352 test_fs_publish_LDADD = \
353 $(top_builddir)/src/testing/libgnunettesting.la \
354 $(top_builddir)/src/fs/libgnunetfs.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 test_fs_publish_persistence_SOURCES = \
358 test_fs_publish_persistence.c
359 test_fs_publish_persistence_LDADD = \
360 $(top_builddir)/src/testing/libgnunettesting.la \
361 $(top_builddir)/src/fs/libgnunetfs.la \
362 $(top_builddir)/src/util/libgnunetutil.la
364 test_fs_search_SOURCES = \
366 test_fs_search_LDADD = \
367 $(top_builddir)/src/testing/libgnunettesting.la \
368 $(top_builddir)/src/fs/libgnunetfs.la \
369 $(top_builddir)/src/util/libgnunetutil.la
371 test_fs_search_probes_SOURCES = \
372 test_fs_search_probes.c
373 test_fs_search_probes_LDADD = \
374 $(top_builddir)/src/testing/libgnunettesting.la \
375 $(top_builddir)/src/fs/libgnunetfs.la \
376 $(top_builddir)/src/util/libgnunetutil.la
378 test_fs_search_persistence_SOURCES = \
379 test_fs_search_persistence.c
380 test_fs_search_persistence_LDADD = \
381 $(top_builddir)/src/testing/libgnunettesting.la \
382 $(top_builddir)/src/fs/libgnunetfs.la \
383 $(top_builddir)/src/util/libgnunetutil.la
385 test_fs_start_stop_SOURCES = \
387 test_fs_start_stop_LDADD = \
388 $(top_builddir)/src/testing/libgnunettesting.la \
389 $(top_builddir)/src/fs/libgnunetfs.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 test_fs_unindex_SOURCES = \
394 test_fs_unindex_LDADD = \
395 $(top_builddir)/src/testing/libgnunettesting.la \
396 $(top_builddir)/src/fs/libgnunetfs.la \
397 $(top_builddir)/src/util/libgnunetutil.la
399 test_fs_unindex_persistence_SOURCES = \
400 test_fs_unindex_persistence.c
401 test_fs_unindex_persistence_LDADD = \
402 $(top_builddir)/src/testing/libgnunettesting.la \
403 $(top_builddir)/src/fs/libgnunetfs.la \
404 $(top_builddir)/src/util/libgnunetutil.la
406 test_fs_uri_SOURCES = \
408 test_fs_uri_LDADD = \
409 $(top_builddir)/src/fs/libgnunetfs.la \
410 $(top_builddir)/src/util/libgnunetutil.la
412 test_fs_test_lib_SOURCES = \
414 test_fs_test_lib_LDADD = \
415 $(top_builddir)/src/fs/libgnunetfstest.a \
416 $(top_builddir)/src/testbed/libgnunettestbed.la \
417 $(top_builddir)/src/fs/libgnunetfs.la \
418 $(top_builddir)/src/util/libgnunetutil.la
420 test_gnunet_service_fs_p2p_SOURCES = \
421 test_gnunet_service_fs_p2p.c
422 test_gnunet_service_fs_p2p_LDADD = \
423 $(top_builddir)/src/fs/libgnunetfstest.a \
424 $(top_builddir)/src/testbed/libgnunettestbed.la \
425 $(top_builddir)/src/fs/libgnunetfs.la \
426 $(top_builddir)/src/util/libgnunetutil.la
428 test_gnunet_service_fs_migration_SOURCES = \
429 test_gnunet_service_fs_migration.c
430 test_gnunet_service_fs_migration_LDADD = \
431 $(top_builddir)/src/fs/libgnunetfstest.a \
432 $(top_builddir)/src/testbed/libgnunettestbed.la \
433 $(top_builddir)/src/fs/libgnunetfs.la \
434 $(top_builddir)/src/util/libgnunetutil.la
436 perf_gnunet_service_fs_p2p_SOURCES = \
437 perf_gnunet_service_fs_p2p.c
438 perf_gnunet_service_fs_p2p_LDADD = \
439 $(top_builddir)/src/fs/libgnunetfstest.a \
440 $(top_builddir)/src/statistics/libgnunetstatistics.la \
441 $(top_builddir)/src/testbed/libgnunettestbed.la \
442 $(top_builddir)/src/fs/libgnunetfs.la \
443 $(top_builddir)/src/util/libgnunetutil.la
445 perf_gnunet_service_fs_p2p_index_SOURCES = \
446 perf_gnunet_service_fs_p2p.c
447 perf_gnunet_service_fs_p2p_index_LDADD = \
448 $(top_builddir)/src/fs/libgnunetfstest.a \
449 $(top_builddir)/src/statistics/libgnunetstatistics.la \
450 $(top_builddir)/src/testbed/libgnunettestbed.la \
451 $(top_builddir)/src/fs/libgnunetfs.la \
452 $(top_builddir)/src/util/libgnunetutil.la
454 perf_gnunet_service_fs_p2p_dht_SOURCES = \
455 perf_gnunet_service_fs_p2p.c
456 perf_gnunet_service_fs_p2p_dht_LDADD = \
457 $(top_builddir)/src/fs/libgnunetfstest.a \
458 $(top_builddir)/src/statistics/libgnunetstatistics.la \
459 $(top_builddir)/src/testbed/libgnunettestbed.la \
460 $(top_builddir)/src/fs/libgnunetfs.la \
461 $(top_builddir)/src/util/libgnunetutil.la
463 perf_gnunet_service_fs_p2p_respect_SOURCES = \
464 perf_gnunet_service_fs_p2p_respect.c
465 perf_gnunet_service_fs_p2p_respect_LDADD = \
466 $(top_builddir)/src/fs/libgnunetfstest.a \
467 $(top_builddir)/src/statistics/libgnunetstatistics.la \
468 $(top_builddir)/src/testbed/libgnunettestbed.la \
469 $(top_builddir)/src/fs/libgnunetfs.la \
470 $(top_builddir)/src/util/libgnunetutil.la
473 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
475 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
476 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
477 chmod +x test_gnunet_fs_psd.py
479 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
480 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
481 chmod +x test_gnunet_fs_rec.py
483 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
484 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
485 chmod +x test_gnunet_fs_ns.py
487 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
488 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
489 chmod +x test_gnunet_fs_idx.py
493 test_fs_defaults.conf \
494 fs_test_lib_data.conf \
496 test_fs_download_data.conf \
497 test_fs_file_information_data.conf \
498 fs_test_lib_data.conf \
499 test_fs_list_indexed_data.conf \
500 test_fs_namespace_data.conf \
501 test_fs_publish_data.conf \
502 test_fs_search_data.conf \
503 test_fs_unindex_data.conf \
504 test_fs_uri_data.conf \
505 test_gnunet_service_fs_migration_data.conf \
506 test_gnunet_fs_idx_data.conf \
507 test_gnunet_fs_ns_data.conf \
508 test_gnunet_fs_psd_data.conf \
509 test_gnunet_fs_rec_data.conf \
510 perf_gnunet_service_fs_p2p.conf \
511 test_gnunet_fs_rec_data.tgz \
512 test_gnunet_fs_psd.py.in \
513 test_gnunet_fs_rec.py.in \
514 test_gnunet_fs_ns.py.in \
515 test_gnunet_fs_idx.py.in \
518 CLEANFILES = $(check_SCRIPTS)