a43c8340dd570294bdca261cb354962ef2a9d57e
[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_drq.c gnunet-service-fs_drq.h \
89  gnunet-service-fs_indexing.c gnunet-service-fs_indexing.h 
90 gnunet_service_fs_LDADD =  \
91  $(top_builddir)/src/fs/libgnunetfs.la \
92  $(top_builddir)/src/datastore/libgnunetdatastore.la \
93  $(top_builddir)/src/core/libgnunetcore.la \
94  $(top_builddir)/src/util/libgnunetutil.la \
95  $(GN_LIBINTL)
96
97 gnunet_unindex_SOURCES = \
98  gnunet-unindex.c         
99 gnunet_unindex_LDADD = \
100   $(top_builddir)/src/fs/libgnunetfs.la \
101   $(top_builddir)/src/util/libgnunetutil.la \
102   $(GN_LIBINTL)
103
104
105
106
107 check_PROGRAMS = \
108  test_fs_collection \
109  test_fs_directory \
110  test_fs_download \
111  test_fs_file_information \
112  test_fs_getopt \
113  test_fs_list_indexed \
114  test_fs_namespace \
115  test_fs_publish \
116  test_fs_search \
117  test_fs_start_stop \
118  test_fs_unindex \
119  test_fs_uri
120
121 TESTS = \
122  test_fs_directory \
123  test_fs_download \
124  test_fs_file_information \
125  test_fs_list_indexed \
126  test_fs_publish \
127  test_fs_search \
128  test_fs_start_stop \
129  test_fs_unindex \
130  test_fs_uri
131 # $(check_PROGRAMS)
132
133 test_fs_collection_SOURCES = \
134  test_fs_collection.c
135 test_fs_collection_LDADD = \
136   $(top_builddir)/src/fs/libgnunetfs.la  \
137   $(top_builddir)/src/util/libgnunetutil.la  
138
139 test_fs_directory_SOURCES = \
140  test_fs_directory.c
141 test_fs_directory_LDADD = \
142   $(top_builddir)/src/fs/libgnunetfs.la  \
143   $(top_builddir)/src/util/libgnunetutil.la  
144
145 test_fs_download_SOURCES = \
146  test_fs_download.c
147 test_fs_download_LDADD = \
148   $(top_builddir)/src/fs/libgnunetfs.la  \
149   $(top_builddir)/src/arm/libgnunetarm.la  \
150   $(top_builddir)/src/util/libgnunetutil.la  
151
152 test_fs_file_information_SOURCES = \
153  test_fs_file_information.c
154 test_fs_file_information_LDADD = \
155   $(top_builddir)/src/fs/libgnunetfs.la  \
156   $(top_builddir)/src/util/libgnunetutil.la  
157
158 test_fs_getopt_SOURCES = \
159  test_fs_getopt.c
160 test_fs_getopt_LDADD = \
161   $(top_builddir)/src/fs/libgnunetfs.la  \
162   $(top_builddir)/src/util/libgnunetutil.la  
163
164 test_fs_list_indexed_SOURCES = \
165  test_fs_list_indexed.c
166 test_fs_list_indexed_LDADD = \
167   $(top_builddir)/src/fs/libgnunetfs.la  \
168   $(top_builddir)/src/arm/libgnunetarm.la  \
169   $(top_builddir)/src/util/libgnunetutil.la  
170
171 test_fs_namespace_SOURCES = \
172  test_fs_namespace.c
173 test_fs_namespace_LDADD = \
174   $(top_builddir)/src/fs/libgnunetfs.la  \
175   $(top_builddir)/src/arm/libgnunetarm.la  \
176   $(top_builddir)/src/util/libgnunetutil.la  
177
178 test_fs_publish_SOURCES = \
179  test_fs_publish.c
180 test_fs_publish_LDADD = \
181   $(top_builddir)/src/fs/libgnunetfs.la  \
182   $(top_builddir)/src/arm/libgnunetarm.la  \
183   $(top_builddir)/src/util/libgnunetutil.la  
184
185 test_fs_search_SOURCES = \
186  test_fs_search.c
187 test_fs_search_LDADD = $(top_builddir)/src/fs/libgnunetfs.la    \
188   $(top_builddir)/src/arm/libgnunetarm.la                       \
189   $(top_builddir)/src/util/libgnunetutil.la
190
191 test_fs_start_stop_SOURCES = \
192  test_fs_start_stop.c
193 test_fs_start_stop_LDADD = \
194   $(top_builddir)/src/fs/libgnunetfs.la  \
195   $(top_builddir)/src/arm/libgnunetarm.la  \
196   $(top_builddir)/src/util/libgnunetutil.la  
197
198 test_fs_unindex_SOURCES = \
199  test_fs_unindex.c
200 test_fs_unindex_LDADD = \
201   $(top_builddir)/src/fs/libgnunetfs.la  \
202   $(top_builddir)/src/arm/libgnunetarm.la  \
203   $(top_builddir)/src/util/libgnunetutil.la  
204
205 test_fs_uri_SOURCES = \
206  test_fs_uri.c
207 test_fs_uri_LDADD = \
208   $(top_builddir)/src/fs/libgnunetfs.la  \
209   $(top_builddir)/src/util/libgnunetutil.la  
210
211 EXTRA_DIST = \
212   test_fs_data.conf \
213   test_fs_collection_data.conf \
214   test_fs_download_data.conf \
215   test_fs_file_information_data.conf \
216   test_fs_list_indexed_data.conf \
217   test_fs_namespace_data.conf \
218   test_fs_publish_data.conf \
219   test_fs_search_data.conf \
220   test_fs_unindex_data.conf \
221   test_fs_uri_data.conf