1999-12-15 09:40:24 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-08-21 03:34:44 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00: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 03:34:44 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
2004-07-16 18:13:26 +00: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 03:43:54 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00: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 03:34:44 +00:00
|
|
|
#
|
2004-07-16 18:13:26 +00:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-08-21 03:34:44 +00:00
|
|
|
|
|
|
|
DEPTH = .
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-04-18 09:42:12 +00:00
|
|
|
include $(topsrcdir)/build/unix/modules.mk
|
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
ifeq ($(BUILD_MODULES),all)
|
2001-11-16 07:40:42 +00:00
|
|
|
#
|
|
|
|
# And now for something completely different...
|
|
|
|
# Divide the default build into tiers.
|
|
|
|
# Tiers must be defined on module boundaries
|
|
|
|
#
|
2001-11-21 07:10:52 +00:00
|
|
|
default: $(SUBMAKEFILES)
|
2004-03-23 20:58:21 +00:00
|
|
|
$(RM) -rf $(DIST)/sdk
|
2002-09-12 20:05:28 +00:00
|
|
|
$(MAKE) -C config export
|
2002-01-25 22:29:51 +00:00
|
|
|
$(MAKE) nspr
|
|
|
|
$(MAKE) ldap
|
2002-09-12 20:05:28 +00:00
|
|
|
$(MAKE) tier_0
|
2001-12-10 06:13:54 +00:00
|
|
|
$(MAKE) tier_1
|
2002-05-02 22:53:30 +00:00
|
|
|
$(MAKE) tier_2
|
2001-12-10 06:13:54 +00:00
|
|
|
$(MAKE) tier_9
|
2003-08-30 00:20:58 +00:00
|
|
|
ifdef MOZ_PSM
|
|
|
|
$(MAKE) tier_40
|
|
|
|
endif
|
2003-07-16 00:33:50 +00:00
|
|
|
$(MAKE) tier_50
|
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
$(MAKE) tier_93
|
|
|
|
endif
|
2002-03-19 22:30:48 +00:00
|
|
|
ifdef MOZ_EXTENSIONS
|
|
|
|
$(MAKE) tier_94
|
|
|
|
endif
|
2001-12-10 06:13:54 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
$(MAKE) tier_97
|
|
|
|
endif
|
|
|
|
ifdef MOZ_CALENDAR
|
|
|
|
$(MAKE) tier_98
|
|
|
|
endif
|
|
|
|
$(MAKE) tier_99
|
1998-11-11 01:53:49 +00:00
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
# Make sure that the existing rulesets work
|
2002-01-25 22:29:51 +00:00
|
|
|
DIRS = \
|
2001-12-10 06:25:40 +00:00
|
|
|
$(tier_0_dirs) \
|
|
|
|
$(tier_1_dirs) \
|
2002-05-02 22:53:30 +00:00
|
|
|
$(tier_2_dirs) \
|
2001-12-10 06:25:40 +00:00
|
|
|
$(tier_9_dirs) \
|
2003-08-30 00:20:58 +00:00
|
|
|
$(tier_40_dirs) \
|
2003-07-16 00:33:50 +00:00
|
|
|
$(tier_50_dirs) \
|
2001-12-10 06:25:40 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2002-01-25 22:29:51 +00:00
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
DIRS += gc/boehm
|
2001-12-10 08:06:51 +00:00
|
|
|
endif
|
|
|
|
|
2003-07-16 00:33:50 +00:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
DIRS += $(tier_93_dirs)
|
|
|
|
endif
|
2002-03-19 22:30:48 +00:00
|
|
|
ifdef MOZ_EXTENSIONS
|
|
|
|
DIRS += $(tier_94_dirs)
|
|
|
|
endif
|
2001-12-10 06:25:40 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
DIRS += $(tier_97_dirs)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_CALENDAR
|
|
|
|
DIRS += $(tier_98_dirs)
|
|
|
|
endif
|
|
|
|
|
|
|
|
DIRS += $(tier_99_dirs)
|
1999-10-08 01:32:44 +00:00
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
#
|
|
|
|
# tier 0 - base build config dirs
|
|
|
|
#
|
|
|
|
tier_0_dirs = \
|
|
|
|
config \
|
|
|
|
build \
|
|
|
|
$(NULL)
|
1999-10-18 23:14:16 +00:00
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
#
|
2002-05-02 22:53:30 +00:00
|
|
|
# tier 1 - 3rd party individual libraries
|
2001-12-10 04:30:31 +00:00
|
|
|
#
|
2002-05-02 22:53:30 +00:00
|
|
|
tier_1_dirs += dbm
|
2001-12-10 04:30:31 +00:00
|
|
|
|
2002-05-02 22:53:30 +00:00
|
|
|
ifndef MOZ_NATIVE_JPEG
|
|
|
|
tier_1_dirs += jpeg
|
|
|
|
endif
|
2000-05-20 02:45:59 +00:00
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
ifndef MOZ_NATIVE_ZLIB
|
2002-05-02 22:53:30 +00:00
|
|
|
tier_1_dirs += modules/zlib
|
2000-05-20 02:45:59 +00:00
|
|
|
endif
|
1998-11-11 01:53:49 +00:00
|
|
|
|
2001-12-18 09:14:29 +00:00
|
|
|
# Installer needs standalone libjar, hence standalone zlib
|
2002-05-31 00:39:07 +00:00
|
|
|
ifdef MOZ_INSTALLER
|
2002-05-02 22:53:30 +00:00
|
|
|
tier_1_dirs += modules/zlib/standalone
|
2001-05-15 20:42:29 +00:00
|
|
|
endif
|
|
|
|
|
2002-05-02 22:53:30 +00:00
|
|
|
ifdef MOZ_INTERNAL_LIBART_LGPL
|
|
|
|
tier_1_dirs += other-licenses/libart_lgpl
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# tier 2 - base libraries
|
|
|
|
#
|
2003-10-08 03:39:52 +00:00
|
|
|
tier_2_dirs = \
|
|
|
|
js \
|
2002-05-02 22:53:30 +00:00
|
|
|
xpcom \
|
2003-08-14 23:50:21 +00:00
|
|
|
modules/libreg \
|
2003-03-15 01:04:32 +00:00
|
|
|
xpcom/obsolete \
|
2002-05-02 22:53:30 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2003-01-15 20:40:06 +00:00
|
|
|
ifdef NS_TRACE_MALLOC
|
|
|
|
tier_2_dirs += tools/trace-malloc/lib tools/trace-malloc
|
|
|
|
endif
|
|
|
|
|
2002-05-02 22:53:30 +00:00
|
|
|
#
|
|
|
|
# tier 9 - core components (necko,gecko)
|
|
|
|
#
|
|
|
|
|
|
|
|
tier_9_dirs += \
|
|
|
|
js/src/xpconnect \
|
|
|
|
intl \
|
|
|
|
modules/libjar \
|
|
|
|
$(NULL)
|
2001-11-16 07:40:42 +00:00
|
|
|
|
|
|
|
ifdef MOZ_OJI
|
2003-03-25 06:54:52 +00:00
|
|
|
tier_9_dirs += \
|
|
|
|
js/src/liveconnect \
|
|
|
|
modules/oji \
|
|
|
|
$(NULL)
|
2001-11-05 12:08:31 +00:00
|
|
|
endif
|
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
ifdef MOZ_ENABLE_XLIB
|
|
|
|
tier_9_dirs += gfx/src/xlibrgb widget/src/xlibxtbin
|
2000-08-19 23:33:23 +00:00
|
|
|
endif
|
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK
|
|
|
|
tier_9_dirs += widget/src/gtksuperwin widget/src/gtkxtbin
|
|
|
|
endif
|
|
|
|
|
2002-09-18 02:43:54 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
tier_9_dirs += widget/src/gtkxtbin
|
|
|
|
endif
|
|
|
|
|
2003-05-02 03:57:15 +00:00
|
|
|
ifdef MOZ_IPCD
|
|
|
|
tier_9_dirs += ipc/ipcd
|
|
|
|
endif
|
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
tier_9_dirs += \
|
1999-12-21 23:55:04 +00:00
|
|
|
modules/libutil \
|
2000-09-14 19:27:23 +00:00
|
|
|
netwerk \
|
1999-11-18 06:03:27 +00:00
|
|
|
uriloader \
|
1999-09-08 22:59:23 +00:00
|
|
|
modules/libpref \
|
|
|
|
modules/libimg \
|
|
|
|
caps \
|
2001-02-22 03:01:34 +00:00
|
|
|
rdf \
|
2004-05-04 11:46:11 +00:00
|
|
|
parser/expat \
|
|
|
|
parser/htmlparser \
|
1999-09-08 22:59:23 +00:00
|
|
|
gfx \
|
2001-08-12 00:38:38 +00:00
|
|
|
modules/libpr0n \
|
2003-03-31 19:44:29 +00:00
|
|
|
sun-java \
|
2000-07-22 01:27:15 +00:00
|
|
|
modules/plugin \
|
1999-09-08 22:59:23 +00:00
|
|
|
dom \
|
|
|
|
view \
|
2003-03-22 05:29:37 +00:00
|
|
|
widget \
|
2001-02-19 21:50:04 +00:00
|
|
|
content \
|
1999-09-08 22:59:23 +00:00
|
|
|
layout \
|
|
|
|
db \
|
2003-03-15 01:04:32 +00:00
|
|
|
xpfe/components/shistory \
|
1999-11-29 22:22:20 +00:00
|
|
|
docshell \
|
1999-09-08 22:59:23 +00:00
|
|
|
webshell \
|
2002-11-09 19:38:43 +00:00
|
|
|
profile \
|
2000-08-10 07:07:13 +00:00
|
|
|
embedding \
|
1999-09-08 22:59:23 +00:00
|
|
|
editor \
|
2003-07-16 00:33:50 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
|
|
|
tier_9_dirs += xpfe/bootstrap/appleevents
|
|
|
|
endif
|
|
|
|
|
2004-05-07 16:42:58 +00:00
|
|
|
ifdef MOZ_THUNDERBIRD
|
2004-05-04 22:13:10 +00:00
|
|
|
ifdef MOZ_USE_OFFICIAL_BRANDING
|
|
|
|
tier_9_dirs += other-licenses/branding/thunderbird
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2004-03-04 08:25:13 +00:00
|
|
|
ifdef MOZ_PHOENIX
|
2004-03-17 00:23:23 +00:00
|
|
|
ifdef MOZ_USE_OFFICIAL_BRANDING
|
|
|
|
tier_9_dirs += other-licenses/branding/firefox
|
|
|
|
endif
|
2004-03-04 08:25:13 +00:00
|
|
|
endif
|
|
|
|
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_9_dirs += \
|
|
|
|
xpfe/appshell \
|
|
|
|
xpfe/browser/public \
|
|
|
|
xpfe/components/sidebar/public \
|
|
|
|
xpfe/components/xremote/public \
|
1999-09-08 22:59:23 +00:00
|
|
|
$(NULL)
|
1998-11-18 22:35:21 +00:00
|
|
|
|
2004-02-11 02:10:04 +00:00
|
|
|
ifdef MOZ_XUL
|
2003-07-19 21:19:12 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
2004-02-11 02:10:04 +00:00
|
|
|
tier_9_dirs += chrome
|
2003-07-19 21:19:12 +00:00
|
|
|
else
|
2004-02-11 02:10:04 +00:00
|
|
|
tier_9_dirs += rdf/chrome
|
|
|
|
endif
|
2003-07-19 21:19:12 +00:00
|
|
|
endif
|
|
|
|
|
2003-03-22 05:29:37 +00:00
|
|
|
ifdef ACCESSIBILITY
|
|
|
|
tier_9_dirs += accessible
|
|
|
|
endif
|
|
|
|
|
2001-12-10 04:30:31 +00:00
|
|
|
ifdef MOZ_LDAP_XPCOM
|
2001-12-10 08:06:51 +00:00
|
|
|
tier_9_dirs += directory/xpcom
|
2001-12-10 04:30:31 +00:00
|
|
|
endif
|
|
|
|
|
2004-02-01 23:23:19 +00:00
|
|
|
ifndef MOZ_XUL
|
|
|
|
tier_9_dirs += embedding/minimo/chromelite
|
|
|
|
endif
|
|
|
|
|
2004-07-16 00:15:17 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
2004-07-15 22:51:19 +00:00
|
|
|
ifdef MOZ_ENABLE_GTK2
|
|
|
|
tier_9_dirs += toolkit/components/gnome
|
|
|
|
endif
|
2004-07-16 00:15:17 +00:00
|
|
|
endif
|
2004-07-15 22:51:19 +00:00
|
|
|
|
2003-08-30 00:20:58 +00:00
|
|
|
#
|
|
|
|
# tier 40 - security
|
|
|
|
#
|
|
|
|
ifdef MOZ_PSM
|
|
|
|
tier_40_dirs += security/manager
|
|
|
|
endif
|
|
|
|
|
2003-07-16 00:33:50 +00:00
|
|
|
#
|
|
|
|
# tier 50 - xpfe & toolkit
|
|
|
|
#
|
|
|
|
|
2000-03-04 01:50:50 +00:00
|
|
|
# This must preceed xpfe
|
|
|
|
ifdef MOZ_JPROF
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += tools/jprof
|
2000-03-04 01:50:50 +00:00
|
|
|
endif
|
|
|
|
|
2004-02-11 02:10:04 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
|
|
|
tier_50_dirs += toolkit/components/history/public
|
|
|
|
else
|
|
|
|
tier_50_dirs += xpfe/components/history/public
|
|
|
|
endif
|
|
|
|
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += xpfe themes
|
2001-04-19 03:00:55 +00:00
|
|
|
|
1999-09-25 20:44:48 +00:00
|
|
|
ifdef MOZ_LEAKY
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += tools/leaky
|
1999-09-25 20:44:48 +00:00
|
|
|
endif
|
|
|
|
|
2002-10-07 19:09:05 +00:00
|
|
|
ifdef MOZ_MAPINFO
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += tools/codesighs
|
2002-10-07 19:09:05 +00:00
|
|
|
endif
|
|
|
|
|
2003-04-10 07:13:43 +00:00
|
|
|
ifneq (,$(MOZ_L10N_LANG)$(MOZ_L10N_TOOLS))
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += l10n
|
2003-04-10 07:13:43 +00:00
|
|
|
endif
|
2000-06-27 00:24:48 +00:00
|
|
|
|
2003-06-09 04:31:57 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
2003-07-16 00:33:50 +00:00
|
|
|
tier_50_dirs += toolkit
|
2002-08-07 06:37:13 +00:00
|
|
|
endif
|
|
|
|
|
2003-07-19 21:19:12 +00:00
|
|
|
ifdef MOZ_PHOENIX
|
2004-02-16 08:44:50 +00:00
|
|
|
#xpfe/components/search depends on nsIBookmarksService.idl
|
2004-03-08 09:59:57 +00:00
|
|
|
#XXXBlake this shell path is a temp hack; toolkit shouldn't depend on browser
|
|
|
|
tier_50_dirs += browser/components/bookmarks/public browser/components/shell/public
|
2003-07-19 21:19:12 +00:00
|
|
|
endif
|
|
|
|
|
2003-07-24 18:34:38 +00:00
|
|
|
# toolkit/xre/ depends on xpinstall, so it must be in tier 50
|
2003-07-16 00:33:50 +00:00
|
|
|
ifdef MOZ_XPINSTALL
|
2003-07-19 21:19:12 +00:00
|
|
|
tier_50_dirs += xpinstall
|
|
|
|
endif
|
2003-07-16 00:33:50 +00:00
|
|
|
|
2003-07-24 18:34:38 +00:00
|
|
|
#
|
|
|
|
# tier 9x - application features
|
|
|
|
#
|
|
|
|
|
2003-07-16 00:33:50 +00:00
|
|
|
ifdef MOZ_JSDEBUGGER
|
|
|
|
tier_93_dirs += js/jsd
|
|
|
|
endif
|
|
|
|
|
2002-03-19 22:30:48 +00:00
|
|
|
ifdef MOZ_EXTENSIONS
|
|
|
|
tier_94_dirs += extensions
|
|
|
|
endif
|
|
|
|
|
2001-12-10 04:30:31 +00:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
tier_97_dirs += mailnews
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_CALENDAR
|
2002-12-11 04:15:45 +00:00
|
|
|
tier_98_dirs += other-licenses/libical calendar
|
2001-12-10 04:30:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# tier 99 - application binaries
|
|
|
|
#
|
|
|
|
|
2003-06-09 22:25:25 +00:00
|
|
|
ifdef MOZ_COMPONENTLIB
|
|
|
|
tier_99_dirs += embedding/componentlib
|
|
|
|
else
|
2001-06-20 20:21:49 +00:00
|
|
|
ifneq (,$(MOZ_STATIC_COMPONENTS)$(MOZ_META_COMPONENTS))
|
2001-12-10 04:30:31 +00:00
|
|
|
tier_99_dirs += modules/staticmod
|
2001-11-13 07:57:31 +00:00
|
|
|
endif
|
2003-06-09 22:25:25 +00:00
|
|
|
endif # MOZ_COMPONENTLIB
|
2001-11-13 07:57:31 +00:00
|
|
|
|
2002-09-02 04:03:07 +00:00
|
|
|
ifdef MOZ_PHOENIX
|
2004-02-20 18:13:47 +00:00
|
|
|
tier_99_dirs += browser xpfe/bootstrap/init.d
|
2004-04-25 08:50:55 +00:00
|
|
|
ifdef MOZ_USE_OFFICIAL_BRANDING
|
|
|
|
tier_99_dirs += other-licenses/branding/firefox/content
|
|
|
|
endif
|
2003-04-17 06:14:23 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef MOZ_THUNDERBIRD
|
2004-02-20 18:13:47 +00:00
|
|
|
tier_99_dirs += mail xpfe/bootstrap/init.d
|
2004-07-19 00:28:15 +00:00
|
|
|
ifdef MOZ_USE_OFFICIAL_BRANDING
|
|
|
|
tier_99_dirs += other-licenses/branding/thunderbird/content
|
|
|
|
endif
|
2003-04-17 06:14:23 +00:00
|
|
|
endif
|
|
|
|
|
2003-09-24 13:59:37 +00:00
|
|
|
ifdef MOZ_STANDALONE_COMPOSER
|
|
|
|
tier_99_dirs += composer
|
|
|
|
endif
|
|
|
|
|
2004-06-02 18:06:03 +00:00
|
|
|
ifdef MOZ_SUNBIRD
|
|
|
|
tier_99_dirs += calendar/sunbird
|
|
|
|
endif
|
|
|
|
|
2003-04-17 06:14:23 +00:00
|
|
|
ifdef MOZ_XUL_APP
|
2004-04-19 05:08:27 +00:00
|
|
|
ifdef MOZ_INSTALLER
|
|
|
|
tier_99_dirs += toolkit/mozapps/installer
|
|
|
|
endif
|
2002-09-02 04:03:07 +00:00
|
|
|
else
|
2003-04-11 00:56:27 +00:00
|
|
|
ifneq (,$(MOZ_XPFE_COMPONENTS)$(MOZ_XUL))
|
2001-12-10 04:30:31 +00:00
|
|
|
tier_99_dirs += xpfe/bootstrap
|
2002-09-02 04:03:07 +00:00
|
|
|
endif
|
2003-04-03 00:40:57 +00:00
|
|
|
endif
|
2001-04-28 17:26:54 +00:00
|
|
|
|
2003-02-06 20:54:54 +00:00
|
|
|
ifneq (,$(MOZ_ENABLE_GTK)$(MOZ_ENABLE_GTK2))
|
|
|
|
tier_99_dirs += embedding/browser/gtk
|
2002-11-16 02:36:22 +00:00
|
|
|
endif
|
|
|
|
|
2002-12-23 22:32:22 +00:00
|
|
|
# viewer
|
|
|
|
ifneq (,$(ENABLE_TESTS))
|
|
|
|
tier_99_dirs += webshell/tests
|
|
|
|
endif
|
|
|
|
|
|
|
|
# winembed, mfcembed
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
|
|
|
tier_99_dirs += embedding/tests
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2003-04-02 22:53:16 +00:00
|
|
|
# os2embed
|
|
|
|
ifeq ($(OS_ARCH),OS2)
|
|
|
|
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
|
|
|
tier_99_dirs += embedding/tests
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
else
|
2000-04-18 09:42:12 +00:00
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
# Standalone build
|
2000-05-03 22:49:47 +00:00
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
DIRS = $(BUILD_MODULE_DIRS)
|
|
|
|
|
2002-10-25 09:48:06 +00: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
|
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
default: $(SUBMAKEFILES)
|
|
|
|
$(MAKE) export
|
|
|
|
$(MAKE) libs
|
|
|
|
|
|
|
|
endif # BUILD_MODULES == all
|
|
|
|
|
|
|
|
STATIC_MAKEFILES := nsprpub directory/c-sdk security/nss
|
2001-04-09 09:38:30 +00:00
|
|
|
|
2000-08-30 01:15:32 +00:00
|
|
|
GARBAGE_DIRS += dist
|
2000-03-17 00:49:15 +00:00
|
|
|
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
2000-06-12 23:02:14 +00:00
|
|
|
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
2002-08-22 00:50:51 +00:00
|
|
|
unallmakefiles mozilla-config.h \
|
2000-07-07 10:34:45 +00:00
|
|
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
1998-10-28 03:40:33 +00:00
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
# Build pseudo-external modules first when export is explicitly called
|
2002-01-25 22:29:51 +00:00
|
|
|
export::
|
2004-03-23 20:58:21 +00:00
|
|
|
$(RM) -rf $(DIST)/sdk
|
2002-01-25 22:29:51 +00:00
|
|
|
$(MAKE) -C config export
|
|
|
|
$(MAKE) nspr
|
|
|
|
$(MAKE) ldap
|
2002-10-25 05:59:52 +00:00
|
|
|
ifneq ($(BUILD_MODULES),all)
|
|
|
|
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
|
|
|
$(MAKE) -C xpcom/typelib
|
|
|
|
$(MAKE) export-idl
|
|
|
|
endif
|
|
|
|
endif
|
2002-04-25 20:40:00 +00:00
|
|
|
|
|
|
|
install::
|
|
|
|
ifndef MOZ_NATIVE_NSPR
|
|
|
|
$(MAKE) -C nsprpub real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/nspr
|
|
|
|
$(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 06:16:27 +00:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2000-02-23 22:47:39 +00:00
|
|
|
|
2002-10-25 05:59:52 +00:00
|
|
|
# Clean up after pseudo-external modules
|
2002-01-25 22:29:51 +00:00
|
|
|
clean clobber realclean clobber_all distclean::
|
|
|
|
ifndef MOZ_NATIVE_NSPR
|
|
|
|
$(MAKE) -C nsprpub $@
|
|
|
|
endif
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
2002-03-27 06:31:38 +00:00
|
|
|
$(MAKE) -C directory/c-sdk $@
|
2002-01-25 22:29:51 +00:00
|
|
|
endif
|
|
|
|
|
2001-11-16 07:40:42 +00:00
|
|
|
tier_%:
|
|
|
|
@echo "$@: $($@_dirs)"
|
2001-12-10 06:25:40 +00:00
|
|
|
@$(EXIT_ON_ERROR) \
|
2001-12-10 04:30:31 +00:00
|
|
|
for d in $($@_dirs); do $(UPDATE_TITLE) \
|
|
|
|
$(MAKE) -C $$d export; \
|
|
|
|
done ; \
|
|
|
|
$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include ;\
|
|
|
|
for d in $($@_dirs); do $(UPDATE_TITLE) \
|
|
|
|
$(MAKE) -C $$d libs; \
|
2001-12-10 06:25:40 +00:00
|
|
|
done
|
2001-11-16 07:40:42 +00:00
|
|
|
#
|
|
|
|
# Individual modules
|
|
|
|
#
|
|
|
|
boehm:
|
|
|
|
ifdef GC_LEAK_DETECTOR
|
|
|
|
$(MAKE) -C gc/boehm
|
|
|
|
endif
|
|
|
|
|
|
|
|
nspr: boehm
|
2002-01-25 22:29:51 +00:00
|
|
|
ifndef MOZ_NATIVE_NSPR
|
|
|
|
$(MAKE) -C nsprpub
|
|
|
|
endif
|
|
|
|
|
|
|
|
ldap:
|
|
|
|
ifdef MOZ_LDAP_XPCOM
|
2002-04-05 03:51:32 +00:00
|
|
|
$(MAKE) -C directory/c-sdk
|
2001-11-16 07:40:42 +00:00
|
|
|
endif
|
|
|
|
|
2001-09-12 06:42:26 +00:00
|
|
|
export::
|
|
|
|
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include
|
|
|
|
|
2000-12-12 21:28:24 +00:00
|
|
|
distclean::
|
|
|
|
cat unallmakefiles | $(XARGS) rm -f
|
|
|
|
rm -f unallmakefiles $(DIST_GARBAGE)
|
2002-03-01 01:01:42 +00:00
|
|
|
|
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
rebase:
|
2002-03-07 08:23:11 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-01 01:01:42 +00:00
|
|
|
echo rebasing $(DIST)
|
|
|
|
/bin/find $(DIST) -name "*.dll" > rebase.lst
|
|
|
|
rebase -b 60000000 -R . -G rebase.lst
|
2002-03-07 08:23:11 +00:00
|
|
|
rm rebase.lst
|
2002-03-01 01:01:42 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
splitsymbols:
|
2002-03-07 08:23:11 +00:00
|
|
|
ifdef MOZILLA_OFFICIAL
|
2002-03-01 01:01:42 +00: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 18:10:59 +00:00
|
|
|
mkdir -p $(DIST)/$(BUILDID)
|
|
|
|
/bin/find $(DIST) -name "*.dbg" -exec mv {} $(DIST)/$(BUILDID) \;
|
2002-03-01 01:01:42 +00:00
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2003-05-17 00:58:24 +00:00
|
|
|
signnss:
|
|
|
|
ifdef MOZILLA_OFFICIAL
|
|
|
|
echo signing NSS libs
|
|
|
|
cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
|
|
|
|
endif # MOZILLA_OFFICIAL
|
|
|
|
|
2004-04-05 18:10:59 +00:00
|
|
|
BUILDID = $(shell cat $(DEPTH)/config/build_number)
|
2003-05-17 00:58:24 +00:00
|
|
|
deliver: splitsymbols rebase signnss
|
2002-03-01 01:01:42 +00:00
|
|
|
|
|
|
|
endif # WINNT
|
2002-03-05 15:22:48 +00:00
|
|
|
|