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