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 = \
23 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 \
66 gnunet_download_SOURCES = \
68 gnunet_download_LDADD = \
69 $(top_builddir)/src/fs/libgnunetfs.la \
70 $(top_builddir)/src/util/libgnunetutil.la \
73 gnunet_publish_SOURCES = \
75 gnunet_publish_LDADD = \
76 $(top_builddir)/src/fs/libgnunetfs.la \
77 $(top_builddir)/src/util/libgnunetutil.la \
80 gnunet_pseudonym_SOURCES = \
82 gnunet_pseudonym_LDADD = \
83 $(top_builddir)/src/fs/libgnunetfs.la \
84 $(top_builddir)/src/util/libgnunetutil.la \
88 gnunet_search_SOURCES = \
90 gnunet_search_LDADD = \
91 $(top_builddir)/src/fs/libgnunetfs.la \
92 $(top_builddir)/src/util/libgnunetutil.la \
95 gnunet_service_fs_SOURCES = \
97 gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
98 gnunet_service_fs_LDADD = \
99 $(top_builddir)/src/fs/libgnunetfs.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 \
121 test_fs_download_persistence \
122 test_fs_file_information \
124 test_fs_list_indexed \
127 test_fs_publish_persistence \
129 test_fs_search_persistence \
133 test_fs_unindex_persistence \
135 test_gnunet_service_fs_p2p
138 if HAVE_PYTHON_PEXPECT
140 test_gnunet_fs_psd.py \
141 test_gnunet_fs_rec.py \
142 test_gnunet_fs_ns.py \
143 test_gnunet_fs_idx.py
149 test_fs_download_persistence \
150 test_fs_file_information \
151 test_fs_list_indexed \
154 test_fs_publish_persistence \
156 test_fs_search_persistence \
159 test_fs_unindex_persistence \
162 test_gnunet_service_fs_p2p \
167 test_fs_collection_SOURCES = \
169 test_fs_collection_LDADD = \
170 $(top_builddir)/src/fs/libgnunetfs.la \
171 $(top_builddir)/src/util/libgnunetutil.la
173 test_fs_directory_SOURCES = \
175 test_fs_directory_LDADD = \
176 $(top_builddir)/src/fs/libgnunetfs.la \
177 $(top_builddir)/src/util/libgnunetutil.la
179 test_fs_download_SOURCES = \
181 test_fs_download_LDADD = \
182 $(top_builddir)/src/fs/libgnunetfs.la \
183 $(top_builddir)/src/util/libgnunetutil.la
185 test_fs_download_persistence_SOURCES = \
186 test_fs_download_persistence.c
187 test_fs_download_persistence_LDADD = \
188 $(top_builddir)/src/fs/libgnunetfs.la \
189 $(top_builddir)/src/util/libgnunetutil.la
191 test_fs_file_information_SOURCES = \
192 test_fs_file_information.c
193 test_fs_file_information_LDADD = \
194 $(top_builddir)/src/fs/libgnunetfs.la \
195 $(top_builddir)/src/util/libgnunetutil.la
197 test_fs_getopt_SOURCES = \
199 test_fs_getopt_LDADD = \
200 $(top_builddir)/src/fs/libgnunetfs.la \
201 $(top_builddir)/src/util/libgnunetutil.la
203 test_fs_list_indexed_SOURCES = \
204 test_fs_list_indexed.c
205 test_fs_list_indexed_LDADD = \
206 $(top_builddir)/src/fs/libgnunetfs.la \
207 $(top_builddir)/src/util/libgnunetutil.la
209 test_fs_namespace_SOURCES = \
211 test_fs_namespace_LDADD = \
212 $(top_builddir)/src/fs/libgnunetfs.la \
213 $(top_builddir)/src/util/libgnunetutil.la
215 test_fs_publish_SOURCES = \
217 test_fs_publish_LDADD = \
218 $(top_builddir)/src/fs/libgnunetfs.la \
219 $(top_builddir)/src/util/libgnunetutil.la
221 test_fs_publish_persistence_SOURCES = \
222 test_fs_publish_persistence.c
223 test_fs_publish_persistence_LDADD = \
224 $(top_builddir)/src/fs/libgnunetfs.la \
225 $(top_builddir)/src/util/libgnunetutil.la
227 test_fs_search_SOURCES = \
229 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
230 $(top_builddir)/src/util/libgnunetutil.la
232 test_fs_search_persistence_SOURCES = \
233 test_fs_search_persistence.c
234 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la \
235 $(top_builddir)/src/util/libgnunetutil.la
237 test_fs_start_stop_SOURCES = \
239 test_fs_start_stop_LDADD = \
240 $(top_builddir)/src/fs/libgnunetfs.la \
241 $(top_builddir)/src/util/libgnunetutil.la
243 test_fs_unindex_SOURCES = \
245 test_fs_unindex_LDADD = \
246 $(top_builddir)/src/fs/libgnunetfs.la \
247 $(top_builddir)/src/util/libgnunetutil.la
249 test_fs_unindex_persistence_SOURCES = \
250 test_fs_unindex_persistence.c
251 test_fs_unindex_persistence_LDADD = \
252 $(top_builddir)/src/fs/libgnunetfs.la \
253 $(top_builddir)/src/util/libgnunetutil.la
255 test_fs_uri_SOURCES = \
257 test_fs_uri_LDADD = \
258 $(top_builddir)/src/fs/libgnunetfs.la \
259 $(top_builddir)/src/util/libgnunetutil.la
261 test_fs_test_lib_SOURCES = \
263 test_fs_test_lib_LDADD = \
264 $(top_builddir)/src/fs/libgnunetfstest.a \
265 $(top_builddir)/src/testing/libgnunettesting.la \
266 $(top_builddir)/src/fs/libgnunetfs.la \
267 $(top_builddir)/src/util/libgnunetutil.la
269 test_gnunet_service_fs_p2p_SOURCES = \
270 test_gnunet_service_fs_p2p.c
271 test_gnunet_service_fs_p2p_LDADD = \
272 $(top_builddir)/src/fs/libgnunetfstest.a \
273 $(top_builddir)/src/testing/libgnunettesting.la \
274 $(top_builddir)/src/fs/libgnunetfs.la \
275 $(top_builddir)/src/util/libgnunetutil.la
277 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
279 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
280 $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
281 chmod +x test_gnunet_fs_psd.py
283 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
284 $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
285 chmod +x test_gnunet_fs_rec.py
287 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
288 $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
289 chmod +x test_gnunet_fs_ns.py
291 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
292 $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
293 chmod +x test_gnunet_fs_idx.py
297 fs_test_lib_data.conf \
299 test_fs_collection_data.conf \
300 test_fs_download_data.conf \
301 test_fs_file_information_data.conf \
302 fs_test_lib_data.conf \
303 test_fs_list_indexed_data.conf \
304 test_fs_namespace_data.conf \
305 test_fs_publish_data.conf \
306 test_fs_search_data.conf \
307 test_fs_unindex_data.conf \
308 test_fs_uri_data.conf \
309 test_gnunet_fs_idx_data.conf \
310 test_gnunet_fs_ns_data.conf \
311 test_gnunet_fs_psd_data.conf \
312 test_gnunet_fs_rec_data.conf \
313 test_gnunet_fs_rec_data.tgz \
314 test_gnunet_fs_psd.py.in \
315 test_gnunet_fs_rec.py.in \
316 test_gnunet_fs_ns.py.in \
317 test_gnunet_fs_idx.py.in
319 CLEANFILES = $(check_SCRIPTS)