bugfixes, more tests
[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 \
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/datastore/libgnunetdatastore.la \
102  $(top_builddir)/src/statistics/libgnunetstatistics.la \
103  $(top_builddir)/src/core/libgnunetcore.la \
104  $(top_builddir)/src/util/libgnunetutil.la \
105  $(GN_LIBINTL)
106
107 gnunet_unindex_SOURCES = \
108  gnunet-unindex.c         
109 gnunet_unindex_LDADD = \
110   $(top_builddir)/src/fs/libgnunetfs.la \
111   $(top_builddir)/src/util/libgnunetutil.la \
112   $(GN_LIBINTL)
113
114
115
116
117 check_PROGRAMS = \
118  test_fs_collection \
119  test_fs_directory \
120  test_fs_download \
121  test_fs_file_information \
122  test_fs_getopt \
123  test_fs_list_indexed \
124  test_fs_namespace \
125  test_fs_publish \
126  test_fs_search \
127  test_fs_start_stop \
128  test_fs_test_lib \
129  test_fs_unindex \
130  test_fs_uri \
131  test_gnunet_service_fs_p2p
132
133 if HAVE_PYTHON_PEXPECT
134 check_SCRIPTS = \
135  test_gnunet_fs.py
136 endif
137
138 TESTS = $(check_SCRIPTS) \
139  test_fs_directory \
140  test_fs_download \
141  test_fs_file_information \
142  test_fs_list_indexed \
143  test_fs_namespace \
144  test_fs_publish \
145  test_fs_search \
146  test_fs_start_stop \
147  test_fs_unindex \
148  test_fs_uri \
149  test_fs_test_lib \
150  test_gnunet_service_fs_p2p
151 # $(check_PROGRAMS)
152
153
154 test_fs_collection_SOURCES = \
155  test_fs_collection.c
156 test_fs_collection_LDADD = \
157   $(top_builddir)/src/fs/libgnunetfs.la  \
158   $(top_builddir)/src/util/libgnunetutil.la  
159
160 test_fs_directory_SOURCES = \
161  test_fs_directory.c
162 test_fs_directory_LDADD = \
163   $(top_builddir)/src/fs/libgnunetfs.la  \
164   $(top_builddir)/src/util/libgnunetutil.la  
165
166 test_fs_download_SOURCES = \
167  test_fs_download.c
168 test_fs_download_LDADD = \
169   $(top_builddir)/src/fs/libgnunetfs.la  \
170   $(top_builddir)/src/arm/libgnunetarm.la  \
171   $(top_builddir)/src/util/libgnunetutil.la  
172
173 test_fs_file_information_SOURCES = \
174  test_fs_file_information.c
175 test_fs_file_information_LDADD = \
176   $(top_builddir)/src/fs/libgnunetfs.la  \
177   $(top_builddir)/src/util/libgnunetutil.la  
178
179 test_fs_getopt_SOURCES = \
180  test_fs_getopt.c
181 test_fs_getopt_LDADD = \
182   $(top_builddir)/src/fs/libgnunetfs.la  \
183   $(top_builddir)/src/util/libgnunetutil.la  
184
185 test_fs_list_indexed_SOURCES = \
186  test_fs_list_indexed.c
187 test_fs_list_indexed_LDADD = \
188   $(top_builddir)/src/fs/libgnunetfs.la  \
189   $(top_builddir)/src/arm/libgnunetarm.la  \
190   $(top_builddir)/src/util/libgnunetutil.la  
191
192 test_fs_namespace_SOURCES = \
193  test_fs_namespace.c
194 test_fs_namespace_LDADD = \
195   $(top_builddir)/src/fs/libgnunetfs.la  \
196   $(top_builddir)/src/arm/libgnunetarm.la  \
197   $(top_builddir)/src/util/libgnunetutil.la  
198
199 test_fs_publish_SOURCES = \
200  test_fs_publish.c
201 test_fs_publish_LDADD = \
202   $(top_builddir)/src/fs/libgnunetfs.la  \
203   $(top_builddir)/src/arm/libgnunetarm.la  \
204   $(top_builddir)/src/util/libgnunetutil.la  
205
206 test_fs_search_SOURCES = \
207  test_fs_search.c
208 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
209   $(top_builddir)/src/arm/libgnunetarm.la                       \
210   $(top_builddir)/src/util/libgnunetutil.la
211
212 test_fs_start_stop_SOURCES = \
213  test_fs_start_stop.c
214 test_fs_start_stop_LDADD = \
215   $(top_builddir)/src/fs/libgnunetfs.la  \
216   $(top_builddir)/src/arm/libgnunetarm.la  \
217   $(top_builddir)/src/util/libgnunetutil.la  
218
219 test_fs_unindex_SOURCES = \
220  test_fs_unindex.c
221 test_fs_unindex_LDADD = \
222   $(top_builddir)/src/fs/libgnunetfs.la  \
223   $(top_builddir)/src/arm/libgnunetarm.la  \
224   $(top_builddir)/src/util/libgnunetutil.la  
225
226 test_fs_uri_SOURCES = \
227  test_fs_uri.c
228 test_fs_uri_LDADD = \
229   $(top_builddir)/src/fs/libgnunetfs.la  \
230   $(top_builddir)/src/util/libgnunetutil.la  
231
232 test_fs_test_lib_SOURCES = \
233  test_fs_test_lib.c
234 test_fs_test_lib_LDADD = \
235   $(top_builddir)/src/fs/libgnunetfstest.a \
236   $(top_builddir)/src/testing/libgnunettesting.la \
237   $(top_builddir)/src/fs/libgnunetfs.la  \
238   $(top_builddir)/src/util/libgnunetutil.la  
239
240 test_gnunet_service_fs_p2p_SOURCES = \
241  test_gnunet_service_fs_p2p.c
242 test_gnunet_service_fs_p2p_LDADD = \
243   $(top_builddir)/src/fs/libgnunetfstest.a \
244   $(top_builddir)/src/testing/libgnunettesting.la \
245   $(top_builddir)/src/fs/libgnunetfs.la  \
246   $(top_builddir)/src/util/libgnunetutil.la  
247
248
249 EXTRA_DIST = \
250   fs_test_lib_data.conf \
251   test_fs_data.conf \
252   test_fs_collection_data.conf \
253   test_fs_download_data.conf \
254   test_fs_file_information_data.conf \
255   test_fs_lib_data.conf \
256   test_fs_list_indexed_data.conf \
257   test_fs_namespace_data.conf \
258   test_fs_publish_data.conf \
259   test_fs_search_data.conf \
260   test_fs_unindex_data.conf \
261   test_fs_uri_data.conf