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.
8 etpan_library = etpan/libclawsetpan.la
14 SUBDIRS = common gtk $(etpan_dir) . plugins
16 bin_PROGRAMS = claws-mail
18 @rm -f $(DESTDIR)$(bindir)/sylpheed-claws
19 @ln -s claws-mail $(DESTDIR)$(bindir)/sylpheed-claws
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'`
27 $(LTRCCOMPILE) -i $< -o $@
29 claws_mail_res_ldflag = -Wl,w32-resource.o
30 claws_mail_deps = w32-resource.o
32 claws_mail_res_ldflag =
43 addressbook_foldersel.c \
50 editaddress_other_attributes_ldap.c \
77 abook_source = $(alt_abook_source)
78 abook_extra = $(orig_abook_source)
80 abook_source = $(orig_abook_source)
81 abook_extra = $(alt_abook_source)
91 addressbook_foldersel.h \
98 editaddress_other_attributes_ldap.h \
125 claws_mail_SOURCES = \
149 folder_item_prefs.c \
166 matcher_parser_lex.l \
167 matcher_parser_parse.y \
186 prefs_compose_writing.c \
187 prefs_customheader.c \
188 prefs_display_header.c \
190 prefs_filtering_action.c \
192 prefs_folder_item.c \
195 prefs_image_viewer.c \
207 prefs_summary_column.c \
208 prefs_summary_open.c \
209 prefs_folder_column.c \
240 claws_mailincludedir = $(pkgincludedir)
241 claws_mailinclude_HEADERS = \
266 folder_item_prefs.h \
285 matcher_parser_lex.h \
286 matcher_parser_parse.h \
305 prefs_compose_writing.h \
306 prefs_customheader.h \
307 prefs_display_header.h \
309 prefs_filtering_action.h \
311 prefs_folder_item.h \
314 prefs_image_viewer.h \
326 prefs_summary_column.h \
327 prefs_summary_open.h \
328 prefs_folder_column.h \
362 matcher_parser_parse.h \
366 client-bindings.h: claws-contacts.xml
368 dbus-binding-tool --prefix=abook --mode=glib-client --output=$@ claws-contacts.xml
375 w32-logo.ico w32-resource.rc \
376 pixmaps/addr_one.xpm \
377 pixmaps/addr_two.xpm \
378 pixmaps/address_book.xpm \
379 pixmaps/address_search.xpm \
380 pixmaps/address.xpm \
381 pixmaps/anonymous.xpm \
384 pixmaps/category.xpm \
385 pixmaps/checkbox_off.xpm \
386 pixmaps/checkbox_on.xpm \
387 pixmaps/check_spelling.xpm \
388 pixmaps/clipkey.xpm \
389 pixmaps/claws_mail_icon.xpm \
390 pixmaps/claws_mail_icon_64.xpm \
391 pixmaps/claws_mail_compose_logo.xpm \
392 pixmaps/claws_mail_logo.xpm \
393 pixmaps/claws_mail_logo_small.xpm \
395 pixmaps/clip_gpg_signed.xpm \
397 pixmaps/complete.xpm \
398 pixmaps/continue.xpm \
399 pixmaps/delete_btn.xpm \
400 pixmaps/deleted.xpm \
401 pixmaps/dir_close.xpm \
402 pixmaps/dir_close_hrm.xpm \
403 pixmaps/dir_open_hrm.xpm \
404 pixmaps/dir_open.xpm \
405 pixmaps/dir_noselect_close.xpm \
406 pixmaps/dir_noselect_close_mark.xpm \
407 pixmaps/dir_noselect_open.xpm \
408 pixmaps/dir_subs_close_mark.xpm \
409 pixmaps/dir_subs_close.xpm \
410 pixmaps/dir_subs_open.xpm \
411 pixmaps/down_arrow.xpm \
412 pixmaps/drafts_close.xpm \
413 pixmaps/drafts_open.xpm \
414 pixmaps/drafts_close.xpm \
415 pixmaps/drafts_open.xpm \
416 pixmaps/edit_extern.xpm \
419 pixmaps/forwarded.xpm \
420 pixmaps/gpg_signed.xpm \
421 pixmaps/go_folders.xpm \
423 pixmaps/ham_btn.xpm \
424 pixmaps/ignorethread.xpm \
425 pixmaps/inbox_open_hrm.xpm \
426 pixmaps/inbox_open.xpm \
427 pixmaps/inbox_close_hrm.xpm \
428 pixmaps/inbox_close.xpm \
429 pixmaps/interface.xpm \
430 pixmaps/insert_file.xpm \
433 pixmaps/key_gpg_signed.xpm \
435 pixmaps/linewrap.xpm \
436 pixmaps/linewrapcurrent.xpm \
438 pixmaps/mail_attach.xpm \
439 pixmaps/mail_compose.xpm \
440 pixmaps/mail_forward.xpm \
441 pixmaps/mail_receive_all.xpm \
442 pixmaps/mail_receive.xpm \
443 pixmaps/mail_reply_to_all.xpm \
444 pixmaps/mail_reply_to_author.xpm \
445 pixmaps/mail_reply_to_list.xpm \
446 pixmaps/mail_reply.xpm \
447 pixmaps/mail_send_queue.xpm \
448 pixmaps/mail_send.xpm \
449 pixmaps/mail_sign.xpm \
452 pixmaps/mime_application.xpm \
453 pixmaps/mime_audio.xpm \
454 pixmaps/mime_image.xpm \
455 pixmaps/mime_message.xpm \
456 pixmaps/mime_pdf.xpm \
457 pixmaps/mime_ps.xpm \
458 pixmaps/mime_calendar.xpm \
459 pixmaps/mime_pgpsig.xpm \
460 pixmaps/mime_text_enriched.xpm \
461 pixmaps/mime_text_html.xpm \
462 pixmaps/mime_text_patch.xpm \
463 pixmaps/mime_text_plain.xpm \
464 pixmaps/mime_unknown.xpm \
465 pixmaps/news_compose.xpm \
467 pixmaps/notice_error.xpm \
468 pixmaps/notice_note.xpm \
469 pixmaps/notice_warn.xpm \
470 pixmaps/offline.xpm \
472 pixmaps/open_mail.xpm \
473 pixmaps/outbox_close.xpm \
474 pixmaps/outbox_close_hrm.xpm \
475 pixmaps/outbox_open.xpm \
476 pixmaps/outbox_open_hrm.xpm \
477 pixmaps/outbox_close_mark.xpm \
478 pixmaps/outbox_close_hrm_mark.xpm \
479 pixmaps/outbox_open_mark.xpm \
480 pixmaps/outbox_open_hrm_mark.xpm \
482 pixmaps/preferences.xpm \
483 pixmaps/printer.xpm \
484 pixmaps/privacy_expired.xpm \
485 pixmaps/privacy_failed.xpm \
486 pixmaps/privacy_passed.xpm \
487 pixmaps/privacy_signed.xpm \
488 pixmaps/privacy_unknown.xpm \
489 pixmaps/privacy_warn.xpm \
490 pixmaps/privacy_emblem_encrypted.xpm \
491 pixmaps/privacy_emblem_failed.xpm \
492 pixmaps/privacy_emblem_passed.xpm \
493 pixmaps/privacy_emblem_signed.xpm \
494 pixmaps/privacy_emblem_warn.xpm \
495 pixmaps/properties.xpm \
496 pixmaps/queue_close.xpm \
497 pixmaps/queue_close_hrm.xpm \
498 pixmaps/queue_close_hrm_mark.xpm \
499 pixmaps/queue_close_mark.xpm \
500 pixmaps/queue_open.xpm \
501 pixmaps/queue_open_hrm.xpm \
502 pixmaps/queue_open_hrm_mark.xpm \
503 pixmaps/queue_open_mark.xpm \
504 pixmaps/quicksearch.xpm \
505 pixmaps/replied.xpm \
506 pixmaps/selection.xpm \
508 pixmaps/spam_btn.xpm \
509 pixmaps/trash_open_hrm.xpm \
510 pixmaps/trash_close_hrm.xpm \
511 pixmaps/trash_open.xpm \
512 pixmaps/trash_close.xpm \
513 pixmaps/trash_btn.xpm \
516 pixmaps/up_arrow.xpm \
518 pixmaps/dir_close_mark.xpm \
519 pixmaps/dir_close_hrm_mark.xpm \
520 pixmaps/dir_open_hrm_mark.xpm \
521 pixmaps/dir_open_mark.xpm \
522 pixmaps/drafts_close_mark.xpm \
523 pixmaps/drafts_open_mark.xpm \
524 pixmaps/inbox_open_hrm_mark.xpm \
525 pixmaps/inbox_open_mark.xpm \
526 pixmaps/inbox_close_hrm_mark.xpm \
527 pixmaps/inbox_close_mark.xpm \
528 pixmaps/trash_open_hrm_mark.xpm \
529 pixmaps/trash_close_hrm_mark.xpm \
530 pixmaps/trash_open_mark.xpm \
531 pixmaps/trash_close_mark.xpm \
534 pixmaps/watchthread.xpm \
535 pixmaps/tray_newmail_offline.xpm \
536 pixmaps/tray_newmail.xpm \
537 pixmaps/tray_newmarkedmail_offline.xpm \
538 pixmaps/tray_newmarkedmail.xpm \
539 pixmaps/tray_nomail_offline.xpm \
540 pixmaps/tray_nomail.xpm \
541 pixmaps/tray_unreadmail_offline.xpm \
542 pixmaps/tray_unreadmail.xpm \
543 pixmaps/tray_unreadmarkedmail_offline.xpm \
544 pixmaps/tray_unreadmarkedmail.xpm \
546 pixmaps/replied_and_forwarded.xpm \
547 pixmaps/doc_index.xpm \
548 pixmaps/doc_index_close.xpm \
549 pixmaps/doc_info.xpm \
550 pixmaps/first_arrow.xpm \
551 pixmaps/last_arrow.xpm \
552 pixmaps/left_arrow.xpm \
553 pixmaps/right_arrow.xpm \
554 pixmaps/rotate_left.xpm \
555 pixmaps/rotate_right.xpm \
556 pixmaps/zoom_fit.xpm \
557 pixmaps/zoom_in.xpm \
558 pixmaps/zoom_out.xpm \
559 pixmaps/zoom_width.xpm \
570 claws_mail_LDFLAGS = \
571 $(claws_mail_res_ldflag)
573 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
590 $(STARTUP_NOTIFICATION_LIBS) \
595 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
598 -DG_LOG_DOMAIN=\"Claws-Mail\" \
599 -DLOCALEDIR=\""$(localedir)"\" \
600 -DPIXMAP_DIR=\""$(pixmapdir)"\" \
601 -DMANUALDIR=\""$(manualdir)"\" \
602 -DTARGET_ALIAS=\""$(target_triplet)"\" \
603 -DSYSCONFDIR=\""$(sysconfdir)"\" \
604 -DDATAROOTDIR=\""$(datarootdir)"\" \
610 $(LIBETPAN_CPPFLAGS) \
611 $(STARTUP_NOTIFICATION_CFLAGS) \
613 $(NETWORKMANAGER_SUPPORT_CFLAGS) \
617 #no-unused-function is there because of bison stuff
618 #no-deprecated-declarations because of gpgme_data_rewind, which we have
619 #to call inside gpgme due to our lack of LARGEFILE support
624 claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
625 @rm -f claws-mail$(EXEEXT)
626 @rm -f claws-mail.def claws-mail.base claws-mail.exp libclaws-mail.a .libs/libclaws-mail.a
627 $(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)
628 dlltool --output-def claws-mail.def --dllname claws-mail$(EXEEXT) --export-all-symbols --exclude-symbols main $(claws_mail_OBJECTS) gtk/.libs/libclawsgtk.a
629 $(LINK) $(claws_mail_LDFLAGS) -Wl,--base-file,claws-mail.base $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
631 dlltool --base-file claws-mail.base --input-def claws-mail.def --output-exp claws-mail.exp
632 $(LINK) $(claws_mail_LDFLAGS) -Wl,claws-mail.exp $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
633 @cp libclaws-mail.a .libs/libclaws-mail.a
635 #claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
636 # @rm -f claws-mail$(EXEEXT)
637 # $(LINK) $(claws_mail_LDFLAGS) $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)