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
28 noinst_LIBRARIES = libgnunetfstest.a
31 libgnunetfs_la_SOURCES = \
32 fs_api.c fs_api.h fs.h \
36 fs_file_information.c \
50 libgnunetfs_la_LIBADD = \
51 $(top_builddir)/src/datastore/libgnunetdatastore.la \
52 $(top_builddir)/src/util/libgnunetutil.la \
53 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor -lgcrypt
55 libgnunetfs_la_LDFLAGS = \
56 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
60 libgnunetfstest_a_SOURCES = \
61 fs_test_lib.c fs_test_lib.h
63 libgnunetfstest_a_LIBADD = \
64 $(top_builddir)/src/testing/libgnunettesting.la \
65 $(top_builddir)/src/testbed/libgnunettestbed.la
68 gnunet-helper-fs-publish \
74 gnunet-daemon-fsprofiler
88 gnunet-download-manager.scm
90 gnunet_directory_SOURCES = \
92 gnunet_directory_LDADD = \
93 $(top_builddir)/src/fs/libgnunetfs.la \
94 $(top_builddir)/src/util/libgnunetutil.la \
97 gnunet_directory_DEPENDENCIES = \
100 gnunet_fs_profiler_SOURCES = \
102 gnunet_fs_profiler_LDADD = \
103 $(top_builddir)/src/testbed/libgnunettestbed.la \
104 $(top_builddir)/src/util/libgnunetutil.la \
107 gnunet_fs_SOURCES = \
110 $(top_builddir)/src/fs/libgnunetfs.la \
111 $(top_builddir)/src/util/libgnunetutil.la \
114 gnunet_fs_DEPENDENCIES = \
117 gnunet_download_SOURCES = \
119 gnunet_download_LDADD = \
120 $(top_builddir)/src/fs/libgnunetfs.la \
121 $(top_builddir)/src/util/libgnunetutil.la \
123 gnunet_download_DEPENDENCIES = \
126 gnunet_publish_SOURCES = \
128 gnunet_publish_LDADD = \
129 $(top_builddir)/src/fs/libgnunetfs.la \
130 $(top_builddir)/src/util/libgnunetutil.la \
133 gnunet_publish_DEPENDENCIES = \
136 gnunet_auto_share_SOURCES = \
138 gnunet_auto_share_LDADD = \
139 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_auto_share_DEPENDENCIES = \
145 gnunet_helper_fs_publish_SOURCES = \
146 gnunet-helper-fs-publish.c
147 gnunet_helper_fs_publish_LDADD = \
148 $(top_builddir)/src/util/libgnunetutil.la \
151 gnunet_helper_fs_publish_DEPENDENCIES = \
154 gnunet_pseudonym_SOURCES = \
156 gnunet_pseudonym_LDADD = \
157 $(top_builddir)/src/fs/libgnunetfs.la \
158 $(top_builddir)/src/util/libgnunetutil.la \
161 gnunet_pseudonym_DEPENDENCIES = \
164 gnunet_search_SOURCES = \
166 gnunet_search_LDADD = \
167 $(top_builddir)/src/fs/libgnunetfs.la \
168 $(top_builddir)/src/util/libgnunetutil.la \
171 gnunet_search_DEPENDENCIES = \
174 gnunet_daemon_fsprofiler_SOURCES = \
175 gnunet-daemon-fsprofiler.c
176 gnunet_daemon_fsprofiler_LDADD = \
177 $(top_builddir)/src/fs/libgnunetfs.la \
178 $(top_builddir)/src/statistics/libgnunetstatistics.la \
179 $(top_builddir)/src/util/libgnunetutil.la \
181 gnunet_daemon_fsprofiler_DEPENDENCIES = \
184 gnunet_service_fs_SOURCES = \
185 gnunet-service-fs.c gnunet-service-fs.h \
186 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
187 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
188 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
189 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
190 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
191 gnunet-service-fs_push.c gnunet-service-fs_push.h \
192 gnunet-service-fs_put.c gnunet-service-fs_put.h \
193 gnunet-service-fs_mesh.c gnunet-service-fs_mesh.h
194 gnunet_service_fs_LDADD = \
195 $(top_builddir)/src/fs/libgnunetfs.la \
196 $(top_builddir)/src/dht/libgnunetdht.la \
197 $(top_builddir)/src/block/libgnunetblock.la \
198 $(top_builddir)/src/datastore/libgnunetdatastore.la \
199 $(top_builddir)/src/statistics/libgnunetstatistics.la \
200 $(top_builddir)/src/mesh/libgnunetmesh.la \
201 $(top_builddir)/src/ats/libgnunetats.la \
202 $(top_builddir)/src/core/libgnunetcore.la \
203 $(top_builddir)/src/util/libgnunetutil.la \
205 gnunet_service_fs_DEPENDENCIES = \
208 gnunet_unindex_SOURCES = \
210 gnunet_unindex_LDADD = \
211 $(top_builddir)/src/fs/libgnunetfs.la \
212 $(top_builddir)/src/util/libgnunetutil.la \
214 gnunet_unindex_DEPENDENCIES = \
218 libgnunet_plugin_block_fs_la_SOURCES = \
220 libgnunet_plugin_block_fs_la_LIBADD = \
221 $(top_builddir)/src/block/libgnunetblock.la \
222 $(top_builddir)/src/fs/libgnunetfs.la \
223 $(top_builddir)/src/util/libgnunetutil.la \
225 libgnunet_plugin_block_fs_la_LDFLAGS = \
227 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
228 $(top_builddir)/src/util/libgnunetutil.la \
229 $(top_builddir)/src/block/libgnunetblock.la \
236 perf_gnunet_service_fs_p2p \
237 perf_gnunet_service_fs_p2p_dht \
238 perf_gnunet_service_fs_p2p_index \
239 perf_gnunet_service_fs_p2p_respect
244 test_plugin_block_fs \
247 test_fs_download_mesh \
248 test_fs_download_indexed \
249 test_fs_download_persistence \
250 test_fs_file_information \
252 test_fs_list_indexed \
254 test_fs_namespace_list_updateable \
257 test_fs_publish_persistence \
259 test_fs_search_probes \
260 test_fs_search_persistence \
264 test_fs_unindex_persistence \
266 test_gnunet_service_fs_migration \
267 test_gnunet_service_fs_p2p \
268 test_gnunet_service_fs_p2p_mesh \
272 test_plugin_block_fs_SOURCES = \
273 test_plugin_block_fs.c
274 test_plugin_block_fs_LDADD = \
275 $(top_builddir)/src/block/libgnunetblock.la \
276 $(top_builddir)/src/util/libgnunetutil.la
280 test_gnunet_fs_psd.py \
281 test_gnunet_fs_rec.py \
282 test_gnunet_fs_idx.py \
287 TESTS_ENVIRONMENT = @MONKEYPREFIX@
288 AM_LDFLAGS = -no-install
296 test_fs_download_indexed \
297 test_fs_download_persistence \
298 test_fs_file_information \
299 test_fs_list_indexed \
301 test_fs_namespace_list_updateable \
304 test_fs_publish_persistence \
306 test_fs_search_probes \
307 test_fs_search_persistence \
310 test_fs_unindex_persistence \
313 test_gnunet_service_fs_migration \
314 test_gnunet_service_fs_p2p \
315 test_gnunet_service_fs_p2p_mesh \
316 perf_gnunet_service_fs_p2p \
317 perf_gnunet_service_fs_p2p_index \
318 perf_gnunet_service_fs_p2p_respect \
323 test_pseudonym_SOURCES = \
325 test_pseudonym_LDADD = \
327 $(top_builddir)/src/fs/libgnunetfs.la \
328 $(top_builddir)/src/util/libgnunetutil.la
331 test_fs_directory_SOURCES = \
333 test_fs_directory_LDADD = \
335 $(top_builddir)/src/fs/libgnunetfs.la \
336 $(top_builddir)/src/util/libgnunetutil.la
338 test_fs_download_SOURCES = \
340 test_fs_download_LDADD = \
341 $(top_builddir)/src/testing/libgnunettesting.la \
342 $(top_builddir)/src/fs/libgnunetfs.la \
343 $(top_builddir)/src/util/libgnunetutil.la
345 test_fs_download_indexed_SOURCES = \
347 test_fs_download_indexed_LDADD = \
348 $(top_builddir)/src/testing/libgnunettesting.la \
349 $(top_builddir)/src/fs/libgnunetfs.la \
350 $(top_builddir)/src/util/libgnunetutil.la
352 test_fs_download_mesh_SOURCES = \
354 test_fs_download_mesh_LDADD = \
355 $(top_builddir)/src/testing/libgnunettesting.la \
356 $(top_builddir)/src/fs/libgnunetfs.la \
357 $(top_builddir)/src/util/libgnunetutil.la
359 test_fs_download_persistence_SOURCES = \
360 test_fs_download_persistence.c
361 test_fs_download_persistence_LDADD = \
362 $(top_builddir)/src/testing/libgnunettesting.la \
363 $(top_builddir)/src/fs/libgnunetfs.la \
364 $(top_builddir)/src/util/libgnunetutil.la
366 test_fs_file_information_SOURCES = \
367 test_fs_file_information.c
368 test_fs_file_information_LDADD = \
370 $(top_builddir)/src/fs/libgnunetfs.la \
371 $(top_builddir)/src/util/libgnunetutil.la
373 test_fs_getopt_SOURCES = \
375 test_fs_getopt_LDADD = \
376 $(top_builddir)/src/fs/libgnunetfs.la \
377 $(top_builddir)/src/util/libgnunetutil.la
379 test_fs_list_indexed_SOURCES = \
380 test_fs_list_indexed.c
381 test_fs_list_indexed_LDADD = \
382 $(top_builddir)/src/testing/libgnunettesting.la \
383 $(top_builddir)/src/fs/libgnunetfs.la \
384 $(top_builddir)/src/util/libgnunetutil.la
386 test_fs_namespace_SOURCES = \
388 test_fs_namespace_LDADD = \
389 $(top_builddir)/src/testing/libgnunettesting.la \
390 $(top_builddir)/src/fs/libgnunetfs.la \
391 $(top_builddir)/src/util/libgnunetutil.la
393 test_fs_namespace_list_updateable_SOURCES = \
394 test_fs_namespace_list_updateable.c
395 test_fs_namespace_list_updateable_LDADD = \
396 $(top_builddir)/src/testing/libgnunettesting.la \
397 $(top_builddir)/src/fs/libgnunetfs.la \
398 $(top_builddir)/src/util/libgnunetutil.la
400 test_fs_publish_SOURCES = \
402 test_fs_publish_LDADD = \
403 $(top_builddir)/src/testing/libgnunettesting.la \
404 $(top_builddir)/src/fs/libgnunetfs.la \
405 $(top_builddir)/src/util/libgnunetutil.la
407 test_fs_publish_persistence_SOURCES = \
408 test_fs_publish_persistence.c
409 test_fs_publish_persistence_LDADD = \
410 $(top_builddir)/src/testing/libgnunettesting.la \
411 $(top_builddir)/src/fs/libgnunetfs.la \
412 $(top_builddir)/src/util/libgnunetutil.la
414 test_fs_search_SOURCES = \
416 test_fs_search_LDADD = \
417 $(top_builddir)/src/testing/libgnunettesting.la \
418 $(top_builddir)/src/fs/libgnunetfs.la \
419 $(top_builddir)/src/util/libgnunetutil.la
421 test_fs_search_probes_SOURCES = \
422 test_fs_search_probes.c
423 test_fs_search_probes_LDADD = \
424 $(top_builddir)/src/testing/libgnunettesting.la \
425 $(top_builddir)/src/fs/libgnunetfs.la \
426 $(top_builddir)/src/util/libgnunetutil.la
428 test_fs_search_persistence_SOURCES = \
429 test_fs_search_persistence.c
430 test_fs_search_persistence_LDADD = \
431 $(top_builddir)/src/testing/libgnunettesting.la \
432 $(top_builddir)/src/fs/libgnunetfs.la \
433 $(top_builddir)/src/util/libgnunetutil.la
435 test_fs_start_stop_SOURCES = \
437 test_fs_start_stop_LDADD = \
438 $(top_builddir)/src/testing/libgnunettesting.la \
439 $(top_builddir)/src/fs/libgnunetfs.la \
440 $(top_builddir)/src/util/libgnunetutil.la
442 test_fs_unindex_SOURCES = \
444 test_fs_unindex_LDADD = \
445 $(top_builddir)/src/testing/libgnunettesting.la \
446 $(top_builddir)/src/fs/libgnunetfs.la \
447 $(top_builddir)/src/util/libgnunetutil.la
449 test_fs_unindex_persistence_SOURCES = \
450 test_fs_unindex_persistence.c
451 test_fs_unindex_persistence_LDADD = \
452 $(top_builddir)/src/testing/libgnunettesting.la \
453 $(top_builddir)/src/fs/libgnunetfs.la \
454 $(top_builddir)/src/util/libgnunetutil.la
456 test_fs_uri_SOURCES = \
458 test_fs_uri_LDADD = \
459 $(top_builddir)/src/fs/libgnunetfs.la \
460 $(top_builddir)/src/util/libgnunetutil.la
462 test_fs_test_lib_SOURCES = \
464 test_fs_test_lib_LDADD = \
465 $(top_builddir)/src/fs/libgnunetfstest.a \
466 $(top_builddir)/src/testbed/libgnunettestbed.la \
467 $(top_builddir)/src/fs/libgnunetfs.la \
468 $(top_builddir)/src/util/libgnunetutil.la
470 test_gnunet_service_fs_p2p_SOURCES = \
471 test_gnunet_service_fs_p2p.c
472 test_gnunet_service_fs_p2p_LDADD = \
473 $(top_builddir)/src/fs/libgnunetfstest.a \
474 $(top_builddir)/src/testbed/libgnunettestbed.la \
475 $(top_builddir)/src/fs/libgnunetfs.la \
476 $(top_builddir)/src/util/libgnunetutil.la
478 test_gnunet_service_fs_p2p_mesh_SOURCES = \
479 test_gnunet_service_fs_p2p.c
480 test_gnunet_service_fs_p2p_mesh_LDADD = \
481 $(top_builddir)/src/fs/libgnunetfstest.a \
482 $(top_builddir)/src/testbed/libgnunettestbed.la \
483 $(top_builddir)/src/fs/libgnunetfs.la \
484 $(top_builddir)/src/util/libgnunetutil.la
486 test_gnunet_service_fs_migration_SOURCES = \
487 test_gnunet_service_fs_migration.c
488 test_gnunet_service_fs_migration_LDADD = \
489 $(top_builddir)/src/fs/libgnunetfstest.a \
490 $(top_builddir)/src/testbed/libgnunettestbed.la \
491 $(top_builddir)/src/fs/libgnunetfs.la \
492 $(top_builddir)/src/util/libgnunetutil.la
494 perf_gnunet_service_fs_p2p_SOURCES = \
495 perf_gnunet_service_fs_p2p.c
496 perf_gnunet_service_fs_p2p_LDADD = \
497 $(top_builddir)/src/fs/libgnunetfstest.a \
498 $(top_builddir)/src/statistics/libgnunetstatistics.la \
499 $(top_builddir)/src/testbed/libgnunettestbed.la \
500 $(top_builddir)/src/fs/libgnunetfs.la \
501 $(top_builddir)/src/util/libgnunetutil.la
503 perf_gnunet_service_fs_p2p_index_SOURCES = \
504 perf_gnunet_service_fs_p2p.c
505 perf_gnunet_service_fs_p2p_index_LDADD = \
506 $(top_builddir)/src/fs/libgnunetfstest.a \
507 $(top_builddir)/src/statistics/libgnunetstatistics.la \
508 $(top_builddir)/src/testbed/libgnunettestbed.la \
509 $(top_builddir)/src/fs/libgnunetfs.la \
510 $(top_builddir)/src/util/libgnunetutil.la
512 perf_gnunet_service_fs_p2p_dht_SOURCES = \
513 perf_gnunet_service_fs_p2p.c
514 perf_gnunet_service_fs_p2p_dht_LDADD = \
515 $(top_builddir)/src/fs/libgnunetfstest.a \
516 $(top_builddir)/src/statistics/libgnunetstatistics.la \
517 $(top_builddir)/src/testbed/libgnunettestbed.la \
518 $(top_builddir)/src/fs/libgnunetfs.la \
519 $(top_builddir)/src/util/libgnunetutil.la
521 perf_gnunet_service_fs_p2p_respect_SOURCES = \
522 perf_gnunet_service_fs_p2p_respect.c
523 perf_gnunet_service_fs_p2p_respect_LDADD = \
524 $(top_builddir)/src/fs/libgnunetfstest.a \
525 $(top_builddir)/src/statistics/libgnunetstatistics.la \
526 $(top_builddir)/src/testbed/libgnunettestbed.la \
527 $(top_builddir)/src/fs/libgnunetfs.la \
528 $(top_builddir)/src/util/libgnunetutil.la
531 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
533 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
534 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
535 chmod +x test_gnunet_fs_psd.py
537 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
538 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
539 chmod +x test_gnunet_fs_rec.py
541 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
542 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
543 chmod +x test_gnunet_fs_ns.py
545 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
546 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
547 chmod +x test_gnunet_fs_idx.py
551 test_fs_defaults.conf \
552 fs_test_lib_data.conf \
554 test_fs_download_data.conf \
555 test_fs_download_indexed.conf \
556 test_fs_download_mesh.conf \
557 test_fs_file_information_data.conf \
558 fs_test_lib_data.conf \
559 test_fs_list_indexed_data.conf \
560 test_fs_namespace_data.conf \
561 test_fs_publish_data.conf \
562 test_fs_search_data.conf \
563 test_fs_unindex_data.conf \
564 test_fs_uri_data.conf \
565 test_gnunet_service_fs_migration_data.conf \
566 test_gnunet_service_fs_p2p_mesh.conf \
567 test_gnunet_fs_idx_data.conf \
568 test_gnunet_fs_ns_data.conf \
569 test_gnunet_fs_psd_data.conf \
570 test_gnunet_fs_rec_data.conf \
571 perf_gnunet_service_fs_p2p.conf \
572 test_gnunet_fs_rec_data.tgz \
573 test_gnunet_fs_psd.py.in \
574 test_gnunet_fs_rec.py.in \
575 test_gnunet_fs_ns.py.in \
576 test_gnunet_fs_idx.py.in \
577 test_pseudonym_data.conf \
580 CLEANFILES = $(check_SCRIPTS)