123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575 |
- # This Makefile.am is in the public domain
- AM_CPPFLAGS = -I$(top_srcdir)/src/include
- if MINGW
- WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
- endif
- if USE_COVERAGE
- AM_CFLAGS = --coverage -O0
- XLIB = -lgcov
- endif
- pkgcfgdir= $(pkgdatadir)/config.d/
- libexecdir= $(pkglibdir)/libexec/
- pkgcfg_DATA = \
- fs.conf
- plugindir = $(libdir)/gnunet
- lib_LTLIBRARIES = libgnunetfs.la
- plugin_LTLIBRARIES = \
- libgnunet_plugin_block_fs.la
- if HAVE_TESTING
- noinst_LIBRARIES = libgnunetfstest.a
- endif
- libgnunetfs_la_SOURCES = \
- fs_api.c fs_api.h fs.h \
- fs_directory.c \
- fs_dirmetascan.c \
- fs_download.c \
- fs_file_information.c \
- fs_getopt.c \
- fs_list_indexed.c \
- fs_publish.c \
- fs_publish_ksk.c \
- fs_publish_ublock.c fs_publish_ublock.h \
- fs_misc.c \
- fs_namespace.c \
- fs_search.c \
- fs_sharetree.c \
- fs_tree.c fs_tree.h \
- fs_unindex.c \
- fs_uri.c
- libgnunetfs_la_LIBADD = \
- $(top_builddir)/src/datastore/libgnunetdatastore.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring
- if HAVE_LIBEXTRACTOR
- libgnunetfs_la_LIBADD += \
- -lextractor
- endif
- libgnunetfs_la_LDFLAGS = \
- $(GN_LIB_LDFLAGS) $(WINFLAGS) \
- -version-info 3:1:1
- libgnunetfstest_a_SOURCES = \
- fs_test_lib.c fs_test_lib.h
- libgnunetfstest_a_LIBADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la
- libexec_PROGRAMS = \
- gnunet-helper-fs-publish \
- gnunet-service-fs
- if HAVE_TESTING
- noinst_PROGRAMS = \
- gnunet-fs-profiler \
- gnunet-daemon-fsprofiler
- endif
- bin_PROGRAMS = \
- gnunet-auto-share \
- gnunet-directory \
- gnunet-download \
- gnunet-publish \
- gnunet-search \
- gnunet-fs \
- gnunet-unindex
- gnunet_directory_SOURCES = \
- gnunet-directory.c
- gnunet_directory_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_directory_LDADD += \
- -lextractor
- endif
- gnunet_fs_profiler_SOURCES = \
- gnunet-fs-profiler.c
- gnunet_fs_profiler_LDADD = \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- gnunet_fs_SOURCES = \
- gnunet-fs.c
- gnunet_fs_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_fs_LDADD += \
- -lextractor
- endif
- gnunet_download_SOURCES = \
- gnunet-download.c
- gnunet_download_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- gnunet_publish_SOURCES = \
- gnunet-publish.c
- gnunet_publish_LDADD = \
- $(top_builddir)/src/identity/libgnunetidentity.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_publish_LDADD += \
- -lextractor
- endif
- gnunet_auto_share_SOURCES = \
- gnunet-auto-share.c
- gnunet_auto_share_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_auto_share_LDADD += \
- -lextractor
- endif
- gnunet_helper_fs_publish_SOURCES = \
- gnunet-helper-fs-publish.c
- gnunet_helper_fs_publish_LDADD = \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_helper_fs_publish_LDADD += \
- -lextractor
- endif
- gnunet_search_SOURCES = \
- gnunet-search.c
- gnunet_search_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- if HAVE_LIBEXTRACTOR
- gnunet_search_LDADD += \
- -lextractor
- endif
- gnunet_daemon_fsprofiler_SOURCES = \
- gnunet-daemon-fsprofiler.c
- gnunet_daemon_fsprofiler_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- gnunet_service_fs_SOURCES = \
- gnunet-service-fs.c gnunet-service-fs.h \
- gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
- gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
- gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
- gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
- gnunet-service-fs_push.c gnunet-service-fs_push.h \
- gnunet-service-fs_put.c gnunet-service-fs_put.h \
- gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
- gnunet-service-fs_cadet_server.c
- gnunet_service_fs_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/dht/libgnunetdht.la \
- $(top_builddir)/src/block/libgnunetblock.la \
- $(top_builddir)/src/datastore/libgnunetdatastore.la \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/cadet/libgnunetcadet.la \
- $(top_builddir)/src/ats/libgnunetats.la \
- $(top_builddir)/src/core/libgnunetcore.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
- $(GN_LIBINTL) -lm
- gnunet_unindex_SOURCES = \
- gnunet-unindex.c
- gnunet_unindex_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
- libgnunet_plugin_block_fs_la_SOURCES = \
- plugin_block_fs.c
- libgnunet_plugin_block_fs_la_LIBADD = \
- $(top_builddir)/src/block/libgnunetblockgroup.la \
- $(top_builddir)/src/block/libgnunetblock.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(LTLIBINTL)
- libgnunet_plugin_block_fs_la_LDFLAGS = \
- $(GN_PLUGIN_LDFLAGS)
- if HAVE_BENCHMARKS
- FS_BENCHMARKS = \
- perf_gnunet_service_fs_p2p \
- perf_gnunet_service_fs_p2p_dht \
- perf_gnunet_service_fs_p2p_index \
- perf_gnunet_service_fs_p2p_respect
- endif
- if HAVE_TESTING
- check_PROGRAMS = \
- test_plugin_block_fs \
- test_fs_directory \
- test_fs_download \
- test_fs_download_cadet \
- test_fs_download_indexed \
- test_fs_download_persistence \
- test_fs_file_information \
- test_fs_getopt \
- test_fs_list_indexed \
- test_fs_namespace \
- test_fs_namespace_list_updateable \
- test_fs_publish \
- test_fs_publish_persistence \
- test_fs_search \
- test_fs_search_with_and \
- test_fs_search_probes \
- test_fs_search_persistence \
- test_fs_start_stop \
- test_fs_test_lib \
- test_fs_unindex \
- test_fs_unindex_persistence \
- test_fs_uri \
- test_gnunet_service_fs_migration \
- test_gnunet_service_fs_p2p \
- test_gnunet_service_fs_p2p_cadet \
- $(FS_BENCHMARKS)
- endif
- test_plugin_block_fs_SOURCES = \
- test_plugin_block_fs.c
- test_plugin_block_fs_LDADD = \
- $(top_builddir)/src/block/libgnunetblock.la \
- $(top_builddir)/src/util/libgnunetutil.la
- if HAVE_PYTHON
- check_SCRIPTS = \
- test_gnunet_fs_rec.py \
- test_gnunet_fs_idx.py
- if HAVE_LIBEXTRACTOR
- check_SCRIPTS += \
- test_gnunet_fs_psd.py
- endif
- endif
- if ENABLE_TEST_RUN
- AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; $(MONKEY)
- TESTS = \
- test_fs_directory \
- test_fs_download \
- test_fs_download_indexed \
- test_fs_download_persistence \
- test_fs_file_information \
- test_fs_list_indexed \
- test_fs_namespace \
- test_fs_namespace_list_updateable \
- test_fs_publish \
- test_fs_publish_persistence \
- test_fs_search \
- test_fs_search_with_and \
- test_fs_search_probes \
- test_fs_search_persistence \
- test_fs_start_stop \
- test_fs_unindex \
- test_fs_unindex_persistence \
- test_fs_uri \
- test_fs_test_lib \
- test_gnunet_service_fs_migration \
- test_gnunet_service_fs_p2p \
- test_gnunet_service_fs_p2p_cadet \
- perf_gnunet_service_fs_p2p \
- perf_gnunet_service_fs_p2p_index \
- perf_gnunet_service_fs_p2p_respect \
- $(check_SCRIPTS)
- endif
- test_fs_directory_SOURCES = \
- test_fs_directory.c
- test_fs_directory_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- if HAVE_LIBEXTRACTOR
- test_fs_directory_LDADD += \
- -lextractor
- endif
- test_fs_download_SOURCES = \
- test_fs_download.c
- test_fs_download_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_download_indexed_SOURCES = \
- test_fs_download.c
- test_fs_download_indexed_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_download_cadet_SOURCES = \
- test_fs_download.c
- test_fs_download_cadet_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_download_persistence_SOURCES = \
- test_fs_download_persistence.c
- test_fs_download_persistence_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_file_information_SOURCES = \
- test_fs_file_information.c
- test_fs_file_information_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- if HAVE_LIBEXTRACTOR
- test_fs_file_information_LDADD += \
- -lextractor
- endif
- test_fs_getopt_SOURCES = \
- test_fs_getopt.c
- test_fs_getopt_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_list_indexed_SOURCES = \
- test_fs_list_indexed.c
- test_fs_list_indexed_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_namespace_SOURCES = \
- test_fs_namespace.c
- test_fs_namespace_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_namespace_list_updateable_SOURCES = \
- test_fs_namespace_list_updateable.c
- test_fs_namespace_list_updateable_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_publish_SOURCES = \
- test_fs_publish.c
- test_fs_publish_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_publish_persistence_SOURCES = \
- test_fs_publish_persistence.c
- test_fs_publish_persistence_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_search_SOURCES = \
- test_fs_search.c
- test_fs_search_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_search_with_and_SOURCES = \
- test_fs_search_with_and.c
- test_fs_search_with_and_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_search_probes_SOURCES = \
- test_fs_search_probes.c
- test_fs_search_probes_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_search_persistence_SOURCES = \
- test_fs_search_persistence.c
- test_fs_search_persistence_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_start_stop_SOURCES = \
- test_fs_start_stop.c
- test_fs_start_stop_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_unindex_SOURCES = \
- test_fs_unindex.c
- test_fs_unindex_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_unindex_persistence_SOURCES = \
- test_fs_unindex_persistence.c
- test_fs_unindex_persistence_LDADD = \
- $(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_uri_SOURCES = \
- test_fs_uri.c
- test_fs_uri_LDADD = \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_fs_test_lib_SOURCES = \
- test_fs_test_lib.c
- test_fs_test_lib_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_gnunet_service_fs_p2p_SOURCES = \
- test_gnunet_service_fs_p2p.c
- test_gnunet_service_fs_p2p_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_gnunet_service_fs_p2p_cadet_SOURCES = \
- test_gnunet_service_fs_p2p.c
- test_gnunet_service_fs_p2p_cadet_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- test_gnunet_service_fs_migration_SOURCES = \
- test_gnunet_service_fs_migration.c
- test_gnunet_service_fs_migration_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- perf_gnunet_service_fs_p2p_SOURCES = \
- perf_gnunet_service_fs_p2p.c
- perf_gnunet_service_fs_p2p_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- perf_gnunet_service_fs_p2p_index_SOURCES = \
- perf_gnunet_service_fs_p2p.c
- perf_gnunet_service_fs_p2p_index_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- perf_gnunet_service_fs_p2p_dht_SOURCES = \
- perf_gnunet_service_fs_p2p.c
- perf_gnunet_service_fs_p2p_dht_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- perf_gnunet_service_fs_p2p_respect_SOURCES = \
- perf_gnunet_service_fs_p2p_respect.c
- perf_gnunet_service_fs_p2p_respect_LDADD = \
- libgnunetfstest.a \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/testbed/libgnunettestbed.la \
- libgnunetfs.la \
- $(top_builddir)/src/util/libgnunetutil.la
- do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
- test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
- $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
- chmod +x test_gnunet_fs_psd.py
- test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
- $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
- chmod +x test_gnunet_fs_rec.py
- test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
- $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
- chmod +x test_gnunet_fs_ns.py
- test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
- $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
- chmod +x test_gnunet_fs_idx.py
- EXTRA_DIST = \
- fs_test_lib_data.conf \
- perf_gnunet_service_fs_p2p.conf \
- test_fs_data.conf \
- test_fs_defaults.conf \
- test_fs_download_data.conf \
- test_fs_download_indexed.conf \
- test_fs_file_information_data.conf \
- test_fs_list_indexed_data.conf \
- test_fs_namespace_data.conf \
- test_fs_publish_data.conf \
- test_fs_search_data.conf \
- test_fs_unindex_data.conf \
- test_gnunet_fs_idx_data.conf \
- test_gnunet_fs_psd_data.conf \
- test_gnunet_fs_rec_data.conf \
- test_gnunet_fs_rec_data.tgz \
- test_gnunet_fs_psd.py.in \
- test_gnunet_fs_rec.py.in \
- test_gnunet_fs_idx.py.in \
- test_gnunet_service_fs_migration_data.conf \
- test_gnunet_service_fs_p2p_cadet.conf \
- test_pseudonym_data.conf
- CLEANFILES = $(check_SCRIPTS)
|