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
94 noinst_SCRIPTS = gnunet-download-manager.scm
96 gnunet_directory_SOURCES = \
98 gnunet_directory_LDADD = \
100 $(top_builddir)/src/util/libgnunetutil.la \
104 gnunet_directory_LDADD += \
108 gnunet_fs_profiler_SOURCES = \
110 gnunet_fs_profiler_LDADD = \
111 $(top_builddir)/src/testbed/libgnunettestbed.la \
112 $(top_builddir)/src/util/libgnunetutil.la \
115 gnunet_fs_SOURCES = \
119 $(top_builddir)/src/util/libgnunetutil.la \
127 gnunet_download_SOURCES = \
129 gnunet_download_LDADD = \
131 $(top_builddir)/src/util/libgnunetutil.la \
134 gnunet_publish_SOURCES = \
136 gnunet_publish_LDADD = \
137 $(top_builddir)/src/identity/libgnunetidentity.la \
139 $(top_builddir)/src/util/libgnunetutil.la \
143 gnunet_publish_LDADD += \
147 gnunet_auto_share_SOURCES = \
149 gnunet_auto_share_LDADD = \
150 $(top_builddir)/src/util/libgnunetutil.la \
154 gnunet_auto_share_LDADD += \
158 gnunet_helper_fs_publish_SOURCES = \
159 gnunet-helper-fs-publish.c
160 gnunet_helper_fs_publish_LDADD = \
161 $(top_builddir)/src/util/libgnunetutil.la \
165 gnunet_helper_fs_publish_LDADD += \
169 gnunet_search_SOURCES = \
171 gnunet_search_LDADD = \
173 $(top_builddir)/src/util/libgnunetutil.la \
177 gnunet_search_LDADD += \
182 gnunet_daemon_fsprofiler_SOURCES = \
183 gnunet-daemon-fsprofiler.c
184 gnunet_daemon_fsprofiler_LDADD = \
186 $(top_builddir)/src/statistics/libgnunetstatistics.la \
187 $(top_builddir)/src/util/libgnunetutil.la \
190 gnunet_service_fs_SOURCES = \
191 gnunet-service-fs.c gnunet-service-fs.h \
192 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
193 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.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/libgnunetblockgroup.la \
224 $(top_builddir)/src/block/libgnunetblock.la \
226 $(top_builddir)/src/util/libgnunetutil.la \
228 libgnunet_plugin_block_fs_la_LDFLAGS = \
233 perf_gnunet_service_fs_p2p \
234 perf_gnunet_service_fs_p2p_dht \
235 perf_gnunet_service_fs_p2p_index \
236 perf_gnunet_service_fs_p2p_respect
241 test_plugin_block_fs \
244 test_fs_download_cadet \
245 test_fs_download_indexed \
246 test_fs_download_persistence \
247 test_fs_file_information \
249 test_fs_list_indexed \
251 test_fs_namespace_list_updateable \
253 test_fs_publish_persistence \
255 test_fs_search_with_and \
256 test_fs_search_probes \
257 test_fs_search_persistence \
261 test_fs_unindex_persistence \
263 test_gnunet_service_fs_migration \
264 test_gnunet_service_fs_p2p \
265 test_gnunet_service_fs_p2p_cadet \
269 test_plugin_block_fs_SOURCES = \
270 test_plugin_block_fs.c
271 test_plugin_block_fs_LDADD = \
272 $(top_builddir)/src/block/libgnunetblock.la \
273 $(top_builddir)/src/util/libgnunetutil.la
277 test_gnunet_fs_rec.py \
278 test_gnunet_fs_idx.py
282 test_gnunet_fs_psd.py
288 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)
292 test_fs_download_indexed \
293 test_fs_download_persistence \
294 test_fs_file_information \
295 test_fs_list_indexed \
297 test_fs_namespace_list_updateable \
299 test_fs_publish_persistence \
301 test_fs_search_with_and \
302 test_fs_search_probes \
303 test_fs_search_persistence \
306 test_fs_unindex_persistence \
309 test_gnunet_service_fs_migration \
310 test_gnunet_service_fs_p2p \
311 test_gnunet_service_fs_p2p_cadet \
312 perf_gnunet_service_fs_p2p \
313 perf_gnunet_service_fs_p2p_index \
314 perf_gnunet_service_fs_p2p_respect \
319 test_fs_directory_SOURCES = \
321 test_fs_directory_LDADD = \
323 $(top_builddir)/src/util/libgnunetutil.la
326 test_fs_directory_LDADD += \
331 test_fs_download_SOURCES = \
333 test_fs_download_LDADD = \
334 $(top_builddir)/src/testing/libgnunettesting.la \
336 $(top_builddir)/src/util/libgnunetutil.la
338 test_fs_download_indexed_SOURCES = \
340 test_fs_download_indexed_LDADD = \
341 $(top_builddir)/src/testing/libgnunettesting.la \
343 $(top_builddir)/src/util/libgnunetutil.la
345 test_fs_download_cadet_SOURCES = \
347 test_fs_download_cadet_LDADD = \
348 $(top_builddir)/src/testing/libgnunettesting.la \
350 $(top_builddir)/src/util/libgnunetutil.la
352 test_fs_download_persistence_SOURCES = \
353 test_fs_download_persistence.c
354 test_fs_download_persistence_LDADD = \
355 $(top_builddir)/src/testing/libgnunettesting.la \
357 $(top_builddir)/src/util/libgnunetutil.la
359 test_fs_file_information_SOURCES = \
360 test_fs_file_information.c
361 test_fs_file_information_LDADD = \
363 $(top_builddir)/src/util/libgnunetutil.la
366 test_fs_file_information_LDADD += \
371 test_fs_getopt_SOURCES = \
373 test_fs_getopt_LDADD = \
375 $(top_builddir)/src/util/libgnunetutil.la
377 test_fs_list_indexed_SOURCES = \
378 test_fs_list_indexed.c
379 test_fs_list_indexed_LDADD = \
380 $(top_builddir)/src/testing/libgnunettesting.la \
382 $(top_builddir)/src/util/libgnunetutil.la
384 test_fs_namespace_SOURCES = \
386 test_fs_namespace_LDADD = \
387 $(top_builddir)/src/testing/libgnunettesting.la \
389 $(top_builddir)/src/util/libgnunetutil.la
391 test_fs_namespace_list_updateable_SOURCES = \
392 test_fs_namespace_list_updateable.c
393 test_fs_namespace_list_updateable_LDADD = \
394 $(top_builddir)/src/testing/libgnunettesting.la \
396 $(top_builddir)/src/util/libgnunetutil.la
398 test_fs_publish_SOURCES = \
400 test_fs_publish_LDADD = \
401 $(top_builddir)/src/testing/libgnunettesting.la \
403 $(top_builddir)/src/util/libgnunetutil.la
405 test_fs_publish_persistence_SOURCES = \
406 test_fs_publish_persistence.c
407 test_fs_publish_persistence_LDADD = \
408 $(top_builddir)/src/testing/libgnunettesting.la \
410 $(top_builddir)/src/util/libgnunetutil.la
412 test_fs_search_SOURCES = \
414 test_fs_search_LDADD = \
415 $(top_builddir)/src/testing/libgnunettesting.la \
417 $(top_builddir)/src/util/libgnunetutil.la
419 test_fs_search_with_and_SOURCES = \
420 test_fs_search_with_and.c
421 test_fs_search_with_and_LDADD = \
422 $(top_builddir)/src/testing/libgnunettesting.la \
424 $(top_builddir)/src/util/libgnunetutil.la
426 test_fs_search_probes_SOURCES = \
427 test_fs_search_probes.c
428 test_fs_search_probes_LDADD = \
429 $(top_builddir)/src/testing/libgnunettesting.la \
431 $(top_builddir)/src/util/libgnunetutil.la
433 test_fs_search_persistence_SOURCES = \
434 test_fs_search_persistence.c
435 test_fs_search_persistence_LDADD = \
436 $(top_builddir)/src/testing/libgnunettesting.la \
438 $(top_builddir)/src/util/libgnunetutil.la
440 test_fs_start_stop_SOURCES = \
442 test_fs_start_stop_LDADD = \
443 $(top_builddir)/src/testing/libgnunettesting.la \
445 $(top_builddir)/src/util/libgnunetutil.la
447 test_fs_unindex_SOURCES = \
449 test_fs_unindex_LDADD = \
450 $(top_builddir)/src/testing/libgnunettesting.la \
452 $(top_builddir)/src/util/libgnunetutil.la
454 test_fs_unindex_persistence_SOURCES = \
455 test_fs_unindex_persistence.c
456 test_fs_unindex_persistence_LDADD = \
457 $(top_builddir)/src/testing/libgnunettesting.la \
459 $(top_builddir)/src/util/libgnunetutil.la
461 test_fs_uri_SOURCES = \
463 test_fs_uri_LDADD = \
465 $(top_builddir)/src/util/libgnunetutil.la
467 test_fs_test_lib_SOURCES = \
469 test_fs_test_lib_LDADD = \
471 $(top_builddir)/src/testbed/libgnunettestbed.la \
473 $(top_builddir)/src/util/libgnunetutil.la
475 test_gnunet_service_fs_p2p_SOURCES = \
476 test_gnunet_service_fs_p2p.c
477 test_gnunet_service_fs_p2p_LDADD = \
479 $(top_builddir)/src/testbed/libgnunettestbed.la \
481 $(top_builddir)/src/util/libgnunetutil.la
483 test_gnunet_service_fs_p2p_cadet_SOURCES = \
484 test_gnunet_service_fs_p2p.c
485 test_gnunet_service_fs_p2p_cadet_LDADD = \
487 $(top_builddir)/src/testbed/libgnunettestbed.la \
489 $(top_builddir)/src/util/libgnunetutil.la
491 test_gnunet_service_fs_migration_SOURCES = \
492 test_gnunet_service_fs_migration.c
493 test_gnunet_service_fs_migration_LDADD = \
495 $(top_builddir)/src/testbed/libgnunettestbed.la \
497 $(top_builddir)/src/util/libgnunetutil.la
499 perf_gnunet_service_fs_p2p_SOURCES = \
500 perf_gnunet_service_fs_p2p.c
501 perf_gnunet_service_fs_p2p_LDADD = \
503 $(top_builddir)/src/statistics/libgnunetstatistics.la \
504 $(top_builddir)/src/testbed/libgnunettestbed.la \
506 $(top_builddir)/src/util/libgnunetutil.la
508 perf_gnunet_service_fs_p2p_index_SOURCES = \
509 perf_gnunet_service_fs_p2p.c
510 perf_gnunet_service_fs_p2p_index_LDADD = \
512 $(top_builddir)/src/statistics/libgnunetstatistics.la \
513 $(top_builddir)/src/testbed/libgnunettestbed.la \
515 $(top_builddir)/src/util/libgnunetutil.la
517 perf_gnunet_service_fs_p2p_dht_SOURCES = \
518 perf_gnunet_service_fs_p2p.c
519 perf_gnunet_service_fs_p2p_dht_LDADD = \
521 $(top_builddir)/src/statistics/libgnunetstatistics.la \
522 $(top_builddir)/src/testbed/libgnunettestbed.la \
524 $(top_builddir)/src/util/libgnunetutil.la
526 perf_gnunet_service_fs_p2p_respect_SOURCES = \
527 perf_gnunet_service_fs_p2p_respect.c
528 perf_gnunet_service_fs_p2p_respect_LDADD = \
530 $(top_builddir)/src/statistics/libgnunetstatistics.la \
531 $(top_builddir)/src/testbed/libgnunettestbed.la \
533 $(top_builddir)/src/util/libgnunetutil.la
536 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
538 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
539 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
540 chmod +x test_gnunet_fs_psd.py
542 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
543 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
544 chmod +x test_gnunet_fs_rec.py
546 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
547 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
548 chmod +x test_gnunet_fs_ns.py
550 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
551 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
552 chmod +x test_gnunet_fs_idx.py
556 fs_test_lib_data.conf \
557 perf_gnunet_service_fs_p2p.conf \
559 test_fs_defaults.conf \
560 test_fs_download_data.conf \
561 test_fs_download_indexed.conf \
562 test_fs_file_information_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_gnunet_fs_idx_data.conf \
569 test_gnunet_fs_psd_data.conf \
570 test_gnunet_fs_rec_data.conf \
571 test_gnunet_fs_rec_data.tgz \
572 test_gnunet_fs_psd.py.in \
573 test_gnunet_fs_rec.py.in \
574 test_gnunet_fs_idx.py.in \
575 test_gnunet_service_fs_migration_data.conf \
576 test_gnunet_service_fs_p2p_cadet.conf \
577 test_pseudonym_data.conf \
580 CLEANFILES = $(check_SCRIPTS)