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 \
43 libgnunetfs_la_LIBADD = \
44 $(top_builddir)/src/datastore/libgnunetdatastore.la \
45 $(top_builddir)/src/util/libgnunetutil.la \
46 -lextractor -lpthread \
47 $(GN_LIBINTL) $(XLIB) -lunistring
49 libgnunetfs_la_LDFLAGS = \
50 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
54 libgnunetfstest_a_SOURCES = \
55 fs_test_lib.c fs_test_lib.h
57 libgnunetfstest_a_LIBADD = \
58 $(top_builddir)/src/testing/libgnunettesting.la
71 gnunet-download-manager.scm
73 gnunet_directory_SOURCES = \
75 gnunet_directory_LDADD = \
76 $(top_builddir)/src/fs/libgnunetfs.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
80 gnunet_directory_DEPENDENCIES = \
86 $(top_builddir)/src/fs/libgnunetfs.la \
87 $(top_builddir)/src/util/libgnunetutil.la \
90 gnunet_fs_DEPENDENCIES = \
93 gnunet_download_SOURCES = \
95 gnunet_download_LDADD = \
96 $(top_builddir)/src/fs/libgnunetfs.la \
97 $(top_builddir)/src/util/libgnunetutil.la \
99 gnunet_download_DEPENDENCIES = \
102 gnunet_publish_SOURCES = \
104 gnunet_publish_LDADD = \
105 $(top_builddir)/src/fs/libgnunetfs.la \
106 $(top_builddir)/src/util/libgnunetutil.la \
109 gnunet_publish_DEPENDENCIES = \
112 gnunet_pseudonym_SOURCES = \
114 gnunet_pseudonym_LDADD = \
115 $(top_builddir)/src/fs/libgnunetfs.la \
116 $(top_builddir)/src/util/libgnunetutil.la \
119 gnunet_pseudonym_DEPENDENCIES = \
122 gnunet_search_SOURCES = \
124 gnunet_search_LDADD = \
125 $(top_builddir)/src/fs/libgnunetfs.la \
126 $(top_builddir)/src/util/libgnunetutil.la \
129 gnunet_search_DEPENDENCIES = \
132 gnunet_service_fs_SOURCES = \
133 gnunet-service-fs.c gnunet-service-fs.h \
134 gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
135 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
136 gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
137 gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
138 gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
139 gnunet-service-fs_push.c gnunet-service-fs_push.h \
140 gnunet-service-fs_put.c gnunet-service-fs_put.h
141 gnunet_service_fs_LDADD = \
142 $(top_builddir)/src/fs/libgnunetfs.la \
143 $(top_builddir)/src/dht/libgnunetdht.la \
144 $(top_builddir)/src/block/libgnunetblock.la \
145 $(top_builddir)/src/datastore/libgnunetdatastore.la \
146 $(top_builddir)/src/statistics/libgnunetstatistics.la \
147 $(top_builddir)/src/ats/libgnunetats.la \
148 $(top_builddir)/src/core/libgnunetcore.la \
149 $(top_builddir)/src/util/libgnunetutil.la \
151 gnunet_service_fs_DEPENDENCIES = \
154 gnunet_unindex_SOURCES = \
156 gnunet_unindex_LDADD = \
157 $(top_builddir)/src/fs/libgnunetfs.la \
158 $(top_builddir)/src/util/libgnunetutil.la \
160 gnunet_unindex_DEPENDENCIES = \
164 libgnunet_plugin_block_fs_la_SOURCES = \
166 libgnunet_plugin_block_fs_la_LIBADD = \
167 $(top_builddir)/src/block/libgnunetblock.la \
168 $(top_builddir)/src/util/libgnunetutil.la
169 libgnunet_plugin_block_fs_la_LDFLAGS = \
171 libgnunet_plugin_block_fs_la_DEPENDENCIES = \
172 $(top_builddir)/src/block/libgnunetblock.la
178 perf_gnunet_service_fs_p2p \
179 perf_gnunet_service_fs_p2p_dht \
180 perf_gnunet_service_fs_p2p_index \
181 perf_gnunet_service_fs_p2p_trust
187 test_fs_download_indexed \
188 test_fs_download_persistence \
189 test_fs_file_information \
191 test_fs_list_indexed \
193 test_fs_namespace_list_updateable \
195 test_fs_publish_persistence \
197 test_fs_search_persistence \
201 test_fs_unindex_persistence \
203 test_gnunet_service_fs_migration \
204 test_gnunet_service_fs_p2p \
208 if HAVE_PYTHON_PEXPECT
210 test_gnunet_fs_psd.py \
211 test_gnunet_fs_rec.py \
212 test_gnunet_fs_idx.py \
221 test_fs_download_indexed \
222 test_fs_download_persistence \
223 test_fs_file_information \
224 test_fs_list_indexed \
226 test_fs_namespace_list_updateable \
228 test_fs_publish_persistence \
230 test_fs_search_persistence \
233 test_fs_unindex_persistence \
236 test_gnunet_service_fs_migration \
237 test_gnunet_service_fs_p2p \
238 perf_gnunet_service_fs_p2p \
239 perf_gnunet_service_fs_p2p_index \
240 perf_gnunet_service_fs_p2p_trust \
247 test_fs_directory_SOURCES = \
249 test_fs_directory_LDADD = \
251 $(top_builddir)/src/fs/libgnunetfs.la \
252 $(top_builddir)/src/util/libgnunetutil.la
254 test_fs_download_SOURCES = \
256 test_fs_download_LDADD = \
257 $(top_builddir)/src/fs/libgnunetfs.la \
258 $(top_builddir)/src/util/libgnunetutil.la
260 test_fs_download_indexed_SOURCES = \
261 test_fs_download_indexed.c
262 test_fs_download_indexed_LDADD = \
263 $(top_builddir)/src/fs/libgnunetfs.la \
264 $(top_builddir)/src/util/libgnunetutil.la
266 test_fs_download_persistence_SOURCES = \
267 test_fs_download_persistence.c
268 test_fs_download_persistence_LDADD = \
269 $(top_builddir)/src/fs/libgnunetfs.la \
270 $(top_builddir)/src/util/libgnunetutil.la
272 test_fs_file_information_SOURCES = \
273 test_fs_file_information.c
274 test_fs_file_information_LDADD = \
276 $(top_builddir)/src/fs/libgnunetfs.la \
277 $(top_builddir)/src/util/libgnunetutil.la
279 test_fs_getopt_SOURCES = \
281 test_fs_getopt_LDADD = \
282 $(top_builddir)/src/fs/libgnunetfs.la \
283 $(top_builddir)/src/util/libgnunetutil.la
285 test_fs_list_indexed_SOURCES = \
286 test_fs_list_indexed.c
287 test_fs_list_indexed_LDADD = \
288 $(top_builddir)/src/fs/libgnunetfs.la \
289 $(top_builddir)/src/util/libgnunetutil.la
291 test_fs_namespace_SOURCES = \
293 test_fs_namespace_LDADD = \
294 $(top_builddir)/src/fs/libgnunetfs.la \
295 $(top_builddir)/src/util/libgnunetutil.la
297 test_fs_namespace_list_updateable_SOURCES = \
298 test_fs_namespace_list_updateable.c
299 test_fs_namespace_list_updateable_LDADD = \
300 $(top_builddir)/src/fs/libgnunetfs.la \
301 $(top_builddir)/src/util/libgnunetutil.la
303 test_fs_publish_SOURCES = \
305 test_fs_publish_LDADD = \
306 $(top_builddir)/src/fs/libgnunetfs.la \
307 $(top_builddir)/src/util/libgnunetutil.la
309 test_fs_publish_persistence_SOURCES = \
310 test_fs_publish_persistence.c
311 test_fs_publish_persistence_LDADD = \
312 $(top_builddir)/src/fs/libgnunetfs.la \
313 $(top_builddir)/src/util/libgnunetutil.la
315 test_fs_search_SOURCES = \
317 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
318 $(top_builddir)/src/util/libgnunetutil.la
320 test_fs_search_persistence_SOURCES = \
321 test_fs_search_persistence.c
322 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
323 $(top_builddir)/src/util/libgnunetutil.la
325 test_fs_start_stop_SOURCES = \
327 test_fs_start_stop_LDADD = \
328 $(top_builddir)/src/fs/libgnunetfs.la \
329 $(top_builddir)/src/util/libgnunetutil.la
331 test_fs_unindex_SOURCES = \
333 test_fs_unindex_LDADD = \
334 $(top_builddir)/src/fs/libgnunetfs.la \
335 $(top_builddir)/src/util/libgnunetutil.la
337 test_fs_unindex_persistence_SOURCES = \
338 test_fs_unindex_persistence.c
339 test_fs_unindex_persistence_LDADD = \
340 $(top_builddir)/src/fs/libgnunetfs.la \
341 $(top_builddir)/src/util/libgnunetutil.la
343 test_fs_uri_SOURCES = \
345 test_fs_uri_LDADD = \
346 $(top_builddir)/src/fs/libgnunetfs.la \
347 $(top_builddir)/src/util/libgnunetutil.la
349 test_fs_test_lib_SOURCES = \
351 test_fs_test_lib_LDADD = \
352 $(top_builddir)/src/fs/libgnunetfstest.a \
353 $(top_builddir)/src/testing/libgnunettesting.la \
354 $(top_builddir)/src/fs/libgnunetfs.la \
355 $(top_builddir)/src/util/libgnunetutil.la
357 test_gnunet_service_fs_p2p_SOURCES = \
358 test_gnunet_service_fs_p2p.c
359 test_gnunet_service_fs_p2p_LDADD = \
360 $(top_builddir)/src/fs/libgnunetfstest.a \
361 $(top_builddir)/src/testing/libgnunettesting.la \
362 $(top_builddir)/src/fs/libgnunetfs.la \
363 $(top_builddir)/src/util/libgnunetutil.la
365 test_gnunet_service_fs_migration_SOURCES = \
366 test_gnunet_service_fs_migration.c
367 test_gnunet_service_fs_migration_LDADD = \
368 $(top_builddir)/src/fs/libgnunetfstest.a \
369 $(top_builddir)/src/testing/libgnunettesting.la \
370 $(top_builddir)/src/fs/libgnunetfs.la \
371 $(top_builddir)/src/util/libgnunetutil.la
373 perf_gnunet_service_fs_p2p_SOURCES = \
374 perf_gnunet_service_fs_p2p.c
375 perf_gnunet_service_fs_p2p_LDADD = \
376 $(top_builddir)/src/fs/libgnunetfstest.a \
377 $(top_builddir)/src/statistics/libgnunetstatistics.la \
378 $(top_builddir)/src/testing/libgnunettesting.la \
379 $(top_builddir)/src/fs/libgnunetfs.la \
380 $(top_builddir)/src/util/libgnunetutil.la
382 perf_gnunet_service_fs_p2p_index_SOURCES = \
383 perf_gnunet_service_fs_p2p.c
384 perf_gnunet_service_fs_p2p_index_LDADD = \
385 $(top_builddir)/src/fs/libgnunetfstest.a \
386 $(top_builddir)/src/statistics/libgnunetstatistics.la \
387 $(top_builddir)/src/testing/libgnunettesting.la \
388 $(top_builddir)/src/fs/libgnunetfs.la \
389 $(top_builddir)/src/util/libgnunetutil.la
391 perf_gnunet_service_fs_p2p_dht_SOURCES = \
392 perf_gnunet_service_fs_p2p.c
393 perf_gnunet_service_fs_p2p_dht_LDADD = \
394 $(top_builddir)/src/fs/libgnunetfstest.a \
395 $(top_builddir)/src/statistics/libgnunetstatistics.la \
396 $(top_builddir)/src/testing/libgnunettesting.la \
397 $(top_builddir)/src/fs/libgnunetfs.la \
398 $(top_builddir)/src/util/libgnunetutil.la
400 perf_gnunet_service_fs_p2p_trust_SOURCES = \
401 perf_gnunet_service_fs_p2p_trust.c
402 perf_gnunet_service_fs_p2p_trust_LDADD = \
403 $(top_builddir)/src/fs/libgnunetfstest.a \
404 $(top_builddir)/src/statistics/libgnunetstatistics.la \
405 $(top_builddir)/src/testing/libgnunettesting.la \
406 $(top_builddir)/src/fs/libgnunetfs.la \
407 $(top_builddir)/src/util/libgnunetutil.la
410 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
412 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
413 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
414 chmod +x test_gnunet_fs_psd.py
416 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
417 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
418 chmod +x test_gnunet_fs_rec.py
420 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
421 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
422 chmod +x test_gnunet_fs_ns.py
424 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
425 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
426 chmod +x test_gnunet_fs_idx.py
430 test_fs_defaults.conf \
431 fs_test_lib_data.conf \
433 test_fs_download_data.conf \
434 test_fs_file_information_data.conf \
435 test_fs_file_information_meta_data_image.jpg \
436 fs_test_lib_data.conf \
437 test_fs_list_indexed_data.conf \
438 test_fs_namespace_data.conf \
439 test_fs_publish_data.conf \
440 test_fs_search_data.conf \
441 test_fs_unindex_data.conf \
442 test_fs_uri_data.conf \
443 test_gnunet_service_fs_migration_data.conf \
444 test_gnunet_fs_idx_data.conf \
445 test_gnunet_fs_ns_data.conf \
446 test_gnunet_fs_psd_data.conf \
447 test_gnunet_fs_rec_data.conf \
448 test_gnunet_fs_rec_data.tgz \
449 test_gnunet_fs_psd.py.in \
450 test_gnunet_fs_rec.py.in \
451 test_gnunet_fs_ns.py.in \
452 test_gnunet_fs_idx.py.in
454 CLEANFILES = $(check_SCRIPTS)