1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
13 pkgcfgdir= $(pkgdatadir)/config.d/
15 libexecdir= $(pkglibdir)/libexec/
20 plugindir = $(libdir)/gnunet
23 lib_LTLIBRARIES = libgnunetfs.la
25 plugin_LTLIBRARIES = \
26 libgnunet_plugin_block_fs.la
29 noinst_LIBRARIES = libgnunetfstest.a
32 libgnunetfs_la_SOURCES = \
33 fs_api.c fs_api.h fs.h \
37 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) $(LIBGCRYPT_LIBS) -lunistring
57 libgnunetfs_la_LIBADD += \
61 libgnunetfs_la_LDFLAGS = \
62 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
66 libgnunetfstest_a_SOURCES = \
67 fs_test_lib.c fs_test_lib.h
69 libgnunetfstest_a_LIBADD = \
70 $(top_builddir)/src/testing/libgnunettesting.la \
71 $(top_builddir)/src/testbed/libgnunettestbed.la
74 gnunet-helper-fs-publish \
80 gnunet-daemon-fsprofiler
93 gnunet-download-manager.scm
95 gnunet_directory_SOURCES = \
97 gnunet_directory_LDADD = \
99 $(top_builddir)/src/util/libgnunetutil.la \
103 gnunet_directory_LDADD += \
107 gnunet_fs_profiler_SOURCES = \
109 gnunet_fs_profiler_LDADD = \
110 $(top_builddir)/src/testbed/libgnunettestbed.la \
111 $(top_builddir)/src/util/libgnunetutil.la \
114 gnunet_fs_SOURCES = \
118 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_download_SOURCES = \
128 gnunet_download_LDADD = \
130 $(top_builddir)/src/util/libgnunetutil.la \
133 gnunet_publish_SOURCES = \
135 gnunet_publish_LDADD = \
136 $(top_builddir)/src/identity/libgnunetidentity.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
142 gnunet_publish_LDADD += \
146 gnunet_auto_share_SOURCES = \
148 gnunet_auto_share_LDADD = \
149 $(top_builddir)/src/util/libgnunetutil.la \
153 gnunet_auto_share_LDADD += \
157 gnunet_helper_fs_publish_SOURCES = \
158 gnunet-helper-fs-publish.c
159 gnunet_helper_fs_publish_LDADD = \
160 $(top_builddir)/src/util/libgnunetutil.la \
164 gnunet_helper_fs_publish_LDADD += \
168 gnunet_search_SOURCES = \
170 gnunet_search_LDADD = \
172 $(top_builddir)/src/util/libgnunetutil.la \
176 gnunet_search_LDADD += \
181 gnunet_daemon_fsprofiler_SOURCES = \
182 gnunet-daemon-fsprofiler.c
183 gnunet_daemon_fsprofiler_LDADD = \
185 $(top_builddir)/src/statistics/libgnunetstatistics.la \
186 $(top_builddir)/src/util/libgnunetutil.la \
189 gnunet_service_fs_SOURCES = \
190 gnunet-service-fs.c gnunet-service-fs.h \
191 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
192 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
193 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
194 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
195 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
196 gnunet-service-fs_push.c gnunet-service-fs_push.h \
197 gnunet-service-fs_put.c gnunet-service-fs_put.h \
198 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
199 gnunet-service-fs_cadet_server.c
200 gnunet_service_fs_LDADD = \
202 $(top_builddir)/src/dht/libgnunetdht.la \
203 $(top_builddir)/src/block/libgnunetblock.la \
204 $(top_builddir)/src/datastore/libgnunetdatastore.la \
205 $(top_builddir)/src/statistics/libgnunetstatistics.la \
206 $(top_builddir)/src/cadet/libgnunetcadet.la \
207 $(top_builddir)/src/ats/libgnunetats.la \
208 $(top_builddir)/src/core/libgnunetcore.la \
209 $(top_builddir)/src/util/libgnunetutil.la \
210 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
213 gnunet_unindex_SOURCES = \
215 gnunet_unindex_LDADD = \
217 $(top_builddir)/src/util/libgnunetutil.la \
220 libgnunet_plugin_block_fs_la_SOURCES = \
222 libgnunet_plugin_block_fs_la_LIBADD = \
223 $(top_builddir)/src/block/libgnunetblock.la \
225 $(top_builddir)/src/util/libgnunetutil.la \
227 libgnunet_plugin_block_fs_la_LDFLAGS = \
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
240 test_plugin_block_fs \
243 test_fs_download_cadet \
244 test_fs_download_indexed \
245 test_fs_download_persistence \
246 test_fs_file_information \
248 test_fs_list_indexed \
250 test_fs_namespace_list_updateable \
252 test_fs_publish_persistence \
254 test_fs_search_with_and \
255 test_fs_search_probes \
256 test_fs_search_persistence \
260 test_fs_unindex_persistence \
262 test_gnunet_service_fs_migration \
263 test_gnunet_service_fs_p2p \
264 test_gnunet_service_fs_p2p_cadet \
268 test_plugin_block_fs_SOURCES = \
269 test_plugin_block_fs.c
270 test_plugin_block_fs_LDADD = \
271 $(top_builddir)/src/block/libgnunetblock.la \
272 $(top_builddir)/src/util/libgnunetutil.la
276 test_gnunet_fs_rec.py \
277 test_gnunet_fs_idx.py
281 test_gnunet_fs_psd.py
286 MONKEY = @MONKEYPREFIX@
287 AM_LDFLAGS = -no-install
292 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; $(MONKEY)
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 \
303 test_fs_publish_persistence \
305 test_fs_search_with_and \
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_cadet \
316 perf_gnunet_service_fs_p2p \
317 perf_gnunet_service_fs_p2p_index \
318 perf_gnunet_service_fs_p2p_respect \
323 test_fs_directory_SOURCES = \
325 test_fs_directory_LDADD = \
327 $(top_builddir)/src/util/libgnunetutil.la
330 test_fs_directory_LDADD += \
335 test_fs_download_SOURCES = \
337 test_fs_download_LDADD = \
338 $(top_builddir)/src/testing/libgnunettesting.la \
340 $(top_builddir)/src/util/libgnunetutil.la
342 test_fs_download_indexed_SOURCES = \
344 test_fs_download_indexed_LDADD = \
345 $(top_builddir)/src/testing/libgnunettesting.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_fs_download_cadet_SOURCES = \
351 test_fs_download_cadet_LDADD = \
352 $(top_builddir)/src/testing/libgnunettesting.la \
354 $(top_builddir)/src/util/libgnunetutil.la
356 test_fs_download_persistence_SOURCES = \
357 test_fs_download_persistence.c
358 test_fs_download_persistence_LDADD = \
359 $(top_builddir)/src/testing/libgnunettesting.la \
361 $(top_builddir)/src/util/libgnunetutil.la
363 test_fs_file_information_SOURCES = \
364 test_fs_file_information.c
365 test_fs_file_information_LDADD = \
367 $(top_builddir)/src/util/libgnunetutil.la
370 test_fs_file_information_LDADD += \
375 test_fs_getopt_SOURCES = \
377 test_fs_getopt_LDADD = \
379 $(top_builddir)/src/util/libgnunetutil.la
381 test_fs_list_indexed_SOURCES = \
382 test_fs_list_indexed.c
383 test_fs_list_indexed_LDADD = \
384 $(top_builddir)/src/testing/libgnunettesting.la \
386 $(top_builddir)/src/util/libgnunetutil.la
388 test_fs_namespace_SOURCES = \
390 test_fs_namespace_LDADD = \
391 $(top_builddir)/src/testing/libgnunettesting.la \
393 $(top_builddir)/src/util/libgnunetutil.la
395 test_fs_namespace_list_updateable_SOURCES = \
396 test_fs_namespace_list_updateable.c
397 test_fs_namespace_list_updateable_LDADD = \
398 $(top_builddir)/src/testing/libgnunettesting.la \
400 $(top_builddir)/src/util/libgnunetutil.la
402 test_fs_publish_SOURCES = \
404 test_fs_publish_LDADD = \
405 $(top_builddir)/src/testing/libgnunettesting.la \
407 $(top_builddir)/src/util/libgnunetutil.la
409 test_fs_publish_persistence_SOURCES = \
410 test_fs_publish_persistence.c
411 test_fs_publish_persistence_LDADD = \
412 $(top_builddir)/src/testing/libgnunettesting.la \
414 $(top_builddir)/src/util/libgnunetutil.la
416 test_fs_search_SOURCES = \
418 test_fs_search_LDADD = \
419 $(top_builddir)/src/testing/libgnunettesting.la \
421 $(top_builddir)/src/util/libgnunetutil.la
423 test_fs_search_with_and_SOURCES = \
424 test_fs_search_with_and.c
425 test_fs_search_with_and_LDADD = \
426 $(top_builddir)/src/testing/libgnunettesting.la \
428 $(top_builddir)/src/util/libgnunetutil.la
430 test_fs_search_probes_SOURCES = \
431 test_fs_search_probes.c
432 test_fs_search_probes_LDADD = \
433 $(top_builddir)/src/testing/libgnunettesting.la \
435 $(top_builddir)/src/util/libgnunetutil.la
437 test_fs_search_persistence_SOURCES = \
438 test_fs_search_persistence.c
439 test_fs_search_persistence_LDADD = \
440 $(top_builddir)/src/testing/libgnunettesting.la \
442 $(top_builddir)/src/util/libgnunetutil.la
444 test_fs_start_stop_SOURCES = \
446 test_fs_start_stop_LDADD = \
447 $(top_builddir)/src/testing/libgnunettesting.la \
449 $(top_builddir)/src/util/libgnunetutil.la
451 test_fs_unindex_SOURCES = \
453 test_fs_unindex_LDADD = \
454 $(top_builddir)/src/testing/libgnunettesting.la \
456 $(top_builddir)/src/util/libgnunetutil.la
458 test_fs_unindex_persistence_SOURCES = \
459 test_fs_unindex_persistence.c
460 test_fs_unindex_persistence_LDADD = \
461 $(top_builddir)/src/testing/libgnunettesting.la \
463 $(top_builddir)/src/util/libgnunetutil.la
465 test_fs_uri_SOURCES = \
467 test_fs_uri_LDADD = \
469 $(top_builddir)/src/util/libgnunetutil.la
471 test_fs_test_lib_SOURCES = \
473 test_fs_test_lib_LDADD = \
475 $(top_builddir)/src/testbed/libgnunettestbed.la \
477 $(top_builddir)/src/util/libgnunetutil.la
479 test_gnunet_service_fs_p2p_SOURCES = \
480 test_gnunet_service_fs_p2p.c
481 test_gnunet_service_fs_p2p_LDADD = \
483 $(top_builddir)/src/testbed/libgnunettestbed.la \
485 $(top_builddir)/src/util/libgnunetutil.la
487 test_gnunet_service_fs_p2p_cadet_SOURCES = \
488 test_gnunet_service_fs_p2p.c
489 test_gnunet_service_fs_p2p_cadet_LDADD = \
491 $(top_builddir)/src/testbed/libgnunettestbed.la \
493 $(top_builddir)/src/util/libgnunetutil.la
495 test_gnunet_service_fs_migration_SOURCES = \
496 test_gnunet_service_fs_migration.c
497 test_gnunet_service_fs_migration_LDADD = \
499 $(top_builddir)/src/testbed/libgnunettestbed.la \
501 $(top_builddir)/src/util/libgnunetutil.la
503 perf_gnunet_service_fs_p2p_SOURCES = \
504 perf_gnunet_service_fs_p2p.c
505 perf_gnunet_service_fs_p2p_LDADD = \
507 $(top_builddir)/src/statistics/libgnunetstatistics.la \
508 $(top_builddir)/src/testbed/libgnunettestbed.la \
510 $(top_builddir)/src/util/libgnunetutil.la
512 perf_gnunet_service_fs_p2p_index_SOURCES = \
513 perf_gnunet_service_fs_p2p.c
514 perf_gnunet_service_fs_p2p_index_LDADD = \
516 $(top_builddir)/src/statistics/libgnunetstatistics.la \
517 $(top_builddir)/src/testbed/libgnunettestbed.la \
519 $(top_builddir)/src/util/libgnunetutil.la
521 perf_gnunet_service_fs_p2p_dht_SOURCES = \
522 perf_gnunet_service_fs_p2p.c
523 perf_gnunet_service_fs_p2p_dht_LDADD = \
525 $(top_builddir)/src/statistics/libgnunetstatistics.la \
526 $(top_builddir)/src/testbed/libgnunettestbed.la \
528 $(top_builddir)/src/util/libgnunetutil.la
530 perf_gnunet_service_fs_p2p_respect_SOURCES = \
531 perf_gnunet_service_fs_p2p_respect.c
532 perf_gnunet_service_fs_p2p_respect_LDADD = \
534 $(top_builddir)/src/statistics/libgnunetstatistics.la \
535 $(top_builddir)/src/testbed/libgnunettestbed.la \
537 $(top_builddir)/src/util/libgnunetutil.la
540 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
542 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
543 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
544 chmod +x test_gnunet_fs_psd.py
546 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
547 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
548 chmod +x test_gnunet_fs_rec.py
550 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
551 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
552 chmod +x test_gnunet_fs_ns.py
554 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
555 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
556 chmod +x test_gnunet_fs_idx.py
560 fs_test_lib_data.conf \
561 perf_gnunet_service_fs_p2p.conf \
563 test_fs_defaults.conf \
564 test_fs_download_data.conf \
565 test_fs_download_indexed.conf \
566 test_fs_file_information_data.conf \
567 test_fs_list_indexed_data.conf \
568 test_fs_namespace_data.conf \
569 test_fs_publish_data.conf \
570 test_fs_search_data.conf \
571 test_fs_unindex_data.conf \
572 test_gnunet_fs_idx_data.conf \
573 test_gnunet_fs_psd_data.conf \
574 test_gnunet_fs_rec_data.conf \
575 test_gnunet_fs_rec_data.tgz \
576 test_gnunet_fs_psd.py.in \
577 test_gnunet_fs_rec.py.in \
578 test_gnunet_fs_idx.py.in \
579 test_gnunet_service_fs_migration_data.conf \
580 test_gnunet_service_fs_p2p_cadet.conf \
581 test_pseudonym_data.conf \
584 CLEANFILES = $(check_SCRIPTS)