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_pe.c gnunet-service-fs_pe.h \
194 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
195 gnunet-service-fs_push.c gnunet-service-fs_push.h \
196 gnunet-service-fs_put.c gnunet-service-fs_put.h \
197 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
198 gnunet-service-fs_cadet_server.c
199 gnunet_service_fs_LDADD = \
201 $(top_builddir)/src/dht/libgnunetdht.la \
202 $(top_builddir)/src/block/libgnunetblock.la \
203 $(top_builddir)/src/datastore/libgnunetdatastore.la \
204 $(top_builddir)/src/statistics/libgnunetstatistics.la \
205 $(top_builddir)/src/cadet/libgnunetcadet.la \
206 $(top_builddir)/src/ats/libgnunetats.la \
207 $(top_builddir)/src/core/libgnunetcore.la \
208 $(top_builddir)/src/util/libgnunetutil.la \
209 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
212 gnunet_unindex_SOURCES = \
214 gnunet_unindex_LDADD = \
216 $(top_builddir)/src/util/libgnunetutil.la \
219 libgnunet_plugin_block_fs_la_SOURCES = \
221 libgnunet_plugin_block_fs_la_LIBADD = \
222 $(top_builddir)/src/block/libgnunetblock.la \
224 $(top_builddir)/src/util/libgnunetutil.la \
226 libgnunet_plugin_block_fs_la_LDFLAGS = \
231 perf_gnunet_service_fs_p2p \
232 perf_gnunet_service_fs_p2p_dht \
233 perf_gnunet_service_fs_p2p_index \
234 perf_gnunet_service_fs_p2p_respect
239 test_plugin_block_fs \
242 test_fs_download_cadet \
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 \
251 test_fs_publish_persistence \
253 test_fs_search_with_and \
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_cadet \
267 test_plugin_block_fs_SOURCES = \
268 test_plugin_block_fs.c
269 test_plugin_block_fs_LDADD = \
270 $(top_builddir)/src/block/libgnunetblock.la \
271 $(top_builddir)/src/util/libgnunetutil.la
275 test_gnunet_fs_rec.py \
276 test_gnunet_fs_idx.py
280 test_gnunet_fs_psd.py
285 MONKEY = @MONKEYPREFIX@
286 AM_LDFLAGS = -no-install
291 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; $(MONKEY)
295 test_fs_download_indexed \
296 test_fs_download_persistence \
297 test_fs_file_information \
298 test_fs_list_indexed \
300 test_fs_namespace_list_updateable \
302 test_fs_publish_persistence \
304 test_fs_search_with_and \
305 test_fs_search_probes \
306 test_fs_search_persistence \
309 test_fs_unindex_persistence \
312 test_gnunet_service_fs_migration \
313 test_gnunet_service_fs_p2p \
314 test_gnunet_service_fs_p2p_cadet \
315 perf_gnunet_service_fs_p2p \
316 perf_gnunet_service_fs_p2p_index \
317 perf_gnunet_service_fs_p2p_respect \
322 test_fs_directory_SOURCES = \
324 test_fs_directory_LDADD = \
326 $(top_builddir)/src/util/libgnunetutil.la
329 test_fs_directory_LDADD += \
334 test_fs_download_SOURCES = \
336 test_fs_download_LDADD = \
337 $(top_builddir)/src/testing/libgnunettesting.la \
339 $(top_builddir)/src/util/libgnunetutil.la
341 test_fs_download_indexed_SOURCES = \
343 test_fs_download_indexed_LDADD = \
344 $(top_builddir)/src/testing/libgnunettesting.la \
346 $(top_builddir)/src/util/libgnunetutil.la
348 test_fs_download_cadet_SOURCES = \
350 test_fs_download_cadet_LDADD = \
351 $(top_builddir)/src/testing/libgnunettesting.la \
353 $(top_builddir)/src/util/libgnunetutil.la
355 test_fs_download_persistence_SOURCES = \
356 test_fs_download_persistence.c
357 test_fs_download_persistence_LDADD = \
358 $(top_builddir)/src/testing/libgnunettesting.la \
360 $(top_builddir)/src/util/libgnunetutil.la
362 test_fs_file_information_SOURCES = \
363 test_fs_file_information.c
364 test_fs_file_information_LDADD = \
366 $(top_builddir)/src/util/libgnunetutil.la
369 test_fs_file_information_LDADD += \
374 test_fs_getopt_SOURCES = \
376 test_fs_getopt_LDADD = \
378 $(top_builddir)/src/util/libgnunetutil.la
380 test_fs_list_indexed_SOURCES = \
381 test_fs_list_indexed.c
382 test_fs_list_indexed_LDADD = \
383 $(top_builddir)/src/testing/libgnunettesting.la \
385 $(top_builddir)/src/util/libgnunetutil.la
387 test_fs_namespace_SOURCES = \
389 test_fs_namespace_LDADD = \
390 $(top_builddir)/src/testing/libgnunettesting.la \
392 $(top_builddir)/src/util/libgnunetutil.la
394 test_fs_namespace_list_updateable_SOURCES = \
395 test_fs_namespace_list_updateable.c
396 test_fs_namespace_list_updateable_LDADD = \
397 $(top_builddir)/src/testing/libgnunettesting.la \
399 $(top_builddir)/src/util/libgnunetutil.la
401 test_fs_publish_SOURCES = \
403 test_fs_publish_LDADD = \
404 $(top_builddir)/src/testing/libgnunettesting.la \
406 $(top_builddir)/src/util/libgnunetutil.la
408 test_fs_publish_persistence_SOURCES = \
409 test_fs_publish_persistence.c
410 test_fs_publish_persistence_LDADD = \
411 $(top_builddir)/src/testing/libgnunettesting.la \
413 $(top_builddir)/src/util/libgnunetutil.la
415 test_fs_search_SOURCES = \
417 test_fs_search_LDADD = \
418 $(top_builddir)/src/testing/libgnunettesting.la \
420 $(top_builddir)/src/util/libgnunetutil.la
422 test_fs_search_with_and_SOURCES = \
423 test_fs_search_with_and.c
424 test_fs_search_with_and_LDADD = \
425 $(top_builddir)/src/testing/libgnunettesting.la \
427 $(top_builddir)/src/util/libgnunetutil.la
429 test_fs_search_probes_SOURCES = \
430 test_fs_search_probes.c
431 test_fs_search_probes_LDADD = \
432 $(top_builddir)/src/testing/libgnunettesting.la \
434 $(top_builddir)/src/util/libgnunetutil.la
436 test_fs_search_persistence_SOURCES = \
437 test_fs_search_persistence.c
438 test_fs_search_persistence_LDADD = \
439 $(top_builddir)/src/testing/libgnunettesting.la \
441 $(top_builddir)/src/util/libgnunetutil.la
443 test_fs_start_stop_SOURCES = \
445 test_fs_start_stop_LDADD = \
446 $(top_builddir)/src/testing/libgnunettesting.la \
448 $(top_builddir)/src/util/libgnunetutil.la
450 test_fs_unindex_SOURCES = \
452 test_fs_unindex_LDADD = \
453 $(top_builddir)/src/testing/libgnunettesting.la \
455 $(top_builddir)/src/util/libgnunetutil.la
457 test_fs_unindex_persistence_SOURCES = \
458 test_fs_unindex_persistence.c
459 test_fs_unindex_persistence_LDADD = \
460 $(top_builddir)/src/testing/libgnunettesting.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 test_fs_uri_SOURCES = \
466 test_fs_uri_LDADD = \
468 $(top_builddir)/src/util/libgnunetutil.la
470 test_fs_test_lib_SOURCES = \
472 test_fs_test_lib_LDADD = \
474 $(top_builddir)/src/testbed/libgnunettestbed.la \
476 $(top_builddir)/src/util/libgnunetutil.la
478 test_gnunet_service_fs_p2p_SOURCES = \
479 test_gnunet_service_fs_p2p.c
480 test_gnunet_service_fs_p2p_LDADD = \
482 $(top_builddir)/src/testbed/libgnunettestbed.la \
484 $(top_builddir)/src/util/libgnunetutil.la
486 test_gnunet_service_fs_p2p_cadet_SOURCES = \
487 test_gnunet_service_fs_p2p.c
488 test_gnunet_service_fs_p2p_cadet_LDADD = \
490 $(top_builddir)/src/testbed/libgnunettestbed.la \
492 $(top_builddir)/src/util/libgnunetutil.la
494 test_gnunet_service_fs_migration_SOURCES = \
495 test_gnunet_service_fs_migration.c
496 test_gnunet_service_fs_migration_LDADD = \
498 $(top_builddir)/src/testbed/libgnunettestbed.la \
500 $(top_builddir)/src/util/libgnunetutil.la
502 perf_gnunet_service_fs_p2p_SOURCES = \
503 perf_gnunet_service_fs_p2p.c
504 perf_gnunet_service_fs_p2p_LDADD = \
506 $(top_builddir)/src/statistics/libgnunetstatistics.la \
507 $(top_builddir)/src/testbed/libgnunettestbed.la \
509 $(top_builddir)/src/util/libgnunetutil.la
511 perf_gnunet_service_fs_p2p_index_SOURCES = \
512 perf_gnunet_service_fs_p2p.c
513 perf_gnunet_service_fs_p2p_index_LDADD = \
515 $(top_builddir)/src/statistics/libgnunetstatistics.la \
516 $(top_builddir)/src/testbed/libgnunettestbed.la \
518 $(top_builddir)/src/util/libgnunetutil.la
520 perf_gnunet_service_fs_p2p_dht_SOURCES = \
521 perf_gnunet_service_fs_p2p.c
522 perf_gnunet_service_fs_p2p_dht_LDADD = \
524 $(top_builddir)/src/statistics/libgnunetstatistics.la \
525 $(top_builddir)/src/testbed/libgnunettestbed.la \
527 $(top_builddir)/src/util/libgnunetutil.la
529 perf_gnunet_service_fs_p2p_respect_SOURCES = \
530 perf_gnunet_service_fs_p2p_respect.c
531 perf_gnunet_service_fs_p2p_respect_LDADD = \
533 $(top_builddir)/src/statistics/libgnunetstatistics.la \
534 $(top_builddir)/src/testbed/libgnunettestbed.la \
536 $(top_builddir)/src/util/libgnunetutil.la
539 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
541 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
542 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
543 chmod +x test_gnunet_fs_psd.py
545 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
546 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
547 chmod +x test_gnunet_fs_rec.py
549 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
550 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
551 chmod +x test_gnunet_fs_ns.py
553 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
554 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
555 chmod +x test_gnunet_fs_idx.py
559 fs_test_lib_data.conf \
560 perf_gnunet_service_fs_p2p.conf \
562 test_fs_defaults.conf \
563 test_fs_download_data.conf \
564 test_fs_download_indexed.conf \
565 test_fs_file_information_data.conf \
566 test_fs_list_indexed_data.conf \
567 test_fs_namespace_data.conf \
568 test_fs_publish_data.conf \
569 test_fs_search_data.conf \
570 test_fs_unindex_data.conf \
571 test_gnunet_fs_idx_data.conf \
572 test_gnunet_fs_psd_data.conf \
573 test_gnunet_fs_rec_data.conf \
574 test_gnunet_fs_rec_data.tgz \
575 test_gnunet_fs_psd.py.in \
576 test_gnunet_fs_rec.py.in \
577 test_gnunet_fs_idx.py.in \
578 test_gnunet_service_fs_migration_data.conf \
579 test_gnunet_service_fs_p2p_cadet.conf \
580 test_pseudonym_data.conf \
583 CLEANFILES = $(check_SCRIPTS)