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 \
48 libgnunetfs_la_LIBADD = \
49 $(top_builddir)/src/datastore/libgnunetdatastore.la \
50 $(top_builddir)/src/util/libgnunetutil.la \
51 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor -lgcrypt
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 \
71 gnunet-daemon-fsprofiler
84 gnunet-download-manager.scm
86 gnunet_directory_SOURCES = \
88 gnunet_directory_LDADD = \
89 $(top_builddir)/src/fs/libgnunetfs.la \
90 $(top_builddir)/src/util/libgnunetutil.la \
93 gnunet_directory_DEPENDENCIES = \
96 gnunet_fs_profiler_SOURCES = \
98 gnunet_fs_profiler_LDADD = \
99 $(top_builddir)/src/testbed/libgnunettestbed.la \
100 $(top_builddir)/src/util/libgnunetutil.la \
103 gnunet_fs_SOURCES = \
106 $(top_builddir)/src/fs/libgnunetfs.la \
107 $(top_builddir)/src/util/libgnunetutil.la \
110 gnunet_fs_DEPENDENCIES = \
113 gnunet_download_SOURCES = \
115 gnunet_download_LDADD = \
116 $(top_builddir)/src/fs/libgnunetfs.la \
117 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_download_DEPENDENCIES = \
122 gnunet_publish_SOURCES = \
124 gnunet_publish_LDADD = \
125 $(top_builddir)/src/fs/libgnunetfs.la \
126 $(top_builddir)/src/util/libgnunetutil.la \
129 gnunet_publish_DEPENDENCIES = \
132 gnunet_auto_share_SOURCES = \
134 gnunet_auto_share_LDADD = \
135 $(top_builddir)/src/util/libgnunetutil.la \
138 gnunet_auto_share_DEPENDENCIES = \
141 gnunet_helper_fs_publish_SOURCES = \
142 gnunet-helper-fs-publish.c
143 gnunet_helper_fs_publish_LDADD = \
144 $(top_builddir)/src/util/libgnunetutil.la \
147 gnunet_helper_fs_publish_DEPENDENCIES = \
150 gnunet_pseudonym_SOURCES = \
152 gnunet_pseudonym_LDADD = \
153 $(top_builddir)/src/fs/libgnunetfs.la \
154 $(top_builddir)/src/util/libgnunetutil.la \
157 gnunet_pseudonym_DEPENDENCIES = \
160 gnunet_search_SOURCES = \
162 gnunet_search_LDADD = \
163 $(top_builddir)/src/fs/libgnunetfs.la \
164 $(top_builddir)/src/util/libgnunetutil.la \
167 gnunet_search_DEPENDENCIES = \
170 gnunet_daemon_fsprofiler_SOURCES = \
171 gnunet-daemon-fsprofiler.c
172 gnunet_daemon_fsprofiler_LDADD = \
173 $(top_builddir)/src/fs/libgnunetfs.la \
174 $(top_builddir)/src/statistics/libgnunetstatistics.la \
175 $(top_builddir)/src/util/libgnunetutil.la \
177 gnunet_daemon_fsprofiler_DEPENDENCIES = \
180 gnunet_service_fs_SOURCES = \
181 gnunet-service-fs.c gnunet-service-fs.h \
182 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
183 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
184 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
185 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
186 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
187 gnunet-service-fs_push.c gnunet-service-fs_push.h \
188 gnunet-service-fs_put.c gnunet-service-fs_put.h \
189 gnunet-service-fs_mesh.c gnunet-service-fs_mesh.h
190 gnunet_service_fs_LDADD = \
191 $(top_builddir)/src/fs/libgnunetfs.la \
192 $(top_builddir)/src/dht/libgnunetdht.la \
193 $(top_builddir)/src/block/libgnunetblock.la \
194 $(top_builddir)/src/datastore/libgnunetdatastore.la \
195 $(top_builddir)/src/statistics/libgnunetstatistics.la \
196 $(top_builddir)/src/mesh/libgnunetmesh.la \
197 $(top_builddir)/src/ats/libgnunetats.la \
198 $(top_builddir)/src/core/libgnunetcore.la \
199 $(top_builddir)/src/util/libgnunetutil.la \
201 gnunet_service_fs_DEPENDENCIES = \
204 gnunet_unindex_SOURCES = \
206 gnunet_unindex_LDADD = \
207 $(top_builddir)/src/fs/libgnunetfs.la \
208 $(top_builddir)/src/util/libgnunetutil.la \
210 gnunet_unindex_DEPENDENCIES = \
214 libgnunet_plugin_block_fs_la_SOURCES = \
216 libgnunet_plugin_block_fs_la_LIBADD = \
217 $(top_builddir)/src/block/libgnunetblock.la \
218 $(top_builddir)/src/fs/libgnunetfs.la \
219 $(top_builddir)/src/util/libgnunetutil.la \
221 libgnunet_plugin_block_fs_la_LDFLAGS = \
223 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
224 $(top_builddir)/src/util/libgnunetutil.la \
225 $(top_builddir)/src/block/libgnunetblock.la \
232 perf_gnunet_service_fs_p2p \
233 perf_gnunet_service_fs_p2p_dht \
234 perf_gnunet_service_fs_p2p_index \
235 perf_gnunet_service_fs_p2p_respect
239 test_plugin_block_fs \
242 test_fs_download_mesh \
243 test_fs_download_indexed \
244 test_fs_download_persistence \
245 test_fs_file_information \
247 test_fs_list_indexed \
249 test_fs_namespace_list_updateable \
252 test_fs_publish_persistence \
254 test_fs_search_probes \
255 test_fs_search_persistence \
259 test_fs_unindex_persistence \
261 test_gnunet_service_fs_migration \
262 test_gnunet_service_fs_p2p \
263 test_gnunet_service_fs_p2p_mesh \
266 test_plugin_block_fs_SOURCES = \
267 test_plugin_block_fs.c
268 test_plugin_block_fs_LDADD = \
269 $(top_builddir)/src/block/libgnunetblock.la \
270 $(top_builddir)/src/util/libgnunetutil.la
274 test_gnunet_fs_psd.py \
275 test_gnunet_fs_rec.py \
276 test_gnunet_fs_idx.py \
281 TESTS_ENVIRONMENT = @MONKEYPREFIX@
282 AM_LDFLAGS = -no-install
290 test_fs_download_indexed \
291 test_fs_download_persistence \
292 test_fs_file_information \
293 test_fs_list_indexed \
295 test_fs_namespace_list_updateable \
298 test_fs_publish_persistence \
300 test_fs_search_probes \
301 test_fs_search_persistence \
304 test_fs_unindex_persistence \
307 test_gnunet_service_fs_migration \
308 test_gnunet_service_fs_p2p \
309 test_gnunet_service_fs_p2p_mesh \
310 perf_gnunet_service_fs_p2p \
311 perf_gnunet_service_fs_p2p_index \
312 perf_gnunet_service_fs_p2p_respect \
317 test_pseudonym_SOURCES = \
319 test_pseudonym_LDADD = \
321 $(top_builddir)/src/fs/libgnunetfs.la \
322 $(top_builddir)/src/util/libgnunetutil.la
325 test_fs_directory_SOURCES = \
327 test_fs_directory_LDADD = \
329 $(top_builddir)/src/fs/libgnunetfs.la \
330 $(top_builddir)/src/util/libgnunetutil.la
332 test_fs_download_SOURCES = \
334 test_fs_download_LDADD = \
335 $(top_builddir)/src/testing/libgnunettesting.la \
336 $(top_builddir)/src/fs/libgnunetfs.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 test_fs_download_indexed_SOURCES = \
341 test_fs_download_indexed_LDADD = \
342 $(top_builddir)/src/testing/libgnunettesting.la \
343 $(top_builddir)/src/fs/libgnunetfs.la \
344 $(top_builddir)/src/util/libgnunetutil.la
346 test_fs_download_mesh_SOURCES = \
348 test_fs_download_mesh_LDADD = \
349 $(top_builddir)/src/testing/libgnunettesting.la \
350 $(top_builddir)/src/fs/libgnunetfs.la \
351 $(top_builddir)/src/util/libgnunetutil.la
353 test_fs_download_persistence_SOURCES = \
354 test_fs_download_persistence.c
355 test_fs_download_persistence_LDADD = \
356 $(top_builddir)/src/testing/libgnunettesting.la \
357 $(top_builddir)/src/fs/libgnunetfs.la \
358 $(top_builddir)/src/util/libgnunetutil.la
360 test_fs_file_information_SOURCES = \
361 test_fs_file_information.c
362 test_fs_file_information_LDADD = \
364 $(top_builddir)/src/fs/libgnunetfs.la \
365 $(top_builddir)/src/util/libgnunetutil.la
367 test_fs_getopt_SOURCES = \
369 test_fs_getopt_LDADD = \
370 $(top_builddir)/src/fs/libgnunetfs.la \
371 $(top_builddir)/src/util/libgnunetutil.la
373 test_fs_list_indexed_SOURCES = \
374 test_fs_list_indexed.c
375 test_fs_list_indexed_LDADD = \
376 $(top_builddir)/src/testing/libgnunettesting.la \
377 $(top_builddir)/src/fs/libgnunetfs.la \
378 $(top_builddir)/src/util/libgnunetutil.la
380 test_fs_namespace_SOURCES = \
382 test_fs_namespace_LDADD = \
383 $(top_builddir)/src/testing/libgnunettesting.la \
384 $(top_builddir)/src/fs/libgnunetfs.la \
385 $(top_builddir)/src/util/libgnunetutil.la
387 test_fs_namespace_list_updateable_SOURCES = \
388 test_fs_namespace_list_updateable.c
389 test_fs_namespace_list_updateable_LDADD = \
390 $(top_builddir)/src/testing/libgnunettesting.la \
391 $(top_builddir)/src/fs/libgnunetfs.la \
392 $(top_builddir)/src/util/libgnunetutil.la
394 test_fs_publish_SOURCES = \
396 test_fs_publish_LDADD = \
397 $(top_builddir)/src/testing/libgnunettesting.la \
398 $(top_builddir)/src/fs/libgnunetfs.la \
399 $(top_builddir)/src/util/libgnunetutil.la
401 test_fs_publish_persistence_SOURCES = \
402 test_fs_publish_persistence.c
403 test_fs_publish_persistence_LDADD = \
404 $(top_builddir)/src/testing/libgnunettesting.la \
405 $(top_builddir)/src/fs/libgnunetfs.la \
406 $(top_builddir)/src/util/libgnunetutil.la
408 test_fs_search_SOURCES = \
410 test_fs_search_LDADD = \
411 $(top_builddir)/src/testing/libgnunettesting.la \
412 $(top_builddir)/src/fs/libgnunetfs.la \
413 $(top_builddir)/src/util/libgnunetutil.la
415 test_fs_search_probes_SOURCES = \
416 test_fs_search_probes.c
417 test_fs_search_probes_LDADD = \
418 $(top_builddir)/src/testing/libgnunettesting.la \
419 $(top_builddir)/src/fs/libgnunetfs.la \
420 $(top_builddir)/src/util/libgnunetutil.la
422 test_fs_search_persistence_SOURCES = \
423 test_fs_search_persistence.c
424 test_fs_search_persistence_LDADD = \
425 $(top_builddir)/src/testing/libgnunettesting.la \
426 $(top_builddir)/src/fs/libgnunetfs.la \
427 $(top_builddir)/src/util/libgnunetutil.la
429 test_fs_start_stop_SOURCES = \
431 test_fs_start_stop_LDADD = \
432 $(top_builddir)/src/testing/libgnunettesting.la \
433 $(top_builddir)/src/fs/libgnunetfs.la \
434 $(top_builddir)/src/util/libgnunetutil.la
436 test_fs_unindex_SOURCES = \
438 test_fs_unindex_LDADD = \
439 $(top_builddir)/src/testing/libgnunettesting.la \
440 $(top_builddir)/src/fs/libgnunetfs.la \
441 $(top_builddir)/src/util/libgnunetutil.la
443 test_fs_unindex_persistence_SOURCES = \
444 test_fs_unindex_persistence.c
445 test_fs_unindex_persistence_LDADD = \
446 $(top_builddir)/src/testing/libgnunettesting.la \
447 $(top_builddir)/src/fs/libgnunetfs.la \
448 $(top_builddir)/src/util/libgnunetutil.la
450 test_fs_uri_SOURCES = \
452 test_fs_uri_LDADD = \
453 $(top_builddir)/src/fs/libgnunetfs.la \
454 $(top_builddir)/src/util/libgnunetutil.la
456 test_fs_test_lib_SOURCES = \
458 test_fs_test_lib_LDADD = \
459 $(top_builddir)/src/fs/libgnunetfstest.a \
460 $(top_builddir)/src/testbed/libgnunettestbed.la \
461 $(top_builddir)/src/fs/libgnunetfs.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 test_gnunet_service_fs_p2p_SOURCES = \
465 test_gnunet_service_fs_p2p.c
466 test_gnunet_service_fs_p2p_LDADD = \
467 $(top_builddir)/src/fs/libgnunetfstest.a \
468 $(top_builddir)/src/testbed/libgnunettestbed.la \
469 $(top_builddir)/src/fs/libgnunetfs.la \
470 $(top_builddir)/src/util/libgnunetutil.la
472 test_gnunet_service_fs_p2p_mesh_SOURCES = \
473 test_gnunet_service_fs_p2p.c
474 test_gnunet_service_fs_p2p_mesh_LDADD = \
475 $(top_builddir)/src/fs/libgnunetfstest.a \
476 $(top_builddir)/src/testbed/libgnunettestbed.la \
477 $(top_builddir)/src/fs/libgnunetfs.la \
478 $(top_builddir)/src/util/libgnunetutil.la
480 test_gnunet_service_fs_migration_SOURCES = \
481 test_gnunet_service_fs_migration.c
482 test_gnunet_service_fs_migration_LDADD = \
483 $(top_builddir)/src/fs/libgnunetfstest.a \
484 $(top_builddir)/src/testbed/libgnunettestbed.la \
485 $(top_builddir)/src/fs/libgnunetfs.la \
486 $(top_builddir)/src/util/libgnunetutil.la
488 perf_gnunet_service_fs_p2p_SOURCES = \
489 perf_gnunet_service_fs_p2p.c
490 perf_gnunet_service_fs_p2p_LDADD = \
491 $(top_builddir)/src/fs/libgnunetfstest.a \
492 $(top_builddir)/src/statistics/libgnunetstatistics.la \
493 $(top_builddir)/src/testbed/libgnunettestbed.la \
494 $(top_builddir)/src/fs/libgnunetfs.la \
495 $(top_builddir)/src/util/libgnunetutil.la
497 perf_gnunet_service_fs_p2p_index_SOURCES = \
498 perf_gnunet_service_fs_p2p.c
499 perf_gnunet_service_fs_p2p_index_LDADD = \
500 $(top_builddir)/src/fs/libgnunetfstest.a \
501 $(top_builddir)/src/statistics/libgnunetstatistics.la \
502 $(top_builddir)/src/testbed/libgnunettestbed.la \
503 $(top_builddir)/src/fs/libgnunetfs.la \
504 $(top_builddir)/src/util/libgnunetutil.la
506 perf_gnunet_service_fs_p2p_dht_SOURCES = \
507 perf_gnunet_service_fs_p2p.c
508 perf_gnunet_service_fs_p2p_dht_LDADD = \
509 $(top_builddir)/src/fs/libgnunetfstest.a \
510 $(top_builddir)/src/statistics/libgnunetstatistics.la \
511 $(top_builddir)/src/testbed/libgnunettestbed.la \
512 $(top_builddir)/src/fs/libgnunetfs.la \
513 $(top_builddir)/src/util/libgnunetutil.la
515 perf_gnunet_service_fs_p2p_respect_SOURCES = \
516 perf_gnunet_service_fs_p2p_respect.c
517 perf_gnunet_service_fs_p2p_respect_LDADD = \
518 $(top_builddir)/src/fs/libgnunetfstest.a \
519 $(top_builddir)/src/statistics/libgnunetstatistics.la \
520 $(top_builddir)/src/testbed/libgnunettestbed.la \
521 $(top_builddir)/src/fs/libgnunetfs.la \
522 $(top_builddir)/src/util/libgnunetutil.la
525 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
527 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
528 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
529 chmod +x test_gnunet_fs_psd.py
531 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
532 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
533 chmod +x test_gnunet_fs_rec.py
535 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
536 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
537 chmod +x test_gnunet_fs_ns.py
539 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
540 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
541 chmod +x test_gnunet_fs_idx.py
545 test_fs_defaults.conf \
546 fs_test_lib_data.conf \
548 test_fs_download_data.conf \
549 test_fs_download_indexed.conf \
550 test_fs_download_mesh.conf \
551 test_fs_file_information_data.conf \
552 fs_test_lib_data.conf \
553 test_fs_list_indexed_data.conf \
554 test_fs_namespace_data.conf \
555 test_fs_publish_data.conf \
556 test_fs_search_data.conf \
557 test_fs_unindex_data.conf \
558 test_fs_uri_data.conf \
559 test_gnunet_service_fs_migration_data.conf \
560 test_gnunet_service_fs_p2p_mesh.conf \
561 test_gnunet_fs_idx_data.conf \
562 test_gnunet_fs_ns_data.conf \
563 test_gnunet_fs_psd_data.conf \
564 test_gnunet_fs_rec_data.conf \
565 perf_gnunet_service_fs_p2p.conf \
566 test_gnunet_fs_rec_data.tgz \
567 test_gnunet_fs_psd.py.in \
568 test_gnunet_fs_rec.py.in \
569 test_gnunet_fs_ns.py.in \
570 test_gnunet_fs_idx.py.in \
571 test_pseudonym_data.conf \
574 CLEANFILES = $(check_SCRIPTS)