2 INCLUDES = -I$(top_srcdir)/src/include
5 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
9 AM_CFLAGS = --coverage -O0
14 lib_LTLIBRARIES = libgnunetfs.la
16 noinst_LIBRARIES = libgnunetfstest.a
18 libgnunetfs_la_SOURCES = \
22 fs_file_information.c \
33 libgnunetfs_la_LIBADD = \
34 $(top_builddir)/src/datastore/libgnunetdatastore.la \
35 $(top_builddir)/src/util/libgnunetutil.la \
39 libgnunetfs_la_LDFLAGS = \
40 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44 libgnunetfstest_a_SOURCES = \
45 fs_test_lib.c fs_test_lib.h
47 libgnunetfstest_a_LIBADD = \
48 $(top_builddir)/src/testing/libgnunettesting.la
59 gnunet_directory_SOURCES = \
61 gnunet_directory_LDADD = \
62 $(top_builddir)/src/fs/libgnunetfs.la \
63 $(top_builddir)/src/util/libgnunetutil.la \
65 gnunet_directory_DEPENDENCIES = \
68 gnunet_download_SOURCES = \
70 gnunet_download_LDADD = \
71 $(top_builddir)/src/fs/libgnunetfs.la \
72 $(top_builddir)/src/util/libgnunetutil.la \
74 gnunet_download_DEPENDENCIES = \
77 gnunet_publish_SOURCES = \
79 gnunet_publish_LDADD = \
80 $(top_builddir)/src/fs/libgnunetfs.la \
81 $(top_builddir)/src/util/libgnunetutil.la \
83 gnunet_publish_DEPENDENCIES = \
86 gnunet_pseudonym_SOURCES = \
88 gnunet_pseudonym_LDADD = \
89 $(top_builddir)/src/fs/libgnunetfs.la \
90 $(top_builddir)/src/util/libgnunetutil.la \
93 gnunet_pseudonym_DEPENDENCIES = \
96 gnunet_search_SOURCES = \
98 gnunet_search_LDADD = \
99 $(top_builddir)/src/fs/libgnunetfs.la \
100 $(top_builddir)/src/util/libgnunetutil.la \
102 gnunet_search_DEPENDENCIES = \
105 gnunet_service_fs_SOURCES = \
106 gnunet-service-fs.c \
107 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
108 gnunet_service_fs_LDADD = \
109 $(top_builddir)/src/fs/libgnunetfs.la \
110 $(top_builddir)/src/dht/libgnunetdht.la \
111 $(top_builddir)/src/block/libgnunetblock.la \
112 $(top_builddir)/src/datastore/libgnunetdatastore.la \
113 $(top_builddir)/src/statistics/libgnunetstatistics.la \
114 $(top_builddir)/src/core/libgnunetcore.la \
115 $(top_builddir)/src/util/libgnunetutil.la \
117 gnunet_service_fs_DEPENDENCIES = \
120 gnunet_unindex_SOURCES = \
122 gnunet_unindex_LDADD = \
123 $(top_builddir)/src/fs/libgnunetfs.la \
124 $(top_builddir)/src/util/libgnunetutil.la \
126 gnunet_unindex_DEPENDENCIES = \
135 test_fs_download_indexed \
136 test_fs_download_persistence \
137 test_fs_file_information \
139 test_fs_list_indexed \
141 test_fs_namespace_list_updateable \
143 test_fs_publish_persistence \
145 test_fs_search_persistence \
149 test_fs_unindex_persistence \
151 test_gnunet_service_fs_migration \
152 test_gnunet_service_fs_p2p \
153 perf_gnunet_service_fs_p2p \
154 perf_gnunet_service_fs_p2p_dht \
155 perf_gnunet_service_fs_p2p_index \
156 perf_gnunet_service_fs_p2p_trust
159 if HAVE_PYTHON_PEXPECT
161 test_gnunet_fs_psd.py \
162 test_gnunet_fs_rec.py \
163 test_gnunet_fs_ns.py \
164 test_gnunet_fs_idx.py
171 test_fs_download_indexed \
172 test_fs_download_persistence \
173 test_fs_file_information \
174 test_fs_list_indexed \
176 test_fs_namespace_list_updateable \
178 test_fs_publish_persistence \
180 test_fs_search_persistence \
183 test_fs_unindex_persistence \
186 test_gnunet_service_fs_migration \
187 test_gnunet_service_fs_p2p \
192 test_fs_directory_SOURCES = \
194 test_fs_directory_LDADD = \
195 $(top_builddir)/src/fs/libgnunetfs.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 test_fs_download_SOURCES = \
200 test_fs_download_LDADD = \
201 $(top_builddir)/src/fs/libgnunetfs.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 test_fs_download_indexed_SOURCES = \
205 test_fs_download_indexed.c
206 test_fs_download_indexed_LDADD = \
207 $(top_builddir)/src/fs/libgnunetfs.la \
208 $(top_builddir)/src/util/libgnunetutil.la
210 test_fs_download_persistence_SOURCES = \
211 test_fs_download_persistence.c
212 test_fs_download_persistence_LDADD = \
213 $(top_builddir)/src/fs/libgnunetfs.la \
214 $(top_builddir)/src/util/libgnunetutil.la
216 test_fs_file_information_SOURCES = \
217 test_fs_file_information.c
218 test_fs_file_information_LDADD = \
219 $(top_builddir)/src/fs/libgnunetfs.la \
220 $(top_builddir)/src/util/libgnunetutil.la
222 test_fs_getopt_SOURCES = \
224 test_fs_getopt_LDADD = \
225 $(top_builddir)/src/fs/libgnunetfs.la \
226 $(top_builddir)/src/util/libgnunetutil.la
228 test_fs_list_indexed_SOURCES = \
229 test_fs_list_indexed.c
230 test_fs_list_indexed_LDADD = \
231 $(top_builddir)/src/fs/libgnunetfs.la \
232 $(top_builddir)/src/util/libgnunetutil.la
234 test_fs_namespace_SOURCES = \
236 test_fs_namespace_LDADD = \
237 $(top_builddir)/src/fs/libgnunetfs.la \
238 $(top_builddir)/src/util/libgnunetutil.la
240 test_fs_namespace_list_updateable_SOURCES = \
241 test_fs_namespace_list_updateable.c
242 test_fs_namespace_list_updateable_LDADD = \
243 $(top_builddir)/src/fs/libgnunetfs.la \
244 $(top_builddir)/src/util/libgnunetutil.la
246 test_fs_publish_SOURCES = \
248 test_fs_publish_LDADD = \
249 $(top_builddir)/src/fs/libgnunetfs.la \
250 $(top_builddir)/src/util/libgnunetutil.la
252 test_fs_publish_persistence_SOURCES = \
253 test_fs_publish_persistence.c
254 test_fs_publish_persistence_LDADD = \
255 $(top_builddir)/src/fs/libgnunetfs.la \
256 $(top_builddir)/src/util/libgnunetutil.la
258 test_fs_search_SOURCES = \
260 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
261 $(top_builddir)/src/util/libgnunetutil.la
263 test_fs_search_persistence_SOURCES = \
264 test_fs_search_persistence.c
265 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
266 $(top_builddir)/src/util/libgnunetutil.la
268 test_fs_start_stop_SOURCES = \
270 test_fs_start_stop_LDADD = \
271 $(top_builddir)/src/fs/libgnunetfs.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 test_fs_unindex_SOURCES = \
276 test_fs_unindex_LDADD = \
277 $(top_builddir)/src/fs/libgnunetfs.la \
278 $(top_builddir)/src/util/libgnunetutil.la
280 test_fs_unindex_persistence_SOURCES = \
281 test_fs_unindex_persistence.c
282 test_fs_unindex_persistence_LDADD = \
283 $(top_builddir)/src/fs/libgnunetfs.la \
284 $(top_builddir)/src/util/libgnunetutil.la
286 test_fs_uri_SOURCES = \
288 test_fs_uri_LDADD = \
289 $(top_builddir)/src/fs/libgnunetfs.la \
290 $(top_builddir)/src/util/libgnunetutil.la
292 test_fs_test_lib_SOURCES = \
294 test_fs_test_lib_LDADD = \
295 $(top_builddir)/src/fs/libgnunetfstest.a \
296 $(top_builddir)/src/testing/libgnunettesting.la \
297 $(top_builddir)/src/fs/libgnunetfs.la \
298 $(top_builddir)/src/util/libgnunetutil.la
300 test_gnunet_service_fs_p2p_SOURCES = \
301 test_gnunet_service_fs_p2p.c
302 test_gnunet_service_fs_p2p_LDADD = \
303 $(top_builddir)/src/fs/libgnunetfstest.a \
304 $(top_builddir)/src/testing/libgnunettesting.la \
305 $(top_builddir)/src/fs/libgnunetfs.la \
306 $(top_builddir)/src/util/libgnunetutil.la
308 test_gnunet_service_fs_migration_SOURCES = \
309 test_gnunet_service_fs_migration.c
310 test_gnunet_service_fs_migration_LDADD = \
311 $(top_builddir)/src/fs/libgnunetfstest.a \
312 $(top_builddir)/src/testing/libgnunettesting.la \
313 $(top_builddir)/src/fs/libgnunetfs.la \
314 $(top_builddir)/src/util/libgnunetutil.la
316 perf_gnunet_service_fs_p2p_SOURCES = \
317 perf_gnunet_service_fs_p2p.c
318 perf_gnunet_service_fs_p2p_LDADD = \
319 $(top_builddir)/src/fs/libgnunetfstest.a \
320 $(top_builddir)/src/testing/libgnunettesting.la \
321 $(top_builddir)/src/fs/libgnunetfs.la \
322 $(top_builddir)/src/util/libgnunetutil.la
324 perf_gnunet_service_fs_p2p_index_SOURCES = \
325 perf_gnunet_service_fs_p2p.c
326 perf_gnunet_service_fs_p2p_index_LDADD = \
327 $(top_builddir)/src/fs/libgnunetfstest.a \
328 $(top_builddir)/src/testing/libgnunettesting.la \
329 $(top_builddir)/src/fs/libgnunetfs.la \
330 $(top_builddir)/src/util/libgnunetutil.la
332 perf_gnunet_service_fs_p2p_dht_SOURCES = \
333 perf_gnunet_service_fs_p2p.c
334 perf_gnunet_service_fs_p2p_dht_LDADD = \
335 $(top_builddir)/src/fs/libgnunetfstest.a \
336 $(top_builddir)/src/testing/libgnunettesting.la \
337 $(top_builddir)/src/fs/libgnunetfs.la \
338 $(top_builddir)/src/util/libgnunetutil.la
340 perf_gnunet_service_fs_p2p_trust_SOURCES = \
341 perf_gnunet_service_fs_p2p_trust.c
342 perf_gnunet_service_fs_p2p_trust_LDADD = \
343 $(top_builddir)/src/fs/libgnunetfstest.a \
344 $(top_builddir)/src/testing/libgnunettesting.la \
345 $(top_builddir)/src/fs/libgnunetfs.la \
346 $(top_builddir)/src/util/libgnunetutil.la
349 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
351 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
352 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
353 chmod +x test_gnunet_fs_psd.py
355 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
356 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
357 chmod +x test_gnunet_fs_rec.py
359 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
360 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
361 chmod +x test_gnunet_fs_ns.py
363 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
364 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
365 chmod +x test_gnunet_fs_idx.py
369 fs_test_lib_data.conf \
371 test_fs_download_data.conf \
372 test_fs_file_information_data.conf \
373 test_fs_file_information_meta_data_image.jpg \
374 fs_test_lib_data.conf \
375 test_fs_list_indexed_data.conf \
376 test_fs_namespace_data.conf \
377 test_fs_publish_data.conf \
378 test_fs_search_data.conf \
379 test_fs_unindex_data.conf \
380 test_fs_uri_data.conf \
381 test_gnunet_service_fs_migration_data.conf \
382 test_gnunet_fs_idx_data.conf \
383 test_gnunet_fs_ns_data.conf \
384 test_gnunet_fs_psd_data.conf \
385 test_gnunet_fs_rec_data.conf \
386 test_gnunet_fs_rec_data.tgz \
387 test_gnunet_fs_psd.py.in \
388 test_gnunet_fs_rec.py.in \
389 test_gnunet_fs_ns.py.in \
390 test_gnunet_fs_idx.py.in
392 CLEANFILES = $(check_SCRIPTS)