+# Copyright 1999-2014 the Claws Mail team.
+# This file is part of Claws Mail package, and distributed under the
+# terms of the General Public License version 3 (or later).
+# See COPYING file for license details.
if CLAWS_LIBETPAN
etpan_dir = etpan
@ln -s claws-mail $(DESTDIR)$(bindir)/sylpheed-claws
if PLATFORM_WIN32
-LTRCCOMPILE = $(LIBTOOL) --mode=compile $(RC) \
- `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
+LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
+ `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
%.o : %.rc
claws_mail_deps =
endif
-if BUILD_NEWADDRBOOK
-abook_headers = \
- addressbook-dbus.h
-abook_source = \
+new_abook_source = \
addressbook-dbus.c
+old_abook_source = \
+ addrbook.c \
+ addrclip.c \
+ addrcustomattr.c \
+ addressbook.c \
+ addressbook_foldersel.c \
+ addrindex.c \
+ addrquery.c \
+ addrselect.c \
+ addrduplicates.c \
+ browseldap.c \
+ editaddress.c \
+ editaddress_other_attributes_ldap.c \
+ editbook.c \
+ editgroup.c \
+ editjpilot.c \
+ editldap_basedn.c \
+ editldap.c \
+ editvcard.c \
+ exphtmldlg.c \
+ expldifdlg.c \
+ exporthtml.c \
+ exportldif.c \
+ importldif.c \
+ importmutt.c \
+ importpine.c \
+ jpilot.c \
+ ldapctrl.c \
+ ldaplocate.c \
+ ldapquery.c \
+ ldapserver.c \
+ ldapupdate.c \
+ ldaputil.c \
+ ldif.c \
+ mutt.c \
+ pine.c \
+ vcard.c
+
+if BUILD_NEWADDRBOOK
+abook_source = $(new_abook_source)
+abook_extra = $(old_abook_source)
else
+abook_source = $(old_abook_source)
+abook_extra = $(new_abook_source)
+endif
+
abook_headers = \
+ addressbook-dbus.h \
+ adbookbase.h \
addrbook.h \
addrclip.h \
addrcustomattr.h \
expldifdlg.h \
exporthtml.h \
exportldif.h \
+ file_checker.h \
importldif.h \
importmutt.h \
importpine.h \
pine.h \
vcard.h
-abook_source = \
- addrbook.c \
- addrclip.c \
- addrcustomattr.c \
- addressbook.c \
- addressbook_foldersel.c \
- addrindex.c \
- addrquery.c \
- addrselect.c \
- addrduplicates.c \
- browseldap.c \
- editaddress.c \
- editaddress_other_attributes_ldap.c \
- editbook.c \
- editgroup.c \
- editjpilot.c \
- editldap_basedn.c \
- editldap.c \
- editvcard.c \
- exphtmldlg.c \
- expldifdlg.c \
- exporthtml.c \
- exportldif.c \
- importldif.c \
- importmutt.c \
- importpine.c \
- jpilot.c \
- ldapctrl.c \
- ldaplocate.c \
- ldapquery.c \
- ldapserver.c \
- ldapupdate.c \
- ldaputil.c \
- ldif.c \
- mutt.c \
- pine.c \
- vcard.c
-endif
-
claws_mail_SOURCES = \
account.c \
action.c \
addrgather.c \
addrharvest.c \
addritem.c \
+ advsearch.c \
alertpanel.c \
autofaces.c \
+ avatars.c \
codeconv.c \
compose.c \
crash.c \
edittags.c \
enriched.c \
export.c \
+ file_checker.c \
filtering.c \
folder.c \
folder_item_prefs.c \
addressitem.h \
addrgather.h \
addrharvest.h \
+ advsearch.h \
alertpanel.h \
autofaces.h \
+ avatars.h \
codeconv.h \
compose.h \
crash.h \
mainwindow.h \
manual.h \
matcher.h \
+ matchertypes.h \
matcher_parser.h \
matcher_parser_lex.h \
matcher_parser_parse.h \
procheader.h \
procmime.h \
procmsg.h \
+ proctypes.h \
quote_fmt.h \
quote_fmt_lex.h \
quote_fmt_parse.h \
undo.h \
unmime.h \
uri_opener.h \
+ viewtypes.h \
wizard.h \
$(abook_headers)
pixmaps/check_spelling.xpm \
pixmaps/clipkey.xpm \
pixmaps/claws-mail_icon.xpm \
+ pixmaps/claws-mail_compose_logo.xpm \
pixmaps/claws-mail_logo.xpm \
pixmaps/claws-mail_logo-small.xpm \
pixmaps/claws-mail.xpm \
pixmaps/tray_unreadmarkedmail.xpm \
pixmaps/empty.xpm \
pixmaps/replied_and_forwarded.xpm \
- claws-contacts.xml
+ claws-contacts.xml \
+ $(abook_extra)
-INCLUDES = \
+IFLAGS = \
-I$(srcdir)/common \
-Icommon \
-I$(srcdir)/gtk \
-I$(srcdir)/etpan
if PLATFORM_WIN32
-arch_ldflags := -export-all-symbols
+arch_ldflags := -Wl,--export-all-symbols
else
-arch_ldflags :=
+arch_ldflags := -Wl,--export-dynamic
endif
claws_mail_LDFLAGS = \
- $(arch_ldflags) -export-dynamic $(claws_mail_res_ldflag)
+ $(arch_ldflags) $(claws_mail_res_ldflag)
claws_mail_DEPENDENCIES = $(claws_mail_deps) \
$(etpan_library) \
$(ENCHANT_LIBS) \
$(INTLLIBS) \
$(GTK_LIBS) \
- $(GPGME_LIBS) \
$(LDAP_LIBS) \
$(GNUTLS_LIBS) \
$(COMPFACE_LIBS) \
$(LIBICONV) \
$(STARTUP_NOTIFICATION_LIBS) \
$(LIBETPAN_LIBS) \
- $(MAEMO_LIBS) \
- $(CONIC_LIBS) \
$(DBUS_LIBS) \
$(CONTACTS_LIBS)
-DLOCALEDIR=\""$(localedir)"\" \
-DPIXMAP_DIR=\""$(pixmapdir)"\" \
-DMANUALDIR=\""$(manualdir)"\" \
- -DFAQDIR=\""$(faqdir)"\" \
-DTARGET_ALIAS=\""$(target_triplet)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DDATAROOTDIR=\""$(datarootdir)"\" \
+ $(IFLAGS) \
$(ENCHANT_CFLAGS) \
$(GTK_CFLAGS) \
$(GPGME_CFLAGS) \
$(LIBETPAN_CPPFLAGS) \
$(STARTUP_NOTIFICATION_CFLAGS) \
- $(MAEMO_CFLAGS) \
- $(CONIC_CFLAGS) \
$(DBUS_CFLAGS) \
$(NETWORKMANAGER_SUPPORT_CFLAGS) \
$(VALGRIND_CFLAGS) \