Extending test-client-custom-summary to try e_book_client_get_contacts_uids()
[platform/upstream/evolution-data-server.git] / camel / Makefile.am
1 SUBDIRS = . providers tests
2
3 if OS_WIN32
4 LIBCAMEL_PLATFORM_DEP_SOURCES = \
5         camel-win32.c
6 LOCK_HELPER =
7 else
8 LIBCAMEL_PLATFORM_DEP_SOURCES = \
9         camel-lock-client.c \
10         camel-movemail.c \
11         camel-stream-process.c
12 LOCK_HELPER = camel-lock-helper-1.2
13 endif
14
15 MARSHAL_GENERATED = camel-marshal.c camel-marshal.h
16 @EVO_MARSHAL_RULE@
17
18 %-$(API_VERSION).pc: %.pc
19          cp $< $@
20
21 pkgconfigdir = $(libdir)/pkgconfig
22 pkgconfig_in_files = camel.pc.in
23 pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=-$(API_VERSION).pc)
24
25 camel-imapx-tokenise.h: camel-imapx-tokens.txt
26         @GPERF@ -H imapx_hash -N imapx_tokenise_struct -L ANSI-C -o -t -k1,$$ $< --output-file=$@
27
28 libcamelincludedir = $(privincludedir)/camel
29
30 camellibexecdir = $(libexecdir)
31 camellibexec_PROGRAMS = $(LOCK_HELPER) camel-index-control-1.2
32
33 lib_LTLIBRARIES = libcamel-1.2.la
34
35 ENUM_TYPES = camel-enums.h
36
37 camel-enumtypes.h: camel-enumtypes.h.template $(ENUM_TYPES)
38         $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template camel-enumtypes.h.template $(ENUM_TYPES)) > $@
39
40 camel-enumtypes.c: camel-enumtypes.c.template $(ENUM_TYPES)
41         $(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template camel-enumtypes.c.template $(ENUM_TYPES)) > $@
42
43 ENUM_GENERATED = camel-enumtypes.h camel-enumtypes.c camel-imapx-tokenise.h
44
45 libcamel_1_2_la_CPPFLAGS = \
46         $(AM_CPPFLAGS)                                          \
47         -I$(top_srcdir)                                         \
48         -I$(top_builddir)                                       \
49         -I$(srcdir)                                             \
50         -DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\"             \
51         -DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\"          \
52         -DG_LOG_DOMAIN=\"camel\"                                \
53         -DE_DATA_SERVER_PREFIX=\"$(prefix)\"                    \
54         -DLOCALEDIR=\""$(localedir)"\"                          \
55         -DCAMEL_COMPILATION                                     \
56         $(CAMEL_CFLAGS)                                         \
57         $(CODE_COVERAGE_CFLAGS)                                 \
58         $(NULL)
59
60 libcamel_1_2_la_SOURCES =                       \
61         $(ENUM_GENERATED)                       \
62         $(MARSHAL_GENERATED)                    \
63         camel-address.c                         \
64         camel-block-file.c                      \
65         camel-certdb.c                          \
66         camel-charset-map.c                     \
67         camel-cipher-context.c                  \
68         camel-data-cache.c                      \
69         camel-data-wrapper.c                    \
70         camel-db.c                              \
71         camel-debug.c                           \
72         camel-disco-diary.c                     \
73         camel-disco-folder.c                    \
74         camel-disco-store.c                     \
75         camel-file-utils.c                      \
76         camel-filter-driver.c                   \
77         camel-filter-search.c                   \
78         camel-folder-search.c                   \
79         camel-folder-summary.c                  \
80         camel-folder-thread.c                   \
81         camel-folder.c                          \
82         camel-gpg-context.c                     \
83         camel-html-parser.c                     \
84         camel-iconv.c                           \
85         camel-index.c                           \
86         camel-internet-address.c                \
87         camel-junk-filter.c                     \
88         camel-local-settings.c                  \
89         camel-lock.c                            \
90         camel-medium.c                          \
91         camel-memchunk.c                        \
92         camel-mempool.c                         \
93         camel-mime-filter-basic.c               \
94         camel-mime-filter-bestenc.c             \
95         camel-mime-filter-canon.c               \
96         camel-mime-filter-charset.c             \
97         camel-mime-filter-crlf.c                \
98         camel-mime-filter-enriched.c            \
99         camel-mime-filter-from.c                \
100         camel-mime-filter-gzip.c                \
101         camel-mime-filter-html.c                \
102         camel-mime-filter-index.c               \
103         camel-mime-filter-linewrap.c            \
104         camel-mime-filter-pgp.c                 \
105         camel-mime-filter-progress.c            \
106         camel-mime-filter-save.c                \
107         camel-mime-filter-tohtml.c              \
108         camel-mime-filter-windows.c             \
109         camel-mime-filter-yenc.c                \
110         camel-mime-filter.c                     \
111         camel-mime-message.c                    \
112         camel-mime-parser.c                     \
113         camel-mime-part-utils.c                 \
114         camel-mime-part.c                       \
115         camel-mime-tables.c                     \
116         camel-mime-utils.c                      \
117         camel-msgport.c                         \
118         camel-multipart-encrypted.c             \
119         camel-multipart-signed.c                \
120         camel-multipart.c                       \
121         camel-net-utils.c                       \
122         camel-network-service.c                 \
123         camel-network-settings.c                \
124         camel-nntp-address.c                    \
125         camel-object-bag.c                      \
126         camel-object.c                          \
127         camel-offline-folder.c                  \
128         camel-offline-journal.c                 \
129         camel-offline-settings.c                \
130         camel-offline-store.c                   \
131         camel-operation.c                       \
132         camel-partition-table.c                 \
133         camel-provider.c                        \
134         camel-sasl-anonymous.c                  \
135         camel-sasl-cram-md5.c                   \
136         camel-sasl-digest-md5.c                 \
137         camel-sasl-gssapi.c                     \
138         camel-sasl-login.c                      \
139         camel-sasl-ntlm.c                       \
140         camel-sasl-plain.c                      \
141         camel-sasl-popb4smtp.c                  \
142         camel-sasl.c                            \
143         camel-search-private.c                  \
144         camel-search-sql-sexp.c                 \
145         camel-service.c                         \
146         camel-session.c                         \
147         camel-settings.c                        \
148         camel-sexp.c                            \
149         camel-smime-context.c                   \
150         camel-store-settings.c                  \
151         camel-store-summary.c                   \
152         camel-store.c                           \
153         camel-stream-buffer.c                   \
154         camel-stream-filter.c                   \
155         camel-stream-fs.c                       \
156         camel-stream-mem.c                      \
157         camel-stream-null.c                     \
158         camel-stream-vfs.c                      \
159         camel-stream.c                          \
160         camel-string-utils.c                    \
161         camel-subscribable.c                    \
162         camel-tcp-stream-raw.c                  \
163         camel-tcp-stream-ssl.c                  \
164         camel-tcp-stream.c                      \
165         camel-text-index.c                      \
166         camel-transport.c                       \
167         camel-trie.c                            \
168         camel-uid-cache.c                       \
169         camel-url-scanner.c                     \
170         camel-url.c                             \
171         camel-utf8.c                            \
172         camel-vee-data-cache.c                  \
173         camel-vee-folder.c                      \
174         camel-vee-store.c                       \
175         camel-vee-summary.c                     \
176         camel-vtrash-folder.c                   \
177         camel-imapx-command.c                   \
178         camel-imapx-job.c                       \
179         camel-imapx-settings.c                  \
180         camel-imapx-server.c                    \
181         camel-imapx-conn-manager.c              \
182         camel-imapx-folder.c                    \
183         camel-imapx-store-summary.c             \
184         camel-imapx-store.c                     \
185         camel-imapx-stream.c                    \
186         camel-imapx-summary.c                   \
187         camel-imapx-utils.c                     \
188         camel.c                                 \
189         $(LIBCAMEL_PLATFORM_DEP_SOURCES)
190
191 libcamelinclude_HEADERS =                       \
192         camel-address.h                         \
193         camel-block-file.h                      \
194         camel-certdb.h                          \
195         camel-charset-map.h                     \
196         camel-cipher-context.h                  \
197         camel-data-cache.h                      \
198         camel-data-wrapper.h                    \
199         camel-db.h                              \
200         camel-debug.h                           \
201         camel-disco-diary.h                     \
202         camel-disco-folder.h                    \
203         camel-disco-store.h                     \
204         camel-enums.h                           \
205         camel-enumtypes.h                       \
206         camel-file-utils.h                      \
207         camel-filter-driver.h                   \
208         camel-filter-search.h                   \
209         camel-folder-search.h                   \
210         camel-folder-summary.h                  \
211         camel-folder-thread.h                   \
212         camel-folder.h                          \
213         camel-gpg-context.h                     \
214         camel-html-parser.h                     \
215         camel-iconv.h                           \
216         camel-index.h                           \
217         camel-internet-address.h                \
218         camel-junk-filter.h                     \
219         camel-local-settings.h                  \
220         camel-lock-client.h                     \
221         camel-lock-helper.h                     \
222         camel-lock.h                            \
223         camel-medium.h                          \
224         camel-memchunk.h                        \
225         camel-mempool.h                         \
226         camel-mime-filter-basic.h               \
227         camel-mime-filter-bestenc.h             \
228         camel-mime-filter-canon.h               \
229         camel-mime-filter-charset.h             \
230         camel-mime-filter-crlf.h                \
231         camel-mime-filter-enriched.h            \
232         camel-mime-filter-from.h                \
233         camel-mime-filter-gzip.h                \
234         camel-mime-filter-html.h                \
235         camel-mime-filter-index.h               \
236         camel-mime-filter-linewrap.h            \
237         camel-mime-filter-pgp.h                 \
238         camel-mime-filter-progress.h            \
239         camel-mime-filter-save.h                \
240         camel-mime-filter-tohtml.h              \
241         camel-mime-filter-windows.h             \
242         camel-mime-filter-yenc.h                \
243         camel-mime-filter.h                     \
244         camel-mime-message.h                    \
245         camel-mime-parser.h                     \
246         camel-mime-part-utils.h                 \
247         camel-mime-part.h                       \
248         camel-mime-utils.h                      \
249         camel-movemail.h                        \
250         camel-msgport.h                         \
251         camel-multipart-encrypted.h             \
252         camel-multipart-signed.h                \
253         camel-multipart.h                       \
254         camel-net-utils.h                       \
255         camel-network-service.h                 \
256         camel-network-settings.h                \
257         camel-nntp-address.h                    \
258         camel-object-bag.h                      \
259         camel-object.h                          \
260         camel-offline-folder.h                  \
261         camel-offline-journal.h                 \
262         camel-offline-settings.h                \
263         camel-offline-store.h                   \
264         camel-operation.h                       \
265         camel-partition-table.h                 \
266         camel-provider.h                        \
267         camel-sasl-anonymous.h                  \
268         camel-sasl-cram-md5.h                   \
269         camel-sasl-digest-md5.h                 \
270         camel-sasl-gssapi.h                     \
271         camel-sasl-login.h                      \
272         camel-sasl-ntlm.h                       \
273         camel-sasl-plain.h                      \
274         camel-sasl-popb4smtp.h                  \
275         camel-sasl.h                            \
276         camel-search-private.h                  \
277         camel-search-sql-sexp.h                 \
278         camel-service.h                         \
279         camel-session.h                         \
280         camel-settings.h                        \
281         camel-sexp.h                            \
282         camel-smime-context.h                   \
283         camel-store-settings.h                  \
284         camel-store-summary.h                   \
285         camel-store.h                           \
286         camel-stream-buffer.h                   \
287         camel-stream-filter.h                   \
288         camel-stream-fs.h                       \
289         camel-stream-mem.h                      \
290         camel-stream-null.h                     \
291         camel-stream-process.h                  \
292         camel-stream-vfs.h                      \
293         camel-stream.h                          \
294         camel-string-utils.h                    \
295         camel-subscribable.h                    \
296         camel-tcp-stream-raw.h                  \
297         camel-tcp-stream-ssl.h                  \
298         camel-tcp-stream.h                      \
299         camel-text-index.h                      \
300         camel-transport.h                       \
301         camel-trie.h                            \
302         camel-uid-cache.h                       \
303         camel-url-scanner.h                     \
304         camel-url.h                             \
305         camel-utf8.h                            \
306         camel-vee-data-cache.h                  \
307         camel-vee-folder.h                      \
308         camel-vee-store.h                       \
309         camel-vee-summary.h                     \
310         camel-vtrash-folder.h                   \
311         camel-imapx-command.h                   \
312         camel-imapx-conn-manager.h              \
313         camel-imapx-folder.h                    \
314         camel-imapx-job.h                       \
315         camel-imapx-settings.h                  \
316         camel-imapx-server.h                    \
317         camel-imapx-store-summary.h             \
318         camel-imapx-store.h                     \
319         camel-imapx-stream.h                    \
320         camel-imapx-summary.h                   \
321         camel-imapx-utils.h                     \
322         camel.h
323
324 libcamel_1_2_la_LDFLAGS = -version-info $(LIBCAMEL_CURRENT):$(LIBCAMEL_REVISION):$(LIBCAMEL_AGE) $(NO_UNDEFINED) \
325         $(CODE_COVERAGE_LDFLAGS) \
326         $(NULL)
327
328 libcamel_1_2_la_LIBADD =                                \
329         $(CAMEL_LIBS)                                   \
330         $(SOCKET_LIBS)                                  \
331         $(ICONV_LIBS)                                   \
332         $(REGEX_LIBS)                                   \
333         $(LIBDWFL_LIBS)
334
335 camel_lock_helper_1_2_CPPFLAGS = \
336         $(AM_CPPFLAGS)                                          \
337         -I$(top_srcdir)                                         \
338         -I$(top_builddir)                                       \
339         -I$(srcdir)                                             \
340         -DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\"             \
341         -DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\"          \
342         -DG_LOG_DOMAIN=\"camel\"                                \
343         -DE_DATA_SERVER_PREFIX=\"$(prefix)\"                    \
344         -DLOCALEDIR=\""$(localedir)"\"                          \
345         -DCAMEL_COMPILATION                                     \
346         $(CAMEL_CFLAGS)
347
348 camel_lock_helper_1_2_SOURCES = \
349         camel-lock.c                                    \
350         camel-lock.h                                    \
351         camel-lock-helper.c                     \
352         camel-lock-helper.h
353
354 # NOTE: This needs to be cleaned up, it shouldn't link with all this crap,
355 # because it might be setuid.
356 camel_lock_helper_1_2_LDADD = \
357         $(libcamel_1_2_la_LIBADD)
358
359 camel_index_control_1_2_CPPFLAGS = \
360         $(AM_CPPFLAGS)                                          \
361         -I$(top_srcdir)                                         \
362         -I$(top_builddir)                                       \
363         -I$(srcdir)                                             \
364         -DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\"             \
365         -DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\"          \
366         -DG_LOG_DOMAIN=\"camel\"                                \
367         -DE_DATA_SERVER_PREFIX=\"$(prefix)\"                    \
368         -DLOCALEDIR=\""$(localedir)"\"                          \
369         -DCAMEL_COMPILATION                                     \
370         $(CAMEL_CFLAGS)
371
372 camel_index_control_1_2_SOURCES = \
373         camel-index-control.c
374
375 camel_index_control_1_2_LDADD = \
376         libcamel-1.2.la                         \
377         $(libcamel_1_2_la_LIBADD)
378
379 camel-mime-tables.c: $(srcdir)/gentables.pl
380         perl $(srcdir)/gentables.pl > $@
381
382 install-exec-hook:
383         @if test -n "$(CAMEL_LOCK_HELPER_USER)"; then \
384             if test `whoami` = root ; then \
385                 chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION) ; \
386                 chmod u+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION) ; \
387             else \
388                 echo '*** WARNING ***' ; \
389                     echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
390                     echo "    1. Become root" ; \
391                     echo "    2. chown $(CAMEL_LOCK_HELPER_USER) $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
392                     echo "    3. chmod u+s $(DESTDIR)$(sbindir)/camel-lock-helper" ; \
393                     echo '*** WARNING ***' ; \
394             fi \
395         else \
396             echo "No user to chown to"; \
397         fi
398         @if test -n "$(CAMEL_LOCK_HELPER_GROUP)"; then \
399             if test `whoami` = root ; then \
400                 chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION) ; \
401                     chmod g+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION) ; \
402             else \
403                 echo '*** WARNING ***' ; \
404                     echo "Camel will not be able to open mbox files until you perform the following steps:" ; \
405                     echo "    1. Become root" ; \
406                     echo "    2. chgrp $(CAMEL_LOCK_HELPER_GROUP) $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION)" ; \
407                     echo "    3. chmod g+s $(DESTDIR)$(camellibexecdir)/camel-lock-helper-$(API_VERSION)" ; \
408                     echo '*** WARNING ***' ; \
409             fi \
410         else \
411             echo "No user to chown to"; \
412         fi
413
414 noinst_HEADERS =                                \
415         camel-charset-map-private.h             \
416         camel-win32.h                           
417
418 BUILT_SOURCES =                                 \
419         camel-mime-tables.c                     \
420         $(ENUM_GENERATED)                       \
421         $(MARSHAL_GENERATED)
422
423 EXTRA_DIST =                                    \
424         $(pkgconfig_in_files)                   \
425         camel-enumtypes.h.template              \
426         camel-enumtypes.c.template              \
427         camel-imapx-tokens.txt                  \
428         camel-marshal.list                      \
429         gentables.pl                            \
430         README
431
432 CLEANFILES = $(BUILT_SOURCES)
433 DISTCLEANFILES = $(pkgconfig_DATA)
434
435 -include $(top_srcdir)/git.mk