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 \
42 fs_publish_ublock.c fs_publish_ublock.h \
51 libgnunetfs_la_LIBADD = \
52 $(top_builddir)/src/datastore/libgnunetdatastore.la \
53 $(top_builddir)/src/util/libgnunetutil.la \
54 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor -lgcrypt
56 libgnunetfs_la_LDFLAGS = \
57 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
61 libgnunetfstest_a_SOURCES = \
62 fs_test_lib.c fs_test_lib.h
64 libgnunetfstest_a_LIBADD = \
65 $(top_builddir)/src/testing/libgnunettesting.la \
66 $(top_builddir)/src/testbed/libgnunettestbed.la
69 gnunet-helper-fs-publish \
75 gnunet-daemon-fsprofiler
89 gnunet-download-manager.scm
91 gnunet_directory_SOURCES = \
93 gnunet_directory_LDADD = \
94 $(top_builddir)/src/fs/libgnunetfs.la \
95 $(top_builddir)/src/util/libgnunetutil.la \
98 gnunet_directory_DEPENDENCIES = \
101 gnunet_fs_profiler_SOURCES = \
103 gnunet_fs_profiler_LDADD = \
104 $(top_builddir)/src/testbed/libgnunettestbed.la \
105 $(top_builddir)/src/util/libgnunetutil.la \
108 gnunet_fs_SOURCES = \
111 $(top_builddir)/src/fs/libgnunetfs.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
115 gnunet_fs_DEPENDENCIES = \
118 gnunet_download_SOURCES = \
120 gnunet_download_LDADD = \
121 $(top_builddir)/src/fs/libgnunetfs.la \
122 $(top_builddir)/src/util/libgnunetutil.la \
124 gnunet_download_DEPENDENCIES = \
127 gnunet_publish_SOURCES = \
129 gnunet_publish_LDADD = \
130 $(top_builddir)/src/identity/libgnunetidentity.la \
131 $(top_builddir)/src/fs/libgnunetfs.la \
132 $(top_builddir)/src/util/libgnunetutil.la \
135 gnunet_publish_DEPENDENCIES = \
138 gnunet_auto_share_SOURCES = \
140 gnunet_auto_share_LDADD = \
141 $(top_builddir)/src/util/libgnunetutil.la \
144 gnunet_auto_share_DEPENDENCIES = \
147 gnunet_helper_fs_publish_SOURCES = \
148 gnunet-helper-fs-publish.c
149 gnunet_helper_fs_publish_LDADD = \
150 $(top_builddir)/src/util/libgnunetutil.la \
153 gnunet_helper_fs_publish_DEPENDENCIES = \
156 gnunet_pseudonym_SOURCES = \
158 gnunet_pseudonym_LDADD = \
159 $(top_builddir)/src/identity/libgnunetidentity.la \
160 $(top_builddir)/src/fs/libgnunetfs.la \
161 $(top_builddir)/src/util/libgnunetutil.la \
164 gnunet_pseudonym_DEPENDENCIES = \
167 gnunet_search_SOURCES = \
169 gnunet_search_LDADD = \
170 $(top_builddir)/src/fs/libgnunetfs.la \
171 $(top_builddir)/src/util/libgnunetutil.la \
174 gnunet_search_DEPENDENCIES = \
177 gnunet_daemon_fsprofiler_SOURCES = \
178 gnunet-daemon-fsprofiler.c
179 gnunet_daemon_fsprofiler_LDADD = \
180 $(top_builddir)/src/fs/libgnunetfs.la \
181 $(top_builddir)/src/statistics/libgnunetstatistics.la \
182 $(top_builddir)/src/util/libgnunetutil.la \
184 gnunet_daemon_fsprofiler_DEPENDENCIES = \
187 gnunet_service_fs_SOURCES = \
188 gnunet-service-fs.c gnunet-service-fs.h \
189 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
190 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
191 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
192 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
193 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
194 gnunet-service-fs_push.c gnunet-service-fs_push.h \
195 gnunet-service-fs_put.c gnunet-service-fs_put.h \
196 gnunet-service-fs_mesh_client.c gnunet-service-fs_mesh.h \
197 gnunet-service-fs_mesh_server.c
198 gnunet_service_fs_LDADD = \
199 $(top_builddir)/src/fs/libgnunetfs.la \
200 $(top_builddir)/src/dht/libgnunetdht.la \
201 $(top_builddir)/src/block/libgnunetblock.la \
202 $(top_builddir)/src/datastore/libgnunetdatastore.la \
203 $(top_builddir)/src/statistics/libgnunetstatistics.la \
204 $(top_builddir)/src/mesh/libgnunetmesh.la \
205 $(top_builddir)/src/ats/libgnunetats.la \
206 $(top_builddir)/src/core/libgnunetcore.la \
207 $(top_builddir)/src/util/libgnunetutil.la \
209 gnunet_service_fs_DEPENDENCIES = \
212 gnunet_unindex_SOURCES = \
214 gnunet_unindex_LDADD = \
215 $(top_builddir)/src/fs/libgnunetfs.la \
216 $(top_builddir)/src/util/libgnunetutil.la \
218 gnunet_unindex_DEPENDENCIES = \
222 libgnunet_plugin_block_fs_la_SOURCES = \
224 libgnunet_plugin_block_fs_la_LIBADD = \
225 $(top_builddir)/src/block/libgnunetblock.la \
226 $(top_builddir)/src/fs/libgnunetfs.la \
227 $(top_builddir)/src/util/libgnunetutil.la \
229 libgnunet_plugin_block_fs_la_LDFLAGS = \
231 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
232 $(top_builddir)/src/util/libgnunetutil.la \
233 $(top_builddir)/src/block/libgnunetblock.la \
240 perf_gnunet_service_fs_p2p \
241 perf_gnunet_service_fs_p2p_dht \
242 perf_gnunet_service_fs_p2p_index \
243 perf_gnunet_service_fs_p2p_respect
248 test_plugin_block_fs \
251 test_fs_download_mesh \
252 test_fs_download_indexed \
253 test_fs_download_persistence \
254 test_fs_file_information \
256 test_fs_list_indexed \
258 test_fs_namespace_list_updateable \
261 test_fs_publish_persistence \
263 test_fs_search_probes \
264 test_fs_search_persistence \
268 test_fs_unindex_persistence \
270 test_gnunet_service_fs_migration \
271 test_gnunet_service_fs_p2p \
272 test_gnunet_service_fs_p2p_mesh \
276 test_plugin_block_fs_SOURCES = \
277 test_plugin_block_fs.c
278 test_plugin_block_fs_LDADD = \
279 $(top_builddir)/src/block/libgnunetblock.la \
280 $(top_builddir)/src/util/libgnunetutil.la
284 test_gnunet_fs_psd.py \
285 test_gnunet_fs_rec.py \
286 test_gnunet_fs_idx.py \
291 TESTS_ENVIRONMENT = @MONKEYPREFIX@
292 AM_LDFLAGS = -no-install
300 test_fs_download_indexed \
301 test_fs_download_persistence \
302 test_fs_file_information \
303 test_fs_list_indexed \
305 test_fs_namespace_list_updateable \
308 test_fs_publish_persistence \
310 test_fs_search_probes \
311 test_fs_search_persistence \
314 test_fs_unindex_persistence \
317 test_gnunet_service_fs_migration \
318 test_gnunet_service_fs_p2p \
319 test_gnunet_service_fs_p2p_mesh \
320 perf_gnunet_service_fs_p2p \
321 perf_gnunet_service_fs_p2p_index \
322 perf_gnunet_service_fs_p2p_respect \
327 test_pseudonym_SOURCES = \
329 test_pseudonym_LDADD = \
331 $(top_builddir)/src/fs/libgnunetfs.la \
332 $(top_builddir)/src/util/libgnunetutil.la
335 test_fs_directory_SOURCES = \
337 test_fs_directory_LDADD = \
339 $(top_builddir)/src/fs/libgnunetfs.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_fs_download_SOURCES = \
344 test_fs_download_LDADD = \
345 $(top_builddir)/src/testing/libgnunettesting.la \
346 $(top_builddir)/src/fs/libgnunetfs.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_fs_download_indexed_SOURCES = \
351 test_fs_download_indexed_LDADD = \
352 $(top_builddir)/src/testing/libgnunettesting.la \
353 $(top_builddir)/src/fs/libgnunetfs.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_fs_download_mesh_SOURCES = \
358 test_fs_download_mesh_LDADD = \
359 $(top_builddir)/src/testing/libgnunettesting.la \
360 $(top_builddir)/src/fs/libgnunetfs.la \
361 $(top_builddir)/src/util/libgnunetutil.la
363 test_fs_download_persistence_SOURCES = \
364 test_fs_download_persistence.c
365 test_fs_download_persistence_LDADD = \
366 $(top_builddir)/src/testing/libgnunettesting.la \
367 $(top_builddir)/src/fs/libgnunetfs.la \
368 $(top_builddir)/src/util/libgnunetutil.la
370 test_fs_file_information_SOURCES = \
371 test_fs_file_information.c
372 test_fs_file_information_LDADD = \
374 $(top_builddir)/src/fs/libgnunetfs.la \
375 $(top_builddir)/src/util/libgnunetutil.la
377 test_fs_getopt_SOURCES = \
379 test_fs_getopt_LDADD = \
380 $(top_builddir)/src/fs/libgnunetfs.la \
381 $(top_builddir)/src/util/libgnunetutil.la
383 test_fs_list_indexed_SOURCES = \
384 test_fs_list_indexed.c
385 test_fs_list_indexed_LDADD = \
386 $(top_builddir)/src/testing/libgnunettesting.la \
387 $(top_builddir)/src/fs/libgnunetfs.la \
388 $(top_builddir)/src/util/libgnunetutil.la
390 test_fs_namespace_SOURCES = \
392 test_fs_namespace_LDADD = \
393 $(top_builddir)/src/testing/libgnunettesting.la \
394 $(top_builddir)/src/fs/libgnunetfs.la \
395 $(top_builddir)/src/util/libgnunetutil.la
397 test_fs_namespace_list_updateable_SOURCES = \
398 test_fs_namespace_list_updateable.c
399 test_fs_namespace_list_updateable_LDADD = \
400 $(top_builddir)/src/testing/libgnunettesting.la \
401 $(top_builddir)/src/fs/libgnunetfs.la \
402 $(top_builddir)/src/util/libgnunetutil.la
404 test_fs_publish_SOURCES = \
406 test_fs_publish_LDADD = \
407 $(top_builddir)/src/testing/libgnunettesting.la \
408 $(top_builddir)/src/fs/libgnunetfs.la \
409 $(top_builddir)/src/util/libgnunetutil.la
411 test_fs_publish_persistence_SOURCES = \
412 test_fs_publish_persistence.c
413 test_fs_publish_persistence_LDADD = \
414 $(top_builddir)/src/testing/libgnunettesting.la \
415 $(top_builddir)/src/fs/libgnunetfs.la \
416 $(top_builddir)/src/util/libgnunetutil.la
418 test_fs_search_SOURCES = \
420 test_fs_search_LDADD = \
421 $(top_builddir)/src/testing/libgnunettesting.la \
422 $(top_builddir)/src/fs/libgnunetfs.la \
423 $(top_builddir)/src/util/libgnunetutil.la
425 test_fs_search_probes_SOURCES = \
426 test_fs_search_probes.c
427 test_fs_search_probes_LDADD = \
428 $(top_builddir)/src/testing/libgnunettesting.la \
429 $(top_builddir)/src/fs/libgnunetfs.la \
430 $(top_builddir)/src/util/libgnunetutil.la
432 test_fs_search_persistence_SOURCES = \
433 test_fs_search_persistence.c
434 test_fs_search_persistence_LDADD = \
435 $(top_builddir)/src/testing/libgnunettesting.la \
436 $(top_builddir)/src/fs/libgnunetfs.la \
437 $(top_builddir)/src/util/libgnunetutil.la
439 test_fs_start_stop_SOURCES = \
441 test_fs_start_stop_LDADD = \
442 $(top_builddir)/src/testing/libgnunettesting.la \
443 $(top_builddir)/src/fs/libgnunetfs.la \
444 $(top_builddir)/src/util/libgnunetutil.la
446 test_fs_unindex_SOURCES = \
448 test_fs_unindex_LDADD = \
449 $(top_builddir)/src/testing/libgnunettesting.la \
450 $(top_builddir)/src/fs/libgnunetfs.la \
451 $(top_builddir)/src/util/libgnunetutil.la
453 test_fs_unindex_persistence_SOURCES = \
454 test_fs_unindex_persistence.c
455 test_fs_unindex_persistence_LDADD = \
456 $(top_builddir)/src/testing/libgnunettesting.la \
457 $(top_builddir)/src/fs/libgnunetfs.la \
458 $(top_builddir)/src/util/libgnunetutil.la
460 test_fs_uri_SOURCES = \
462 test_fs_uri_LDADD = \
463 $(top_builddir)/src/fs/libgnunetfs.la \
464 $(top_builddir)/src/util/libgnunetutil.la
466 test_fs_test_lib_SOURCES = \
468 test_fs_test_lib_LDADD = \
469 $(top_builddir)/src/fs/libgnunetfstest.a \
470 $(top_builddir)/src/testbed/libgnunettestbed.la \
471 $(top_builddir)/src/fs/libgnunetfs.la \
472 $(top_builddir)/src/util/libgnunetutil.la
474 test_gnunet_service_fs_p2p_SOURCES = \
475 test_gnunet_service_fs_p2p.c
476 test_gnunet_service_fs_p2p_LDADD = \
477 $(top_builddir)/src/fs/libgnunetfstest.a \
478 $(top_builddir)/src/testbed/libgnunettestbed.la \
479 $(top_builddir)/src/fs/libgnunetfs.la \
480 $(top_builddir)/src/util/libgnunetutil.la
482 test_gnunet_service_fs_p2p_mesh_SOURCES = \
483 test_gnunet_service_fs_p2p.c
484 test_gnunet_service_fs_p2p_mesh_LDADD = \
485 $(top_builddir)/src/fs/libgnunetfstest.a \
486 $(top_builddir)/src/testbed/libgnunettestbed.la \
487 $(top_builddir)/src/fs/libgnunetfs.la \
488 $(top_builddir)/src/util/libgnunetutil.la
490 test_gnunet_service_fs_migration_SOURCES = \
491 test_gnunet_service_fs_migration.c
492 test_gnunet_service_fs_migration_LDADD = \
493 $(top_builddir)/src/fs/libgnunetfstest.a \
494 $(top_builddir)/src/testbed/libgnunettestbed.la \
495 $(top_builddir)/src/fs/libgnunetfs.la \
496 $(top_builddir)/src/util/libgnunetutil.la
498 perf_gnunet_service_fs_p2p_SOURCES = \
499 perf_gnunet_service_fs_p2p.c
500 perf_gnunet_service_fs_p2p_LDADD = \
501 $(top_builddir)/src/fs/libgnunetfstest.a \
502 $(top_builddir)/src/statistics/libgnunetstatistics.la \
503 $(top_builddir)/src/testbed/libgnunettestbed.la \
504 $(top_builddir)/src/fs/libgnunetfs.la \
505 $(top_builddir)/src/util/libgnunetutil.la
507 perf_gnunet_service_fs_p2p_index_SOURCES = \
508 perf_gnunet_service_fs_p2p.c
509 perf_gnunet_service_fs_p2p_index_LDADD = \
510 $(top_builddir)/src/fs/libgnunetfstest.a \
511 $(top_builddir)/src/statistics/libgnunetstatistics.la \
512 $(top_builddir)/src/testbed/libgnunettestbed.la \
513 $(top_builddir)/src/fs/libgnunetfs.la \
514 $(top_builddir)/src/util/libgnunetutil.la
516 perf_gnunet_service_fs_p2p_dht_SOURCES = \
517 perf_gnunet_service_fs_p2p.c
518 perf_gnunet_service_fs_p2p_dht_LDADD = \
519 $(top_builddir)/src/fs/libgnunetfstest.a \
520 $(top_builddir)/src/statistics/libgnunetstatistics.la \
521 $(top_builddir)/src/testbed/libgnunettestbed.la \
522 $(top_builddir)/src/fs/libgnunetfs.la \
523 $(top_builddir)/src/util/libgnunetutil.la
525 perf_gnunet_service_fs_p2p_respect_SOURCES = \
526 perf_gnunet_service_fs_p2p_respect.c
527 perf_gnunet_service_fs_p2p_respect_LDADD = \
528 $(top_builddir)/src/fs/libgnunetfstest.a \
529 $(top_builddir)/src/statistics/libgnunetstatistics.la \
530 $(top_builddir)/src/testbed/libgnunettestbed.la \
531 $(top_builddir)/src/fs/libgnunetfs.la \
532 $(top_builddir)/src/util/libgnunetutil.la
535 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
537 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
538 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
539 chmod +x test_gnunet_fs_psd.py
541 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
542 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
543 chmod +x test_gnunet_fs_rec.py
545 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
546 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
547 chmod +x test_gnunet_fs_ns.py
549 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
550 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
551 chmod +x test_gnunet_fs_idx.py
555 test_fs_defaults.conf \
556 fs_test_lib_data.conf \
558 test_fs_download_data.conf \
559 test_fs_download_indexed.conf \
560 test_fs_download_mesh.conf \
561 test_fs_file_information_data.conf \
562 fs_test_lib_data.conf \
563 test_fs_list_indexed_data.conf \
564 test_fs_namespace_data.conf \
565 test_fs_publish_data.conf \
566 test_fs_search_data.conf \
567 test_fs_unindex_data.conf \
568 test_fs_uri_data.conf \
569 test_gnunet_service_fs_migration_data.conf \
570 test_gnunet_service_fs_p2p_mesh.conf \
571 test_gnunet_fs_idx_data.conf \
572 test_gnunet_fs_ns_data.conf \
573 test_gnunet_fs_psd_data.conf \
574 test_gnunet_fs_rec_data.conf \
575 perf_gnunet_service_fs_p2p.conf \
576 test_gnunet_fs_rec_data.tgz \
577 test_gnunet_fs_psd.py.in \
578 test_gnunet_fs_rec.py.in \
579 test_gnunet_fs_ns.py.in \
580 test_gnunet_fs_idx.py.in \
581 test_pseudonym_data.conf \
584 CLEANFILES = $(check_SCRIPTS)