#
#  GNUMail.app Makefile for GNUstep
#
#  Copyright (C) 2001, 2002, 2003
#
#  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/Account \
	Bundles/Advanced \
	Bundles/Colors \
	Bundles/Compose \
	Bundles/Filtering \
	Bundles/Fonts \
	Bundles/Import \
	Bundles/MIME \
	Bundles/Receiving \
	Bundles/Sending \
	Bundles/Viewing

# The application to be compiled
APP_NAME = GNUMail

# The Objective-C source files to be compiled
GNUMail_OBJC_FILES = AddressBookController.m AddressBookPanel.m BounceWindow.m BounceWindowController.m Constants.m ExtendedTextView.m EditWindowController.m EditWindow.m FindWindow.m FindWindowController.m GNUMail.m LabelWidget.m LocalMailDelivery.m MailboxManager.m MailboxManagerController.m MailWindow.m MailWindowController.m MimeType.m MimeTypeManager.m  NewMailboxPanel.m NewMailboxPanelController.m PreferencesWindow.m PreferencesWindowController.m Utilities.m PasswordPanel.m PasswordPanelController.m Filter.m FilterManager.m ExtendedAttachmentCell.m NSAttributedString+TextEnriched.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 NSUserDefaults+Extensions.m TaskManager.m Task.m ExtendedMenuItem.m GNUMail+TaskManager.m AboutPanel.m AboutPanelController.m GNUMail+Extensions.m GNUMail_main.m ImageTextCell.m SwitchTableView.m ExtendedTableColumn.m MessageComposition.m STScriptingSupport.m AutoCompletingTextField.m

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

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

GNUMail_LANGUAGES = Czech English German French Spanish Swedish

GNUMail_LOCALIZED_RESOURCE_FILES = Localizable.strings

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

# If we want to memory-debug the application on Linux
#ADDITIONAL_LDFLAGS = -lefence

# Under Solaris, we link to libucb
ifeq ($(findstring solaris, $(GNUSTEP_TARGET_OS)), solaris)
ADDITIONAL_LDFLAGS = -L/usr/ucblib -lucb
endif

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