#
#  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/Mailboxes \
	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 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 Utilities.m PasswordPanel.m PasswordPanelController.m Filter.m FilterManager.m NSRegEx.m ExtendedAttachmentCell.m TextEnrichedConsumer.m Group.m ExtendedCell.m FolderNode.m ExtendedTableView.m ExtendedOutlineView.m ExtendedWindow.m MailboxManagerCache.m ConsoleWindow.m ConsoleWindowController.m FolderNodePopUpItem.m MessageViewWindow.m MessageViewWindowController.m MailHeaderCell.m NSUserDefaultsExtensions.m

# The Resource files to be copied into the app's resources directory
GNUMail_RESOURCE_FILES = Icons/* Goodies/Welcome

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
