Modified configure.ac to check for the python interpreter so that we can run test...
[oweals/gnunet.git] / src / fs / Makefile.am
1
2 INCLUDES = -I$(top_srcdir)/src/include
3
4 if MINGW
5  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13
14 lib_LTLIBRARIES = libgnunetfs.la
15
16 noinst_LIBRARIES = libgnunetfstest.a
17
18 libgnunetfs_la_SOURCES = \
19   fs.c fs.h \
20   fs_collection.c \
21   fs_directory.c \
22   fs_download.c \
23   fs_file_information.c \
24   fs_getopt.c \
25   fs_list_indexed.c \
26   fs_publish.c \
27   fs_namespace.c \
28   fs_search.c \
29   fs_tree.c fs_tree.h \
30   fs_unindex.c \
31   fs_uri.c 
32
33 libgnunetfs_la_LIBADD = \
34   $(top_builddir)/src/datastore/libgnunetdatastore.la \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   -lextractor \
37   $(GN_LIBINTL) $(XLIB)
38
39 libgnunetfs_la_LDFLAGS = \
40   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
41   -version-info 0:0:0
42
43
44 libgnunetfstest_a_SOURCES = \
45   fs_test_lib.c fs_test_lib.h
46
47 libgnunetfstest_a_LIBADD = \
48   $(top_builddir)/src/testing/libgnunettesting.la 
49
50 bin_PROGRAMS = \
51   gnunet-directory \
52   gnunet-download \
53   gnunet-publish \
54   gnunet-pseudonym \
55   gnunet-search \
56   gnunet-service-fs \
57   gnunet-unindex 
58
59 gnunet_directory_SOURCES = \
60  gnunet-directory.c
61 gnunet_directory_LDADD = \
62   $(top_builddir)/src/fs/libgnunetfs.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(GN_LIBINTL)
65
66 gnunet_download_SOURCES =  \
67  gnunet-download.c         
68 gnunet_download_LDADD =  \
69  $(top_builddir)/src/fs/libgnunetfs.la \
70  $(top_builddir)/src/util/libgnunetutil.la \
71  $(GN_LIBINTL)
72
73 gnunet_publish_SOURCES =  \
74  gnunet-publish.c         
75 gnunet_publish_LDADD =  \
76  $(top_builddir)/src/fs/libgnunetfs.la \
77  $(top_builddir)/src/util/libgnunetutil.la \
78  $(GN_LIBINTL)
79
80 gnunet_pseudonym_SOURCES = \
81  gnunet-pseudonym.c
82 gnunet_pseudonym_LDADD = \
83   $(top_builddir)/src/fs/libgnunetfs.la \
84   $(top_builddir)/src/util/libgnunetutil.la \
85   -lextractor \
86   $(GN_LIBINTL)
87
88 gnunet_search_SOURCES = \
89  gnunet-search.c         
90 gnunet_search_LDADD = \
91   $(top_builddir)/src/fs/libgnunetfs.la \
92   $(top_builddir)/src/util/libgnunetutil.la \
93   $(GN_LIBINTL)
94
95 gnunet_service_fs_SOURCES =  \
96  gnunet-service-fs.c \
97  gnunet-service-fs_drq.c gnunet-service-fs_drq.h \
98  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h 
99 gnunet_service_fs_LDADD =  \
100  $(top_builddir)/src/fs/libgnunetfs.la \
101  $(top_builddir)/src/block/libgnunetblock.la \
102  $(top_builddir)/src/datastore/libgnunetdatastore.la \
103  $(top_builddir)/src/statistics/libgnunetstatistics.la \
104  $(top_builddir)/src/core/libgnunetcore.la \
105  $(top_builddir)/src/util/libgnunetutil.la \
106  $(GN_LIBINTL)
107
108 gnunet_unindex_SOURCES = \
109  gnunet-unindex.c         
110 gnunet_unindex_LDADD = \
111   $(top_builddir)/src/fs/libgnunetfs.la \
112   $(top_builddir)/src/util/libgnunetutil.la \
113   $(GN_LIBINTL)
114
115
116
117
118 check_PROGRAMS = \
119  test_fs_collection \
120  test_fs_directory \
121  test_fs_download \
122  test_fs_file_information \
123  test_fs_getopt \
124  test_fs_list_indexed \
125  test_fs_namespace \
126  test_fs_publish \
127  test_fs_search \
128  test_fs_start_stop \
129  test_fs_test_lib \
130  test_fs_unindex \
131  test_fs_uri \
132  test_gnunet_service_fs_p2p
133
134 if HAVE_PYTHON_PEXPECT
135 check_SCRIPTS = \
136  test_gnunet_fs_psd.py \
137  test_gnunet_fs_rec.py \
138  test_gnunet_fs_ns.py \
139  test_gnunet_fs_idx.py
140 endif
141
142 TESTS = $(check_SCRIPTS) \
143  test_fs_directory \
144  test_fs_download \
145  test_fs_file_information \
146  test_fs_list_indexed \
147  test_fs_namespace \
148  test_fs_publish \
149  test_fs_search \
150  test_fs_start_stop \
151  test_fs_unindex \
152  test_fs_uri \
153  test_fs_test_lib \
154  test_gnunet_service_fs_p2p
155 # $(check_PROGRAMS)
156
157
158 test_fs_collection_SOURCES = \
159  test_fs_collection.c
160 test_fs_collection_LDADD = \
161   $(top_builddir)/src/fs/libgnunetfs.la  \
162   $(top_builddir)/src/util/libgnunetutil.la  
163
164 test_fs_directory_SOURCES = \
165  test_fs_directory.c
166 test_fs_directory_LDADD = \
167   $(top_builddir)/src/fs/libgnunetfs.la  \
168   $(top_builddir)/src/util/libgnunetutil.la  
169
170 test_fs_download_SOURCES = \
171  test_fs_download.c
172 test_fs_download_LDADD = \
173   $(top_builddir)/src/fs/libgnunetfs.la  \
174   $(top_builddir)/src/arm/libgnunetarm.la  \
175   $(top_builddir)/src/util/libgnunetutil.la  
176
177 test_fs_file_information_SOURCES = \
178  test_fs_file_information.c
179 test_fs_file_information_LDADD = \
180   $(top_builddir)/src/fs/libgnunetfs.la  \
181   $(top_builddir)/src/util/libgnunetutil.la  
182
183 test_fs_getopt_SOURCES = \
184  test_fs_getopt.c
185 test_fs_getopt_LDADD = \
186   $(top_builddir)/src/fs/libgnunetfs.la  \
187   $(top_builddir)/src/util/libgnunetutil.la  
188
189 test_fs_list_indexed_SOURCES = \
190  test_fs_list_indexed.c
191 test_fs_list_indexed_LDADD = \
192   $(top_builddir)/src/fs/libgnunetfs.la  \
193   $(top_builddir)/src/arm/libgnunetarm.la  \
194   $(top_builddir)/src/util/libgnunetutil.la  
195
196 test_fs_namespace_SOURCES = \
197  test_fs_namespace.c
198 test_fs_namespace_LDADD = \
199   $(top_builddir)/src/fs/libgnunetfs.la  \
200   $(top_builddir)/src/arm/libgnunetarm.la  \
201   $(top_builddir)/src/util/libgnunetutil.la  
202
203 test_fs_publish_SOURCES = \
204  test_fs_publish.c
205 test_fs_publish_LDADD = \
206   $(top_builddir)/src/fs/libgnunetfs.la  \
207   $(top_builddir)/src/arm/libgnunetarm.la  \
208   $(top_builddir)/src/util/libgnunetutil.la  
209
210 test_fs_search_SOURCES = \
211  test_fs_search.c
212 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
213   $(top_builddir)/src/arm/libgnunetarm.la                       \
214   $(top_builddir)/src/util/libgnunetutil.la
215
216 test_fs_start_stop_SOURCES = \
217  test_fs_start_stop.c
218 test_fs_start_stop_LDADD = \
219   $(top_builddir)/src/fs/libgnunetfs.la  \
220   $(top_builddir)/src/arm/libgnunetarm.la  \
221   $(top_builddir)/src/util/libgnunetutil.la  
222
223 test_fs_unindex_SOURCES = \
224  test_fs_unindex.c
225 test_fs_unindex_LDADD = \
226   $(top_builddir)/src/fs/libgnunetfs.la  \
227   $(top_builddir)/src/arm/libgnunetarm.la  \
228   $(top_builddir)/src/util/libgnunetutil.la  
229
230 test_fs_uri_SOURCES = \
231  test_fs_uri.c
232 test_fs_uri_LDADD = \
233   $(top_builddir)/src/fs/libgnunetfs.la  \
234   $(top_builddir)/src/util/libgnunetutil.la  
235
236 test_fs_test_lib_SOURCES = \
237  test_fs_test_lib.c
238 test_fs_test_lib_LDADD = \
239   $(top_builddir)/src/fs/libgnunetfstest.a \
240   $(top_builddir)/src/testing/libgnunettesting.la \
241   $(top_builddir)/src/fs/libgnunetfs.la  \
242   $(top_builddir)/src/util/libgnunetutil.la  
243
244 test_gnunet_service_fs_p2p_SOURCES = \
245  test_gnunet_service_fs_p2p.c
246 test_gnunet_service_fs_p2p_LDADD = \
247   $(top_builddir)/src/fs/libgnunetfstest.a \
248   $(top_builddir)/src/testing/libgnunettesting.la \
249   $(top_builddir)/src/fs/libgnunetfs.la  \
250   $(top_builddir)/src/util/libgnunetutil.la  
251
252
253 EXTRA_DIST = \
254   fs_test_lib_data.conf \
255   test_fs_data.conf \
256   test_fs_collection_data.conf \
257   test_fs_download_data.conf \
258   test_fs_file_information_data.conf \
259   fs_test_lib_data.conf \
260   test_fs_list_indexed_data.conf \
261   test_fs_namespace_data.conf \
262   test_fs_publish_data.conf \
263   test_fs_search_data.conf \
264   test_fs_unindex_data.conf \
265   test_fs_uri_data.conf \
266   test_gnunet_fs_idx_data.conf \
267   test_gnunet_fs_ns_data.conf \
268   test_gnunet_fs_psd_data.conf \
269   test_gnunet_fs_rec_data.conf \
270   test_gnunet_fs_rec_data.tgz \
271   $(check_SCRIPTS)