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 = $(new_abook_source)
78 abook_extra = $(old_abook_source)
80 abook_source = $(old_abook_source)
81 abook_extra = $(new_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 \
183 prefs_compose_writing.c \
184 prefs_customheader.c \
185 prefs_display_header.c \
187 prefs_filtering_action.c \
189 prefs_folder_item.c \
192 prefs_image_viewer.c \
203 prefs_summary_column.c \
204 prefs_summary_open.c \
205 prefs_folder_column.c \
237 claws_mailincludedir = $(pkgincludedir)
238 claws_mailinclude_HEADERS = \
263 folder_item_prefs.h \
282 matcher_parser_lex.h \
283 matcher_parser_parse.h \
299 prefs_compose_writing.h \
300 prefs_customheader.h \
301 prefs_display_header.h \
303 prefs_filtering_action.h \
305 prefs_folder_item.h \
308 prefs_image_viewer.h \
319 prefs_summary_column.h \
320 prefs_summary_open.h \
321 prefs_folder_column.h \
355 matcher_parser_parse.h \
359 client-bindings.h: claws-contacts.xml
361 dbus-binding-tool --prefix=abook --mode=glib-client --output=$@ claws-contacts.xml
368 w32-logo.ico w32-resource.rc \
369 pixmaps/addr_one.xpm \
370 pixmaps/addr_two.xpm \
371 pixmaps/address_book.xpm \
372 pixmaps/address_search.xpm \
373 pixmaps/address.xpm \
374 pixmaps/anonymous.xpm \
377 pixmaps/category.xpm \
378 pixmaps/checkbox_off.xpm \
379 pixmaps/checkbox_on.xpm \
380 pixmaps/check_spelling.xpm \
381 pixmaps/clipkey.xpm \
382 pixmaps/claws-mail_icon.xpm \
383 pixmaps/claws-mail_compose_logo.xpm \
384 pixmaps/claws-mail_logo.xpm \
385 pixmaps/claws-mail_logo-small.xpm \
386 pixmaps/claws-mail.xpm \
388 pixmaps/clip_gpg_signed.xpm \
390 pixmaps/complete.xpm \
391 pixmaps/continue.xpm \
392 pixmaps/delete_btn.xpm \
393 pixmaps/deleted.xpm \
394 pixmaps/dir_close.xpm \
395 pixmaps/dir_close_hrm.xpm \
396 pixmaps/dir_noselect.xpm \
397 pixmaps/dir_open_hrm.xpm \
398 pixmaps/dir_open.xpm \
399 pixmaps/down_arrow.xpm \
400 pixmaps/drafts_close.xpm \
401 pixmaps/drafts_open.xpm \
402 pixmaps/drafts_close.xpm \
403 pixmaps/drafts_open.xpm \
404 pixmaps/edit_extern.xpm \
407 pixmaps/forwarded.xpm \
408 pixmaps/gpg_signed.xpm \
409 pixmaps/go_folders.xpm \
411 pixmaps/ham_btn.xpm \
412 pixmaps/ignorethread.xpm \
413 pixmaps/inbox_open_hrm.xpm \
414 pixmaps/inbox_open.xpm \
415 pixmaps/inbox_close_hrm.xpm \
416 pixmaps/inbox_close.xpm \
417 pixmaps/interface.xpm \
418 pixmaps/insert_file.xpm \
421 pixmaps/key_gpg_signed.xpm \
423 pixmaps/linewrap.xpm \
424 pixmaps/linewrapcurrent.xpm \
426 pixmaps/mail_attach.xpm \
427 pixmaps/mail_compose.xpm \
428 pixmaps/mail_forward.xpm \
429 pixmaps/mail_receive_all.xpm \
430 pixmaps/mail_receive.xpm \
431 pixmaps/mail_reply_to_all.xpm \
432 pixmaps/mail_reply_to_author.xpm \
433 pixmaps/mail_reply_to_list.xpm \
434 pixmaps/mail_reply.xpm \
435 pixmaps/mail_send_queue.xpm \
436 pixmaps/mail_send.xpm \
437 pixmaps/mail_sign.xpm \
440 pixmaps/mime_application.xpm \
441 pixmaps/mime_audio.xpm \
442 pixmaps/mime_image.xpm \
443 pixmaps/mime_message.xpm \
444 pixmaps/mime_pdf.xpm \
445 pixmaps/mime_ps.xpm \
446 pixmaps/mime_calendar.xpm \
447 pixmaps/mime_pgpsig.xpm \
448 pixmaps/mime_text_enriched.xpm \
449 pixmaps/mime_text_html.xpm \
450 pixmaps/mime_text_patch.xpm \
451 pixmaps/mime_text_plain.xpm \
452 pixmaps/mime_unknown.xpm \
453 pixmaps/news_compose.xpm \
455 pixmaps/notice_error.xpm \
456 pixmaps/notice_note.xpm \
457 pixmaps/notice_warn.xpm \
458 pixmaps/offline.xpm \
460 pixmaps/open_mail.xpm \
461 pixmaps/outbox_close.xpm \
462 pixmaps/outbox_close_hrm.xpm \
463 pixmaps/outbox_open.xpm \
464 pixmaps/outbox_open_hrm.xpm \
465 pixmaps/outbox_close_mark.xpm \
466 pixmaps/outbox_close_hrm_mark.xpm \
467 pixmaps/outbox_open_mark.xpm \
468 pixmaps/outbox_open_hrm_mark.xpm \
470 pixmaps/preferences.xpm \
471 pixmaps/printer.xpm \
472 pixmaps/privacy_expired.xpm \
473 pixmaps/privacy_failed.xpm \
474 pixmaps/privacy_passed.xpm \
475 pixmaps/privacy_signed.xpm \
476 pixmaps/privacy_unknown.xpm \
477 pixmaps/privacy_warn.xpm \
478 pixmaps/privacy_emblem_encrypted.xpm \
479 pixmaps/privacy_emblem_failed.xpm \
480 pixmaps/privacy_emblem_passed.xpm \
481 pixmaps/privacy_emblem_signed.xpm \
482 pixmaps/privacy_emblem_warn.xpm \
483 pixmaps/properties.xpm \
484 pixmaps/queue_close.xpm \
485 pixmaps/queue_close_hrm.xpm \
486 pixmaps/queue_close_hrm_mark.xpm \
487 pixmaps/queue_close_mark.xpm \
488 pixmaps/queue_open.xpm \
489 pixmaps/queue_open_hrm.xpm \
490 pixmaps/queue_open_hrm_mark.xpm \
491 pixmaps/queue_open_mark.xpm \
492 pixmaps/quicksearch.xpm \
493 pixmaps/replied.xpm \
495 pixmaps/selection.xpm \
497 pixmaps/spam_btn.xpm \
498 pixmaps/trash_hrm.xpm \
500 pixmaps/trash_btn.xpm \
503 pixmaps/up_arrow.xpm \
505 pixmaps/dir_close_mark.xpm \
506 pixmaps/dir_close_hrm_mark.xpm \
507 pixmaps/dir_open_hrm_mark.xpm \
508 pixmaps/dir_open_mark.xpm \
509 pixmaps/drafts_close_mark.xpm \
510 pixmaps/drafts_open_mark.xpm \
511 pixmaps/inbox_open_hrm_mark.xpm \
512 pixmaps/inbox_open_mark.xpm \
513 pixmaps/inbox_close_hrm_mark.xpm \
514 pixmaps/inbox_close_mark.xpm \
515 pixmaps/trash_hrm_mark.xpm \
516 pixmaps/trash_mark.xpm \
519 pixmaps/watchthread.xpm \
520 pixmaps/tray_newmail.offline.xpm \
521 pixmaps/tray_newmail.xpm \
522 pixmaps/tray_newmarkedmail.offline.xpm \
523 pixmaps/tray_newmarkedmail.xpm \
524 pixmaps/tray_nomail.offline.xpm \
525 pixmaps/tray_nomail.xpm \
526 pixmaps/tray_unreadmail.offline.xpm \
527 pixmaps/tray_unreadmail.xpm \
528 pixmaps/tray_unreadmarkedmail.offline.xpm \
529 pixmaps/tray_unreadmarkedmail.xpm \
531 pixmaps/replied_and_forwarded.xpm \
543 arch_ldflags := -export-all-symbols
548 claws_mail_LDFLAGS = \
549 $(arch_ldflags) -export-dynamic $(claws_mail_res_ldflag)
551 claws_mail_DEPENDENCIES = $(claws_mail_deps) \
569 $(STARTUP_NOTIFICATION_LIBS) \
574 pixmapdir=$(datadir)/icons/hicolor/48x48/apps
577 -DG_LOG_DOMAIN=\"Claws-Mail\" \
578 -DLOCALEDIR=\""$(localedir)"\" \
579 -DPIXMAP_DIR=\""$(pixmapdir)"\" \
580 -DMANUALDIR=\""$(manualdir)"\" \
581 -DTARGET_ALIAS=\""$(target_triplet)"\" \
582 -DSYSCONFDIR=\""$(sysconfdir)"\" \
583 -DDATAROOTDIR=\""$(datarootdir)"\" \
588 $(LIBETPAN_CPPFLAGS) \
589 $(STARTUP_NOTIFICATION_CFLAGS) \
591 $(NETWORKMANAGER_SUPPORT_CFLAGS) \
595 #no-unused-function is there because of bison stuff
596 #no-deprecated-declarations because of gpgme_data_rewind, which we have
597 #to call inside gpgme due to our lack of LARGEFILE support
602 claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
603 @rm -f claws-mail$(EXEEXT)
604 @rm -f claws-mail.def claws-mail.base claws-mail.exp libclaws-mail.a .libs/libclaws-mail.a
605 $(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)
606 dlltool --output-def claws-mail.def --dllname claws-mail$(EXEEXT) --export-all-symbols --exclude-symbols main $(claws_mail_OBJECTS) gtk/.libs/libclawsgtk.a
607 $(LINK) $(claws_mail_LDFLAGS) -Wl,--base-file,claws-mail.base $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
609 dlltool --base-file claws-mail.base --input-def claws-mail.def --output-exp claws-mail.exp
610 $(LINK) $(claws_mail_LDFLAGS) -Wl,claws-mail.exp $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)
611 @cp libclaws-mail.a .libs/libclaws-mail.a
613 #claws-mail$(EXEEXT): $(claws_mail_OBJECTS) $(claws_mail_DEPENDENCIES)
614 # @rm -f claws-mail$(EXEEXT)
615 # $(LINK) $(claws_mail_LDFLAGS) $(claws_mail_OBJECTS) $(claws_mail_LDADD) $(LIBS)