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 \
32 libgnunetfs_la_LIBADD = \
33 $(top_builddir)/src/datastore/libgnunetdatastore.la \
34 $(top_builddir)/src/util/libgnunetutil.la \
38 libgnunetfs_la_LDFLAGS = \
39 $(GN_LIB_LDFLAGS) $(WINFLAGS) \
43 libgnunetfstest_a_SOURCES = \
44 fs_test_lib.c fs_test_lib.h
46 libgnunetfstest_a_LIBADD = \
47 $(top_builddir)/src/testing/libgnunettesting.la
58 gnunet_directory_SOURCES = \
60 gnunet_directory_LDADD = \
61 $(top_builddir)/src/fs/libgnunetfs.la \
62 $(top_builddir)/src/util/libgnunetutil.la \
65 gnunet_download_SOURCES = \
67 gnunet_download_LDADD = \
68 $(top_builddir)/src/fs/libgnunetfs.la \
69 $(top_builddir)/src/util/libgnunetutil.la \
72 gnunet_publish_SOURCES = \
74 gnunet_publish_LDADD = \
75 $(top_builddir)/src/fs/libgnunetfs.la \
76 $(top_builddir)/src/util/libgnunetutil.la \
79 gnunet_pseudonym_SOURCES = \
81 gnunet_pseudonym_LDADD = \
82 $(top_builddir)/src/fs/libgnunetfs.la \
83 $(top_builddir)/src/util/libgnunetutil.la \
87 gnunet_search_SOURCES = \
89 gnunet_search_LDADD = \
90 $(top_builddir)/src/fs/libgnunetfs.la \
91 $(top_builddir)/src/util/libgnunetutil.la \
94 gnunet_service_fs_SOURCES = \
96 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
97 gnunet_service_fs_LDADD = \
98 $(top_builddir)/src/fs/libgnunetfs.la \
99 $(top_builddir)/src/dht/libgnunetdht.la \
100 $(top_builddir)/src/block/libgnunetblock.la \
101 $(top_builddir)/src/datastore/libgnunetdatastore.la \
102 $(top_builddir)/src/statistics/libgnunetstatistics.la \
103 $(top_builddir)/src/core/libgnunetcore.la \
104 $(top_builddir)/src/util/libgnunetutil.la \
107 gnunet_unindex_SOURCES = \
109 gnunet_unindex_LDADD = \
110 $(top_builddir)/src/fs/libgnunetfs.la \
111 $(top_builddir)/src/util/libgnunetutil.la \
120 test_fs_download_indexed \
121 test_fs_download_persistence \
122 test_fs_file_information \
124 test_fs_list_indexed \
126 test_fs_namespace_list_updateable \
128 test_fs_publish_persistence \
130 test_fs_search_persistence \
134 test_fs_unindex_persistence \
136 test_gnunet_service_fs_migration \
137 test_gnunet_service_fs_p2p \
138 perf_gnunet_service_fs_p2p
141 if HAVE_PYTHON_PEXPECT
143 test_gnunet_fs_psd.py \
144 test_gnunet_fs_rec.py \
145 test_gnunet_fs_ns.py \
146 test_gnunet_fs_idx.py
153 test_fs_download_indexed \
154 test_fs_download_persistence \
155 test_fs_file_information \
156 test_fs_list_indexed \
158 test_fs_namespace_list_updateable \
160 test_fs_publish_persistence \
162 test_fs_search_persistence \
165 test_fs_unindex_persistence \
168 test_gnunet_service_fs_migration \
169 test_gnunet_service_fs_p2p \
174 test_fs_directory_SOURCES = \
176 test_fs_directory_LDADD = \
177 $(top_builddir)/src/fs/libgnunetfs.la \
178 $(top_builddir)/src/util/libgnunetutil.la
180 test_fs_download_SOURCES = \
182 test_fs_download_LDADD = \
183 $(top_builddir)/src/fs/libgnunetfs.la \
184 $(top_builddir)/src/util/libgnunetutil.la
186 test_fs_download_indexed_SOURCES = \
187 test_fs_download_indexed.c
188 test_fs_download_indexed_LDADD = \
189 $(top_builddir)/src/fs/libgnunetfs.la \
190 $(top_builddir)/src/util/libgnunetutil.la
192 test_fs_download_persistence_SOURCES = \
193 test_fs_download_persistence.c
194 test_fs_download_persistence_LDADD = \
195 $(top_builddir)/src/fs/libgnunetfs.la \
196 $(top_builddir)/src/util/libgnunetutil.la
198 test_fs_file_information_SOURCES = \
199 test_fs_file_information.c
200 test_fs_file_information_LDADD = \
201 $(top_builddir)/src/fs/libgnunetfs.la \
202 $(top_builddir)/src/util/libgnunetutil.la
204 test_fs_getopt_SOURCES = \
206 test_fs_getopt_LDADD = \
207 $(top_builddir)/src/fs/libgnunetfs.la \
208 $(top_builddir)/src/util/libgnunetutil.la
210 test_fs_list_indexed_SOURCES = \
211 test_fs_list_indexed.c
212 test_fs_list_indexed_LDADD = \
213 $(top_builddir)/src/fs/libgnunetfs.la \
214 $(top_builddir)/src/util/libgnunetutil.la
216 test_fs_namespace_SOURCES = \
218 test_fs_namespace_LDADD = \
219 $(top_builddir)/src/fs/libgnunetfs.la \
220 $(top_builddir)/src/util/libgnunetutil.la
222 test_fs_namespace_list_updateable_SOURCES = \
223 test_fs_namespace_list_updateable.c
224 test_fs_namespace_list_updateable_LDADD = \
225 $(top_builddir)/src/fs/libgnunetfs.la \
226 $(top_builddir)/src/util/libgnunetutil.la
228 test_fs_publish_SOURCES = \
230 test_fs_publish_LDADD = \
231 $(top_builddir)/src/fs/libgnunetfs.la \
232 $(top_builddir)/src/util/libgnunetutil.la
234 test_fs_publish_persistence_SOURCES = \
235 test_fs_publish_persistence.c
236 test_fs_publish_persistence_LDADD = \
237 $(top_builddir)/src/fs/libgnunetfs.la \
238 $(top_builddir)/src/util/libgnunetutil.la
240 test_fs_search_SOURCES = \
242 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
243 $(top_builddir)/src/util/libgnunetutil.la
245 test_fs_search_persistence_SOURCES = \
246 test_fs_search_persistence.c
247 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
248 $(top_builddir)/src/util/libgnunetutil.la
250 test_fs_start_stop_SOURCES = \
252 test_fs_start_stop_LDADD = \
253 $(top_builddir)/src/fs/libgnunetfs.la \
254 $(top_builddir)/src/util/libgnunetutil.la
256 test_fs_unindex_SOURCES = \
258 test_fs_unindex_LDADD = \
259 $(top_builddir)/src/fs/libgnunetfs.la \
260 $(top_builddir)/src/util/libgnunetutil.la
262 test_fs_unindex_persistence_SOURCES = \
263 test_fs_unindex_persistence.c
264 test_fs_unindex_persistence_LDADD = \
265 $(top_builddir)/src/fs/libgnunetfs.la \
266 $(top_builddir)/src/util/libgnunetutil.la
268 test_fs_uri_SOURCES = \
270 test_fs_uri_LDADD = \
271 $(top_builddir)/src/fs/libgnunetfs.la \
272 $(top_builddir)/src/util/libgnunetutil.la
274 test_fs_test_lib_SOURCES = \
276 test_fs_test_lib_LDADD = \
277 $(top_builddir)/src/fs/libgnunetfstest.a \
278 $(top_builddir)/src/testing/libgnunettesting.la \
279 $(top_builddir)/src/fs/libgnunetfs.la \
280 $(top_builddir)/src/util/libgnunetutil.la
282 test_gnunet_service_fs_p2p_SOURCES = \
283 test_gnunet_service_fs_p2p.c
284 test_gnunet_service_fs_p2p_LDADD = \
285 $(top_builddir)/src/fs/libgnunetfstest.a \
286 $(top_builddir)/src/testing/libgnunettesting.la \
287 $(top_builddir)/src/fs/libgnunetfs.la \
288 $(top_builddir)/src/util/libgnunetutil.la
290 test_gnunet_service_fs_migration_SOURCES = \
291 test_gnunet_service_fs_migration.c
292 test_gnunet_service_fs_migration_LDADD = \
293 $(top_builddir)/src/fs/libgnunetfstest.a \
294 $(top_builddir)/src/testing/libgnunettesting.la \
295 $(top_builddir)/src/fs/libgnunetfs.la \
296 $(top_builddir)/src/util/libgnunetutil.la
298 perf_gnunet_service_fs_p2p_SOURCES = \
299 perf_gnunet_service_fs_p2p.c
300 perf_gnunet_service_fs_p2p_LDADD = \
301 $(top_builddir)/src/fs/libgnunetfstest.a \
302 $(top_builddir)/src/testing/libgnunettesting.la \
303 $(top_builddir)/src/fs/libgnunetfs.la \
304 $(top_builddir)/src/util/libgnunetutil.la
307 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
309 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
310 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
311 chmod +x test_gnunet_fs_psd.py
313 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
314 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
315 chmod +x test_gnunet_fs_rec.py
317 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
318 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
319 chmod +x test_gnunet_fs_ns.py
321 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
322 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
323 chmod +x test_gnunet_fs_idx.py
327 fs_test_lib_data.conf \
329 test_fs_download_data.conf \
330 test_fs_file_information_data.conf \
331 test_fs_file_information_meta_data_image.jpg \
332 fs_test_lib_data.conf \
333 test_fs_list_indexed_data.conf \
334 test_fs_namespace_data.conf \
335 test_fs_publish_data.conf \
336 test_fs_search_data.conf \
337 test_fs_unindex_data.conf \
338 test_fs_uri_data.conf \
339 test_gnunet_service_fs_migration_data.conf \
340 test_gnunet_fs_idx_data.conf \
341 test_gnunet_fs_ns_data.conf \
342 test_gnunet_fs_psd_data.conf \
343 test_gnunet_fs_rec_data.conf \
344 test_gnunet_fs_rec_data.tgz \
345 test_gnunet_fs_psd.py.in \
346 test_gnunet_fs_rec.py.in \
347 test_gnunet_fs_ns.py.in \
348 test_gnunet_fs_idx.py.in
350 CLEANFILES = $(check_SCRIPTS)