Add help text and change text of second label
[claws.git] / src / Makefile.am
1 # Copyright 1999-2014 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
16 bin_PROGRAMS = claws-mail
17 install-exec-hook:
18         @rm -f $(DESTDIR)$(bindir)/sylpheed-claws
19         @ln -s claws-mail $(DESTDIR)$(bindir)/sylpheed-claws
20
21 if PLATFORM_WIN32
22 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
23      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
24      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
25
26 %.o : %.rc
27         $(LTRCCOMPILE) -i $< -o $@
28
29 claws_mail_res_ldflag = -Wl,w32-resource.o
30 claws_mail_deps = w32-resource.o
31 else
32 claws_mail_res_ldflag =
33 claws_mail_deps =
34 endif
35
36 alt_abook_source = \
37         addressbook-dbus.c
38 orig_abook_source = \
39         addrbook.c \
40         addrclip.c \
41         addrcustomattr.c \
42         addressbook.c \
43         addressbook_foldersel.c \
44         addrindex.c \
45         addrquery.c \
46         addrselect.c \
47         addrduplicates.c \
48         browseldap.c \
49         editaddress.c \
50         editaddress_other_attributes_ldap.c \
51         editbook.c \
52         editgroup.c \
53         editjpilot.c \
54         editldap_basedn.c \
55         editldap.c \
56         editvcard.c \
57         exphtmldlg.c \
58         expldifdlg.c \
59         exporthtml.c \
60         exportldif.c \
61         importldif.c \
62         importmutt.c \
63         importpine.c \
64         jpilot.c \
65         ldapctrl.c \
66         ldaplocate.c \
67         ldapquery.c \
68         ldapserver.c \
69         ldapupdate.c \
70         ldaputil.c \
71         ldif.c \
72         mutt.c \
73         pine.c \
74         vcard.c
75
76 if BUILD_ALTADDRBOOK
77 abook_source = $(alt_abook_source)
78 abook_extra = $(orig_abook_source)
79 else
80 abook_source = $(orig_abook_source)
81 abook_extra = $(alt_abook_source)
82 endif
83
84 abook_headers = \
85         addressbook-dbus.h \
86         adbookbase.h \
87         addrbook.h \
88         addrclip.h \
89         addrcustomattr.h \
90         addressbook.h \
91         addressbook_foldersel.h \
92         addrindex.h \
93         addrquery.h \
94         addrselect.h \
95         addrduplicates.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         codeconv.c \
139         compose.c \
140         crash.c \
141         customheader.c \
142         displayheader.c \
143         edittags.c \
144         enriched.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         partial_download.c \
179         password.c \
180         password_gtk.c \
181         pop.c \
182         prefs_account.c \
183         prefs_actions.c \
184         prefs_common.c \
185         prefs_compose_writing.c \
186         prefs_customheader.c \
187         prefs_display_header.c \
188         prefs_ext_prog.c \
189         prefs_filtering_action.c \
190         prefs_filtering.c \
191         prefs_folder_item.c \
192         prefs_fonts.c \
193         prefs_gtk.c \
194         prefs_image_viewer.c \
195         prefs_logging.c \
196         prefs_matcher.c \
197         prefs_message.c \
198         prefs_msg_colors.c \
199         prefs_other.c \
200         prefs_quote.c \
201         prefs_receive.c \
202         prefs_send.c \
203         prefs_spelling.c \
204         prefs_summaries.c \
205         prefs_summary_column.c \
206         prefs_summary_open.c \
207         prefs_folder_column.c \
208         prefs_template.c \
209         prefs_themes.c \
210         prefs_toolbar.c \
211         prefs_wrapping.c \
212         printing.c \
213         privacy.c \
214         procheader.c \
215         procmime.c \
216         procmsg.c \
217         quote_fmt.c \
218         quote_fmt_lex.l \
219         quote_fmt_parse.y \
220         recv.c \
221         remotefolder.c \
222         send_message.c \
223         setup.c \
224         sourcewindow.c \
225         ssl_manager.c \
226         statusbar.c \
227         stock_pixmap.c \
228         summary_search.c \
229         summaryview.c \
230         textview.c \
231         toolbar.c \
232         undo.c \
233         unmime.c \
234         uri_opener.c \
235         wizard.c \
236         $(abook_source)
237
238 claws_mailincludedir = $(pkgincludedir)
239 claws_mailinclude_HEADERS = \
240         account.h \
241         action.h \
242         addrcache.h \
243         addr_compl.h \
244         addrdefs.h \
245         addressadd.h \
246         addritem.h \
247         addressitem.h \
248         addrgather.h \
249         addrharvest.h \
250         advsearch.h \
251         alertpanel.h \
252         autofaces.h \
253         avatars.h \
254         codeconv.h \
255         compose.h \
256         crash.h \
257         customheader.h \
258         displayheader.h \
259         edittags.h \
260         enriched.h \
261         export.h \
262         filtering.h \
263         folder.h \
264         folder_item_prefs.h \
265         foldersel.h \
266         folderutils.h \
267         folderview.h \
268         grouplistdialog.h \
269         headerview.h \
270         html.h \
271         image_viewer.h \
272         imap.h \
273         imap_gtk.h \
274         import.h \
275         inc.h \
276         localfolder.h \
277         main.h \
278         mainwindow.h \
279         manual.h \
280         matcher.h \
281         matchertypes.h \
282         matcher_parser.h \
283         matcher_parser_lex.h \
284         matcher_parser_parse.h \
285         mbox.h \
286         message_search.h \
287         messageview.h \
288         mh.h \
289         mh_gtk.h \
290         mimeview.h \
291         msgcache.h \
292         news.h \
293         news_gtk.h \
294         noticeview.h \
295         partial_download.h \
296         password.h \
297         password_gtk.h \
298         pop.h \
299         prefs_account.h \
300         prefs_actions.h \
301         prefs_common.h \
302         prefs_compose_writing.h \
303         prefs_customheader.h \
304         prefs_display_header.h \
305         prefs_ext_prog.h \
306         prefs_filtering_action.h \
307         prefs_filtering.h \
308         prefs_folder_item.h \
309         prefs_fonts.h \
310         prefs_gtk.h \
311         prefs_image_viewer.h \
312         prefs_logging.h \
313         prefs_matcher.h \
314         prefs_message.h \
315         prefs_msg_colors.h \
316         prefs_other.h \
317         prefs_quote.h \
318         prefs_receive.h \
319         prefs_send.h \
320         prefs_spelling.h \
321         prefs_summaries.h \
322         prefs_summary_column.h \
323         prefs_summary_open.h \
324         prefs_folder_column.h \
325         prefs_template.h \
326         prefs_themes.h \
327         prefs_toolbar.h \
328         prefs_wrapping.h \
329         printing.h \
330         privacy.h \
331         procheader.h \
332         procmime.h \
333         procmsg.h \
334         proctypes.h \
335         quote_fmt.h \
336         quote_fmt_lex.h \
337         quote_fmt_parse.h \
338         recv.h \
339         remotefolder.h \
340         send_message.h \
341         setup.h \
342         sourcewindow.h \
343         ssl_manager.h \
344         statusbar.h \
345         stock_pixmap.h \
346         summary_search.h \
347         summaryview.h \
348         textview.h \
349         toolbar.h \
350         undo.h \
351         unmime.h \
352         uri_opener.h \
353         viewtypes.h \
354         wizard.h \
355         $(abook_headers)
356
357 BUILT_SOURCES = \
358         matcher_parser_parse.h \
359         quote_fmt_parse.h \
360         client-bindings.h
361
362 client-bindings.h: claws-contacts.xml
363 if BUILD_ALTADDRBOOK
364         dbus-binding-tool --prefix=abook --mode=glib-client --output=$@ claws-contacts.xml
365
366 CLEANFILES = \
367              client-bindings.h
368 endif
369
370 EXTRA_DIST = \
371         w32-logo.ico w32-resource.rc \
372         pixmaps/addr_one.xpm \
373         pixmaps/addr_two.xpm \
374         pixmaps/address_book.xpm \
375         pixmaps/address_search.xpm \
376         pixmaps/address.xpm \
377         pixmaps/anonymous.xpm \
378         pixmaps/book.xpm \
379         pixmaps/cancel.xpm \
380         pixmaps/category.xpm \
381         pixmaps/checkbox_off.xpm \
382         pixmaps/checkbox_on.xpm \
383         pixmaps/check_spelling.xpm \
384         pixmaps/clipkey.xpm \
385         pixmaps/claws-mail_icon.xpm \
386         pixmaps/claws-mail_compose_logo.xpm \
387         pixmaps/claws-mail_logo.xpm \
388         pixmaps/claws-mail_logo-small.xpm \
389         pixmaps/claws-mail.xpm \
390         pixmaps/clip.xpm \
391         pixmaps/clip_gpg_signed.xpm \
392         pixmaps/close.xpm \
393         pixmaps/complete.xpm \
394         pixmaps/continue.xpm \
395         pixmaps/delete_btn.xpm \
396         pixmaps/deleted.xpm \
397         pixmaps/dir_close.xpm \
398         pixmaps/dir_close_hrm.xpm \
399         pixmaps/dir_noselect.xpm \
400         pixmaps/dir_open_hrm.xpm \
401         pixmaps/dir_open.xpm \
402         pixmaps/down_arrow.xpm \
403         pixmaps/drafts_close.xpm \
404         pixmaps/drafts_open.xpm \
405         pixmaps/drafts_close.xpm \
406         pixmaps/drafts_open.xpm \
407         pixmaps/edit_extern.xpm \
408         pixmaps/error.xpm \
409         pixmaps/exec.xpm \
410         pixmaps/forwarded.xpm \
411         pixmaps/gpg_signed.xpm \
412         pixmaps/go_folders.xpm \
413         pixmaps/group.xpm \
414         pixmaps/ham_btn.xpm \
415         pixmaps/ignorethread.xpm \
416         pixmaps/inbox_open_hrm.xpm \
417         pixmaps/inbox_open.xpm \
418         pixmaps/inbox_close_hrm.xpm \
419         pixmaps/inbox_close.xpm \
420         pixmaps/interface.xpm \
421         pixmaps/insert_file.xpm \
422         pixmaps/jpilot.xpm \
423         pixmaps/key.xpm \
424         pixmaps/key_gpg_signed.xpm \
425         pixmaps/ldap.xpm \
426         pixmaps/linewrap.xpm \
427         pixmaps/linewrapcurrent.xpm \
428         pixmaps/locked.xpm \
429         pixmaps/mail_attach.xpm \
430         pixmaps/mail_compose.xpm \
431         pixmaps/mail_forward.xpm \
432         pixmaps/mail_receive_all.xpm \
433         pixmaps/mail_receive.xpm \
434         pixmaps/mail_reply_to_all.xpm \
435         pixmaps/mail_reply_to_author.xpm \
436         pixmaps/mail_reply_to_list.xpm \
437         pixmaps/mail_reply.xpm \
438         pixmaps/mail_send_queue.xpm \
439         pixmaps/mail_send.xpm \
440         pixmaps/mail_sign.xpm \
441         pixmaps/mail.xpm \
442         pixmaps/mark.xpm \
443         pixmaps/mime_application.xpm \
444         pixmaps/mime_audio.xpm \
445         pixmaps/mime_image.xpm \
446         pixmaps/mime_message.xpm \
447         pixmaps/mime_pdf.xpm \
448         pixmaps/mime_ps.xpm \
449         pixmaps/mime_calendar.xpm \
450         pixmaps/mime_pgpsig.xpm \
451         pixmaps/mime_text_enriched.xpm \
452         pixmaps/mime_text_html.xpm \
453         pixmaps/mime_text_patch.xpm \
454         pixmaps/mime_text_plain.xpm \
455         pixmaps/mime_unknown.xpm \
456         pixmaps/news_compose.xpm \
457         pixmaps/new.xpm \
458         pixmaps/notice_error.xpm \
459         pixmaps/notice_note.xpm \
460         pixmaps/notice_warn.xpm \
461         pixmaps/offline.xpm \
462         pixmaps/online.xpm \
463         pixmaps/open_mail.xpm \
464         pixmaps/outbox_close.xpm \
465         pixmaps/outbox_close_hrm.xpm \
466         pixmaps/outbox_open.xpm \
467         pixmaps/outbox_open_hrm.xpm \
468         pixmaps/outbox_close_mark.xpm \
469         pixmaps/outbox_close_hrm_mark.xpm \
470         pixmaps/outbox_open_mark.xpm \
471         pixmaps/outbox_open_hrm_mark.xpm \
472         pixmaps/paste.xpm \
473         pixmaps/preferences.xpm \
474         pixmaps/printer.xpm \
475         pixmaps/privacy_expired.xpm \
476         pixmaps/privacy_failed.xpm \
477         pixmaps/privacy_passed.xpm \
478         pixmaps/privacy_signed.xpm \
479         pixmaps/privacy_unknown.xpm \
480         pixmaps/privacy_warn.xpm \
481         pixmaps/privacy_emblem_encrypted.xpm \
482         pixmaps/privacy_emblem_failed.xpm \
483         pixmaps/privacy_emblem_passed.xpm \
484         pixmaps/privacy_emblem_signed.xpm \
485         pixmaps/privacy_emblem_warn.xpm \
486         pixmaps/properties.xpm \
487         pixmaps/queue_close.xpm \
488         pixmaps/queue_close_hrm.xpm \
489         pixmaps/queue_close_hrm_mark.xpm \
490         pixmaps/queue_close_mark.xpm \
491         pixmaps/queue_open.xpm \
492         pixmaps/queue_open_hrm.xpm \
493         pixmaps/queue_open_hrm_mark.xpm \
494         pixmaps/queue_open_mark.xpm \
495         pixmaps/quicksearch.xpm \
496         pixmaps/replied.xpm \
497         pixmaps/search.xpm \
498         pixmaps/selection.xpm \
499         pixmaps/spam.xpm \
500         pixmaps/spam_btn.xpm \
501         pixmaps/trash_hrm.xpm \
502         pixmaps/trash.xpm \
503         pixmaps/trash_btn.xpm \
504         pixmaps/unread.xpm \
505         pixmaps/read.xpm \
506         pixmaps/up_arrow.xpm \
507         pixmaps/vcard.xpm \
508         pixmaps/dir_close_mark.xpm \
509         pixmaps/dir_close_hrm_mark.xpm \
510         pixmaps/dir_open_hrm_mark.xpm \
511         pixmaps/dir_open_mark.xpm \
512         pixmaps/drafts_close_mark.xpm \
513         pixmaps/drafts_open_mark.xpm \
514         pixmaps/inbox_open_hrm_mark.xpm \
515         pixmaps/inbox_open_mark.xpm \
516         pixmaps/inbox_close_hrm_mark.xpm \
517         pixmaps/inbox_close_mark.xpm \
518         pixmaps/trash_hrm_mark.xpm \
519         pixmaps/trash_mark.xpm \
520         pixmaps/moved.xpm \
521         pixmaps/copied.xpm \
522         pixmaps/watchthread.xpm \
523         pixmaps/tray_newmail.offline.xpm \
524         pixmaps/tray_newmail.xpm \
525         pixmaps/tray_newmarkedmail.offline.xpm \
526         pixmaps/tray_newmarkedmail.xpm \
527         pixmaps/tray_nomail.offline.xpm \
528         pixmaps/tray_nomail.xpm \
529         pixmaps/tray_unreadmail.offline.xpm \
530         pixmaps/tray_unreadmail.xpm \
531         pixmaps/tray_unreadmarkedmail.offline.xpm \
532         pixmaps/tray_unreadmarkedmail.xpm \
533         pixmaps/empty.xpm \
534         pixmaps/replied_and_forwarded.xpm \
535         claws-contacts.xml \
536         $(abook_extra)
537
538
539 IFLAGS = \
540         -I$(srcdir)/common \
541         -Icommon \
542         -I$(srcdir)/gtk \
543         -I$(srcdir)/etpan
544
545 if PLATFORM_WIN32
546 arch_ldflags := -Wl,--export-all-symbols
547 else
548 arch_ldflags := -Wl,--export-dynamic
549 endif
550
551 claws_mail_LDFLAGS = \
552         $(arch_ldflags) $(claws_mail_res_ldflag)
553
554 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
555         $(etpan_library) \
556         gtk/libclawsgtk.la
557
558 claws_mail_LDADD = \
559         $(etpan_library) \
560         gtk/libclawsgtk.la \
561         $(ENCHANT_LIBS) \
562         $(INTLLIBS) \
563         $(GTK_LIBS) \
564         $(LDAP_LIBS) \
565         $(GNUTLS_LIBS) \
566         $(COMPFACE_LIBS) \
567         $(JPILOT_LIBS) \
568         $(PTHREAD_LIBS) \
569         $(SM_LIBS) \
570         $(LIBICONV) \
571         $(STARTUP_NOTIFICATION_LIBS) \
572         $(LIBETPAN_LIBS) \
573         $(DBUS_LIBS) \
574         $(CONTACTS_LIBS)
575
576 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
577
578 AM_CPPFLAGS = \
579         -DG_LOG_DOMAIN=\"Claws-Mail\" \
580         -DLOCALEDIR=\""$(localedir)"\" \
581         -DPIXMAP_DIR=\""$(pixmapdir)"\" \
582         -DMANUALDIR=\""$(manualdir)"\" \
583         -DTARGET_ALIAS=\""$(target_triplet)"\" \
584         -DSYSCONFDIR=\""$(sysconfdir)"\" \
585         -DDATAROOTDIR=\""$(datarootdir)"\" \
586         $(IFLAGS) \
587         $(ENCHANT_CFLAGS) \
588         $(GTK_CFLAGS) \
589         $(GPGME_CFLAGS) \
590         $(LIBETPAN_CPPFLAGS) \
591         $(STARTUP_NOTIFICATION_CFLAGS) \
592         $(DBUS_CFLAGS) \
593         $(NETWORKMANAGER_SUPPORT_CFLAGS) \
594         $(VALGRIND_CFLAGS) \
595         $(CONTACTS_CFLAGS)
596
597 #no-unused-function is there because of bison stuff
598 #no-deprecated-declarations because of gpgme_data_rewind, which we have
599 #to call inside gpgme due to our lack of LARGEFILE support
600
601 AM_YFLAGS = -d
602
603 if CYGWIN
604 claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES) 
605         @rm -f claws-mail$(EXEEXT)
606         @rm -f claws-mail.def claws-mail.base claws-mail.exp libclaws-mail.a .libs/libclaws-mail.a
607         $(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)
608         dlltool --output-def claws-mail.def --dllname claws-mail$(EXEEXT) --export-all-symbols --exclude-symbols main $(claws_mail_OBJECTS) gtk/.libs/libclawsgtk.a
609         $(LINK) $(claws_mail_LDFLAGS) -Wl,--base-file,claws-mail.base $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
610         sleep 5
611         dlltool --base-file claws-mail.base --input-def claws-mail.def --output-exp claws-mail.exp
612         $(LINK) $(claws_mail_LDFLAGS) -Wl,claws-mail.exp $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
613         @cp libclaws-mail.a .libs/libclaws-mail.a
614 else
615 #claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES) 
616 #       @rm -f claws-mail$(EXEEXT)
617 #       $(LINK) $(claws_mail_LDFLAGS) $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
618 endif