#
#  GNUMail.app Makefile for GNUstep
#
#  Copyright (C) 2001, 2002
#
#  Author: Ludovic Marcotte <ludovic@Sophos.ca>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#   
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#   
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

include $(GNUSTEP_MAKEFILES)/common.make

# Subprojects
SUBPROJECTS = \
	GNUMail \
	Bundles/Compose \
	Bundles/Filtering \
	Bundles/Fonts \
	Bundles/MIME \
	Bundles/Personal \
	Bundles/Receiving \
	Bundles/Sending \
	Bundles/Viewing \
	Bundles/Clock

# The application to be compiled
APP_NAME = GNUMail

# The C source files to be compiled
GNUMail_C_FILES = regcomp.c regerror.c regexec.c regfree.c

# The Objective-C source files to be compiled
GNUMail_OBJC_FILES = Address.m AddressBook.m AddressBookController.m AddressBookWindow.m BounceWindow.m BounceWindowController.m EditWindowController.m EditWindow.m FindWindow.m FindWindowController.m GNUMail.m GNUMailConstants.m LocalInboxWindow.m LocalInboxWindowController.m LabelWidget.m LocalMailDelivery.m MailboxManager.m MailboxManagerController.m MailWindow.m MailWindowController.m MimeType.m MimeTypeManager.m  NewMailboxPanel.m NewMailboxPanelController.m NSStringExtensions.m PreferencesWindow.m PreferencesWindowController.m RAWSourceWindow.m RAWSourceWindowController.m Utilities.m IMAPMailWindow.m IMAPMailWindowController.m PasswordPanel.m PasswordPanelController.m Filter.m FilterManager.m NSRegEx.m NSRegExRange.m ExtendedAttachmentCell.m TextEnrichedConsumer.m Group.m ExtendedCell.m

# The Resource files to be copied into the app's resources directory
GNUMail_RESOURCE_FILES = Icons/MailIcon_delete.tiff Icons/up.tiff Icons/down.tiff Icons/Magnifier.tiff Icons/MailIcon_attach.tiff Icons/MailIcon_mailboxes.tiff Icons/MailIcon_retrieve.tiff Icons/MailIcon_send.tiff Icons/MailIcon_addresses.tiff Icons/MailIcon_create.tiff Icons/MailIcon_addresses.tiff Icons/MailIcon_forward.tiff Icons/MailIcon_reply.tiff Icons/GNUMail.tiff Icons/GNUMail_Full.tiff Icons/MailIcon_box_add.tiff Icons/MailIcon_box_delete.tiff Icons/MailIcon_box_transfer.tiff Icons/MailIcon_box_open.tiff Icons/pgp-mail.tiff Icons/MailIcon_cc.tiff Icons/MailIcon_cc_remove.tiff Icons/MailIcon_bcc.tiff Icons/MailIcon_bcc_remove.tiff Icons/Address_add.tiff Icons/Address_bcc.tiff Icons/Address_cc.tiff Icons/Address_delete.tiff Icons/Address_to.tiff Icons/common_Unknown.tiff Icons/MailIcon_stop.tiff Icons/MailIcon_box_rename.tiff Icons/answered-flag.tiff Icons/mime-flag.tiff Icons/new-flag.tiff Icons/anim-logo-1.tiff Icons/anim-logo-2.tiff Icons/anim-logo-3.tiff Icons/anim-logo-4.tiff Icons/anim-logo-5.tiff Icons/anim-logo-6.tiff Icons/anim-logo-7.tiff Icons/anim-logo-8.tiff 

GNUMail_LIB_DIRS = -L../$(GNUSTEP_LIBRARIES_ROOT)
GNUMail_GUI_LIBS = -lPantomime

GNUMail_LANGUAGES = English German French Spanish Swedish

GNUMail_LOCALIZED_RESOURCE_FILES = Localizable.strings

# We want to get all the warnings... 
ADDITIONAL_OBJCFLAGS = -Wall

include $(GNUSTEP_MAKEFILES)/aggregate.make
include $(GNUSTEP_MAKEFILES)/application.make
