moving indexing out of main file
[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 libgnunetfs_la_SOURCES = \
17   fs.c \
18   fs_collection.c \
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_namespace.c \
26   fs_search.c \
27   fs_tree.c fs_tree.h \
28   fs_unindex.c \
29   fs_uri.c 
30
31 libgnunetfs_la_LIBADD = \
32   $(top_builddir)/src/datastore/libgnunetdatastore.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   -lextractor \
35   $(GN_LIBINTL) $(XLIB)
36
37 libgnunetfs_la_LDFLAGS = \
38   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
39   -version-info 0:0:0
40
41
42 bin_PROGRAMS = \
43   gnunet-directory \
44   gnunet-download \
45   gnunet-publish \
46   gnunet-pseudonym \
47   gnunet-search \
48   gnunet-service-fs \
49   gnunet-unindex 
50
51 gnunet_directory_SOURCES = \
52  gnunet-directory.c
53 gnunet_directory_LDADD = \
54   $(top_builddir)/src/fs/libgnunetfs.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(GN_LIBINTL)
57
58 gnunet_download_SOURCES =  \
59  gnunet-download.c         
60 gnunet_download_LDADD =  \
61  $(top_builddir)/src/fs/libgnunetfs.la \
62  $(top_builddir)/src/util/libgnunetutil.la \
63  $(GN_LIBINTL)
64
65 gnunet_publish_SOURCES =  \
66  gnunet-publish.c         
67 gnunet_publish_LDADD =  \
68  $(top_builddir)/src/fs/libgnunetfs.la \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(GN_LIBINTL)
71
72 gnunet_pseudonym_SOURCES = \
73  gnunet-pseudonym.c
74 gnunet_pseudonym_LDADD = \
75   $(top_builddir)/src/fs/libgnunetfs.la \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(GN_LIBINTL)
78
79 gnunet_search_SOURCES = \
80  gnunet-search.c         
81 gnunet_search_LDADD = \
82   $(top_builddir)/src/fs/libgnunetfs.la \
83   $(top_builddir)/src/util/libgnunetutil.la \
84   $(GN_LIBINTL)
85
86 gnunet_service_fs_SOURCES =  \
87  gnunet-service-fs.c \
88  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h
89 gnunet_service_fs_LDADD =  \
90  $(top_builddir)/src/fs/libgnunetfs.la \
91  $(top_builddir)/src/datastore/libgnunetdatastore.la \
92  $(top_builddir)/src/core/libgnunetcore.la \
93  $(top_builddir)/src/util/libgnunetutil.la \
94  $(GN_LIBINTL)
95
96 gnunet_unindex_SOURCES = \
97  gnunet-unindex.c         
98 gnunet_unindex_LDADD = \
99   $(top_builddir)/src/fs/libgnunetfs.la \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   $(GN_LIBINTL)
102
103
104
105
106 check_PROGRAMS = \
107  test_fs_collection \
108  test_fs_directory \
109  test_fs_download \
110  test_fs_file_information \
111  test_fs_getopt \
112  test_fs_list_indexed \
113  test_fs_namespace \
114  test_fs_publish \
115  test_fs_search \
116  test_fs_start_stop \
117  test_fs_unindex \
118  test_fs_uri
119
120 TESTS = \
121  test_fs_directory \
122  test_fs_download \
123  test_fs_file_information \
124  test_fs_list_indexed \
125  test_fs_publish \
126  test_fs_search \
127  test_fs_start_stop \
128  test_fs_unindex \
129  test_fs_uri
130 # $(check_PROGRAMS)
131
132 test_fs_collection_SOURCES = \
133  test_fs_collection.c
134 test_fs_collection_LDADD = \
135   $(top_builddir)/src/fs/libgnunetfs.la  \
136   $(top_builddir)/src/util/libgnunetutil.la  
137
138 test_fs_directory_SOURCES = \
139  test_fs_directory.c
140 test_fs_directory_LDADD = \
141   $(top_builddir)/src/fs/libgnunetfs.la  \
142   $(top_builddir)/src/util/libgnunetutil.la  
143
144 test_fs_download_SOURCES = \
145  test_fs_download.c
146 test_fs_download_LDADD = \
147   $(top_builddir)/src/fs/libgnunetfs.la  \
148   $(top_builddir)/src/arm/libgnunetarm.la  \
149   $(top_builddir)/src/util/libgnunetutil.la  
150
151 test_fs_file_information_SOURCES = \
152  test_fs_file_information.c
153 test_fs_file_information_LDADD = \
154   $(top_builddir)/src/fs/libgnunetfs.la  \
155   $(top_builddir)/src/util/libgnunetutil.la  
156
157 test_fs_getopt_SOURCES = \
158  test_fs_getopt.c
159 test_fs_getopt_LDADD = \
160   $(top_builddir)/src/fs/libgnunetfs.la  \
161   $(top_builddir)/src/util/libgnunetutil.la  
162
163 test_fs_list_indexed_SOURCES = \
164  test_fs_list_indexed.c
165 test_fs_list_indexed_LDADD = \
166   $(top_builddir)/src/fs/libgnunetfs.la  \
167   $(top_builddir)/src/arm/libgnunetarm.la  \
168   $(top_builddir)/src/util/libgnunetutil.la  
169
170 test_fs_namespace_SOURCES = \
171  test_fs_namespace.c
172 test_fs_namespace_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_publish_SOURCES = \
178  test_fs_publish.c
179 test_fs_publish_LDADD = \
180   $(top_builddir)/src/fs/libgnunetfs.la  \
181   $(top_builddir)/src/arm/libgnunetarm.la  \
182   $(top_builddir)/src/util/libgnunetutil.la  
183
184 test_fs_search_SOURCES = \
185  test_fs_search.c
186 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
187   $(top_builddir)/src/arm/libgnunetarm.la                       \
188   $(top_builddir)/src/util/libgnunetutil.la
189
190 test_fs_start_stop_SOURCES = \
191  test_fs_start_stop.c
192 test_fs_start_stop_LDADD = \
193   $(top_builddir)/src/fs/libgnunetfs.la  \
194   $(top_builddir)/src/arm/libgnunetarm.la  \
195   $(top_builddir)/src/util/libgnunetutil.la  
196
197 test_fs_unindex_SOURCES = \
198  test_fs_unindex.c
199 test_fs_unindex_LDADD = \
200   $(top_builddir)/src/fs/libgnunetfs.la  \
201   $(top_builddir)/src/arm/libgnunetarm.la  \
202   $(top_builddir)/src/util/libgnunetutil.la  
203
204 test_fs_uri_SOURCES = \
205  test_fs_uri.c
206 test_fs_uri_LDADD = \
207   $(top_builddir)/src/fs/libgnunetfs.la  \
208   $(top_builddir)/src/util/libgnunetutil.la  
209
210 EXTRA_DIST = \
211   test_fs_data.conf \
212   test_fs_collection_data.conf \
213   test_fs_download_data.conf \
214   test_fs_file_information_data.conf \
215   test_fs_list_indexed_data.conf \
216   test_fs_namespace_data.conf \
217   test_fs_publish_data.conf \
218   test_fs_search_data.conf \
219   test_fs_unindex_data.conf \
220   test_fs_uri_data.conf