1 AM_CPPFLAGS = -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
28 noinst_LIBRARIES = libgnunetfstest.a
31 libgnunetfs_la_SOURCES = \
32 fs_api.c fs_api.h fs.h \
36 fs_file_information.c \
41 fs_publish_ublock.c fs_publish_ublock.h \
50 libgnunetfs_la_LIBADD = \
51 $(top_builddir)/src/datastore/libgnunetdatastore.la \
52 $(top_builddir)/src/util/libgnunetutil.la \
53 $(GN_LIBINTL) $(XLIB) $(LIBGCRYPT_LIBS) -lunistring -lextractor
55 libgnunetfs_la_LDFLAGS = \
56 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
60 libgnunetfstest_a_SOURCES = \
61 fs_test_lib.c fs_test_lib.h
63 libgnunetfstest_a_LIBADD = \
64 $(top_builddir)/src/testing/libgnunettesting.la \
65 $(top_builddir)/src/testbed/libgnunettestbed.la
68 gnunet-helper-fs-publish \
74 gnunet-daemon-fsprofiler
87 gnunet-download-manager.scm
89 gnunet_directory_SOURCES = \
91 gnunet_directory_LDADD = \
92 $(top_builddir)/src/fs/libgnunetfs.la \
93 $(top_builddir)/src/util/libgnunetutil.la \
96 gnunet_directory_DEPENDENCIES = \
97 $(top_builddir)/src/fs/libgnunetfs.la \
98 $(top_builddir)/src/util/libgnunetutil.la
100 gnunet_fs_profiler_SOURCES = \
102 gnunet_fs_profiler_LDADD = \
103 $(top_builddir)/src/testbed/libgnunettestbed.la \
104 $(top_builddir)/src/util/libgnunetutil.la \
106 gnunet_fs_profiler_DEPENDENCIES = \
107 $(top_builddir)/src/testbed/libgnunettestbed.la \
108 $(top_builddir)/src/util/libgnunetutil.la
110 gnunet_fs_SOURCES = \
113 $(top_builddir)/src/fs/libgnunetfs.la \
114 $(top_builddir)/src/util/libgnunetutil.la \
117 gnunet_fs_DEPENDENCIES = \
120 gnunet_download_SOURCES = \
122 gnunet_download_LDADD = \
123 $(top_builddir)/src/fs/libgnunetfs.la \
124 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_download_DEPENDENCIES = \
127 $(top_builddir)/src/fs/libgnunetfs.la \
128 $(top_builddir)/src/util/libgnunetutil.la
130 gnunet_publish_SOURCES = \
132 gnunet_publish_LDADD = \
133 $(top_builddir)/src/identity/libgnunetidentity.la \
134 $(top_builddir)/src/fs/libgnunetfs.la \
135 $(top_builddir)/src/util/libgnunetutil.la \
138 gnunet_publish_DEPENDENCIES = \
139 $(top_builddir)/src/fs/libgnunetfs.la \
140 $(top_builddir)/src/util/libgnunetutil.la
142 gnunet_auto_share_SOURCES = \
144 gnunet_auto_share_LDADD = \
145 $(top_builddir)/src/util/libgnunetutil.la \
148 gnunet_auto_share_DEPENDENCIES = \
149 $(top_builddir)/src/util/libgnunetutil.la
151 gnunet_helper_fs_publish_SOURCES = \
152 gnunet-helper-fs-publish.c
153 gnunet_helper_fs_publish_LDADD = \
154 $(top_builddir)/src/util/libgnunetutil.la \
157 gnunet_helper_fs_publish_DEPENDENCIES = \
158 $(top_builddir)/src/util/libgnunetutil.la
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 = \
168 $(top_builddir)/src/fs/libgnunetfs.la \
169 $(top_builddir)/src/util/libgnunetutil.la
172 gnunet_daemon_fsprofiler_SOURCES = \
173 gnunet-daemon-fsprofiler.c
174 gnunet_daemon_fsprofiler_LDADD = \
175 $(top_builddir)/src/fs/libgnunetfs.la \
176 $(top_builddir)/src/statistics/libgnunetstatistics.la \
177 $(top_builddir)/src/util/libgnunetutil.la \
179 gnunet_daemon_fsprofiler_DEPENDENCIES = \
180 $(top_builddir)/src/fs/libgnunetfs.la \
181 $(top_builddir)/src/statistics/libgnunetstatistics.la \
182 $(top_builddir)/src/util/libgnunetutil.la
184 gnunet_service_fs_SOURCES = \
185 gnunet-service-fs.c gnunet-service-fs.h \
186 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
187 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
188 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
189 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
190 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
191 gnunet-service-fs_push.c gnunet-service-fs_push.h \
192 gnunet-service-fs_put.c gnunet-service-fs_put.h \
193 gnunet-service-fs_cadet_client.c gnunet-service-fs_cadet.h \
194 gnunet-service-fs_cadet_server.c
195 gnunet_service_fs_LDADD = \
196 $(top_builddir)/src/fs/libgnunetfs.la \
197 $(top_builddir)/src/dht/libgnunetdht.la \
198 $(top_builddir)/src/block/libgnunetblock.la \
199 $(top_builddir)/src/datastore/libgnunetdatastore.la \
200 $(top_builddir)/src/statistics/libgnunetstatistics.la \
201 $(top_builddir)/src/cadet/libgnunetcadet.la \
202 $(top_builddir)/src/ats/libgnunetats.la \
203 $(top_builddir)/src/core/libgnunetcore.la \
204 $(top_builddir)/src/util/libgnunetutil.la \
205 $(top_builddir)/src/peerstore/libgnunetpeerstore.la \
207 gnunet_service_fs_DEPENDENCIES = \
208 $(top_builddir)/src/fs/libgnunetfs.la \
209 $(top_builddir)/src/dht/libgnunetdht.la \
210 $(top_builddir)/src/block/libgnunetblock.la \
211 $(top_builddir)/src/datastore/libgnunetdatastore.la \
212 $(top_builddir)/src/statistics/libgnunetstatistics.la \
213 $(top_builddir)/src/cadet/libgnunetcadet.la \
214 $(top_builddir)/src/ats/libgnunetats.la \
215 $(top_builddir)/src/core/libgnunetcore.la \
216 $(top_builddir)/src/util/libgnunetutil.la \
217 $(top_builddir)/src/peerstore/libgnunetpeerstore.la
219 gnunet_unindex_SOURCES = \
221 gnunet_unindex_LDADD = \
222 $(top_builddir)/src/fs/libgnunetfs.la \
223 $(top_builddir)/src/util/libgnunetutil.la \
225 gnunet_unindex_DEPENDENCIES = \
226 $(top_builddir)/src/fs/libgnunetfs.la \
227 $(top_builddir)/src/util/libgnunetutil.la
229 libgnunet_plugin_block_fs_la_SOURCES = \
231 libgnunet_plugin_block_fs_la_LIBADD = \
232 $(top_builddir)/src/block/libgnunetblock.la \
233 $(top_builddir)/src/fs/libgnunetfs.la \
234 $(top_builddir)/src/util/libgnunetutil.la \
236 libgnunet_plugin_block_fs_la_LDFLAGS = \
238 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
239 $(top_builddir)/src/block/libgnunetblock.la \
240 $(top_builddir)/src/fs/libgnunetfs.la \
241 $(top_builddir)/src/util/libgnunetutil.la
245 perf_gnunet_service_fs_p2p \
246 perf_gnunet_service_fs_p2p_dht \
247 perf_gnunet_service_fs_p2p_index \
248 perf_gnunet_service_fs_p2p_respect
253 test_plugin_block_fs \
256 test_fs_download_cadet \
257 test_fs_download_indexed \
258 test_fs_download_persistence \
259 test_fs_file_information \
261 test_fs_list_indexed \
263 test_fs_namespace_list_updateable \
265 test_fs_publish_persistence \
267 test_fs_search_with_and \
268 test_fs_search_probes \
269 test_fs_search_persistence \
273 test_fs_unindex_persistence \
275 test_gnunet_service_fs_migration \
276 test_gnunet_service_fs_p2p \
277 test_gnunet_service_fs_p2p_cadet \
281 test_plugin_block_fs_SOURCES = \
282 test_plugin_block_fs.c
283 test_plugin_block_fs_LDADD = \
284 $(top_builddir)/src/block/libgnunetblock.la \
285 $(top_builddir)/src/util/libgnunetutil.la
289 test_gnunet_fs_psd.py \
290 test_gnunet_fs_rec.py \
291 test_gnunet_fs_idx.py
295 MONKEY = @MONKEYPREFIX@
296 AM_LDFLAGS = -no-install
301 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH; $(MONKEY)
305 test_fs_download_indexed \
306 test_fs_download_persistence \
307 test_fs_file_information \
308 test_fs_list_indexed \
310 test_fs_namespace_list_updateable \
312 test_fs_publish_persistence \
314 test_fs_search_with_and \
315 test_fs_search_probes \
316 test_fs_search_persistence \
319 test_fs_unindex_persistence \
322 test_gnunet_service_fs_migration \
323 test_gnunet_service_fs_p2p \
324 test_gnunet_service_fs_p2p_cadet \
325 perf_gnunet_service_fs_p2p \
326 perf_gnunet_service_fs_p2p_index \
327 perf_gnunet_service_fs_p2p_respect \
332 test_fs_directory_SOURCES = \
334 test_fs_directory_LDADD = \
336 $(top_builddir)/src/fs/libgnunetfs.la \
337 $(top_builddir)/src/util/libgnunetutil.la
339 test_fs_download_SOURCES = \
341 test_fs_download_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_indexed_SOURCES = \
348 test_fs_download_indexed_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_cadet_SOURCES = \
355 test_fs_download_cadet_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_download_persistence_SOURCES = \
361 test_fs_download_persistence.c
362 test_fs_download_persistence_LDADD = \
363 $(top_builddir)/src/testing/libgnunettesting.la \
364 $(top_builddir)/src/fs/libgnunetfs.la \
365 $(top_builddir)/src/util/libgnunetutil.la
367 test_fs_file_information_SOURCES = \
368 test_fs_file_information.c
369 test_fs_file_information_LDADD = \
371 $(top_builddir)/src/fs/libgnunetfs.la \
372 $(top_builddir)/src/util/libgnunetutil.la
374 test_fs_getopt_SOURCES = \
376 test_fs_getopt_LDADD = \
377 $(top_builddir)/src/fs/libgnunetfs.la \
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 \
384 $(top_builddir)/src/fs/libgnunetfs.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 \
391 $(top_builddir)/src/fs/libgnunetfs.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 \
398 $(top_builddir)/src/fs/libgnunetfs.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 \
405 $(top_builddir)/src/fs/libgnunetfs.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 \
412 $(top_builddir)/src/fs/libgnunetfs.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 \
419 $(top_builddir)/src/fs/libgnunetfs.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 \
426 $(top_builddir)/src/fs/libgnunetfs.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 \
433 $(top_builddir)/src/fs/libgnunetfs.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 \
440 $(top_builddir)/src/fs/libgnunetfs.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 \
447 $(top_builddir)/src/fs/libgnunetfs.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 \
454 $(top_builddir)/src/fs/libgnunetfs.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 \
461 $(top_builddir)/src/fs/libgnunetfs.la \
462 $(top_builddir)/src/util/libgnunetutil.la
464 test_fs_uri_SOURCES = \
466 test_fs_uri_LDADD = \
467 $(top_builddir)/src/fs/libgnunetfs.la \
468 $(top_builddir)/src/util/libgnunetutil.la
470 test_fs_test_lib_SOURCES = \
472 test_fs_test_lib_LDADD = \
473 $(top_builddir)/src/fs/libgnunetfstest.a \
474 $(top_builddir)/src/testbed/libgnunettestbed.la \
475 $(top_builddir)/src/fs/libgnunetfs.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 = \
481 $(top_builddir)/src/fs/libgnunetfstest.a \
482 $(top_builddir)/src/testbed/libgnunettestbed.la \
483 $(top_builddir)/src/fs/libgnunetfs.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 = \
489 $(top_builddir)/src/fs/libgnunetfstest.a \
490 $(top_builddir)/src/testbed/libgnunettestbed.la \
491 $(top_builddir)/src/fs/libgnunetfs.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 = \
497 $(top_builddir)/src/fs/libgnunetfstest.a \
498 $(top_builddir)/src/testbed/libgnunettestbed.la \
499 $(top_builddir)/src/fs/libgnunetfs.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 = \
505 $(top_builddir)/src/fs/libgnunetfstest.a \
506 $(top_builddir)/src/statistics/libgnunetstatistics.la \
507 $(top_builddir)/src/testbed/libgnunettestbed.la \
508 $(top_builddir)/src/fs/libgnunetfs.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 = \
514 $(top_builddir)/src/fs/libgnunetfstest.a \
515 $(top_builddir)/src/statistics/libgnunetstatistics.la \
516 $(top_builddir)/src/testbed/libgnunettestbed.la \
517 $(top_builddir)/src/fs/libgnunetfs.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 = \
523 $(top_builddir)/src/fs/libgnunetfstest.a \
524 $(top_builddir)/src/statistics/libgnunetstatistics.la \
525 $(top_builddir)/src/testbed/libgnunettestbed.la \
526 $(top_builddir)/src/fs/libgnunetfs.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 = \
532 $(top_builddir)/src/fs/libgnunetfstest.a \
533 $(top_builddir)/src/statistics/libgnunetstatistics.la \
534 $(top_builddir)/src/testbed/libgnunettestbed.la \
535 $(top_builddir)/src/fs/libgnunetfs.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 test_fs_defaults.conf \
560 fs_test_lib_data.conf \
562 test_fs_download_data.conf \
563 test_fs_download_indexed.conf \
564 test_fs_download_cadet.conf \
565 test_fs_file_information_data.conf \
566 fs_test_lib_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_fs_uri_data.conf \
573 test_gnunet_service_fs_migration_data.conf \
574 test_gnunet_service_fs_p2p_cadet.conf \
575 test_gnunet_fs_idx_data.conf \
576 test_gnunet_fs_psd_data.conf \
577 test_gnunet_fs_rec_data.conf \
578 perf_gnunet_service_fs_p2p.conf \
579 test_gnunet_fs_rec_data.tgz \
580 test_gnunet_fs_psd.py.in \
581 test_gnunet_fs_rec.py.in \
582 test_gnunet_fs_idx.py.in \
583 test_pseudonym_data.conf \
586 CLEANFILES = $(check_SCRIPTS)