mailnews/build/Makefile.in
author Serge Gautherie <sgautherie.bz@free.fr>
Thu, 10 Mar 2011 11:11:09 +0100
branchCOMM193a4_20100510_RELBRANCH
changeset 7311 bd497d9287fde8367a5790d839ed99be3e37f7d3
parent 5286 c42da8e753a15917f6bb75dd7df6691f9ce60f64
child 5861 eacc929ccc278251557ad4beeafd0a0f9649cefa
permissions -rw-r--r--
Bug 631902; Closing old branch that is no longer used. r=standard8.

#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either of the GNU General Public License Version 2 or later (the "GPL"),
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

DEPTH		= ../..
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= mail
LIBRARY_NAME = mail


ifndef BUILD_STATIC_LIBS
ifeq ($(OS_ARCH),WINNT)
RESFILE		= mail.res
endif
endif

META_COMPONENT = mail

EXPORT_LIBRARY = 1

IS_COMPONENT	= 1
MOZILLA_INTERNAL_API = 1

MODULE_NAME	= nsMailModule

REQUIRES	= xpcom \
		  addrbook \
		  appcomps \
		  toolkitcomps \
		  content \
		  dom \
		  docshell \
		  editor \
		  fts3tok \
		  gfx \
		  intl \
	     	  locale \
		  layout \
		  lwbrk \
	          mailview \
	          msglocal \
		  msgcompose \
	          msgbase  \
		  msgnews \
		  msgimap \
		  msgdb \
		  mime \
		  mork \
		  necko \
		  nkcache \
		  pref \
		  rdf \
		  rdfutil \
		  string \
		  sqlite3 \
		  txmgr \
		  widget \
		  webbrwsr \
		  uconv \
		  uriloader \
		  $(ZLIB_REQUIRES) \
		  $(NULL)

ifeq ($(OS_TARGET),Darwin)
REQUIRES += alerts
endif

ifdef MOZ_LDAP_XPCOM
REQUIRES	+= mozldap \
               $(NULL)

DEFINES		+= -DMOZ_LDAP_XPCOM
endif

ifeq ($(OS_ARCH),WINNT)
DEFINES		+= -DZLIB_DLL
endif

CPPSRCS		= nsMailModule.cpp

SHARED_LIBRARY_LIBS = \
	        ../base/util/$(LIB_PREFIX)msgbsutl_s.$(LIB_SUFFIX) \
		../base/src/$(LIB_PREFIX)msgbase_s.$(LIB_SUFFIX) \
		../base/search/src/$(LIB_PREFIX)msgsearch_s.$(LIB_SUFFIX) \
		../local/src//$(LIB_PREFIX)msglocal_s.$(LIB_SUFFIX) \
	        ../compose/src/$(LIB_PREFIX)msgcompose_s.$(LIB_SUFFIX) \
	        ../db/msgdb/src/$(LIB_PREFIX)msgdb_s.$(LIB_SUFFIX) \
	        ../imap/src/$(LIB_PREFIX)msgimap_s.$(LIB_SUFFIX) \
	        ../addrbook/src/$(LIB_PREFIX)addrbook_s.$(LIB_SUFFIX) \
	        ../news/src/$(LIB_PREFIX)msgnews_s.$(LIB_SUFFIX) \
	        ../mime/src/$(LIB_PREFIX)mime_s.$(LIB_SUFFIX) \
	        ../mime/emitters/src/$(LIB_PREFIX)emitterutil_s.$(LIB_SUFFIX) \
	        ../extensions/bayesian-spam-filter/src/$(LIB_PREFIX)bayesflt_s.$(LIB_SUFFIX) \
	        ../extensions/fts3/src/$(LIB_PREFIX)fts3tok_s.$(LIB_SUFFIX) \
	        ../extensions/mailviews/src/$(LIB_PREFIX)mailview_s.$(LIB_SUFFIX) \
                ../extensions/mdn/src/$(LIB_PREFIX)msgmdn_s.$(LIB_SUFFIX) \
                ../mime/cthandlers/vcard/$(LIB_PREFIX)vcard_s.$(LIB_SUFFIX) \
                ../mime/cthandlers/glue/$(LIB_PREFIX)mimecthglue_s.$(LIB_SUFFIX) \
                $(NULL)

ifdef MOZILLA_INTERNAL_API
EXTRA_DSO_LDOPTS = \
		$(MOZDEPTH)/rdf/util/src/internal/$(LIB_PREFIX)rdfutil_s.$(LIB_SUFFIX) \
		$(MOZDEPTH)/modules/libreg/src/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX) \
		$(MOZ_JS_LIBS) \
		$(MOZ_UNICHARUTIL_LIBS) \
		$(MOZ_COMPONENT_LIBS) \
		$(ZLIB_LIBS) \
		$(NULL)
else
EXTRA_DSO_LDOPTS = \
	$(LIBS_DIR) \
	$(ZLIB_LIBS) \
	$(XPCOM_GLUE_LDOPTS) \
	$(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
	$(MOZDEPTH)/rdf/util/src/$(LIB_PREFIX)rdfutil_external_s.$(LIB_SUFFIX) \
	$(NSPR_LIBS) \
	$(NULL)
endif

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
EXTRA_DSO_LDOPTS += \
  $(TK_LIBS) \
                  -framework Cocoa \
  $(NULL)
endif 

LOCAL_INCLUDES = -I$(srcdir) \
                 -I$(srcdir)/../base/src \
                 -I$(srcdir)/../base/util \
                 -I$(srcdir)/../local/src \
                 -I$(srcdir)/../addrbook/src \
                 -I$(srcdir)/../imap/src \
                 -I$(srcdir)/../compose/src \
                 -I$(srcdir)/../base/search/src \
                 -I$(srcdir)/../mime/src \
                 -I$(srcdir)/../mime/emitters/src \
                 -I$(srcdir)/../news/src \
                 -I$(srcdir)/../extensions/bayesian-spam-filter/src \
                 -I$(srcdir)/../extensions/fts3/src \
                 -I$(srcdir)/../extensions/mailviews/src \
                 -I$(srcdir)/../extensions/mdn/src \
                 $(NULL)

include $(topsrcdir)/config/rules.mk

ifeq ($(OS_ARCH),WINNT)
OS_LIBS	+= $(call EXPAND_LIBNAME,shell32)
endif

ifdef MOZ_MOVEMAIL
DEFINES	+= -DHAVE_MOVEMAIL
endif