1999-12-15 12:40:24 +03:00
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-08-21 07:34:44 +04:00
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# 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.
|
1998-08-21 07:34:44 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# 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):
|
1999-11-06 06:43:54 +03:00
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either 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.
|
1998-08-21 07:34:44 +04:00
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-08-21 07:34:44 +04:00
|
|
|
|
|
|
|
DEPTH = .
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-04-18 13:42:12 +04:00
|
|
|
include $(topsrcdir)/build/unix/modules.mk
|
|
|
|
|
2006-03-09 08:47:25 +03:00
|
|
|
ifneq ($(MOZ_STANDALONE_BUILD),1) # {
|
2001-11-16 10:40:42 +03:00
|
|
|
#
|
|
|
|
# And now for something completely different...
|
|
|
|
# Divide the default build into tiers.
|
|
|
|
# Tiers must be defined on module boundaries
|
|
|
|
#
|
2005-04-01 01:40:23 +04:00
|
|
|
SUPPRESS_DEFAULT_RULES = 1
|
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
# Make sure that the existing rulesets work
|
2006-01-28 20:32:37 +03:00
|
|
|
|
|
|
|
DIRS += $(tier_0_dirs)
|
|
|
|
|
|
|
|
ifndef LIBXUL_SDK
|
|
|
|
# only build gecko if --with-libxul-sdk isn't passed
|
|
|
|
DIRS += \
|
2001-12-10 09:25:40 +03:00
|
|
|
$(tier_1_dirs) \
|
2002-05-03 02:53:30 +04:00
|
|
|
$(tier_2_dirs) \
|
2001-12-10 09:25:40 +03:00
|
|
|
$(tier_9_dirs) \
|
2003-07-16 04:33:50 +04:00
|
|
|
$(tier_50_dirs) \
|
2001-12-10 09:25:40 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-01-28 20:32:37 +03:00
|
|
|
endif # LIBXUL_SDK
|
|
|
|
|
2002-01-26 01:29:51 +03:00
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
DIRS += gc/boehm
|
2001-12-10 11:06:51 +03:00
|
|
|
endif
|
|
|
|
|
2006-01-28 20:32:37 +03:00
|
|
|
DIRS += $(tier_99_dirs)
|
1999-10-08 05:32:44 +04:00
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
#
|
|
|
|
# tier 0 - base build config dirs
|
|
|
|
#
|
|
|
|
tier_0_dirs = \
|
|
|
|
config \
|
|
|
|
build \
|
|
|
|
$(NULL)
|
1999-10-19 03:14:16 +04:00
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
#
|
2002-05-03 02:53:30 +04:00
|
|
|
# tier 1 - 3rd party individual libraries
|
2001-12-10 07:30:31 +03:00
|
|
|
#
|
|
|
|
|
2002-05-03 02:53:30 +04:00
|
|
|
ifndef MOZ_NATIVE_JPEG
|
|
|
|
tier_1_dirs += jpeg
|
|
|
|
endif
|
2000-05-20 06:45:59 +04:00
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
2002-05-03 02:53:30 +04:00
|
|
|
tier_1_dirs += modules/zlib
|
2000-05-20 06:45:59 +04:00
|
|
|
endif
|
1998-11-11 04:53:49 +03:00
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
# Installer needs standalone libjar, hence standalone zlib
|
2002-05-31 04:39:07 +04:00
|
|
|
ifdef MOZ_INSTALLER
|
2002-05-03 02:53:30 +04:00
|
|
|
tier_1_dirs += modules/zlib/standalone
|
2001-05-16 00:42:29 +04:00
|
|
|
endif
|
|
|
|
|
2005-06-08 22:04:25 +04:00
|
|
|
ifdef MOZ_UPDATER
|
|
|
|
tier_1_dirs += modules/libbz2
|
|
|
|
tier_1_dirs += modules/libmar
|
|
|
|
endif
|
|
|
|
|
2002-05-03 02:53:30 +04:00
|
|
|
#
|
|
|
|
# tier 2 - base libraries
|
|
|
|
#
|
2003-10-08 07:39:52 +04:00
|
|
|
tier_2_dirs = \
|
|
|
|
js \
|
2002-05-03 02:53:30 +04:00
|
|
|
xpcom \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-03-28 22:12:19 +04:00
|
|
|
ifneq (,$(MOZ_NO_XPCOM_OBSOLETE)$(MOZ_XPINSTALL))
|
|
|
|
tier_2_dirs += modules/libreg
|
|
|
|
endif
|
|
|
|
|
2005-08-05 21:09:41 +04:00
|
|
|
ifndef MOZ_NO_XPCOM_OBSOLETE
|
2006-03-28 22:12:19 +04:00
|
|
|
tier_2_dirs += xpcom/obsolete
|
2005-08-05 21:09:41 +04:00
|
|
|
endif
|
|
|
|
|
2003-01-15 23:40:06 +03:00
|
|
|
ifdef NS_TRACE_MALLOC
|
2004-12-09 22:28:35 +03:00
|
|
|
tier_2_dirs += tools/trace-malloc/lib
|
2003-01-15 23:40:06 +03:00
|
|
|
endif
|
|
|
|
|
2002-05-03 02:53:30 +04:00
|
|
|
#
|
|
|
|
# tier 9 - core components (necko,gecko)
|
|
|
|
#
|
|
|
|
|
|
|
|
tier_9_dirs += \
|
|
|
|
js/src/xpconnect \
|
|
|
|
intl \
|
|
|
|
$(NULL)
|
2001-11-16 10:40:42 +03:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_XLIB
|
|
|
|
tier_9_dirs += gfx/src/xlibrgb widget/src/xlibxtbin
|
2000-08-20 03:33:23 +04:00
|
|
|
endif
|
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
ifdef MOZ_ENABLE_GTK
|
|
|
|
tier_9_dirs += widget/src/gtksuperwin widget/src/gtkxtbin
|
|
|
|
endif
|
|
|
|
|
2002-09-18 06:43:54 +04:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
tier_9_dirs += widget/src/gtkxtbin
|
|
|
|
endif
|
|
|
|
|
2003-05-02 07:57:15 +04:00
|
|
|
ifdef MOZ_IPCD
|
|
|
|
tier_9_dirs += ipc/ipcd
|
|
|
|
endif
|
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
tier_9_dirs += \
|
1999-12-22 02:55:04 +03:00
|
|
|
modules/libutil \
|
2000-09-14 23:27:23 +04:00
|
|
|
netwerk \
|
2004-09-14 22:40:26 +04:00
|
|
|
modules/libjar \
|
2006-05-19 09:57:36 +04:00
|
|
|
db \
|
2006-01-25 23:23:24 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-05-25 19:45:17 +04:00
|
|
|
ifdef MOZ_PERMISSIONS
|
|
|
|
tier_9_dirs += \
|
|
|
|
extensions/cookie \
|
|
|
|
extensions/permissions \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
2006-05-19 09:57:36 +04:00
|
|
|
ifdef MOZ_STORAGE
|
|
|
|
tier_9_dirs += storage
|
|
|
|
endif
|
|
|
|
|
2006-01-25 23:23:24 +03:00
|
|
|
ifdef MOZ_XUL
|
|
|
|
tier_9_dirs += rdf
|
|
|
|
endif
|
|
|
|
|
2006-06-23 01:30:49 +04:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
tier_9_dirs += js/jsd
|
|
|
|
endif
|
|
|
|
|
2006-01-25 23:23:24 +03:00
|
|
|
tier_9_dirs += \
|
1999-11-18 09:03:27 +03:00
|
|
|
uriloader \
|
1999-09-09 02:59:23 +04:00
|
|
|
modules/libpref \
|
|
|
|
modules/libimg \
|
|
|
|
caps \
|
2004-05-04 15:46:11 +04:00
|
|
|
parser/expat \
|
2006-04-17 05:13:07 +04:00
|
|
|
parser/xml \
|
2004-05-04 15:46:11 +04:00
|
|
|
parser/htmlparser \
|
1999-09-09 02:59:23 +04:00
|
|
|
gfx \
|
2001-08-12 04:38:38 +04:00
|
|
|
modules/libpr0n \
|
2003-03-31 23:44:29 +04:00
|
|
|
sun-java \
|
2000-07-22 05:27:15 +04:00
|
|
|
modules/plugin \
|
1999-09-09 02:59:23 +04:00
|
|
|
dom \
|
|
|
|
view \
|
2003-03-22 08:29:37 +03:00
|
|
|
widget \
|
2001-02-20 00:50:04 +03:00
|
|
|
content \
|
1999-09-09 02:59:23 +04:00
|
|
|
layout \
|
1999-11-30 01:22:20 +03:00
|
|
|
docshell \
|
1999-09-09 02:59:23 +04:00
|
|
|
webshell \
|
2000-08-10 11:07:13 +04:00
|
|
|
embedding \
|
1999-09-09 02:59:23 +04:00
|
|
|
editor \
|
2004-12-15 07:07:01 +03:00
|
|
|
xpfe/appshell \
|
2003-07-16 04:33:50 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2005-12-21 21:37:02 +03:00
|
|
|
ifdef MOZ_AUTH_EXTENSION
|
|
|
|
tier_9_dirs += extensions/auth
|
|
|
|
endif
|
|
|
|
|
2005-11-22 20:20:37 +03:00
|
|
|
ifdef MOZ_XMLEXTRAS
|
|
|
|
tier_9_dirs += extensions/xmlextras
|
|
|
|
endif
|
|
|
|
|
2005-12-20 17:13:01 +03:00
|
|
|
ifdef MOZ_WEBSERVICES
|
|
|
|
tier_9_dirs += extensions/webservices
|
|
|
|
endif
|
|
|
|
|
2005-12-17 01:23:17 +03:00
|
|
|
ifdef MOZ_UNIVERSALCHARDET
|
|
|
|
tier_9_dirs += extensions/universalchardet
|
|
|
|
endif
|
|
|
|
|
2004-12-09 22:28:35 +03:00
|
|
|
ifdef MOZ_OJI
|
|
|
|
tier_9_dirs += \
|
|
|
|
js/src/liveconnect \
|
|
|
|
modules/oji \
|
|
|
|
$(NULL)
|
2004-03-04 11:25:13 +03:00
|
|
|
endif
|
|
|
|
|
2003-03-22 08:29:37 +03:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
tier_9_dirs += accessible
|
|
|
|
endif
|
|
|
|
|
2003-07-16 04:33:50 +04:00
|
|
|
#
|
|
|
|
# tier 50 - xpfe & toolkit
|
|
|
|
#
|
|
|
|
|
2004-10-29 23:28:38 +04:00
|
|
|
ifdef MOZ_XUL_APP
|
|
|
|
tier_50_dirs += chrome
|
|
|
|
else
|
2006-01-25 23:23:24 +03:00
|
|
|
ifdef MOZ_XUL
|
2004-10-29 23:28:38 +04:00
|
|
|
tier_50_dirs += rdf/chrome
|
|
|
|
else
|
|
|
|
tier_50_dirs += embedding/minimo/chromelite
|
|
|
|
endif
|
2006-01-25 23:23:24 +03:00
|
|
|
endif
|
2004-10-29 23:28:38 +04:00
|
|
|
|
|
|
|
tier_50_dirs += profile
|
|
|
|
|
2000-03-04 04:50:50 +03:00
|
|
|
# This must preceed xpfe
|
|
|
|
ifdef MOZ_JPROF
|
2003-07-16 04:33:50 +04:00
|
|
|
tier_50_dirs += tools/jprof
|
2000-03-04 04:50:50 +03:00
|
|
|
endif
|
|
|
|
|
2004-10-29 23:28:38 +04:00
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
tier_50_dirs += xpfe/bootstrap/appleevents
|
2004-02-11 05:10:04 +03:00
|
|
|
endif
|
|
|
|
|
2004-12-15 07:07:01 +03:00
|
|
|
tier_50_dirs += \
|
|
|
|
xpfe \
|
2005-04-04 23:08:55 +04:00
|
|
|
toolkit/components \
|
2004-12-15 07:07:01 +03:00
|
|
|
$(NULL)
|
2001-04-19 07:00:55 +04:00
|
|
|
|
2005-03-19 00:24:05 +03:00
|
|
|
ifndef MOZ_XUL_APP
|
|
|
|
tier_50_dirs += themes
|
2002-10-07 23:09:05 +04:00
|
|
|
endif
|
|
|
|
|
2005-04-05 00:12:19 +04:00
|
|
|
ifdef MOZ_ENABLE_XREMOTE
|
|
|
|
tier_50_dirs += widget/src/xremoteclient
|
|
|
|
endif
|
|
|
|
|
2003-06-09 08:31:57 +04:00
|
|
|
ifdef MOZ_XUL_APP
|
2003-07-16 04:33:50 +04:00
|
|
|
tier_50_dirs += toolkit
|
2002-08-07 10:37:13 +04:00
|
|
|
endif
|
|
|
|
|
2003-07-16 04:33:50 +04:00
|
|
|
ifdef MOZ_XPINSTALL
|
2003-07-20 01:19:12 +04:00
|
|
|
tier_50_dirs += xpinstall
|
|
|
|
endif
|
2003-07-16 04:33:50 +04:00
|
|
|
|
2005-09-01 16:43:58 +04:00
|
|
|
ifdef MOZ_PSM
|
|
|
|
tier_50_dirs += security/manager
|
2006-01-14 00:45:19 +03:00
|
|
|
else
|
|
|
|
tier_50_dirs += security/manager/boot/public security/manager/ssl/public
|
2005-09-01 16:43:58 +04:00
|
|
|
endif
|
|
|
|
|
2005-12-14 18:57:40 +03:00
|
|
|
ifdef MOZ_PREF_EXTENSIONS
|
|
|
|
tier_50_dirs += extensions/pref
|
|
|
|
endif
|
|
|
|
|
2005-12-15 17:17:20 +03:00
|
|
|
ifdef MOZ_JAVAXPCOM
|
|
|
|
tier_50_dirs += extensions/java
|
|
|
|
endif
|
|
|
|
|
2006-01-25 23:23:24 +03:00
|
|
|
ifndef BUILD_STATIC_LIBS
|
|
|
|
ifdef MOZ_XUL_APP
|
|
|
|
ifneq (,$(MOZ_ENABLE_GTK)$(MOZ_ENABLE_GTK2))
|
|
|
|
tier_50_dirs += embedding/browser/gtk
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-11-23 18:14:21 +03:00
|
|
|
ifdef MOZ_XUL_APP
|
2005-11-23 18:07:52 +03:00
|
|
|
ifndef BUILD_STATIC_LIBS
|
|
|
|
tier_50_dirs += toolkit/library
|
|
|
|
endif
|
2005-11-23 18:14:21 +03:00
|
|
|
endif
|
2005-11-23 18:07:52 +03:00
|
|
|
|
2005-03-19 00:24:05 +03:00
|
|
|
ifdef MOZ_ENABLE_LIBXUL
|
2005-11-23 18:07:52 +03:00
|
|
|
tier_50_dirs += xpcom/stub
|
2005-03-19 00:24:05 +03:00
|
|
|
endif
|
|
|
|
|
2005-06-11 16:57:27 +04:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
tier_50_dirs += tools/trace-malloc
|
|
|
|
endif
|
2004-12-10 15:15:18 +03:00
|
|
|
|
2004-12-15 07:07:01 +03:00
|
|
|
ifdef MOZ_LDAP_XPCOM
|
|
|
|
tier_50_dirs += directory/xpcom
|
|
|
|
endif
|
|
|
|
|
2006-01-11 20:32:29 +03:00
|
|
|
ifndef MINIMO
|
2004-12-15 07:07:01 +03:00
|
|
|
ifdef MOZ_XUL_APP
|
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
tier_50_dirs += toolkit/components/gnome
|
|
|
|
endif
|
|
|
|
endif
|
2006-01-11 20:32:29 +03:00
|
|
|
endif
|
2004-12-15 07:07:01 +03:00
|
|
|
|
2005-03-19 00:24:05 +03:00
|
|
|
ifdef MOZ_LEAKY
|
|
|
|
tier_50_dirs += tools/leaky
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_MAPINFO
|
|
|
|
tier_50_dirs += tools/codesighs
|
|
|
|
endif
|
|
|
|
|
2003-07-24 22:34:38 +04:00
|
|
|
#
|
2006-01-11 02:08:59 +03:00
|
|
|
# tier 99 - application binaries
|
2003-07-24 22:34:38 +04:00
|
|
|
#
|
|
|
|
|
2001-12-10 07:30:31 +03:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
2006-01-11 02:08:59 +03:00
|
|
|
tier_99_dirs += mailnews
|
2001-12-10 07:30:31 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_CALENDAR
|
2006-01-11 02:08:59 +03:00
|
|
|
tier_99_dirs += calendar
|
2001-12-10 07:30:31 +03:00
|
|
|
endif
|
|
|
|
|
2006-01-11 02:08:59 +03:00
|
|
|
ifdef MOZ_EXTENSIONS
|
|
|
|
tier_99_dirs += extensions
|
|
|
|
endif
|
2001-12-10 07:30:31 +03:00
|
|
|
|
2004-10-30 01:23:47 +04:00
|
|
|
# axcontrol
|
2006-04-27 17:37:15 +04:00
|
|
|
ifndef LIBXUL_SDK
|
2004-10-30 01:23:47 +04:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
ifndef MOZ_NO_ACTIVEX_SUPPORT
|
|
|
|
tier_99_dirs += \
|
|
|
|
embedding/browser/activex/src/control \
|
|
|
|
embedding/browser/activex/src/control_kicker \
|
|
|
|
$(NULL)
|
2006-04-27 17:37:15 +04:00
|
|
|
endif # MOZ_NO_ACTIVEX_SUPPORT
|
|
|
|
endif # WINNT
|
|
|
|
endif # LIBXUL_SDK
|
2004-10-30 01:23:47 +04:00
|
|
|
|
2005-08-18 17:14:58 +04:00
|
|
|
# Java Embedding Plugin
|
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
tier_99_dirs += plugin/oji/JEP
|
|
|
|
endif
|
|
|
|
|
2005-07-25 22:56:27 +04:00
|
|
|
ifdef MOZ_BRANDING_DIRECTORY
|
|
|
|
tier_99_dirs += $(MOZ_BRANDING_DIRECTORY)
|
2004-12-09 22:28:35 +03:00
|
|
|
endif
|
2005-07-25 22:56:27 +04:00
|
|
|
|
|
|
|
ifdef MOZ_PHOENIX
|
2004-02-20 21:13:47 +03:00
|
|
|
tier_99_dirs += browser xpfe/bootstrap/init.d
|
2003-04-17 10:14:23 +04:00
|
|
|
endif
|
|
|
|
|
2004-09-09 23:10:39 +04:00
|
|
|
ifdef MOZ_XULRUNNER
|
|
|
|
tier_99_dirs += xulrunner
|
|
|
|
endif
|
|
|
|
|
2005-02-04 06:20:46 +03:00
|
|
|
ifdef MOZ_COMPOSER
|
|
|
|
tier_99_dirs += editor/ui
|
|
|
|
endif
|
|
|
|
|
2003-04-17 10:14:23 +04:00
|
|
|
ifdef MOZ_THUNDERBIRD
|
2004-02-20 21:13:47 +03:00
|
|
|
tier_99_dirs += mail xpfe/bootstrap/init.d
|
2003-04-17 10:14:23 +04:00
|
|
|
endif
|
|
|
|
|
2003-09-24 17:59:37 +04:00
|
|
|
ifdef MOZ_STANDALONE_COMPOSER
|
|
|
|
tier_99_dirs += composer
|
|
|
|
endif
|
|
|
|
|
2004-06-02 22:06:03 +04:00
|
|
|
ifdef MOZ_SUNBIRD
|
|
|
|
tier_99_dirs += calendar/sunbird
|
|
|
|
endif
|
|
|
|
|
2005-04-17 14:06:09 +04:00
|
|
|
ifdef MOZ_SUITE
|
2006-06-15 17:35:59 +04:00
|
|
|
tier_99_dirs += \
|
|
|
|
xpfe/components/search \
|
|
|
|
xpfe/components/bookmarks \
|
|
|
|
$(NULL)
|
2006-05-30 17:08:47 +04:00
|
|
|
|
2006-03-30 00:21:45 +04:00
|
|
|
# When Suite becomes a full MOZ_XUL_APP we can remove this ifdef
|
|
|
|
ifdef MOZ_XUL_APP
|
|
|
|
tier_99_dirs += themes
|
|
|
|
endif
|
2006-05-20 16:30:32 +04:00
|
|
|
tier_99_dirs += suite
|
2005-04-17 14:06:09 +04:00
|
|
|
endif
|
|
|
|
|
2005-05-06 22:54:23 +04:00
|
|
|
ifdef MINIMO
|
2005-09-03 02:17:55 +04:00
|
|
|
tier_99_dirs += minimo
|
2005-05-06 22:54:23 +04:00
|
|
|
endif
|
|
|
|
|
2003-04-17 10:14:23 +04:00
|
|
|
ifdef MOZ_XUL_APP
|
2006-03-30 00:21:45 +04:00
|
|
|
# XXX SUITE doesn't want to build the toolkit installer yet
|
|
|
|
ifndef MOZ_SUITE
|
2004-04-19 09:08:27 +04:00
|
|
|
ifdef MOZ_INSTALLER
|
|
|
|
tier_99_dirs += toolkit/mozapps/installer
|
|
|
|
endif
|
2006-03-30 00:21:45 +04:00
|
|
|
endif # MOZ_SUITE
|
2002-09-02 08:03:07 +04:00
|
|
|
else
|
2003-04-11 04:56:27 +04:00
|
|
|
ifneq (,$(MOZ_XPFE_COMPONENTS)$(MOZ_XUL))
|
2005-06-08 20:48:44 +04:00
|
|
|
ifndef MINIMO
|
2001-12-10 07:30:31 +03:00
|
|
|
tier_99_dirs += xpfe/bootstrap
|
2002-09-02 08:03:07 +04:00
|
|
|
endif
|
2003-04-03 04:40:57 +04:00
|
|
|
endif
|
2005-06-08 20:48:44 +04:00
|
|
|
endif
|
2001-04-28 21:26:54 +04:00
|
|
|
|
2006-04-27 17:37:15 +04:00
|
|
|
ifndef LIBXUL_SDK
|
|
|
|
|
2004-10-30 01:23:47 +04:00
|
|
|
# winembed, mfcembed
|
2002-12-24 01:32:22 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
|
|
|
tier_99_dirs += embedding/tests
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2003-04-03 02:53:16 +04:00
|
|
|
# os2embed
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
2006-06-07 13:48:56 +04:00
|
|
|
ifdef ENABLE_TESTS
|
2003-04-03 02:53:16 +04:00
|
|
|
tier_99_dirs += embedding/tests
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-04-27 17:37:15 +04:00
|
|
|
endif # LIBXUL_SDK
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
ifeq ($(MOZ_BUILD_APP),macbrowser)
|
2004-11-24 05:37:35 +03:00
|
|
|
tier_99_dirs += \
|
|
|
|
embedding/config \
|
|
|
|
camino \
|
|
|
|
$(NULL)
|
2004-11-24 01:22:58 +03:00
|
|
|
endif
|
|
|
|
|
2006-01-27 23:56:16 +03:00
|
|
|
# test harnesses
|
|
|
|
ifdef ENABLE_TESTS
|
|
|
|
tier_99_dirs += tools/test-harness
|
|
|
|
endif
|
|
|
|
|
2006-02-24 01:22:54 +03:00
|
|
|
# This should be built last, after all IDL files in the tree have been processed
|
|
|
|
ifdef MOZ_JAVAXPCOM
|
|
|
|
tier_99_dirs += extensions/java/xpcom/interfaces
|
|
|
|
endif
|
|
|
|
|
2005-11-08 20:53:54 +03:00
|
|
|
default alldep all:: $(SUBMAKEFILES)
|
|
|
|
$(RM) -rf $(DIST)/sdk
|
|
|
|
$(RM) -rf $(DIST)/include
|
|
|
|
$(MAKE) -C config export
|
2006-01-28 20:32:37 +03:00
|
|
|
ifndef LIBXUL_SDK
|
2005-11-08 20:53:54 +03:00
|
|
|
$(MAKE) nspr
|
2006-01-28 20:32:37 +03:00
|
|
|
endif
|
2005-11-08 20:53:54 +03:00
|
|
|
$(MAKE) ldap
|
|
|
|
$(MAKE) tier_0
|
2006-01-28 20:32:37 +03:00
|
|
|
ifndef LIBXUL_SDK
|
2005-11-08 20:53:54 +03:00
|
|
|
$(MAKE) tier_1
|
|
|
|
$(MAKE) tier_2
|
|
|
|
$(MAKE) tier_9
|
|
|
|
$(MAKE) tier_50
|
2006-01-28 20:32:37 +03:00
|
|
|
endif
|
2005-11-08 20:53:54 +03:00
|
|
|
$(MAKE) tier_99
|
|
|
|
|
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2006-03-09 08:47:25 +03:00
|
|
|
else # } { MOZ_STANDALONE_BUILD
|
2000-04-18 13:42:12 +04:00
|
|
|
|
2002-10-25 09:59:52 +04:00
|
|
|
# Standalone build
|
2000-05-04 02:49:47 +04:00
|
|
|
|
2006-03-09 08:47:25 +03:00
|
|
|
ifeq ($(MOZ_BUILD_APP),content/xslt) # {
|
2005-11-02 20:34:14 +03:00
|
|
|
DIRS = \
|
|
|
|
xpcom/typelib \
|
|
|
|
xpcom \
|
|
|
|
parser/expat \
|
|
|
|
content/xslt/src \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
SUBMAKEFILES = xpcom/typelib/Makefile
|
2006-03-09 08:47:25 +03:00
|
|
|
|
|
|
|
endif # } MOZ_BUILD_APP == content/xslt
|
|
|
|
|
|
|
|
ifeq ($(MOZ_BUILD_APP),tools/update-packaging) # {
|
|
|
|
DIRS = \
|
|
|
|
config \
|
|
|
|
build \
|
|
|
|
modules/libbz2 \
|
|
|
|
modules/libmar \
|
|
|
|
other-licenses/bsdiff \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
endif # } MOZ_BUILD_APP == tools/update-packaging
|
|
|
|
|
|
|
|
ifeq ($(MOZ_BUILD_APP),standalone) # {
|
2002-10-25 09:59:52 +04:00
|
|
|
DIRS = $(BUILD_MODULE_DIRS)
|
|
|
|
|
2002-10-25 13:48:06 +04:00
|
|
|
# Hack to generate xpidl Makefile
|
|
|
|
ifneq ($(BUILD_MODULES),all)
|
|
|
|
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
|
|
|
DIRS := xpcom/typelib $(DIRS)
|
|
|
|
SUBMAKEFILES := xpcom/typelib/Makefile
|
|
|
|
endif
|
|
|
|
endif
|
2006-03-09 08:47:25 +03:00
|
|
|
endif # } MOZ_BUILD_APP == standalone
|
2002-10-25 13:48:06 +04:00
|
|
|
|
2005-04-01 01:40:23 +04:00
|
|
|
default:: $(SUBMAKEFILES)
|
2002-10-25 09:59:52 +04:00
|
|
|
$(MAKE) export
|
|
|
|
$(MAKE) libs
|
|
|
|
|
2006-03-09 08:47:25 +03:00
|
|
|
endif # } BUILD_MODULES == all or MOZ_STANDALONE
|
2002-10-25 09:59:52 +04:00
|
|
|
|
|
|
|
STATIC_MAKEFILES := nsprpub directory/c-sdk security/nss
|
2001-04-09 13:38:30 +04:00
|
|
|
|
2000-08-30 05:15:32 +04:00
|
|
|
GARBAGE_DIRS += dist
|
2000-03-17 03:49:15 +03:00
|
|
|
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
2000-06-13 03:02:14 +04:00
|
|
|
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
2002-08-22 04:50:51 +04:00
|
|
|
unallmakefiles mozilla-config.h \
|
2006-04-28 18:54:54 +04:00
|
|
|
gfx/gfx-config.h netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
|
2000-07-07 14:34:45 +04:00
|
|
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
1998-10-28 06:40:33 +03:00
|
|
|
|
2002-10-25 09:59:52 +04:00
|
|
|
# Build pseudo-external modules first when export is explicitly called
|
2002-01-26 01:29:51 +03:00
|
|
|
export::
|
2004-03-23 23:58:21 +03:00
|
|
|
$(RM) -rf $(DIST)/sdk
|
2002-01-26 01:29:51 +03:00
|
|
|
$(MAKE) -C config export
|
|
|
|
$(MAKE) nspr
|
|
|
|
$(MAKE) ldap
|
2002-10-25 09:59:52 +04:00
|
|
|
ifneq ($(BUILD_MODULES),all)
|
|
|
|
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
|
|
|
$(MAKE) -C xpcom/typelib
|
|
|
|
$(MAKE) export-idl
|
|
|
|
endif
|
|
|
|
endif
|
2002-04-26 00:40:00 +04:00
|
|
|
|
|
|
|
install::
|
|
|
|
ifndef MOZ_NATIVE_NSPR
|
2005-11-23 09:31:55 +03:00
|
|
|
$(MAKE) -C nsprpub install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/nspr
|
2002-04-26 00:40:00 +04:00
|
|
|
$(RM) -f $(addprefix $(DESTDIR)$(mozappdir)/$(LIB_PREFIX), $(addsuffix .$(LIB_SUFFIX), nspr4 plds4 plc4))
|
|
|
|
$(RM) -f $(addprefix $(DESTDIR)$(bindir)/,nspr-config compile-et.pl prerr.properties)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
|
|
|
$(MAKE) -C directory/c-sdk real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/ldap
|
|
|
|
endif
|
|
|
|
|
2000-03-14 09:16:27 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2000-02-24 01:47:39 +03:00
|
|
|
|
2002-10-25 09:59:52 +04:00
|
|
|
# Clean up after pseudo-external modules
|
2002-01-26 01:29:51 +03:00
|
|
|
clean clobber realclean clobber_all distclean::
|
|
|
|
ifndef MOZ_NATIVE_NSPR
|
|
|
|
$(MAKE) -C nsprpub $@
|
|
|
|
endif
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
2002-03-27 09:31:38 +03:00
|
|
|
$(MAKE) -C directory/c-sdk $@
|
2002-01-26 01:29:51 +03:00
|
|
|
endif
|
|
|
|
|
2005-02-24 23:11:04 +03:00
|
|
|
# Map mozilla targets to standard automake target
|
2005-11-08 17:13:08 +03:00
|
|
|
|
|
|
|
export_tier_%:
|
2005-12-19 22:08:05 +03:00
|
|
|
@echo "$@" $(if $(tier_$*_dirs),,$(error Tier $* not present))
|
2005-11-08 17:13:08 +03:00
|
|
|
@$(MAKE) $(addsuffix /Makefile,$(filter-out $(STATIC_MAKEFILES),$(tier_$*_dirs)))
|
|
|
|
@$(EXIT_ON_ERROR) \
|
|
|
|
for d in $(tier_$*_dirs); do \
|
|
|
|
$(UPDATE_TITLE) \
|
|
|
|
$(MAKE) -C $$d export; \
|
|
|
|
done
|
|
|
|
|
|
|
|
libs_tier_%:
|
2005-12-19 22:08:05 +03:00
|
|
|
@echo "$@" $(if $(tier_$*_dirs),,$(error Tier $* not present))
|
2005-11-08 17:13:08 +03:00
|
|
|
@$(MAKE) $(addsuffix /Makefile,$(filter-out $(STATIC_MAKEFILES),$(tier_$*_dirs)))
|
2004-12-09 22:28:35 +03:00
|
|
|
@$(EXIT_ON_ERROR) \
|
2005-11-08 17:13:08 +03:00
|
|
|
for d in $(tier_$*_dirs); do \
|
|
|
|
$(UPDATE_TITLE) \
|
|
|
|
$(MAKE) -C $$d libs; \
|
2004-12-09 22:28:35 +03:00
|
|
|
done
|
2005-11-08 17:13:08 +03:00
|
|
|
|
|
|
|
tools_tier_%:
|
2005-12-19 22:08:05 +03:00
|
|
|
@echo "$@" $(if $(tier_$*_dirs),,$(error Tier $* not present))
|
2005-11-08 17:13:08 +03:00
|
|
|
@$(MAKE) $(addsuffix /Makefile,$(filter-out $(STATIC_MAKEFILES),$(tier_$*_dirs)))
|
2004-12-09 22:28:35 +03:00
|
|
|
@$(EXIT_ON_ERROR) \
|
2005-11-08 17:13:08 +03:00
|
|
|
for d in $(tier_$*_dirs); do \
|
|
|
|
$(UPDATE_TITLE) \
|
|
|
|
$(MAKE) -C $$d tools; \
|
|
|
|
done
|
|
|
|
|
|
|
|
tier_50:
|
|
|
|
@echo "$@: $($@_dirs)"
|
|
|
|
$(MAKE) export_tier_50
|
|
|
|
$(MAKE) libs_tier_50
|
|
|
|
$(MAKE) tools_tier_2
|
|
|
|
$(MAKE) tools_tier_9
|
|
|
|
$(MAKE) tools_tier_50
|
2004-12-09 22:28:35 +03:00
|
|
|
|
2005-07-25 22:56:27 +04:00
|
|
|
tier_%:
|
2005-12-19 22:08:05 +03:00
|
|
|
@echo "$@: $(if $($@_dirs),$($@_dirs),$(error Tier $* not present.))"
|
2005-11-08 17:13:08 +03:00
|
|
|
$(MAKE) export_$@
|
|
|
|
$(MAKE) libs_$@
|
2005-07-25 22:56:27 +04:00
|
|
|
|
2001-11-16 10:40:42 +03:00
|
|
|
#
|
|
|
|
# Individual modules
|
|
|
|
#
|
|
|
|
boehm:
|
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
$(MAKE) -C gc/boehm
|
|
|
|
endif
|
|
|
|
|
|
|
|
nspr: boehm
|
2002-01-26 01:29:51 +03:00
|
|
|
ifndef MOZ_NATIVE_NSPR
|
|
|
|
$(MAKE) -C nsprpub
|
|
|
|
endif
|
|
|
|
|
|
|
|
ldap:
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
2002-04-05 07:51:32 +04:00
|
|
|
$(MAKE) -C directory/c-sdk
|
2001-11-16 10:40:42 +03:00
|
|
|
endif
|
|
|
|
|
2000-12-13 00:28:24 +03:00
|
|
|
distclean::
|
|
|
|
cat unallmakefiles | $(XARGS) rm -f
|
|
|
|
rm -f unallmakefiles $(DIST_GARBAGE)
|
2002-03-01 04:01:42 +03:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
rebase:
|
2002-03-07 11:23:11 +03:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-01 04:01:42 +03:00
|
|
|
echo rebasing $(DIST)
|
|
|
|
/bin/find $(DIST) -name "*.dll" > rebase.lst
|
|
|
|
rebase -b 60000000 -R . -G rebase.lst
|
2002-03-07 11:23:11 +03:00
|
|
|
rm rebase.lst
|
2002-03-01 04:01:42 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
splitsymbols:
|
2002-03-07 11:23:11 +03:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2004-08-27 03:03:00 +04:00
|
|
|
ifdef MOZ_DEBUG_SYMBOLS
|
|
|
|
echo finding pdb files
|
|
|
|
mkdir -p $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.dll" | sed "s/\.dll$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.exe" | sed "s/\.exe$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
-cp `/bin/find . -path "./dist" -prune -o -name "*.EXE" | sed "s/\.EXE$$/\.pdb/" | xargs` $(DIST)/$(BUILDID)
|
|
|
|
endif # MOZ_DEBUG_SYMBOLS
|
|
|
|
ifdef MOZ_PROFILE
|
2002-03-01 04:01:42 +03:00
|
|
|
echo splitting symbols out of binaries
|
|
|
|
/bin/find $(DIST) -name "*.dll" -exec splitsym {} \;
|
|
|
|
/bin/find $(DIST) -name "*.exe" -exec splitsym {} \;
|
|
|
|
/bin/find $(DIST) -name "*.EXE" -exec splitsym {} \;
|
2004-04-05 22:10:59 +04:00
|
|
|
mkdir -p $(DIST)/$(BUILDID)
|
|
|
|
/bin/find $(DIST) -name "*.dbg" -exec mv {} $(DIST)/$(BUILDID) \;
|
2004-08-27 03:03:00 +04:00
|
|
|
endif # MOZ_PROFILE
|
2002-03-01 04:01:42 +03:00
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2006-02-07 23:03:32 +03:00
|
|
|
## XXXvlad -- the test and cp should be removed once bug 249782 is
|
|
|
|
## completely fixed
|
2003-05-17 04:58:24 +04:00
|
|
|
signnss:
|
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
echo signing NSS libs
|
2006-02-07 23:03:32 +03:00
|
|
|
test -f $(DEPTH)/nss/shlibsign.exe.manifest && cp $(DEPTH)/nss/shlibsign.exe.manifest $(DIST)/bin
|
2003-05-17 04:58:24 +04:00
|
|
|
cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
|
2006-01-13 21:09:32 +03:00
|
|
|
cd $(DIST)/bin; ./shlibsign.exe -v -i freebl3.dll
|
2003-05-17 04:58:24 +04:00
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2004-04-05 22:10:59 +04:00
|
|
|
BUILDID = $(shell cat $(DEPTH)/config/build_number)
|
2003-05-17 04:58:24 +04:00
|
|
|
deliver: splitsymbols rebase signnss
|
2002-03-01 04:01:42 +03:00
|
|
|
|
|
|
|
endif # WINNT
|
2002-03-05 18:22:48 +03:00
|
|
|
|