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 include $(top_srcdir)/tests.mk
20 bin_PROGRAMS = claws-mail
23 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
24 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
25 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
28 $(LTRCCOMPILE) -i $< -o $@
30 claws_mail_res_ldflag = -Wl,w32-resource.o
31 claws_mail_deps = w32-resource.o
33 claws_mail_res_ldflag =
44 addressbook_foldersel.c \
52 editaddress_other_attributes_ldap.c \
79 abook_source = $(alt_abook_source)
80 abook_extra = $(orig_abook_source)
82 abook_source = $(orig_abook_source)
83 abook_extra = $(alt_abook_source)
93 addressbook_foldersel.h \
101 editaddress_other_attributes_ldap.h \
128 claws_mail_SOURCES = \
152 folder_item_prefs.c \
169 matcher_parser_lex.l \
170 matcher_parser_parse.y \
189 prefs_compose_writing.c \
190 prefs_customheader.c \
191 prefs_display_header.c \
193 prefs_filtering_action.c \
195 prefs_folder_item.c \
198 prefs_image_viewer.c \
211 prefs_summary_column.c \
212 prefs_summary_open.c \
213 prefs_folder_column.c \
243 claws_mailincludedir = $(pkgincludedir)
244 claws_mailinclude_HEADERS = \
269 folder_item_prefs.h \
288 matcher_parser_lex.h \
289 matcher_parser_parse.h \
308 prefs_compose_writing.h \
309 prefs_customheader.h \
310 prefs_display_header.h \
312 prefs_filtering_action.h \
314 prefs_folder_item.h \
317 prefs_image_viewer.h \
330 prefs_summary_column.h \
331 prefs_summary_open.h \
332 prefs_folder_column.h \
365 matcher_parser_parse.h \
369 client-bindings.h: claws-contacts.xml
371 dbus-binding-tool --prefix=abook --mode=glib-client --output=$@ claws-contacts.xml
379 w32-logo.ico w32-resource.rc \
380 pixmaps/addr_one.xpm \
381 pixmaps/addr_two.xpm \
382 pixmaps/address_book.xpm \
383 pixmaps/address_search.xpm \
384 pixmaps/address.xpm \
385 pixmaps/anonymous.xpm \
388 pixmaps/category.xpm \
389 pixmaps/checkbox_off.xpm \
390 pixmaps/checkbox_on.xpm \
391 pixmaps/check_spelling.xpm \
392 pixmaps/clipkey.xpm \
393 pixmaps/claws_mail_icon.xpm \
394 pixmaps/claws_mail_icon_64.xpm \
395 pixmaps/claws_mail_compose_logo.xpm \
396 pixmaps/claws_mail_logo.xpm \
397 pixmaps/claws_mail_logo_small.xpm \
399 pixmaps/clip_gpg_signed.xpm \
401 pixmaps/complete.xpm \
402 pixmaps/continue.xpm \
404 pixmaps/delete_btn.xpm \
405 pixmaps/delete_dup_btn.xpm \
406 pixmaps/deleted.xpm \
407 pixmaps/dir_close.xpm \
408 pixmaps/dir_close_hrm.xpm \
409 pixmaps/dir_close_hrm_mark.xpm \
410 pixmaps/dir_close_mark.xpm \
411 pixmaps/dir_open.xpm \
412 pixmaps/dir_open_hrm.xpm \
413 pixmaps/dir_open_hrm_mark.xpm \
414 pixmaps/dir_open_mark.xpm \
415 pixmaps/dir_noselect_close.xpm \
416 pixmaps/dir_noselect_close_mark.xpm \
417 pixmaps/dir_noselect_open.xpm \
418 pixmaps/dir_subs_close_mark.xpm \
419 pixmaps/dir_subs_close.xpm \
420 pixmaps/dir_subs_open.xpm \
421 pixmaps/doc_index.xpm \
422 pixmaps/doc_index_close.xpm \
423 pixmaps/doc_info.xpm \
424 pixmaps/down_arrow.xpm \
425 pixmaps/drafts_close.xpm \
426 pixmaps/drafts_close_mark.xpm \
427 pixmaps/drafts_open.xpm \
428 pixmaps/drafts_open_mark.xpm \
429 pixmaps/edit_extern.xpm \
433 pixmaps/first_arrow.xpm \
434 pixmaps/forwarded.xpm \
435 pixmaps/gpg_signed.xpm \
436 pixmaps/go_folders.xpm \
438 pixmaps/ham_btn.xpm \
439 pixmaps/ignorethread.xpm \
440 pixmaps/inbox_open.xpm \
441 pixmaps/inbox_open_hrm.xpm \
442 pixmaps/inbox_open_hrm_mark.xpm \
443 pixmaps/inbox_open_mark.xpm \
444 pixmaps/inbox_close.xpm \
445 pixmaps/inbox_close_hrm.xpm \
446 pixmaps/inbox_close_hrm_mark.xpm \
447 pixmaps/inbox_close_mark.xpm \
448 pixmaps/interface.xpm \
449 pixmaps/insert_file.xpm \
452 pixmaps/key_gpg_signed.xpm \
453 pixmaps/last_arrow.xpm \
455 pixmaps/left_arrow.xpm \
456 pixmaps/linewrap.xpm \
457 pixmaps/linewrapcurrent.xpm \
459 pixmaps/mail_attach.xpm \
460 pixmaps/mail_compose.xpm \
461 pixmaps/mail_forward.xpm \
462 pixmaps/mail_privacy_encrypted.xpm \
463 pixmaps/mail_privacy_signed.xpm \
464 pixmaps/mail_receive_all.xpm \
465 pixmaps/mail_receive.xpm \
466 pixmaps/mail_reply_to_all.xpm \
467 pixmaps/mail_reply_to_author.xpm \
468 pixmaps/mail_reply_to_list.xpm \
469 pixmaps/mail_reply.xpm \
470 pixmaps/mail_send_queue.xpm \
471 pixmaps/mail_send.xpm \
472 pixmaps/mail_sign.xpm \
473 pixmaps/mail_draft.xpm \
475 pixmaps/mark_allread.xpm \
476 pixmaps/mark_allunread.xpm \
477 pixmaps/mark_ignorethread.xpm \
478 pixmaps/mark_locked.xpm \
479 pixmaps/mark_mark.xpm \
480 pixmaps/mark_read.xpm \
481 pixmaps/mark_unlocked.xpm \
482 pixmaps/mark_unmark.xpm \
483 pixmaps/mark_unread.xpm \
484 pixmaps/mark_watchthread.xpm \
485 pixmaps/mime_application.xpm \
486 pixmaps/mime_audio.xpm \
487 pixmaps/mime_image.xpm \
488 pixmaps/mime_message.xpm \
489 pixmaps/mime_pdf.xpm \
490 pixmaps/mime_ps.xpm \
491 pixmaps/mime_calendar.xpm \
492 pixmaps/mime_pgpsig.xpm \
493 pixmaps/mime_text_enriched.xpm \
494 pixmaps/mime_text_html.xpm \
495 pixmaps/mime_text_patch.xpm \
496 pixmaps/mime_text_plain.xpm \
497 pixmaps/mime_unknown.xpm \
499 pixmaps/news_compose.xpm \
501 pixmaps/notice_error.xpm \
502 pixmaps/notice_note.xpm \
503 pixmaps/notice_warn.xpm \
504 pixmaps/offline.xpm \
506 pixmaps/open_mail.xpm \
507 pixmaps/outbox_close.xpm \
508 pixmaps/outbox_close_hrm.xpm \
509 pixmaps/outbox_open.xpm \
510 pixmaps/outbox_open_hrm.xpm \
511 pixmaps/outbox_close_mark.xpm \
512 pixmaps/outbox_close_hrm_mark.xpm \
513 pixmaps/outbox_open_mark.xpm \
514 pixmaps/outbox_open_hrm_mark.xpm \
516 pixmaps/preferences.xpm \
517 pixmaps/printer.xpm \
518 pixmaps/printer_btn.xpm \
519 pixmaps/privacy_expired.xpm \
520 pixmaps/privacy_failed.xpm \
521 pixmaps/privacy_passed.xpm \
522 pixmaps/privacy_signed.xpm \
523 pixmaps/privacy_unknown.xpm \
524 pixmaps/privacy_warn.xpm \
525 pixmaps/privacy_emblem_encrypted.xpm \
526 pixmaps/privacy_emblem_failed.xpm \
527 pixmaps/privacy_emblem_passed.xpm \
528 pixmaps/privacy_emblem_signed.xpm \
529 pixmaps/privacy_emblem_warn.xpm \
530 pixmaps/properties.xpm \
531 pixmaps/queue_close.xpm \
532 pixmaps/queue_close_hrm.xpm \
533 pixmaps/queue_close_hrm_mark.xpm \
534 pixmaps/queue_close_mark.xpm \
535 pixmaps/queue_open.xpm \
536 pixmaps/queue_open_hrm.xpm \
537 pixmaps/queue_open_hrm_mark.xpm \
538 pixmaps/queue_open_mark.xpm \
539 pixmaps/quicksearch.xpm \
540 pixmaps/replied.xpm \
541 pixmaps/replied_and_forwarded.xpm \
542 pixmaps/right_arrow.xpm \
543 pixmaps/rotate_left.xpm \
544 pixmaps/rotate_right.xpm \
545 pixmaps/selection.xpm \
547 pixmaps/spam_btn.xpm \
548 pixmaps/trash_btn.xpm \
549 pixmaps/trash_close.xpm \
550 pixmaps/trash_close_hrm.xpm \
551 pixmaps/trash_close_hrm_mark.xpm \
552 pixmaps/trash_close_mark.xpm \
553 pixmaps/trash_open.xpm \
554 pixmaps/trash_open_hrm.xpm \
555 pixmaps/trash_open_hrm_mark.xpm \
556 pixmaps/trash_open_mark.xpm \
557 pixmaps/tray_newmail_offline.xpm \
558 pixmaps/tray_newmail.xpm \
559 pixmaps/tray_newmarkedmail_offline.xpm \
560 pixmaps/tray_newmarkedmail.xpm \
561 pixmaps/tray_nomail_offline.xpm \
562 pixmaps/tray_nomail.xpm \
563 pixmaps/tray_unreadmail_offline.xpm \
564 pixmaps/tray_unreadmail.xpm \
565 pixmaps/tray_unreadmarkedmail_offline.xpm \
566 pixmaps/tray_unreadmarkedmail.xpm \
569 pixmaps/up_arrow.xpm \
571 pixmaps/watchthread.xpm \
572 pixmaps/zoom_fit.xpm \
573 pixmaps/zoom_in.xpm \
574 pixmaps/zoom_out.xpm \
575 pixmaps/zoom_width.xpm \
585 claws_mail_LDFLAGS = \
586 $(claws_mail_res_ldflag)
588 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
606 $(STARTUP_NOTIFICATION_LIBS) \
612 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
615 -DG_LOG_DOMAIN=\"Claws-Mail\" \
616 -DLOCALEDIR=\""$(localedir)"\" \
617 -DPIXMAP_DIR=\""$(pixmapdir)"\" \
618 -DMANUALDIR=\""$(manualdir)"\" \
619 -DTARGET_ALIAS=\""$(target_triplet)"\" \
620 -DSYSCONFDIR=\""$(sysconfdir)"\" \
621 -DDATAROOTDIR=\""$(datarootdir)"\" \
627 $(LIBETPAN_CPPFLAGS) \
628 $(STARTUP_NOTIFICATION_CFLAGS) \
631 $(NETWORKMANAGER_SUPPORT_CFLAGS) \
635 #no-unused-function is there because of bison stuff
636 #no-deprecated-declarations because of gpgme_data_rewind, which we have
637 #to call inside gpgme due to our lack of LARGEFILE support
642 claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
643 @rm -f claws-mail$(EXEEXT)
644 @rm -f claws-mail.def claws-mail.base claws-mail.exp libclaws-mail.a .libs/libclaws-mail.a
645 $(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)
646 dlltool --output-def claws-mail.def --dllname claws-mail$(EXEEXT) --export-all-symbols --exclude-symbols main $(claws_mail_OBJECTS) gtk/.libs/libclawsgtk.a
647 $(LINK) $(claws_mail_LDFLAGS) -Wl,--base-file,claws-mail.base $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
649 dlltool --base-file claws-mail.base --input-def claws-mail.def --output-exp claws-mail.exp
650 $(LINK) $(claws_mail_LDFLAGS) -Wl,claws-mail.exp $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
651 @cp libclaws-mail.a .libs/libclaws-mail.a
653 #claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
654 # @rm -f claws-mail$(EXEEXT)
655 # $(LINK) $(claws_mail_LDFLAGS) $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)