Fix bug 4628: typos in the README file, patch by Andreas Rönnquist.
[claws.git] / src / Makefile.am
1 # Copyright 1999-2021 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 if CLAWS_LIBETPAN
7 etpan_dir = etpan
8 etpan_library = etpan/libclawsetpan.la
9 else
10 etpan_dir =
11 etpan_library = 
12 endif
13
14 SUBDIRS = common gtk $(etpan_dir) . plugins
15 if BUILD_TESTS
16 include $(top_srcdir)/tests.mk
17 SUBDIRS += tests
18 endif
19
20 bin_PROGRAMS = claws-mail
21
22 if PLATFORM_WIN32
23 %.o : %.rc
24         $(LIBTOOL) --mode=compile --tag=RC $(RC) -I$(srcdir) -i $< -o $@
25
26 claws_mail_platform_ldflags = -Wl,w32-resource.o \
27         -Wl,--export-all-symbols,--out-implib=libclaws.a
28 claws_mail_deps = w32-resource.o
29 else
30 claws_mail_platform_ldflags =
31 claws_mail_deps =
32 endif
33
34 alt_abook_source = \
35         addressbook-dbus.c
36 orig_abook_source = \
37         addrbook.c \
38         addrclip.c \
39         addrcustomattr.c \
40         addressbook.c \
41         addressbook_foldersel.c \
42         addrindex.c \
43         addrquery.c \
44         addrselect.c \
45         addrduplicates.c \
46         addrmerge.c \
47         browseldap.c \
48         editaddress.c \
49         editaddress_other_attributes_ldap.c \
50         editbook.c \
51         editgroup.c \
52         editjpilot.c \
53         editldap_basedn.c \
54         editldap.c \
55         editvcard.c \
56         exphtmldlg.c \
57         expldifdlg.c \
58         exporthtml.c \
59         exportldif.c \
60         importldif.c \
61         importmutt.c \
62         importpine.c \
63         jpilot.c \
64         ldapctrl.c \
65         ldaplocate.c \
66         ldapquery.c \
67         ldapserver.c \
68         ldapupdate.c \
69         ldaputil.c \
70         ldif.c \
71         mutt.c \
72         pine.c \
73         vcard.c
74
75 if BUILD_ALTADDRBOOK
76 abook_source = $(alt_abook_source)
77 abook_extra = $(orig_abook_source)
78 else
79 abook_source = $(orig_abook_source)
80 abook_extra = $(alt_abook_source)
81 endif
82
83 abook_headers = \
84         addressbook-dbus.h \
85         adbookbase.h \
86         addrbook.h \
87         addrclip.h \
88         addrcustomattr.h \
89         addressbook.h \
90         addressbook_foldersel.h \
91         addrindex.h \
92         addrquery.h \
93         addrselect.h \
94         addrduplicates.h \
95         addrmerge.h \
96         browseldap.h \
97         editaddress.h \
98         editaddress_other_attributes_ldap.h \
99         editbook.h \
100         editgroup.h \
101         editjpilot.h \
102         editldap_basedn.h \
103         editldap.h \
104         editvcard.h \
105         exphtmldlg.h \
106         expldifdlg.h \
107         exporthtml.h \
108         exportldif.h \
109         file_checker.h \
110         importldif.h \
111         importmutt.h \
112         importpine.h \
113         jpilot.h \
114         ldapctrl.h \
115         ldaplocate.h \
116         ldapquery.h \
117         ldapserver.h \
118         ldapupdate.h \
119         ldaputil.h \
120         ldif.h \
121         mutt.h \
122         pine.h \
123         vcard.h
124
125 claws_mail_SOURCES = \
126         account.c \
127         action.c \
128         addrcache.c \
129         addr_compl.c \
130         addressadd.c \
131         addrgather.c \
132         addrharvest.c \
133         addritem.c \
134         advsearch.c \
135         alertpanel.c \
136         autofaces.c \
137         avatars.c \
138         compose.c \
139         crash.c \
140         customheader.c \
141         displayheader.c \
142         edittags.c \
143         enriched.c \
144         entity.c \
145         export.c \
146         file_checker.c \
147         filtering.c \
148         folder.c \
149         folder_item_prefs.c \
150         foldersel.c \
151         folderutils.c \
152         folderview.c \
153         grouplistdialog.c \
154         headerview.c \
155         html.c \
156         image_viewer.c \
157         imap.c \
158         imap_gtk.c \
159         import.c \
160         inc.c \
161         localfolder.c \
162         main.c \
163         mainwindow.c \
164         manual.c \
165         matcher.c \
166         matcher_parser_lex.l \
167         matcher_parser_parse.y \
168         mbox.c \
169         message_search.c \
170         messageview.c \
171         mh.c \
172         mh_gtk.c \
173         mimeview.c \
174         msgcache.c \
175         news.c \
176         news_gtk.c \
177         noticeview.c \
178         oauth2.c \
179         partial_download.c \
180         password.c \
181         password_gtk.c \
182         passwordstore.c \
183         pop.c \
184         prefs_account.c \
185         prefs_actions.c \
186         prefs_common.c \
187         prefs_compose_writing.c \
188         prefs_customheader.c \
189         prefs_display_header.c \
190         prefs_ext_prog.c \
191         prefs_filtering_action.c \
192         prefs_filtering.c \
193         prefs_folder_item.c \
194         prefs_fonts.c \
195         prefs_gtk.c \
196         prefs_image_viewer.c \
197         prefs_logging.c \
198         prefs_matcher.c \
199         prefs_message.c \
200         prefs_migration.c \
201         prefs_msg_colors.c \
202         prefs_other.c \
203         prefs_proxy.c \
204         prefs_quote.c \
205         prefs_receive.c \
206         prefs_send.c \
207         prefs_spelling.c \
208         prefs_summaries.c \
209         prefs_summary_column.c \
210         prefs_summary_open.c \
211         prefs_folder_column.c \
212         prefs_template.c \
213         prefs_themes.c \
214         prefs_toolbar.c \
215         prefs_wrapping.c \
216         printing.c \
217         privacy.c \
218         procheader.c \
219         procmime.c \
220         procmsg.c \
221         quote_fmt.c \
222         quote_fmt_lex.l \
223         quote_fmt_parse.y \
224         recv.c \
225         remotefolder.c \
226         send_message.c \
227         setup.c \
228         sourcewindow.c \
229         ssl_manager.c \
230         statusbar.c \
231         stock_pixmap.c \
232         summary_search.c \
233         summaryview.c \
234         textview.c \
235         toolbar.c \
236         undo.c \
237         uri_opener.c \
238         wizard.c \
239         $(abook_source)
240
241 claws_mailincludedir = $(pkgincludedir)
242 claws_mailinclude_HEADERS = \
243         account.h \
244         action.h \
245         addrcache.h \
246         addr_compl.h \
247         addrdefs.h \
248         addressadd.h \
249         addritem.h \
250         addressitem.h \
251         addrgather.h \
252         addrharvest.h \
253         advsearch.h \
254         alertpanel.h \
255         autofaces.h \
256         avatars.h \
257         compose.h \
258         crash.h \
259         customheader.h \
260         displayheader.h \
261         edittags.h \
262         enriched.h \
263         entity.h \
264         export.h \
265         filtering.h \
266         folder.h \
267         folder_item_prefs.h \
268         foldersel.h \
269         folderutils.h \
270         folderview.h \
271         grouplistdialog.h \
272         headerview.h \
273         html.h \
274         image_viewer.h \
275         imap.h \
276         imap_gtk.h \
277         import.h \
278         inc.h \
279         localfolder.h \
280         main.h \
281         mainwindow.h \
282         manual.h \
283         matcher.h \
284         matchertypes.h \
285         matcher_parser.h \
286         matcher_parser_lex.h \
287         matcher_parser_parse.h \
288         mbox.h \
289         message_search.h \
290         messageview.h \
291         mh.h \
292         mh_gtk.h \
293         mimeview.h \
294         msgcache.h \
295         news.h \
296         news_gtk.h \
297         noticeview.h \
298         oauth2.h \
299         partial_download.h \
300         password.h \
301         password_gtk.h \
302         passwordstore.h \
303         pop.h \
304         prefs_account.h \
305         prefs_actions.h \
306         prefs_common.h \
307         prefs_compose_writing.h \
308         prefs_customheader.h \
309         prefs_display_header.h \
310         prefs_ext_prog.h \
311         prefs_filtering_action.h \
312         prefs_filtering.h \
313         prefs_folder_item.h \
314         prefs_fonts.h \
315         prefs_gtk.h \
316         prefs_image_viewer.h \
317         prefs_logging.h \
318         prefs_matcher.h \
319         prefs_message.h \
320         prefs_migration.h \
321         prefs_msg_colors.h \
322         prefs_other.h \
323         prefs_proxy.h \
324         prefs_quote.h \
325         prefs_receive.h \
326         prefs_send.h \
327         prefs_spelling.h \
328         prefs_summaries.h \
329         prefs_summary_column.h \
330         prefs_summary_open.h \
331         prefs_folder_column.h \
332         prefs_template.h \
333         prefs_themes.h \
334         prefs_toolbar.h \
335         prefs_wrapping.h \
336         printing.h \
337         privacy.h \
338         procheader.h \
339         procmime.h \
340         procmsg.h \
341         proctypes.h \
342         quote_fmt.h \
343         quote_fmt_lex.h \
344         quote_fmt_parse.h \
345         recv.h \
346         remotefolder.h \
347         send_message.h \
348         setup.h \
349         sourcewindow.h \
350         ssl_manager.h \
351         statusbar.h \
352         stock_pixmap.h \
353         summary_search.h \
354         summaryview.h \
355         textview.h \
356         toolbar.h \
357         undo.h \
358         uri_opener.h \
359         viewtypes.h \
360         wizard.h \
361         $(abook_headers)
362
363 BUILT_SOURCES = \
364         matcher_parser_parse.h \
365         quote_fmt_parse.h \
366         client-bindings.h
367
368 client-bindings.h: claws-contacts.xml
369 if BUILD_ALTADDRBOOK
370         dbus-binding-tool --prefix=abook --mode=glib-client --output=$@ claws-contacts.xml
371 endif
372
373 CLEANFILES = \
374              $(BUILT_SOURCES)
375
376 EXTRA_DIST = \
377         claws-contacts.xml \
378         w32-logo.ico \
379         pixmaps/addr_one.xpm \
380         pixmaps/addr_two.xpm \
381         pixmaps/address_book.xpm \
382         pixmaps/address_search.xpm \
383         pixmaps/address.xpm \
384         pixmaps/anonymous.xpm \
385         pixmaps/book.xpm \
386         pixmaps/cancel.xpm \
387         pixmaps/category.xpm \
388         pixmaps/checkbox_off.xpm \
389         pixmaps/checkbox_on.xpm \
390         pixmaps/check_spelling.xpm \
391         pixmaps/clipkey.xpm \
392         pixmaps/claws_mail_icon.xpm \
393         pixmaps/claws_mail_icon_64.xpm \
394         pixmaps/claws_mail_compose_logo.xpm \
395         pixmaps/claws_mail_logo.xpm \
396         pixmaps/claws_mail_logo_small.xpm \
397         pixmaps/clip.xpm \
398         pixmaps/clip_gpg_signed.xpm \
399         pixmaps/close.xpm \
400         pixmaps/complete.xpm \
401         pixmaps/continue.xpm \
402         pixmaps/copied.xpm \
403         pixmaps/delete_btn.xpm \
404         pixmaps/delete_dup_btn.xpm \
405         pixmaps/deleted.xpm \
406         pixmaps/dir_close.xpm \
407         pixmaps/dir_close_hrm.xpm \
408         pixmaps/dir_close_hrm_mark.xpm \
409         pixmaps/dir_close_mark.xpm \
410         pixmaps/dir_open.xpm \
411         pixmaps/dir_open_hrm.xpm \
412         pixmaps/dir_open_hrm_mark.xpm \
413         pixmaps/dir_open_mark.xpm \
414         pixmaps/dir_noselect_close.xpm \
415         pixmaps/dir_noselect_close_mark.xpm \
416         pixmaps/dir_noselect_open.xpm \
417         pixmaps/dir_subs_close_mark.xpm \
418         pixmaps/dir_subs_close.xpm \
419         pixmaps/dir_subs_open.xpm \
420         pixmaps/doc_index.xpm \
421         pixmaps/doc_index_close.xpm \
422         pixmaps/doc_info.xpm \
423         pixmaps/down_arrow.xpm \
424         pixmaps/drafts_close.xpm \
425         pixmaps/drafts_close_mark.xpm \
426         pixmaps/drafts_open.xpm \
427         pixmaps/drafts_open_mark.xpm \
428         pixmaps/edit_extern.xpm \
429         pixmaps/empty.xpm \
430         pixmaps/error.xpm \
431         pixmaps/exec.xpm \
432         pixmaps/first_arrow.xpm \
433         pixmaps/forwarded.xpm \
434         pixmaps/gpg_signed.xpm \
435         pixmaps/go_folders.xpm \
436         pixmaps/group.xpm \
437         pixmaps/ham_btn.xpm \
438         pixmaps/ignorethread.xpm \
439         pixmaps/inbox_open.xpm \
440         pixmaps/inbox_open_hrm.xpm \
441         pixmaps/inbox_open_hrm_mark.xpm \
442         pixmaps/inbox_open_mark.xpm \
443         pixmaps/inbox_close.xpm \
444         pixmaps/inbox_close_hrm.xpm \
445         pixmaps/inbox_close_hrm_mark.xpm \
446         pixmaps/inbox_close_mark.xpm \
447         pixmaps/interface.xpm \
448         pixmaps/insert_file.xpm \
449         pixmaps/jpilot.xpm \
450         pixmaps/key.xpm \
451         pixmaps/key_gpg_signed.xpm \
452         pixmaps/last_arrow.xpm \
453         pixmaps/ldap.xpm \
454         pixmaps/left_arrow.xpm \
455         pixmaps/linewrap.xpm \
456         pixmaps/linewrapcurrent.xpm \
457         pixmaps/locked.xpm \
458         pixmaps/mail_attach.xpm \
459         pixmaps/mail_compose.xpm \
460         pixmaps/mail_forward.xpm \
461         pixmaps/mail_privacy_encrypted.xpm \
462         pixmaps/mail_privacy_signed.xpm \
463         pixmaps/mail_receive_all.xpm \
464         pixmaps/mail_receive.xpm \
465         pixmaps/mail_reply_to_all.xpm \
466         pixmaps/mail_reply_to_author.xpm \
467         pixmaps/mail_reply_to_list.xpm \
468         pixmaps/mail_reply.xpm \
469         pixmaps/mail_send_queue.xpm \
470         pixmaps/mail_send.xpm \
471         pixmaps/mail_sign.xpm \
472         pixmaps/mail_draft.xpm \
473         pixmaps/mark.xpm \
474         pixmaps/mark_allread.xpm \
475         pixmaps/mark_allunread.xpm \
476         pixmaps/mark_ignorethread.xpm \
477         pixmaps/mark_locked.xpm \
478         pixmaps/mark_mark.xpm \
479         pixmaps/mark_read.xpm \
480         pixmaps/mark_unlocked.xpm \
481         pixmaps/mark_unmark.xpm \
482         pixmaps/mark_unread.xpm \
483         pixmaps/mark_watchthread.xpm \
484         pixmaps/mime_application.xpm \
485         pixmaps/mime_audio.xpm \
486         pixmaps/mime_image.xpm \
487         pixmaps/mime_message.xpm \
488         pixmaps/mime_pdf.xpm \
489         pixmaps/mime_ps.xpm \
490         pixmaps/mime_calendar.xpm \
491         pixmaps/mime_pgpsig.xpm \
492         pixmaps/mime_text_enriched.xpm \
493         pixmaps/mime_text_html.xpm \
494         pixmaps/mime_text_patch.xpm \
495         pixmaps/mime_text_plain.xpm \
496         pixmaps/mime_unknown.xpm \
497         pixmaps/moved.xpm \
498         pixmaps/news_compose.xpm \
499         pixmaps/new.xpm \
500         pixmaps/notice_error.xpm \
501         pixmaps/notice_note.xpm \
502         pixmaps/notice_warn.xpm \
503         pixmaps/offline.xpm \
504         pixmaps/online.xpm \
505         pixmaps/open_mail.xpm \
506         pixmaps/outbox_close.xpm \
507         pixmaps/outbox_close_hrm.xpm \
508         pixmaps/outbox_open.xpm \
509         pixmaps/outbox_open_hrm.xpm \
510         pixmaps/outbox_close_mark.xpm \
511         pixmaps/outbox_close_hrm_mark.xpm \
512         pixmaps/outbox_open_mark.xpm \
513         pixmaps/outbox_open_hrm_mark.xpm \
514         pixmaps/paste.xpm \
515         pixmaps/preferences.xpm \
516         pixmaps/printer.xpm \
517         pixmaps/printer_btn.xpm \
518         pixmaps/privacy_expired.xpm \
519         pixmaps/privacy_failed.xpm \
520         pixmaps/privacy_passed.xpm \
521         pixmaps/privacy_signed.xpm \
522         pixmaps/privacy_unknown.xpm \
523         pixmaps/privacy_warn.xpm \
524         pixmaps/privacy_emblem_encrypted.xpm \
525         pixmaps/privacy_emblem_failed.xpm \
526         pixmaps/privacy_emblem_passed.xpm \
527         pixmaps/privacy_emblem_signed.xpm \
528         pixmaps/privacy_emblem_warn.xpm \
529         pixmaps/properties.xpm \
530         pixmaps/queue_close.xpm \
531         pixmaps/queue_close_hrm.xpm \
532         pixmaps/queue_close_hrm_mark.xpm \
533         pixmaps/queue_close_mark.xpm \
534         pixmaps/queue_open.xpm \
535         pixmaps/queue_open_hrm.xpm \
536         pixmaps/queue_open_hrm_mark.xpm \
537         pixmaps/queue_open_mark.xpm \
538         pixmaps/quicksearch.xpm \
539         pixmaps/replied.xpm \
540         pixmaps/replied_and_forwarded.xpm \
541         pixmaps/right_arrow.xpm \
542         pixmaps/rotate_left.xpm \
543         pixmaps/rotate_right.xpm \
544         pixmaps/selection.xpm \
545         pixmaps/spam.xpm \
546         pixmaps/spam_btn.xpm \
547         pixmaps/trash_btn.xpm \
548         pixmaps/trash_close.xpm \
549         pixmaps/trash_close_hrm.xpm \
550         pixmaps/trash_close_hrm_mark.xpm \
551         pixmaps/trash_close_mark.xpm \
552         pixmaps/trash_open.xpm \
553         pixmaps/trash_open_hrm.xpm \
554         pixmaps/trash_open_hrm_mark.xpm \
555         pixmaps/trash_open_mark.xpm \
556         pixmaps/tray_newmail_offline.xpm \
557         pixmaps/tray_newmail.xpm \
558         pixmaps/tray_newmarkedmail_offline.xpm \
559         pixmaps/tray_newmarkedmail.xpm \
560         pixmaps/tray_nomail_offline.xpm \
561         pixmaps/tray_nomail.xpm \
562         pixmaps/tray_unreadmail_offline.xpm \
563         pixmaps/tray_unreadmail.xpm \
564         pixmaps/tray_unreadmarkedmail_offline.xpm \
565         pixmaps/tray_unreadmarkedmail.xpm \
566         pixmaps/unread.xpm \
567         pixmaps/read.xpm \
568         pixmaps/up_arrow.xpm \
569         pixmaps/vcard.xpm \
570         pixmaps/watchthread.xpm \
571         pixmaps/zoom_fit.xpm \
572         pixmaps/zoom_in.xpm \
573         pixmaps/zoom_out.xpm \
574         pixmaps/zoom_width.xpm \
575         $(abook_extra)
576
577
578 IFLAGS = \
579         -I$(srcdir)/common \
580         -Icommon \
581         -I$(srcdir)/gtk \
582         -I$(srcdir)/etpan
583
584 claws_mail_LDFLAGS = \
585         $(claws_mail_platform_ldflags)
586
587 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
588         $(etpan_library) \
589         gtk/libclawsgtk.la
590
591 claws_mail_LDADD = \
592         $(etpan_library) \
593         gtk/libclawsgtk.la \
594         $(ENCHANT_LIBS) \
595         $(INTLLIBS) \
596         $(GTK_LIBS) \
597         $(LDAP_LIBS) \
598         $(GNUTLS_LIBS) \
599         $(NETTLE_LIBS) \
600         $(COMPFACE_LIBS) \
601         $(JPILOT_LIBS) \
602         $(PTHREAD_LIBS) \
603         $(SM_LIBS) \
604         $(LIBICONV) \
605         $(STARTUP_NOTIFICATION_LIBS) \
606         $(LIBETPAN_LIBS) \
607         $(DBUS_LIBS) \
608         $(SVG_LIBS) \
609         $(CONTACTS_LIBS)
610
611 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
612
613 AM_CPPFLAGS = \
614         -DG_LOG_DOMAIN=\"Claws-Mail\" \
615         -DLOCALEDIR=\""$(localedir)"\" \
616         -DPIXMAP_DIR=\""$(pixmapdir)"\" \
617         -DMANUALDIR=\""$(manualdir)"\" \
618         -DTARGET_ALIAS=\""$(target_triplet)"\" \
619         -DSYSCONFDIR=\""$(sysconfdir)"\" \
620         -DDATAROOTDIR=\""$(datarootdir)"\" \
621         $(IFLAGS) \
622         $(ENCHANT_CFLAGS) \
623         $(GTK_CFLAGS) \
624         $(GNUTLS_CFLAGS) \
625         $(GPGME_CFLAGS) \
626         $(LIBETPAN_CPPFLAGS) \
627         $(STARTUP_NOTIFICATION_CFLAGS) \
628         $(DBUS_CFLAGS) \
629         $(SVG_CFLAGS) \
630         $(NETWORKMANAGER_SUPPORT_CFLAGS) \
631         $(VALGRIND_CFLAGS) \
632         $(CONTACTS_CFLAGS)
633
634 matcher_parser_lex.$(OBJEXT) : AM_CFLAGS += -Wno-unused-function
635 quote_fmt_lex.$(OBJEXT) : AM_CFLAGS += -Wno-unused-function
636
637 #no-unused-function is there because of bison stuff
638 #no-deprecated-declarations because of gpgme_data_rewind, which we have
639 #to call inside gpgme due to our lack of LARGEFILE support
640
641 AM_YFLAGS = -d
642
643 if CYGWIN
644 claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES) 
645         @rm -f claws-mail$(EXEEXT)
646         @rm -f claws-mail.def claws-mail.base claws-mail.exp libclaws-mail.a .libs/libclaws-mail.a
647         $(LINK) -shared $(claws_mailLDFLAGS) -Wl,--out-implib=libclaws-mail.a -Wl,--export-all-symbols,--exclude-symbols,main $(claws_mail_OBJECTS) -Wl,--no-whole-archive $(claws_mail_LDADD) $(LIBS)
648         dlltool --output-def claws-mail.def --dllname claws-mail$(EXEEXT) --export-all-symbols --exclude-symbols main $(claws_mail_OBJECTS) gtk/.libs/libclawsgtk.a
649         $(LINK) $(claws_mail_LDFLAGS) -Wl,--base-file,claws-mail.base $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
650         sleep 5
651         dlltool --base-file claws-mail.base --input-def claws-mail.def --output-exp claws-mail.exp
652         $(LINK) $(claws_mail_LDFLAGS) -Wl,claws-mail.exp $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
653         @cp libclaws-mail.a .libs/libclaws-mail.a
654 else
655 #claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES) 
656 #       @rm -f claws-mail$(EXEEXT)
657 #       $(LINK) $(claws_mail_LDFLAGS) $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
658 endif