track performance data
[oweals/gnunet.git] / src / fs / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12
13 lib_LTLIBRARIES = libgnunetfs.la
14
15 noinst_LIBRARIES = libgnunetfstest.a
16
17 libgnunetfs_la_SOURCES = \
18   fs.c fs.h \
19   fs_directory.c \
20   fs_download.c \
21   fs_file_information.c \
22   fs_getopt.c \
23   fs_list_indexed.c \
24   fs_publish.c \
25   fs_misc.c \
26   fs_namespace.c \
27   fs_search.c \
28   fs_tree.c fs_tree.h \
29   fs_unindex.c \
30   fs_uri.c 
31
32 libgnunetfs_la_LIBADD = \
33   $(top_builddir)/src/datastore/libgnunetdatastore.la \
34   $(top_builddir)/src/util/libgnunetutil.la \
35   -lextractor \
36   $(GN_LIBINTL) $(XLIB)
37
38 libgnunetfs_la_LDFLAGS = \
39   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
40   -version-info 0:0:0
41
42
43 libgnunetfstest_a_SOURCES = \
44   fs_test_lib.c fs_test_lib.h
45
46 libgnunetfstest_a_LIBADD = \
47   $(top_builddir)/src/testing/libgnunettesting.la 
48
49 bin_PROGRAMS = \
50   gnunet-directory \
51   gnunet-download \
52   gnunet-publish \
53   gnunet-pseudonym \
54   gnunet-search \
55   gnunet-service-fs \
56   gnunet-unindex 
57
58 gnunet_directory_SOURCES = \
59  gnunet-directory.c
60 gnunet_directory_LDADD = \
61   $(top_builddir)/src/fs/libgnunetfs.la \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   -lextractor \
64   $(GN_LIBINTL)
65 gnunet_directory_DEPENDENCIES = \
66   libgnunetfs.la
67
68 gnunet_download_SOURCES =  \
69  gnunet-download.c         
70 gnunet_download_LDADD =  \
71  $(top_builddir)/src/fs/libgnunetfs.la \
72  $(top_builddir)/src/util/libgnunetutil.la \
73  $(GN_LIBINTL)
74 gnunet_download_DEPENDENCIES = \
75   libgnunetfs.la
76
77 gnunet_publish_SOURCES =  \
78  gnunet-publish.c         
79 gnunet_publish_LDADD =  \
80  $(top_builddir)/src/fs/libgnunetfs.la \
81  $(top_builddir)/src/util/libgnunetutil.la \
82  -lextractor \
83  $(GN_LIBINTL)
84 gnunet_publish_DEPENDENCIES = \
85   libgnunetfs.la
86
87 gnunet_pseudonym_SOURCES = \
88  gnunet-pseudonym.c
89 gnunet_pseudonym_LDADD = \
90   $(top_builddir)/src/fs/libgnunetfs.la \
91   $(top_builddir)/src/util/libgnunetutil.la \
92   -lextractor \
93   $(GN_LIBINTL)
94 gnunet_pseudonym_DEPENDENCIES = \
95   libgnunetfs.la
96
97 gnunet_search_SOURCES = \
98  gnunet-search.c         
99 gnunet_search_LDADD = \
100   $(top_builddir)/src/fs/libgnunetfs.la \
101   $(top_builddir)/src/util/libgnunetutil.la \
102  -lextractor \
103   $(GN_LIBINTL)
104 gnunet_search_DEPENDENCIES = \
105   libgnunetfs.la
106
107 gnunet_service_fs_SOURCES =  \
108  gnunet-service-fs.c gnunet-service-fs.h \
109  gnunet-service-fs_cp.c gnunet-service-fs_cp.h \
110  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h \
111  gnunet-service-fs_lc.c gnunet-service-fs_lc.h \
112  gnunet-service-fs_pe.c gnunet-service-fs_pe.h \
113  gnunet-service-fs_pr.c gnunet-service-fs_pr.h \
114  gnunet-service-fs_push.c gnunet-service-fs_push.h \
115  gnunet-service-fs_put.c gnunet-service-fs_put.h 
116 gnunet_service_fs_LDADD =  \
117  $(top_builddir)/src/fs/libgnunetfs.la \
118  $(top_builddir)/src/dht/libgnunetdht.la \
119  $(top_builddir)/src/block/libgnunetblock.la \
120  $(top_builddir)/src/datastore/libgnunetdatastore.la \
121  $(top_builddir)/src/statistics/libgnunetstatistics.la \
122  $(top_builddir)/src/core/libgnunetcore.la \
123  $(top_builddir)/src/util/libgnunetutil.la \
124  $(GN_LIBINTL)
125 gnunet_service_fs_DEPENDENCIES = \
126   libgnunetfs.la
127
128 gnunet_unindex_SOURCES = \
129  gnunet-unindex.c         
130 gnunet_unindex_LDADD = \
131   $(top_builddir)/src/fs/libgnunetfs.la \
132   $(top_builddir)/src/util/libgnunetutil.la \
133   $(GN_LIBINTL)
134 gnunet_unindex_DEPENDENCIES = \
135   libgnunetfs.la
136
137
138
139
140 check_PROGRAMS = \
141  test_fs_directory \
142  test_fs_download \
143  test_fs_download_indexed \
144  test_fs_download_persistence \
145  test_fs_file_information \
146  test_fs_getopt \
147  test_fs_list_indexed \
148  test_fs_namespace \
149  test_fs_namespace_list_updateable \
150  test_fs_publish \
151  test_fs_publish_persistence \
152  test_fs_search \
153  test_fs_search_persistence \
154  test_fs_start_stop \
155  test_fs_test_lib \
156  test_fs_unindex \
157  test_fs_unindex_persistence \
158  test_fs_uri \
159  test_gnunet_service_fs_migration \
160  test_gnunet_service_fs_p2p \
161  perf_gnunet_service_fs_p2p \
162  perf_gnunet_service_fs_p2p_dht \
163  perf_gnunet_service_fs_p2p_index \
164  perf_gnunet_service_fs_p2p_trust 
165
166
167 if HAVE_PYTHON_PEXPECT
168 check_SCRIPTS = \
169  test_gnunet_fs_psd.py \
170  test_gnunet_fs_rec.py \
171  test_gnunet_fs_idx.py \
172  test_gnunet_fs_ns.py 
173 endif
174
175
176 if !DISABLE_TEST_RUN
177 TESTS = \
178  test_fs_directory \
179  test_fs_download \
180  test_fs_download_indexed \
181  test_fs_download_persistence \
182  test_fs_file_information \
183  test_fs_list_indexed \
184  test_fs_namespace \
185  test_fs_namespace_list_updateable \
186  test_fs_publish \
187  test_fs_publish_persistence \
188  test_fs_search \
189  test_fs_search_persistence \
190  test_fs_start_stop \
191  test_fs_unindex \
192  test_fs_unindex_persistence \
193  test_fs_uri \
194  test_fs_test_lib \
195  test_gnunet_service_fs_migration \
196  test_gnunet_service_fs_p2p \
197  perf_gnunet_service_fs_p2p \
198  perf_gnunet_service_fs_p2p_index \
199  $(check_SCRIPTS)  
200 endif
201 # perf_gnunet_service_fs_p2p_trust 
202
203
204
205
206 test_fs_directory_SOURCES = \
207  test_fs_directory.c
208 test_fs_directory_LDADD = \
209   -lextractor \
210   $(top_builddir)/src/fs/libgnunetfs.la  \
211   $(top_builddir)/src/util/libgnunetutil.la  
212
213 test_fs_download_SOURCES = \
214  test_fs_download.c
215 test_fs_download_LDADD = \
216   $(top_builddir)/src/fs/libgnunetfs.la  \
217   $(top_builddir)/src/util/libgnunetutil.la  
218
219 test_fs_download_indexed_SOURCES = \
220  test_fs_download_indexed.c
221 test_fs_download_indexed_LDADD = \
222   $(top_builddir)/src/fs/libgnunetfs.la  \
223   $(top_builddir)/src/util/libgnunetutil.la  
224
225 test_fs_download_persistence_SOURCES = \
226  test_fs_download_persistence.c
227 test_fs_download_persistence_LDADD = \
228   $(top_builddir)/src/fs/libgnunetfs.la  \
229   $(top_builddir)/src/util/libgnunetutil.la  
230
231 test_fs_file_information_SOURCES = \
232  test_fs_file_information.c
233 test_fs_file_information_LDADD = \
234   -lextractor \
235   $(top_builddir)/src/fs/libgnunetfs.la  \
236   $(top_builddir)/src/util/libgnunetutil.la  
237
238 test_fs_getopt_SOURCES = \
239  test_fs_getopt.c
240 test_fs_getopt_LDADD = \
241   $(top_builddir)/src/fs/libgnunetfs.la  \
242   $(top_builddir)/src/util/libgnunetutil.la  
243
244 test_fs_list_indexed_SOURCES = \
245  test_fs_list_indexed.c
246 test_fs_list_indexed_LDADD = \
247   $(top_builddir)/src/fs/libgnunetfs.la  \
248   $(top_builddir)/src/util/libgnunetutil.la  
249
250 test_fs_namespace_SOURCES = \
251  test_fs_namespace.c
252 test_fs_namespace_LDADD = \
253   $(top_builddir)/src/fs/libgnunetfs.la  \
254   $(top_builddir)/src/util/libgnunetutil.la  
255
256 test_fs_namespace_list_updateable_SOURCES = \
257  test_fs_namespace_list_updateable.c
258 test_fs_namespace_list_updateable_LDADD = \
259   $(top_builddir)/src/fs/libgnunetfs.la  \
260   $(top_builddir)/src/util/libgnunetutil.la  
261
262 test_fs_publish_SOURCES = \
263  test_fs_publish.c
264 test_fs_publish_LDADD = \
265   $(top_builddir)/src/fs/libgnunetfs.la  \
266   $(top_builddir)/src/util/libgnunetutil.la  
267
268 test_fs_publish_persistence_SOURCES = \
269  test_fs_publish_persistence.c
270 test_fs_publish_persistence_LDADD = \
271   $(top_builddir)/src/fs/libgnunetfs.la  \
272   $(top_builddir)/src/util/libgnunetutil.la  
273
274 test_fs_search_SOURCES = \
275  test_fs_search.c
276 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
277   $(top_builddir)/src/util/libgnunetutil.la
278
279 test_fs_search_persistence_SOURCES = \
280  test_fs_search_persistence.c
281 test_fs_search_persistence_LDADD = $(top_builddir)/src/fs/libgnunetfs.la        \
282   $(top_builddir)/src/util/libgnunetutil.la
283
284 test_fs_start_stop_SOURCES = \
285  test_fs_start_stop.c
286 test_fs_start_stop_LDADD = \
287   $(top_builddir)/src/fs/libgnunetfs.la  \
288   $(top_builddir)/src/util/libgnunetutil.la  
289
290 test_fs_unindex_SOURCES = \
291  test_fs_unindex.c
292 test_fs_unindex_LDADD = \
293   $(top_builddir)/src/fs/libgnunetfs.la  \
294   $(top_builddir)/src/util/libgnunetutil.la  
295
296 test_fs_unindex_persistence_SOURCES = \
297  test_fs_unindex_persistence.c
298 test_fs_unindex_persistence_LDADD = \
299   $(top_builddir)/src/fs/libgnunetfs.la  \
300   $(top_builddir)/src/util/libgnunetutil.la  
301
302 test_fs_uri_SOURCES = \
303  test_fs_uri.c
304 test_fs_uri_LDADD = \
305   $(top_builddir)/src/fs/libgnunetfs.la  \
306   $(top_builddir)/src/util/libgnunetutil.la  
307
308 test_fs_test_lib_SOURCES = \
309  test_fs_test_lib.c
310 test_fs_test_lib_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  
315
316 test_gnunet_service_fs_p2p_SOURCES = \
317  test_gnunet_service_fs_p2p.c
318 test_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  
323
324 test_gnunet_service_fs_migration_SOURCES = \
325  test_gnunet_service_fs_migration.c
326 test_gnunet_service_fs_migration_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  
331
332 perf_gnunet_service_fs_p2p_SOURCES = \
333  perf_gnunet_service_fs_p2p.c
334 perf_gnunet_service_fs_p2p_LDADD = \
335   $(top_builddir)/src/fs/libgnunetfstest.a \
336   $(top_builddir)/src/statistics/libgnunetstatistics.la \
337   $(top_builddir)/src/testing/libgnunettesting.la \
338   $(top_builddir)/src/fs/libgnunetfs.la  \
339   $(top_builddir)/src/util/libgnunetutil.la  
340
341 perf_gnunet_service_fs_p2p_index_SOURCES = \
342  perf_gnunet_service_fs_p2p.c
343 perf_gnunet_service_fs_p2p_index_LDADD = \
344   $(top_builddir)/src/fs/libgnunetfstest.a \
345   $(top_builddir)/src/statistics/libgnunetstatistics.la \
346   $(top_builddir)/src/testing/libgnunettesting.la \
347   $(top_builddir)/src/fs/libgnunetfs.la  \
348   $(top_builddir)/src/util/libgnunetutil.la  
349
350 perf_gnunet_service_fs_p2p_dht_SOURCES = \
351  perf_gnunet_service_fs_p2p.c
352 perf_gnunet_service_fs_p2p_dht_LDADD = \
353   $(top_builddir)/src/fs/libgnunetfstest.a \
354   $(top_builddir)/src/statistics/libgnunetstatistics.la \
355   $(top_builddir)/src/testing/libgnunettesting.la \
356   $(top_builddir)/src/fs/libgnunetfs.la  \
357   $(top_builddir)/src/util/libgnunetutil.la  
358
359 perf_gnunet_service_fs_p2p_trust_SOURCES = \
360  perf_gnunet_service_fs_p2p_trust.c
361 perf_gnunet_service_fs_p2p_trust_LDADD = \
362   $(top_builddir)/src/fs/libgnunetfstest.a \
363   $(top_builddir)/src/statistics/libgnunetstatistics.la \
364   $(top_builddir)/src/testing/libgnunettesting.la \
365   $(top_builddir)/src/fs/libgnunetfs.la  \
366   $(top_builddir)/src/util/libgnunetutil.la  
367
368
369 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
370
371 test_gnunet_fs_psd.py: test_gnunet_fs_psd.py.in Makefile
372         $(do_subst) < $(srcdir)/test_gnunet_fs_psd.py.in > test_gnunet_fs_psd.py
373         chmod +x test_gnunet_fs_psd.py
374
375 test_gnunet_fs_rec.py: test_gnunet_fs_rec.py.in Makefile
376         $(do_subst) < $(srcdir)/test_gnunet_fs_rec.py.in > test_gnunet_fs_rec.py
377         chmod +x test_gnunet_fs_rec.py
378
379 test_gnunet_fs_ns.py: test_gnunet_fs_ns.py.in Makefile
380         $(do_subst) < $(srcdir)/test_gnunet_fs_ns.py.in > test_gnunet_fs_ns.py
381         chmod +x test_gnunet_fs_ns.py
382
383 test_gnunet_fs_idx.py: test_gnunet_fs_idx.py.in Makefile
384         $(do_subst) < $(srcdir)/test_gnunet_fs_idx.py.in > test_gnunet_fs_idx.py
385         chmod +x test_gnunet_fs_idx.py
386
387
388 EXTRA_DIST = \
389   fs_test_lib_data.conf \
390   test_fs_data.conf \
391   test_fs_download_data.conf \
392   test_fs_file_information_data.conf \
393   test_fs_file_information_meta_data_image.jpg \
394   fs_test_lib_data.conf \
395   test_fs_list_indexed_data.conf \
396   test_fs_namespace_data.conf \
397   test_fs_publish_data.conf \
398   test_fs_search_data.conf \
399   test_fs_unindex_data.conf \
400   test_fs_uri_data.conf \
401   test_gnunet_service_fs_migration_data.conf \
402   test_gnunet_fs_idx_data.conf \
403   test_gnunet_fs_ns_data.conf \
404   test_gnunet_fs_psd_data.conf \
405   test_gnunet_fs_rec_data.conf \
406   test_gnunet_fs_rec_data.tgz \
407   test_gnunet_fs_psd.py.in \
408   test_gnunet_fs_rec.py.in \
409   test_gnunet_fs_ns.py.in \
410   test_gnunet_fs_idx.py.in
411
412 CLEANFILES = $(check_SCRIPTS)