Updated for string-utils namespace changes.
[platform/upstream/evolution-data-server.git] / camel / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 SUBDIRS = . providers tests
4
5 libcamelincludedir = $(privincludedir)/camel
6
7 camellibexecdir = $(privlibexecdir)/camel
8 camellibexec_PROGRAMS = camel-lock-helper camel-index-control
9
10 privlib_LTLIBRARIES = libcamel.la
11 noinst_LTLIBRARIES = libcamel-static.la
12
13 INCLUDES = -I.. -I$(srcdir)/..                          \
14         -I$(top_srcdir)/intl                            \
15         -I$(top_srcdir)/e-util                          \
16         -DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\"     \
17         -DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\"  \
18         -DG_LOG_DOMAIN=\"camel\"                        \
19         -DG_DISABLE_DEPRECATED                          \
20         $(CAMEL_CFLAGS)
21
22 libcamel_la_SOURCES =                           \
23         broken-date-parser.c                    \
24         camel-address.c                         \
25         camel-arg.c                             \
26         camel-block-file.c                      \
27         camel-certdb.c                          \
28         camel-charset-map.c                     \
29         camel-cipher-context.c                  \
30         camel-cms-context.c                     \
31         camel-data-cache.c                      \
32         camel-data-wrapper.c                    \
33         camel-digest-folder.c                   \
34         camel-digest-store.c                    \
35         camel-digest-summary.c                  \
36         camel-disco-diary.c                     \
37         camel-disco-folder.c                    \
38         camel-disco-store.c                     \
39         camel-exception.c                       \
40         camel-file-utils.c                      \
41         camel-filter-driver.c                   \
42         camel-filter-search.c                   \
43         camel-folder-search.c                   \
44         camel-folder-summary.c                  \
45         camel-folder-thread.c                   \
46         camel-folder.c                          \
47         camel-gpg-context.c                     \
48         camel-html-parser.c                     \
49         camel-http-stream.c                     \
50         camel-index.c                           \
51         camel-internet-address.c                \
52         camel-io.c                              \
53         camel-lock.c                            \
54         camel-lock-client.c                     \
55         camel-medium.c                          \
56         camel-mime-filter-bestenc.c             \
57         camel-mime-filter-basic.c               \
58         camel-mime-filter-charset.c             \
59         camel-mime-filter-canon.c               \
60         camel-mime-filter-crlf.c                \
61         camel-mime-filter-enriched.c            \
62         camel-mime-filter-from.c                \
63         camel-mime-filter-html.c                \
64         camel-mime-filter-tohtml.c              \
65         camel-mime-filter-index.c               \
66         camel-mime-filter-linewrap.c            \
67         camel-mime-filter-save.c                \
68         camel-mime-filter.c                     \
69         camel-mime-message.c                    \
70         camel-mime-parser.c                     \
71         camel-mime-part-utils.c                 \
72         camel-mime-part.c                       \
73         camel-mime-utils.c                      \
74         camel-movemail.c                        \
75         camel-multipart.c                       \
76         camel-multipart-encrypted.c             \
77         camel-multipart-signed.c                \
78         camel-object.c                          \
79         camel-operation.c                       \
80         camel-partition-table.c                 \
81         camel-pgp-mime.c                        \
82         camel-smime-context.c                   \
83         camel-smime-utils.c                     \
84         camel-provider.c                        \
85         camel-sasl.c                            \
86         camel-sasl-anonymous.c                  \
87         camel-sasl-cram-md5.c                   \
88         camel-sasl-digest-md5.c                 \
89         camel-sasl-gssapi.c                     \
90         camel-sasl-kerberos4.c                  \
91         camel-sasl-login.c                      \
92         camel-sasl-ntlm.c                       \
93         camel-sasl-plain.c                      \
94         camel-sasl-popb4smtp.c                  \
95         camel-search-private.c                  \
96         camel-seekable-stream.c                 \
97         camel-seekable-substream.c              \
98         camel-service.c                         \
99         camel-session.c                         \
100         camel-store.c                           \
101         camel-store-summary.c                   \
102         camel-stream-buffer.c                   \
103         camel-stream-filter.c                   \
104         camel-stream-fs.c                       \
105         camel-stream-mem.c                      \
106         camel-stream-null.c                     \
107         camel-stream.c                          \
108         camel-string-utils.c                    \
109         camel-text-index.c                      \
110         camel-tcp-stream-raw.c                  \
111         camel-tcp-stream-ssl.c                  \
112         camel-tcp-stream-openssl.c              \
113         camel-tcp-stream.c                      \
114         camel-transport.c                       \
115         camel-uid-cache.c                       \
116         camel-url.c                             \
117         camel-url-scanner.c                     \
118         camel-utf8.c                            \
119         camel-vee-folder.c                      \
120         camel-vee-store.c                       \
121         camel-vtrash-folder.c                   \
122         camel.c
123
124 libcamelinclude_HEADERS =                       \
125         broken-date-parser.h                    \
126         camel-address.h                         \
127         camel-arg.h                             \
128         camel-block-file.h                      \
129         camel-certdb.h                          \
130         camel-charset-map.h                     \
131         camel-cipher-context.h                  \
132         camel-cms-context.h                     \
133         camel-data-cache.h                      \
134         camel-data-wrapper.h                    \
135         camel-digest-folder.h                   \
136         camel-digest-store.h                    \
137         camel-digest-summary.h                  \
138         camel-disco-diary.h                     \
139         camel-disco-folder.h                    \
140         camel-disco-store.h                     \
141         camel-exception-list.def                \
142         camel-exception.h                       \
143         camel-file-utils.h                      \
144         camel-filter-driver.h                   \
145         camel-filter-search.h                   \
146         camel-folder-search.h                   \
147         camel-folder-summary.h                  \
148         camel-folder-thread.h                   \
149         camel-folder.h                          \
150         camel-gpg-context.h                     \
151         camel-http-stream.h                     \
152         camel-index.h                           \
153         camel-internet-address.h                \
154         camel-io.h                              \
155         camel-i18n.h                            \
156         camel-lock.h                            \
157         camel-lock-client.h                     \
158         camel-medium.h                          \
159         camel-mime-filter-bestenc.h             \
160         camel-mime-filter-basic.h               \
161         camel-mime-filter-charset.h             \
162         camel-mime-filter-canon.h               \
163         camel-mime-filter-crlf.h                \
164         camel-mime-filter-enriched.h            \
165         camel-mime-filter-from.h                \
166         camel-mime-filter-html.h                \
167         camel-mime-filter-tohtml.h              \
168         camel-mime-filter-index.h               \
169         camel-mime-filter-linewrap.h            \
170         camel-mime-filter-save.h                \
171         camel-mime-filter.h                     \
172         camel-mime-message.h                    \
173         camel-mime-parser.h                     \
174         camel-mime-part-utils.h                 \
175         camel-mime-part.h                       \
176         camel-mime-utils.h                      \
177         camel-movemail.h                        \
178         camel-multipart.h                       \
179         camel-multipart-encrypted.h             \
180         camel-multipart-signed.h                \
181         camel-object.h                          \
182         camel-operation.h                       \
183         camel-partition-table.h                 \
184         camel-pgp-mime.h                        \
185         camel-smime-context.h                   \
186         camel-smime-utils.h                     \
187         camel-provider.h                        \
188         camel-sasl.h                            \
189         camel-sasl-anonymous.h                  \
190         camel-sasl-cram-md5.h                   \
191         camel-sasl-digest-md5.h                 \
192         camel-sasl-gssapi.h                     \
193         camel-sasl-kerberos4.h                  \
194         camel-sasl-login.h                      \
195         camel-sasl-ntlm.h                       \
196         camel-sasl-plain.h                      \
197         camel-sasl-popb4smtp.h                  \
198         camel-seekable-stream.h                 \
199         camel-seekable-substream.h              \
200         camel-service.h                         \
201         camel-session.h                         \
202         camel-store.h                           \
203         camel-store-summary.h                   \
204         camel-stream-buffer.h                   \
205         camel-stream-filter.h                   \
206         camel-stream-fs.h                       \
207         camel-stream-mem.h                      \
208         camel-stream-null.h                     \
209         camel-stream.h                          \
210         camel-string-utils.h                    \
211         camel-text-index.h                      \
212         camel-tcp-stream-raw.h                  \
213         camel-tcp-stream-ssl.h                  \
214         camel-tcp-stream.h                      \
215         camel-transport.h                       \
216         camel-types.h                           \
217         camel-uid-cache.h                       \
218         camel-url.h                             \
219         camel-url-scanner.h                     \
220         camel-utf8.h                            \
221         camel-vee-folder.h                      \
222         camel-vee-store.h                       \
223         camel-vtrash-folder.h                   \
224         camel.h
225
226 libcamel_la_LDFLAGS = -version-info 0:0:0
227
228 libcamel_la_LIBADD =                            \
229         $(top_builddir)/e-util/libeutil.la      \
230         $(CAMEL_LIBS)
231
232 libcamel_static_la_SOURCES = $(libcamel_la_SOURCES)
233 libcamel_static_la_LIBADD  = $(libcamel_la_LIBADD)
234 libcamel_static_la_LDFLAGS = --all-static
235
236 camel_lock_helper_SOURCES =                     \
237         camel-lock-helper.c                     \
238         camel-lock-helper.h
239
240 # NOTE: This needs to be cleaned up, it shouldn't link with all this crap,
241 # because it might be setuid.
242 camel_lock_helper_LDADD =                       \
243         camel-lock.o                            \
244         $(libcamel_la_LIBADD)
245
246 camel_index_control_SOURCES =                   \
247         camel-index-control.c
248
249 camel_index_control_LDADD =                     \
250         $(libcamel_la_LIBADD)                   \
251         libcamel.la
252 #       $(EVOLUTION_MAIL_LIBS)
253
254 install-exec-hook:
255         @if test -n "$(CAMEL_LOCK_HELPER_USER)"; then \
256             if test `whoami` = root ; then \
257                 chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(camellibexecdir)/camel-lock-helper ; \
258                 chmod u+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper ; \
259             else \
260                 echo '*** WARNING ***' ; \
261                     echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
262                     echo "    1. Become root" ; \
263                     echo "    2. chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
264                     echo "    3. chmod u+s $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
265                     echo '*** WARNING ***' ; \
266             fi \
267         else \
268             echo "No user to chown to"; \
269         fi
270         @if test -n "$(CAMEL_LOCK_HELPER_GROUP)"; then \
271             if test `whoami` = root ; then \
272                 chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(camellibexecdir)/camel-lock-helper ; \
273                     chmod g+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper ; \
274             else \
275                 echo '*** WARNING ***' ; \
276                     echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
277                     echo "    1. Become root" ; \
278                     echo "    2. chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(camellibexecdir)/camel-lock-helper" ; \
279                     echo "    3. chmod g+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper" ; \
280                     echo '*** WARNING ***' ; \
281             fi \
282         else \
283             echo "No user to chown to"; \
284         fi
285
286 noinst_HEADERS =                                \
287         camel-charset-map-private.h             \
288         camel-private.h                         \
289         camel-search-private.h                  \
290         camel-html-parser.h
291
292 EXTRA_DIST =                                    \
293         ChangeLog.pre-1-4                       \
294         README