1 SUBDIRS = . providers tests
4 LIBCAMEL_PLATFORM_DEP_SOURCES = \
8 LIBCAMEL_PLATFORM_DEP_SOURCES = \
11 camel-stream-process.c
12 LOCK_HELPER = camel-lock-helper-1.2
15 MARSHAL_GENERATED = camel-marshal.c camel-marshal.h
18 %-$(API_VERSION).pc: %.pc
21 pkgconfigdir = $(libdir)/pkgconfig
22 pkgconfig_in_files = camel.pc.in
23 pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=-$(API_VERSION).pc)
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=$@
28 libcamelincludedir = $(privincludedir)/camel
30 camellibexecdir = $(libexecdir)
31 camellibexec_PROGRAMS = $(LOCK_HELPER) camel-index-control-1.2
33 lib_LTLIBRARIES = libcamel-1.2.la
35 ENUM_TYPES = camel-enums.h
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)) > $@
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)) > $@
43 ENUM_GENERATED = camel-enumtypes.h camel-enumtypes.c camel-imapx-tokenise.h
45 libcamel_1_2_la_CPPFLAGS = \
50 -DCAMEL_LIBEXECDIR=\""$(camellibexecdir)"\" \
51 -DCAMEL_PROVIDERDIR=\""$(camel_providerdir)"\" \
52 -DG_LOG_DOMAIN=\"camel\" \
53 -DE_DATA_SERVER_PREFIX=\"$(prefix)\" \
54 -DLOCALEDIR=\""$(localedir)"\" \
57 $(CODE_COVERAGE_CFLAGS) \
60 libcamel_1_2_la_SOURCES = \
62 $(MARSHAL_GENERATED) \
67 camel-cipher-context.c \
69 camel-data-wrapper.c \
73 camel-disco-folder.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 \
86 camel-internet-address.c \
88 camel-local-settings.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 \
115 camel-mime-tables.c \
118 camel-multipart-encrypted.c \
119 camel-multipart-signed.c \
122 camel-network-service.c \
123 camel-network-settings.c \
124 camel-nntp-address.c \
127 camel-offline-folder.c \
128 camel-offline-journal.c \
129 camel-offline-settings.c \
130 camel-offline-store.c \
132 camel-partition-table.c \
134 camel-sasl-anonymous.c \
135 camel-sasl-cram-md5.c \
136 camel-sasl-digest-md5.c \
137 camel-sasl-gssapi.c \
141 camel-sasl-popb4smtp.c \
143 camel-search-private.c \
144 camel-search-sql-sexp.c \
149 camel-smime-context.c \
150 camel-store-settings.c \
151 camel-store-summary.c \
153 camel-stream-buffer.c \
154 camel-stream-filter.c \
157 camel-stream-null.c \
160 camel-string-utils.c \
161 camel-subscribable.c \
162 camel-tcp-stream-raw.c \
163 camel-tcp-stream-ssl.c \
169 camel-url-scanner.c \
172 camel-vee-data-cache.c \
175 camel-vee-summary.c \
176 camel-vtrash-folder.c \
177 camel-imapx-command.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 \
189 $(LIBCAMEL_PLATFORM_DEP_SOURCES)
191 libcamelinclude_HEADERS = \
195 camel-charset-map.h \
196 camel-cipher-context.h \
198 camel-data-wrapper.h \
201 camel-disco-diary.h \
202 camel-disco-folder.h \
203 camel-disco-store.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 \
213 camel-gpg-context.h \
214 camel-html-parser.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 \
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 \
251 camel-multipart-encrypted.h \
252 camel-multipart-signed.h \
255 camel-network-service.h \
256 camel-network-settings.h \
257 camel-nntp-address.h \
260 camel-offline-folder.h \
261 camel-offline-journal.h \
262 camel-offline-settings.h \
263 camel-offline-store.h \
265 camel-partition-table.h \
267 camel-sasl-anonymous.h \
268 camel-sasl-cram-md5.h \
269 camel-sasl-digest-md5.h \
270 camel-sasl-gssapi.h \
274 camel-sasl-popb4smtp.h \
276 camel-search-private.h \
277 camel-search-sql-sexp.h \
282 camel-smime-context.h \
283 camel-store-settings.h \
284 camel-store-summary.h \
286 camel-stream-buffer.h \
287 camel-stream-filter.h \
290 camel-stream-null.h \
291 camel-stream-process.h \
294 camel-string-utils.h \
295 camel-subscribable.h \
296 camel-tcp-stream-raw.h \
297 camel-tcp-stream-ssl.h \
303 camel-url-scanner.h \
306 camel-vee-data-cache.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 \
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 \
324 libcamel_1_2_la_LDFLAGS = -version-info $(LIBCAMEL_CURRENT):$(LIBCAMEL_REVISION):$(LIBCAMEL_AGE) $(NO_UNDEFINED) \
325 $(CODE_COVERAGE_LDFLAGS) \
328 libcamel_1_2_la_LIBADD = \
335 camel_lock_helper_1_2_CPPFLAGS = \
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 \
348 camel_lock_helper_1_2_SOURCES = \
351 camel-lock-helper.c \
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)
359 camel_index_control_1_2_CPPFLAGS = \
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 \
372 camel_index_control_1_2_SOURCES = \
373 camel-index-control.c
375 camel_index_control_1_2_LDADD = \
377 $(libcamel_1_2_la_LIBADD)
379 camel-mime-tables.c: $(srcdir)/gentables.pl
380 perl $(srcdir)/gentables.pl > $@
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) ; \
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 ***' ; \
396 echo "No user to chown to"; \
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) ; \
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 ***' ; \
411 echo "No user to chown to"; \
415 camel-charset-map-private.h \
419 camel-mime-tables.c \
424 $(pkgconfig_in_files) \
425 camel-enumtypes.h.template \
426 camel-enumtypes.c.template \
427 camel-imapx-tokens.txt \
432 CLEANFILES = $(BUILT_SOURCES)
433 DISTCLEANFILES = $(pkgconfig_DATA)
435 -include $(top_srcdir)/git.mk