1 INCLUDES = -I$(top_srcdir)/src/include
4 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
8 AM_CFLAGS = --coverage -O0
12 pkgcfgdir= $(pkgdatadir)/config.d/
17 plugindir = $(libdir)/gnunet
20 lib_LTLIBRARIES = libgnunetfs.la
22 plugin_LTLIBRARIES = \
23 libgnunet_plugin_block_fs.la
25 noinst_LIBRARIES = libgnunetfstest.a
27 libgnunetfs_la_SOURCES = \
28 fs_api.c fs_api.h fs.h \
32 fs_file_information.c \
39 fs_namespace_advertise.c \
46 libgnunetfs_la_LIBADD = \
47 $(top_builddir)/src/datastore/libgnunetdatastore.la \
48 $(top_builddir)/src/util/libgnunetutil.la \
49 $(GN_LIBINTL) $(XLIB) -lunistring -lextractor
51 libgnunetfs_la_LDFLAGS = \
52 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
56 libgnunetfstest_a_SOURCES = \
57 fs_test_lib.c fs_test_lib.h
59 libgnunetfstest_a_LIBADD = \
60 $(top_builddir)/src/testing_old/libgnunettesting_old.la
67 gnunet-helper-fs-publish \
75 gnunet-download-manager.scm
77 gnunet_directory_SOURCES = \
79 gnunet_directory_LDADD = \
80 $(top_builddir)/src/fs/libgnunetfs.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
84 gnunet_directory_DEPENDENCIES = \
90 $(top_builddir)/src/fs/libgnunetfs.la \
91 $(top_builddir)/src/util/libgnunetutil.la \
94 gnunet_fs_DEPENDENCIES = \
97 gnunet_download_SOURCES = \
99 gnunet_download_LDADD = \
100 $(top_builddir)/src/fs/libgnunetfs.la \
101 $(top_builddir)/src/util/libgnunetutil.la \
103 gnunet_download_DEPENDENCIES = \
106 gnunet_publish_SOURCES = \
108 gnunet_publish_LDADD = \
109 $(top_builddir)/src/fs/libgnunetfs.la \
110 $(top_builddir)/src/util/libgnunetutil.la \
113 gnunet_publish_DEPENDENCIES = \
116 gnunet_auto_share_SOURCES = \
118 gnunet_auto_share_LDADD = \
119 $(top_builddir)/src/util/libgnunetutil.la \
122 gnunet_auto_share_DEPENDENCIES = \
125 gnunet_helper_fs_publish_SOURCES = \
126 gnunet-helper-fs-publish.c
127 gnunet_helper_fs_publish_LDADD = \
128 $(top_builddir)/src/util/libgnunetutil.la \
131 gnunet_helper_fs_publish_DEPENDENCIES = \
134 gnunet_pseudonym_SOURCES = \
136 gnunet_pseudonym_LDADD = \
137 $(top_builddir)/src/fs/libgnunetfs.la \
138 $(top_builddir)/src/util/libgnunetutil.la \
141 gnunet_pseudonym_DEPENDENCIES = \
144 gnunet_search_SOURCES = \
146 gnunet_search_LDADD = \
147 $(top_builddir)/src/fs/libgnunetfs.la \
148 $(top_builddir)/src/util/libgnunetutil.la \
151 gnunet_search_DEPENDENCIES = \
154 gnunet_service_fs_SOURCES = \
155 gnunet-service-fs.c gnunet-service-fs.h \
156 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
157 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
158 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
159 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
160 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
161 gnunet-service-fs_push.c gnunet-service-fs_push.h \
162 gnunet-service-fs_put.c gnunet-service-fs_put.h
163 gnunet_service_fs_LDADD = \
164 $(top_builddir)/src/fs/libgnunetfs.la \
165 $(top_builddir)/src/dht/libgnunetdht.la \
166 $(top_builddir)/src/block/libgnunetblock.la \
167 $(top_builddir)/src/datastore/libgnunetdatastore.la \
168 $(top_builddir)/src/statistics/libgnunetstatistics.la \
169 $(top_builddir)/src/ats/libgnunetats.la \
170 $(top_builddir)/src/core/libgnunetcore.la \
171 $(top_builddir)/src/util/libgnunetutil.la \
173 gnunet_service_fs_DEPENDENCIES = \
176 gnunet_unindex_SOURCES = \
178 gnunet_unindex_LDADD = \
179 $(top_builddir)/src/fs/libgnunetfs.la \
180 $(top_builddir)/src/util/libgnunetutil.la \
182 gnunet_unindex_DEPENDENCIES = \
186 libgnunet_plugin_block_fs_la_SOURCES = \
188 libgnunet_plugin_block_fs_la_LIBADD = \
189 $(top_builddir)/src/block/libgnunetblock.la \
190 $(top_builddir)/src/util/libgnunetutil.la \
192 libgnunet_plugin_block_fs_la_LDFLAGS = \
194 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
195 $(top_builddir)/src/block/libgnunetblock.la
201 perf_gnunet_service_fs_p2p \
202 perf_gnunet_service_fs_p2p_dht \
203 perf_gnunet_service_fs_p2p_index \
204 perf_gnunet_service_fs_p2p_respect
208 test_plugin_block_fs \
211 test_fs_download_indexed \
212 test_fs_download_persistence \
213 test_fs_file_information \
215 test_fs_list_indexed \
217 test_fs_namespace_list_updateable \
219 test_fs_publish_persistence \
221 test_fs_search_probes \
222 test_fs_search_persistence \
226 test_fs_unindex_persistence \
228 test_gnunet_service_fs_migration \
229 test_gnunet_service_fs_p2p \
232 test_plugin_block_fs_SOURCES = \
233 test_plugin_block_fs.c
234 test_plugin_block_fs_LDADD = \
235 $(top_builddir)/src/block/libgnunetblock.la \
236 $(top_builddir)/src/util/libgnunetutil.la
240 test_gnunet_fs_psd.py \
241 test_gnunet_fs_rec.py \
242 test_gnunet_fs_idx.py \
247 TESTS_ENVIRONMENT = @MONKEYPREFIX@
248 AM_LDFLAGS = -no-install
256 test_fs_download_indexed \
257 test_fs_download_persistence \
258 test_fs_file_information \
259 test_fs_list_indexed \
261 test_fs_namespace_list_updateable \
263 test_fs_publish_persistence \
265 test_fs_search_probes \
266 test_fs_search_persistence \
269 test_fs_unindex_persistence \
272 test_gnunet_service_fs_migration \
273 test_gnunet_service_fs_p2p \
274 perf_gnunet_service_fs_p2p \
275 perf_gnunet_service_fs_p2p_index \
276 perf_gnunet_service_fs_p2p_respect \
281 test_fs_directory_SOURCES = \
283 test_fs_directory_LDADD = \
285 $(top_builddir)/src/fs/libgnunetfs.la \
286 $(top_builddir)/src/util/libgnunetutil.la
288 test_fs_download_SOURCES = \
290 test_fs_download_LDADD = \
291 $(top_builddir)/src/testing/libgnunettesting.la \
292 $(top_builddir)/src/fs/libgnunetfs.la \
293 $(top_builddir)/src/util/libgnunetutil.la
295 test_fs_download_indexed_SOURCES = \
296 test_fs_download_indexed.c
297 test_fs_download_indexed_LDADD = \
298 $(top_builddir)/src/testing/libgnunettesting.la \
299 $(top_builddir)/src/fs/libgnunetfs.la \
300 $(top_builddir)/src/util/libgnunetutil.la
302 test_fs_download_persistence_SOURCES = \
303 test_fs_download_persistence.c
304 test_fs_download_persistence_LDADD = \
305 $(top_builddir)/src/testing/libgnunettesting.la \
306 $(top_builddir)/src/fs/libgnunetfs.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_fs_file_information_SOURCES = \
310 test_fs_file_information.c
311 test_fs_file_information_LDADD = \
313 $(top_builddir)/src/fs/libgnunetfs.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 test_fs_getopt_SOURCES = \
318 test_fs_getopt_LDADD = \
319 $(top_builddir)/src/fs/libgnunetfs.la \
320 $(top_builddir)/src/util/libgnunetutil.la
322 test_fs_list_indexed_SOURCES = \
323 test_fs_list_indexed.c
324 test_fs_list_indexed_LDADD = \
325 $(top_builddir)/src/testing/libgnunettesting.la \
326 $(top_builddir)/src/fs/libgnunetfs.la \
327 $(top_builddir)/src/util/libgnunetutil.la
329 test_fs_namespace_SOURCES = \
331 test_fs_namespace_LDADD = \
332 $(top_builddir)/src/testing/libgnunettesting.la \
333 $(top_builddir)/src/fs/libgnunetfs.la \
334 $(top_builddir)/src/util/libgnunetutil.la
336 test_fs_namespace_list_updateable_SOURCES = \
337 test_fs_namespace_list_updateable.c
338 test_fs_namespace_list_updateable_LDADD = \
339 $(top_builddir)/src/testing/libgnunettesting.la \
340 $(top_builddir)/src/fs/libgnunetfs.la \
341 $(top_builddir)/src/util/libgnunetutil.la
343 test_fs_publish_SOURCES = \
345 test_fs_publish_LDADD = \
346 $(top_builddir)/src/testing/libgnunettesting.la \
347 $(top_builddir)/src/fs/libgnunetfs.la \
348 $(top_builddir)/src/util/libgnunetutil.la
350 test_fs_publish_persistence_SOURCES = \
351 test_fs_publish_persistence.c
352 test_fs_publish_persistence_LDADD = \
353 $(top_builddir)/src/testing/libgnunettesting.la \
354 $(top_builddir)/src/fs/libgnunetfs.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 test_fs_search_SOURCES = \
359 test_fs_search_LDADD = \
360 $(top_builddir)/src/testing/libgnunettesting.la \
361 $(top_builddir)/src/fs/libgnunetfs.la \
362 $(top_builddir)/src/util/libgnunetutil.la
364 test_fs_search_probes_SOURCES = \
365 test_fs_search_probes.c
366 test_fs_search_probes_LDADD = \
367 $(top_builddir)/src/testing/libgnunettesting.la \
368 $(top_builddir)/src/fs/libgnunetfs.la \
369 $(top_builddir)/src/util/libgnunetutil.la
371 test_fs_search_persistence_SOURCES = \
372 test_fs_search_persistence.c
373 test_fs_search_persistence_LDADD = \
374 $(top_builddir)/src/testing/libgnunettesting.la \
375 $(top_builddir)/src/fs/libgnunetfs.la \
376 $(top_builddir)/src/util/libgnunetutil.la
378 test_fs_start_stop_SOURCES = \
380 test_fs_start_stop_LDADD = \
381 $(top_builddir)/src/testing/libgnunettesting.la \
382 $(top_builddir)/src/fs/libgnunetfs.la \
383 $(top_builddir)/src/util/libgnunetutil.la
385 test_fs_unindex_SOURCES = \
387 test_fs_unindex_LDADD = \
388 $(top_builddir)/src/testing/libgnunettesting.la \
389 $(top_builddir)/src/fs/libgnunetfs.la \
390 $(top_builddir)/src/util/libgnunetutil.la
392 test_fs_unindex_persistence_SOURCES = \
393 test_fs_unindex_persistence.c
394 test_fs_unindex_persistence_LDADD = \
395 $(top_builddir)/src/testing/libgnunettesting.la \
396 $(top_builddir)/src/fs/libgnunetfs.la \
397 $(top_builddir)/src/util/libgnunetutil.la
399 test_fs_uri_SOURCES = \
401 test_fs_uri_LDADD = \
402 $(top_builddir)/src/fs/libgnunetfs.la \
403 $(top_builddir)/src/util/libgnunetutil.la
405 test_fs_test_lib_SOURCES = \
407 test_fs_test_lib_LDADD = \
408 $(top_builddir)/src/fs/libgnunetfstest.a \
409 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
410 $(top_builddir)/src/fs/libgnunetfs.la \
411 $(top_builddir)/src/util/libgnunetutil.la
413 test_gnunet_service_fs_p2p_SOURCES = \
414 test_gnunet_service_fs_p2p.c
415 test_gnunet_service_fs_p2p_LDADD = \
416 $(top_builddir)/src/fs/libgnunetfstest.a \
417 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
418 $(top_builddir)/src/fs/libgnunetfs.la \
419 $(top_builddir)/src/util/libgnunetutil.la
421 test_gnunet_service_fs_migration_SOURCES = \
422 test_gnunet_service_fs_migration.c
423 test_gnunet_service_fs_migration_LDADD = \
424 $(top_builddir)/src/fs/libgnunetfstest.a \
425 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
426 $(top_builddir)/src/fs/libgnunetfs.la \
427 $(top_builddir)/src/util/libgnunetutil.la
429 perf_gnunet_service_fs_p2p_SOURCES = \
430 perf_gnunet_service_fs_p2p.c
431 perf_gnunet_service_fs_p2p_LDADD = \
432 $(top_builddir)/src/fs/libgnunetfstest.a \
433 $(top_builddir)/src/statistics/libgnunetstatistics.la \
434 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
435 $(top_builddir)/src/fs/libgnunetfs.la \
436 $(top_builddir)/src/util/libgnunetutil.la
438 perf_gnunet_service_fs_p2p_index_SOURCES = \
439 perf_gnunet_service_fs_p2p.c
440 perf_gnunet_service_fs_p2p_index_LDADD = \
441 $(top_builddir)/src/fs/libgnunetfstest.a \
442 $(top_builddir)/src/statistics/libgnunetstatistics.la \
443 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
444 $(top_builddir)/src/fs/libgnunetfs.la \
445 $(top_builddir)/src/util/libgnunetutil.la
447 perf_gnunet_service_fs_p2p_dht_SOURCES = \
448 perf_gnunet_service_fs_p2p.c
449 perf_gnunet_service_fs_p2p_dht_LDADD = \
450 $(top_builddir)/src/fs/libgnunetfstest.a \
451 $(top_builddir)/src/statistics/libgnunetstatistics.la \
452 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
453 $(top_builddir)/src/fs/libgnunetfs.la \
454 $(top_builddir)/src/util/libgnunetutil.la
456 perf_gnunet_service_fs_p2p_respect_SOURCES = \
457 perf_gnunet_service_fs_p2p_respect.c
458 perf_gnunet_service_fs_p2p_respect_LDADD = \
459 $(top_builddir)/src/fs/libgnunetfstest.a \
460 $(top_builddir)/src/statistics/libgnunetstatistics.la \
461 $(top_builddir)/src/testing_old/libgnunettesting_old.la \
462 $(top_builddir)/src/fs/libgnunetfs.la \
463 $(top_builddir)/src/util/libgnunetutil.la
466 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
468 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
469 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
470 chmod +x test_gnunet_fs_psd.py
472 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
473 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
474 chmod +x test_gnunet_fs_rec.py
476 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
477 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
478 chmod +x test_gnunet_fs_ns.py
480 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
481 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
482 chmod +x test_gnunet_fs_idx.py
486 test_fs_defaults.conf \
487 fs_test_lib_data.conf \
489 test_fs_download_data.conf \
490 test_fs_file_information_data.conf \
491 fs_test_lib_data.conf \
492 test_fs_list_indexed_data.conf \
493 test_fs_namespace_data.conf \
494 test_fs_publish_data.conf \
495 test_fs_search_data.conf \
496 test_fs_unindex_data.conf \
497 test_fs_uri_data.conf \
498 test_gnunet_service_fs_migration_data.conf \
499 test_gnunet_fs_idx_data.conf \
500 test_gnunet_fs_ns_data.conf \
501 test_gnunet_fs_psd_data.conf \
502 test_gnunet_fs_rec_data.conf \
503 perf_gnunet_service_fs_p2p.conf \
504 test_gnunet_fs_rec_data.tgz \
505 test_gnunet_fs_psd.py.in \
506 test_gnunet_fs_rec.py.in \
507 test_gnunet_fs_ns.py.in \
508 test_gnunet_fs_idx.py.in \
511 CLEANFILES = $(check_SCRIPTS)