2004-07-16 22:13:26 +04:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1998-11-06 11:39:52 +03: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-11-06 11:39:52 +03: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):
|
|
|
|
# Stephen Lamm
|
2004-11-24 01:22:58 +03:00
|
|
|
# Benjamin Smedberg <bsmedberg@covad.net>
|
2005-08-12 10:48:51 +04:00
|
|
|
# Chase Phillips <chase@mozilla.org>
|
2006-02-21 22:38:38 +03:00
|
|
|
# Mark Mentovai <mark@moxienet.com>
|
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.
|
1999-11-06 06:43:54 +03:00
|
|
|
#
|
2004-07-16 22:13:26 +04:00
|
|
|
# ***** END LICENSE BLOCK *****
|
1998-11-06 11:39:52 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
# Build a mozilla application.
|
1998-11-06 11:39:52 +03:00
|
|
|
#
|
1999-04-14 06:34:49 +04:00
|
|
|
# To checkout and build a tree,
|
1999-02-19 22:49:15 +03:00
|
|
|
# 1. cvs co mozilla/client.mk
|
|
|
|
# 2. cd mozilla
|
2004-11-24 01:22:58 +03:00
|
|
|
# 3. create your .mozconfig file with
|
2006-11-16 20:21:46 +03:00
|
|
|
# mk_add_options MOZ_CO_PROJECT=
|
|
|
|
# suite,browser
|
2004-11-24 01:22:58 +03:00
|
|
|
# 4. gmake -f client.mk
|
|
|
|
#
|
|
|
|
# This script will pick up the CVSROOT from the CVS/Root file. If you wish
|
|
|
|
# to use a different CVSROOT, you must set CVSROOT in your environment:
|
|
|
|
#
|
2006-08-09 12:44:11 +04:00
|
|
|
# export CVSROOT=:pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot
|
2004-11-24 01:22:58 +03:00
|
|
|
# export CVSROOT=:pserver:username%somedomain.org@cvs.mozilla.org:/cvsroot
|
|
|
|
#
|
|
|
|
# You must specify which products/modules you wish to checkout, with
|
2006-11-16 20:21:46 +03:00
|
|
|
# MOZ_CO_PROJECT and MOZ_CO_MODULE variables.
|
2004-11-24 01:22:58 +03:00
|
|
|
#
|
|
|
|
# MOZ_CO_PROJECT possibilities include the following:
|
|
|
|
# suite (Seamonkey suite)
|
|
|
|
# browser (aka Firefox)
|
|
|
|
# mail (aka Thunderbird)
|
2005-07-28 00:42:44 +04:00
|
|
|
# minimo (small browser for devices)
|
2004-11-24 01:22:58 +03:00
|
|
|
# composer (standalone composer, aka NVU)
|
|
|
|
# calendar (aka Sunbird, use this to build the calendar extensions also)
|
|
|
|
# xulrunner
|
2006-08-29 20:53:40 +04:00
|
|
|
# camino
|
2006-11-16 20:21:46 +03:00
|
|
|
# tamarin
|
2004-11-24 01:22:58 +03:00
|
|
|
#
|
|
|
|
# Other common MOZ_CO_MODULE options include the following:
|
|
|
|
# mozilla/other-licenses/libart_lgpl
|
2005-06-08 22:04:25 +04:00
|
|
|
# mozilla/other-licenses/bsdiff
|
2004-11-24 01:22:58 +03:00
|
|
|
# mozilla/tools/codesighs
|
1998-11-06 11:39:52 +03:00
|
|
|
#
|
1999-02-19 22:49:15 +03:00
|
|
|
# Other targets (gmake -f client.mk [targets...]),
|
2000-03-14 05:59:43 +03:00
|
|
|
# checkout
|
|
|
|
# build
|
|
|
|
# clean (realclean is now the same as clean)
|
|
|
|
# distclean
|
1998-11-06 12:06:37 +03:00
|
|
|
#
|
2007-11-27 02:58:59 +03:00
|
|
|
# See http://developer.mozilla.org/en/docs/Build_Documentation for
|
|
|
|
# more information.
|
1998-11-06 12:06:37 +03:00
|
|
|
#
|
1999-02-17 20:36:29 +03:00
|
|
|
# Options:
|
2005-09-30 21:39:16 +04:00
|
|
|
# MOZ_BUILD_PROJECTS - Build multiple projects in subdirectories
|
|
|
|
# of MOZ_OBJDIR
|
1999-04-13 01:20:59 +04:00
|
|
|
# MOZ_OBJDIR - Destination object directory
|
1999-04-21 05:25:26 +04:00
|
|
|
# MOZ_CO_DATE - Date tag to use for checkout (default: none)
|
2005-10-14 06:54:41 +04:00
|
|
|
# MOZ_CO_LOCALES_DATE - Date tag to use for locale checkout
|
|
|
|
# (default: MOZ_CO_DATE)
|
2004-11-24 01:22:58 +03:00
|
|
|
# MOZ_CO_MODULE - Module to checkout
|
1999-04-13 01:20:59 +04:00
|
|
|
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
|
|
|
|
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
|
1999-08-20 19:02:00 +04:00
|
|
|
# MOZ_MAKE_FLAGS - Flags to pass to $(MAKE)
|
2004-11-24 01:22:58 +03:00
|
|
|
# MOZ_CO_LOCALES - localizations to pull (MOZ_CO_LOCALES="de-DE,pt-BR")
|
|
|
|
# MOZ_LOCALE_DIRS - directories which contain localizations
|
2004-09-02 00:40:10 +04:00
|
|
|
# LOCALES_CVSROOT - CVSROOT to use to pull localizations
|
2006-02-21 22:38:38 +03:00
|
|
|
# MOZ_PREFLIGHT_ALL } - Makefiles to run before any project in
|
|
|
|
# MOZ_PREFLIGHT } MOZ_BUILD_PROJECTS, before each project, after
|
|
|
|
# MOZ_POSTFLIGHT } each project, and after all projects; these
|
|
|
|
# MOZ_POSTFLIGHT_ALL } variables contain space-separated lists
|
2006-02-21 23:55:47 +03:00
|
|
|
# MOZ_UNIFY_BDATE - Set to use the same bdate for each project in
|
|
|
|
# MOZ_BUILD_PROJECTS
|
1999-10-09 04:31:17 +04:00
|
|
|
#
|
1999-02-17 20:36:29 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
AVAILABLE_PROJECTS = \
|
2005-08-12 10:48:51 +04:00
|
|
|
all \
|
2004-11-24 01:22:58 +03:00
|
|
|
suite \
|
|
|
|
toolkit \
|
|
|
|
browser \
|
|
|
|
mail \
|
2005-07-28 00:42:44 +04:00
|
|
|
minimo \
|
2004-11-24 01:22:58 +03:00
|
|
|
composer \
|
|
|
|
calendar \
|
|
|
|
xulrunner \
|
2006-08-29 20:53:40 +04:00
|
|
|
camino \
|
2006-09-29 01:22:27 +04:00
|
|
|
necko \
|
2006-11-16 20:21:46 +03:00
|
|
|
tamarin \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-04-09 02:55:53 +04:00
|
|
|
# Trailing / on top-level mozilla dir required to stop fast-update thinking
|
|
|
|
# it is a module name.
|
2006-09-29 01:22:27 +04:00
|
|
|
MODULES_NS_necko := \
|
2006-04-09 02:55:53 +04:00
|
|
|
mozilla/ \
|
2006-09-29 01:22:27 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_necko := \
|
|
|
|
mozilla/README \
|
|
|
|
mozilla/config \
|
|
|
|
mozilla/build \
|
|
|
|
mozilla/intl \
|
|
|
|
mozilla/modules/libpref \
|
|
|
|
mozilla/modules/zlib \
|
|
|
|
mozilla/netwerk \
|
|
|
|
mozilla/xpcom \
|
|
|
|
mozilla/tools/test-harness \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_core := \
|
|
|
|
$(MODULES_NS_necko) \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/js \
|
|
|
|
mozilla/js/src \
|
|
|
|
mozilla/js/jsd \
|
2007-01-02 19:47:08 +03:00
|
|
|
mozilla/db \
|
|
|
|
$(NULL)
|
2006-02-28 22:21:14 +03:00
|
|
|
|
2005-08-16 23:28:01 +04:00
|
|
|
MODULES_core := \
|
2006-09-29 01:22:27 +04:00
|
|
|
$(MODULES_necko) \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/caps \
|
|
|
|
mozilla/content \
|
|
|
|
mozilla/db/mdb \
|
|
|
|
mozilla/db/mork \
|
|
|
|
mozilla/docshell \
|
|
|
|
mozilla/dom \
|
|
|
|
mozilla/editor \
|
|
|
|
mozilla/embedding \
|
|
|
|
mozilla/extensions \
|
|
|
|
mozilla/gfx \
|
|
|
|
mozilla/parser \
|
|
|
|
mozilla/layout \
|
|
|
|
mozilla/jpeg \
|
|
|
|
mozilla/js/src/fdlibm \
|
|
|
|
mozilla/js/src/liveconnect \
|
|
|
|
mozilla/js/src/xpconnect \
|
|
|
|
mozilla/js/jsd/idl \
|
2007-07-24 02:23:20 +04:00
|
|
|
mozilla/modules/lcms \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/modules/libimg \
|
|
|
|
mozilla/modules/libjar \
|
|
|
|
mozilla/modules/libpr0n \
|
|
|
|
mozilla/modules/libreg \
|
|
|
|
mozilla/modules/libutil \
|
|
|
|
mozilla/modules/oji \
|
|
|
|
mozilla/modules/plugin \
|
2006-08-09 17:39:19 +04:00
|
|
|
mozilla/modules/staticmod \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/plugin/oji \
|
|
|
|
mozilla/profile \
|
2007-10-11 03:25:14 +04:00
|
|
|
mozilla/probes \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/rdf \
|
|
|
|
mozilla/security/manager \
|
|
|
|
mozilla/sun-java \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/ipc/ipcd \
|
|
|
|
mozilla/modules/libpr0n \
|
2005-06-08 22:04:25 +04:00
|
|
|
mozilla/modules/libmar \
|
|
|
|
mozilla/modules/libbz2 \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/accessible \
|
2006-08-24 08:30:05 +04:00
|
|
|
mozilla/other-licenses/atk-1.0 \
|
2007-03-02 00:18:51 +03:00
|
|
|
mozilla/other-licenses/ia2 \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/security/manager \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/tools/elf-dynstr-gc \
|
|
|
|
mozilla/uriloader \
|
|
|
|
mozilla/view \
|
|
|
|
mozilla/webshell \
|
|
|
|
mozilla/widget \
|
|
|
|
mozilla/xpfe \
|
|
|
|
mozilla/xpinstall \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/toolkit \
|
2004-12-07 23:23:31 +03:00
|
|
|
mozilla/storage \
|
2004-12-10 15:15:18 +03:00
|
|
|
mozilla/db/sqlite3 \
|
2006-01-18 04:00:22 +03:00
|
|
|
mozilla/db/morkreader \
|
2007-12-05 20:14:26 +03:00
|
|
|
mozilla/testing/crashtest \
|
2007-01-18 00:40:12 +03:00
|
|
|
mozilla/testing/mochitest \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-09-29 01:22:27 +04:00
|
|
|
LOCALES_necko := \
|
2005-01-27 17:04:06 +03:00
|
|
|
netwerk \
|
2006-09-29 01:22:27 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_core := \
|
|
|
|
$(LOCALES_necko) \
|
2005-01-27 17:04:06 +03:00
|
|
|
dom \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-10-04 07:55:39 +04:00
|
|
|
BOOTSTRAP_necko := \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/browser/config/version.txt \
|
|
|
|
mozilla/mail/config/version.txt \
|
2006-05-13 18:17:22 +04:00
|
|
|
mozilla/calendar/sunbird/config/version.txt \
|
2006-07-18 21:05:21 +04:00
|
|
|
mozilla/suite/config/version.txt \
|
2006-05-13 18:17:22 +04:00
|
|
|
$(NULL)
|
2006-02-28 22:21:14 +03:00
|
|
|
|
2006-09-29 01:22:27 +04:00
|
|
|
BOOTSTRAP_core := \
|
|
|
|
$(BOOTSTRAP_necko) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
MODULES_NS_toolkit := \
|
|
|
|
$(MODULES_NS_core) \
|
|
|
|
$(NULL)
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_toolkit := \
|
2005-04-17 14:06:09 +04:00
|
|
|
$(MODULES_core) \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/chrome \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_toolkit := \
|
2005-04-17 14:06:09 +04:00
|
|
|
$(LOCALES_core) \
|
2005-01-27 17:04:06 +03:00
|
|
|
toolkit \
|
2005-04-21 17:24:56 +04:00
|
|
|
security/manager \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_toolkit := \
|
|
|
|
$(BOOTSTRAP_core) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_suite := \
|
2006-04-04 20:19:17 +04:00
|
|
|
$(MODULES_NS_toolkit) \
|
2006-02-28 22:21:14 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2005-04-17 14:06:09 +04:00
|
|
|
MODULES_suite := \
|
2006-04-04 20:19:17 +04:00
|
|
|
$(MODULES_toolkit) \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/directory/xpcom \
|
|
|
|
mozilla/mailnews \
|
2005-04-17 14:06:09 +04:00
|
|
|
mozilla/suite \
|
2007-05-29 23:56:24 +04:00
|
|
|
mozilla/other-licenses/7zstub/seamonkey \
|
2005-04-17 14:06:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_suite := \
|
2006-04-04 20:19:17 +04:00
|
|
|
$(LOCALES_toolkit) \
|
2006-04-11 18:24:49 +04:00
|
|
|
suite \
|
|
|
|
editor/ui \
|
|
|
|
extensions/reporter \
|
2007-12-18 19:13:11 +03:00
|
|
|
extensions/spellcheck \
|
2005-04-17 14:06:09 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_suite := \
|
2006-04-04 20:19:17 +04:00
|
|
|
$(BOOTSTRAP_toolkit) \
|
2006-02-28 22:21:14 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_browser := \
|
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_browser := \
|
|
|
|
$(MODULES_toolkit) \
|
|
|
|
mozilla/browser \
|
|
|
|
mozilla/other-licenses/branding/firefox \
|
|
|
|
mozilla/other-licenses/7zstub/firefox \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_browser := \
|
|
|
|
$(LOCALES_toolkit) \
|
2005-01-27 17:04:06 +03:00
|
|
|
browser \
|
2006-02-07 21:10:09 +03:00
|
|
|
extensions/reporter \
|
2006-07-27 08:04:58 +04:00
|
|
|
extensions/spellcheck \
|
2005-04-21 17:24:56 +04:00
|
|
|
other-licenses/branding/firefox \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_browser := \
|
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
mozilla/browser/config/mozconfig \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_minimo := \
|
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
2004-11-24 02:46:12 +03:00
|
|
|
|
2005-09-01 18:30:53 +04:00
|
|
|
MODULES_minimo := \
|
|
|
|
$(MODULES_toolkit) \
|
|
|
|
mozilla/minimo \
|
|
|
|
$(NULL)
|
2005-07-28 00:42:44 +04:00
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_minimo := \
|
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_mail := \
|
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_mail := \
|
|
|
|
$(MODULES_toolkit) \
|
2006-02-28 22:21:14 +03:00
|
|
|
mozilla/directory/xpcom \
|
|
|
|
mozilla/mailnews \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/mail \
|
|
|
|
mozilla/other-licenses/branding/thunderbird \
|
|
|
|
mozilla/other-licenses/7zstub/thunderbird \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_mail := \
|
|
|
|
$(LOCALES_toolkit) \
|
2005-01-27 17:04:06 +03:00
|
|
|
mail \
|
2005-06-13 22:31:22 +04:00
|
|
|
other-licenses/branding/thunderbird \
|
2005-06-17 23:25:12 +04:00
|
|
|
editor/ui \
|
2006-07-27 08:04:58 +04:00
|
|
|
extensions/spellcheck \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_mail := \
|
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
mozilla/mail/config/mozconfig \
|
|
|
|
$(NULL)
|
2004-11-24 02:46:12 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_composer := \
|
|
|
|
$(MODULES_toolkit) \
|
|
|
|
mozilla/composer \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
MODULES_NS_calendar := \
|
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_calendar := \
|
|
|
|
$(MODULES_toolkit) \
|
2005-03-04 01:48:37 +03:00
|
|
|
mozilla/storage \
|
|
|
|
mozilla/db/sqlite3 \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/calendar \
|
2006-05-03 03:06:53 +04:00
|
|
|
mozilla/other-licenses/branding/sunbird \
|
2006-06-28 23:01:44 +04:00
|
|
|
mozilla/other-licenses/7zstub/sunbird \
|
2006-05-03 03:06:53 +04:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
LOCALES_calendar := \
|
|
|
|
$(LOCALES_toolkit) \
|
2006-06-08 00:47:11 +04:00
|
|
|
calendar \
|
2006-05-03 03:06:53 +04:00
|
|
|
other-licenses/branding/sunbird \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_calendar := \
|
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
mozilla/calendar/sunbird/config/mozconfig \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MODULES_NS_xulrunner := \
|
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
2004-11-24 02:46:12 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_xulrunner := \
|
|
|
|
$(MODULES_toolkit) \
|
|
|
|
mozilla/xulrunner \
|
|
|
|
$(NULL)
|
|
|
|
|
2005-04-29 20:56:07 +04:00
|
|
|
LOCALES_xulrunner := \
|
|
|
|
$(LOCALES_toolkit) \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
BOOTSTRAP_xulrunner := \
|
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
mozilla/xulrunner/config/mozconfig \
|
|
|
|
$(NULL)
|
|
|
|
|
2006-08-29 20:53:40 +04:00
|
|
|
MODULES_NS_camino := \
|
2006-02-28 22:21:14 +03:00
|
|
|
$(MODULES_NS_toolkit) \
|
|
|
|
$(NULL)
|
2004-11-24 02:46:12 +03:00
|
|
|
|
2006-08-29 20:53:40 +04:00
|
|
|
MODULES_camino := \
|
2005-04-17 14:06:09 +04:00
|
|
|
$(MODULES_core) \
|
2004-11-24 02:14:10 +03:00
|
|
|
mozilla/camino \
|
2006-03-02 19:20:12 +03:00
|
|
|
mozilla/themes \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(NULL)
|
|
|
|
|
2006-08-29 20:53:40 +04:00
|
|
|
BOOTSTRAP_camino := \
|
2006-02-28 22:21:14 +03:00
|
|
|
$(BOOTSTRAP_toolkit) \
|
|
|
|
mozilla/camino/config/mozconfig \
|
|
|
|
$(NULL)
|
2004-11-24 02:46:12 +03:00
|
|
|
|
2006-11-16 20:21:46 +03:00
|
|
|
MODULES_tamarin := \
|
|
|
|
mozilla/js/tamarin \
|
|
|
|
mozilla/modules/zlib \
|
|
|
|
$(NULL)
|
|
|
|
|
2005-08-12 10:48:51 +04:00
|
|
|
MODULES_all := \
|
2005-08-12 23:01:31 +04:00
|
|
|
mozilla/other-licenses/bsdiff \
|
|
|
|
mozilla/other-licenses/libart_lgpl \
|
|
|
|
mozilla/tools/trace-malloc \
|
|
|
|
mozilla/tools/jprof \
|
|
|
|
mozilla/tools/codesighs \
|
2005-08-13 06:49:39 +04:00
|
|
|
mozilla/tools/update-packaging \
|
2005-08-12 10:48:51 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2000-03-17 03:56:58 +03:00
|
|
|
#######################################################################
|
|
|
|
# Checkout Tags
|
|
|
|
#
|
|
|
|
# For branches, uncomment the MOZ_CO_TAG line with the proper tag,
|
|
|
|
# and commit this file on that tag.
|
2004-11-24 01:22:58 +03:00
|
|
|
#MOZ_CO_TAG = <tag>
|
2008-01-30 02:41:01 +03:00
|
|
|
NSPR_CO_TAG = NSPR_HEAD_20080129
|
2008-01-18 13:40:58 +03:00
|
|
|
NSS_CO_TAG = NSS_3_12_BETA1
|
2007-07-08 21:36:05 +04:00
|
|
|
LDAPCSDK_CO_TAG = LDAPCSDK_6_0_3_CLIENT_BRANCH
|
2004-11-24 01:22:58 +03:00
|
|
|
LOCALES_CO_TAG =
|
|
|
|
|
2000-03-17 03:56:58 +03:00
|
|
|
#######################################################################
|
|
|
|
# Defines
|
|
|
|
#
|
2001-04-17 04:11:22 +04:00
|
|
|
CVS = cvs
|
2004-11-24 01:22:58 +03:00
|
|
|
comma := ,
|
2001-04-17 04:11:22 +04:00
|
|
|
|
2000-03-17 03:56:58 +03:00
|
|
|
CWD := $(shell pwd)
|
2006-12-07 19:36:22 +03:00
|
|
|
ifneq (1,$(words $(CWD)))
|
|
|
|
$(error The mozilla directory cannot be located in a path with spaces.)
|
|
|
|
endif
|
2000-06-08 18:00:17 +04:00
|
|
|
|
|
|
|
ifeq "$(CWD)" "/"
|
|
|
|
CWD := /.
|
|
|
|
endif
|
|
|
|
|
2000-03-01 00:00:21 +03:00
|
|
|
ifneq (, $(wildcard client.mk))
|
2000-03-17 03:56:58 +03:00
|
|
|
# Ran from mozilla directory
|
|
|
|
ROOTDIR := $(shell dirname $(CWD))
|
|
|
|
TOPSRCDIR := $(CWD)
|
1999-02-17 20:36:29 +03:00
|
|
|
else
|
2000-03-17 03:56:58 +03:00
|
|
|
# Ran from mozilla/.. directory (?)
|
|
|
|
ROOTDIR := $(CWD)
|
|
|
|
TOPSRCDIR := $(CWD)/mozilla
|
1999-02-17 20:36:29 +03:00
|
|
|
endif
|
|
|
|
|
2001-01-27 18:36:41 +03:00
|
|
|
# on os2, TOPSRCDIR may have two forward slashes in a row, which doesn't
|
|
|
|
# work; replace first instance with one forward slash
|
2001-01-27 21:42:15 +03:00
|
|
|
TOPSRCDIR := $(shell echo "$(TOPSRCDIR)" | sed -e 's%//%/%')
|
2001-01-27 18:36:41 +03:00
|
|
|
|
2002-01-29 16:12:50 +03:00
|
|
|
ifndef TOPSRCDIR_MOZ
|
|
|
|
TOPSRCDIR_MOZ=$(TOPSRCDIR)
|
|
|
|
endif
|
|
|
|
|
2001-01-27 18:36:41 +03:00
|
|
|
# if ROOTDIR equals only drive letter (i.e. "C:"), set to "/"
|
2001-01-27 21:42:15 +03:00
|
|
|
DIRNAME := $(shell echo "$(ROOTDIR)" | sed -e 's/^.://')
|
2001-01-27 18:36:41 +03:00
|
|
|
ifeq ($(DIRNAME),)
|
|
|
|
ROOTDIR := /.
|
2000-06-08 18:00:17 +04:00
|
|
|
endif
|
|
|
|
|
2000-03-17 03:56:58 +03:00
|
|
|
AUTOCONF := autoconf
|
|
|
|
MKDIR := mkdir
|
|
|
|
SH := /bin/sh
|
1998-11-13 22:42:43 +03:00
|
|
|
ifndef MAKE
|
2000-03-17 03:56:58 +03:00
|
|
|
MAKE := gmake
|
1999-02-17 20:36:29 +03:00
|
|
|
endif
|
2006-02-21 23:55:47 +03:00
|
|
|
PERL ?= perl
|
2007-07-02 22:20:24 +04:00
|
|
|
PYTHON ?= python
|
1999-02-20 01:55:50 +03:00
|
|
|
|
2000-03-22 00:08:35 +03:00
|
|
|
CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
|
|
|
|
ifdef CONFIG_GUESS_SCRIPT
|
|
|
|
CONFIG_GUESS = $(shell $(CONFIG_GUESS_SCRIPT))
|
1999-04-15 23:35:41 +04:00
|
|
|
else
|
1999-04-14 06:34:49 +04:00
|
|
|
_IS_FIRST_CHECKOUT := 1
|
1998-11-13 22:42:43 +03:00
|
|
|
endif
|
|
|
|
|
2007-01-04 19:30:04 +03:00
|
|
|
####################################
|
|
|
|
# Sanity checks
|
|
|
|
|
|
|
|
ifneq (,$(filter MINGW%,$(shell uname -s)))
|
|
|
|
# check for CRLF line endings
|
|
|
|
ifneq (0,$(shell $(PERL) -e 'binmode(STDIN); while (<STDIN>) { if (/\r/) { print "1"; exit } } print "0"' < $(TOPSRCDIR)/client.mk))
|
|
|
|
$(error This source tree appears to have Windows-style line endings. To \
|
|
|
|
convert it to Unix-style line endings, run \
|
|
|
|
"python mozilla/build/win32/mozilla-dos2unix.py")
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
|
|
|
# CVS
|
1998-11-13 22:42:43 +03:00
|
|
|
|
1999-04-27 01:47:47 +04:00
|
|
|
# Add the CVS root to CVS_FLAGS if needed
|
2000-03-17 03:56:58 +03:00
|
|
|
CVS_ROOT_IN_TREE := $(shell cat $(TOPSRCDIR)/CVS/Root 2>/dev/null)
|
1999-04-14 06:41:50 +04:00
|
|
|
ifneq ($(CVS_ROOT_IN_TREE),)
|
|
|
|
ifneq ($(CVS_ROOT_IN_TREE),$(CVSROOT))
|
1999-04-27 21:10:48 +04:00
|
|
|
CVS_FLAGS := -d $(CVS_ROOT_IN_TREE)
|
1999-02-19 22:49:15 +03:00
|
|
|
endif
|
1998-11-13 22:42:43 +03:00
|
|
|
endif
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
CVS_CO_DATE_FLAGS = $(if $(MOZ_CO_DATE),-D "$(MOZ_CO_DATE)")
|
2005-10-14 06:54:41 +04:00
|
|
|
CVS_CO_LOCALES_DATE_FLAGS = $(if $(MOZ_CO_LOCALES_DATE),-D "$(MOZ_CO_LOCALES_DATE)")
|
2004-11-24 01:22:58 +03:00
|
|
|
CVSCO = $(CVS) $(CVS_FLAGS) co $(MOZ_CO_FLAGS) $(if $(MOZ_CO_TAG),-r $(MOZ_CO_TAG)) $(CVS_CO_DATE_FLAGS)
|
|
|
|
|
2005-10-14 06:56:28 +04:00
|
|
|
MOZ_CO_LOCALES_DATE ?= $(MOZ_CO_DATE)
|
2005-10-14 06:54:41 +04:00
|
|
|
|
1999-04-14 06:34:49 +04:00
|
|
|
CVSCO_LOGFILE := $(ROOTDIR)/cvsco.log
|
2001-01-27 18:36:41 +03:00
|
|
|
CVSCO_LOGFILE := $(shell echo $(CVSCO_LOGFILE) | sed s%//%/%)
|
1999-03-26 03:03:10 +03:00
|
|
|
|
2004-09-02 00:40:10 +04:00
|
|
|
# if LOCALES_CVSROOT is not specified, set it here
|
|
|
|
# (and let mozconfig override it)
|
2006-08-09 12:44:11 +04:00
|
|
|
LOCALES_CVSROOT ?= :pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/l10n
|
2004-09-02 00:40:10 +04:00
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
1999-04-14 06:34:49 +04:00
|
|
|
# Load mozconfig Options
|
1999-02-17 20:36:29 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
# See build pages, http://www.mozilla.org/build/ for how to set up mozconfig.
|
|
|
|
|
2000-03-14 05:59:43 +03:00
|
|
|
MOZCONFIG_LOADER := mozilla/build/autoconf/mozconfig2client-mk
|
|
|
|
MOZCONFIG_FINDER := mozilla/build/autoconf/mozconfig-find
|
2007-03-12 23:35:14 +03:00
|
|
|
MOZCONFIG_MODULES := mozilla/build/unix/uniq.pl
|
1999-04-14 06:34:49 +04:00
|
|
|
run_for_side_effects := \
|
|
|
|
$(shell cd $(ROOTDIR); \
|
2000-03-14 05:59:43 +03:00
|
|
|
if test "$(_IS_FIRST_CHECKOUT)"; then \
|
2000-05-04 05:26:34 +04:00
|
|
|
$(CVSCO) $(MOZCONFIG_FINDER) $(MOZCONFIG_LOADER) $(MOZCONFIG_MODULES); \
|
2000-03-14 05:59:43 +03:00
|
|
|
else true; \
|
|
|
|
fi; \
|
2000-03-22 00:08:35 +03:00
|
|
|
$(MOZCONFIG_LOADER) $(TOPSRCDIR) mozilla/.mozconfig.mk > mozilla/.mozconfig.out)
|
|
|
|
include $(TOPSRCDIR)/.mozconfig.mk
|
1999-02-17 20:36:29 +03:00
|
|
|
|
1999-04-14 06:34:49 +04:00
|
|
|
####################################
|
|
|
|
# Options that may come from mozconfig
|
1999-02-17 20:36:29 +03:00
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MOZ_PROJECT_LIST := $(subst $(comma), ,$(MOZ_CO_PROJECT))
|
2006-08-29 20:53:40 +04:00
|
|
|
MOZ_PROJECT_LIST := $(subst macbrowser,camino,$(MOZ_PROJECT_LIST))
|
2004-11-24 01:22:58 +03:00
|
|
|
|
|
|
|
ifneq (,$(filter-out $(AVAILABLE_PROJECTS),$(MOZ_PROJECT_LIST)))
|
|
|
|
$(error MOZ_CO_PROJECT contains an unrecognized project.)
|
|
|
|
endif
|
|
|
|
|
2005-08-12 10:48:51 +04:00
|
|
|
ifeq (all,$(filter all,$(MOZ_PROJECT_LIST)))
|
|
|
|
MOZ_PROJECT_LIST := $(AVAILABLE_PROJECTS)
|
|
|
|
endif
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MOZ_MODULE_LIST := $(subst $(comma), ,$(MOZ_CO_MODULE)) $(foreach project,$(MOZ_PROJECT_LIST),$(MODULES_$(project)))
|
2006-02-28 22:21:14 +03:00
|
|
|
MOZ_MODULE_LIST_NS := $(foreach project,$(MOZ_PROJECT_LIST),$(MODULES_NS_$(project)))
|
2004-11-24 02:46:12 +03:00
|
|
|
LOCALE_DIRS := $(MOZ_LOCALE_DIRS) $(foreach project,$(MOZ_PROJECT_LIST),$(LOCALES_$(project)))
|
|
|
|
|
|
|
|
MOZCONFIG_MODULES += $(foreach project,$(MOZ_PROJECT_LIST),$(BOOTSTRAP_$(project)))
|
2004-11-24 01:22:58 +03:00
|
|
|
|
2005-08-12 10:48:51 +04:00
|
|
|
# Using $(sort) here because it also removes duplicate entries.
|
|
|
|
MOZ_MODULE_LIST := $(sort $(MOZ_MODULE_LIST))
|
|
|
|
LOCALE_DIRS := $(sort $(LOCALE_DIRS))
|
2005-08-17 22:08:47 +04:00
|
|
|
MOZCONFIG_MODULES := $(sort $(MOZCONFIG_MODULES))
|
2005-08-12 10:48:51 +04:00
|
|
|
|
2000-02-16 03:37:41 +03:00
|
|
|
# Change CVS flags if anonymous root is requested
|
|
|
|
ifdef MOZ_CO_USE_MIRROR
|
2006-08-09 12:44:11 +04:00
|
|
|
CVS_FLAGS := -d :pserver:anonymous:anonymous@cvs-mirror.mozilla.org:/cvsroot
|
2000-02-16 03:37:41 +03:00
|
|
|
endif
|
|
|
|
|
1999-04-27 01:47:47 +04:00
|
|
|
# MOZ_CVS_FLAGS - Basic CVS flags
|
|
|
|
ifeq "$(origin MOZ_CVS_FLAGS)" "undefined"
|
2001-09-20 04:02:59 +04:00
|
|
|
CVS_FLAGS := $(CVS_FLAGS) -q -z 3
|
1999-04-27 01:47:47 +04:00
|
|
|
else
|
|
|
|
CVS_FLAGS := $(MOZ_CVS_FLAGS)
|
|
|
|
endif
|
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
ifdef MOZ_BUILD_PROJECTS
|
|
|
|
|
|
|
|
ifndef MOZ_OBJDIR
|
|
|
|
$(error When MOZ_BUILD_PROJECTS is set, you must set MOZ_OBJDIR)
|
|
|
|
endif
|
|
|
|
ifdef MOZ_CURRENT_PROJECT
|
|
|
|
OBJDIR = $(MOZ_OBJDIR)/$(MOZ_CURRENT_PROJECT)
|
|
|
|
MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
|
|
|
|
BUILD_PROJECT_ARG = MOZ_BUILD_APP=$(MOZ_CURRENT_PROJECT)
|
|
|
|
else
|
|
|
|
OBJDIR = $(error Cannot find the OBJDIR when MOZ_CURRENT_PROJECT is not set.)
|
|
|
|
MOZ_MAKE = $(error Cannot build in the OBJDIR when MOZ_CURRENT_PROJECT is not set.)
|
|
|
|
endif
|
|
|
|
|
|
|
|
else # MOZ_BUILD_PROJECTS
|
|
|
|
|
1999-04-14 06:34:49 +04:00
|
|
|
ifdef MOZ_OBJDIR
|
2005-09-30 21:39:16 +04:00
|
|
|
OBJDIR = $(MOZ_OBJDIR)
|
|
|
|
MOZ_MAKE = $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
|
1999-04-14 06:34:49 +04:00
|
|
|
else
|
|
|
|
OBJDIR := $(TOPSRCDIR)
|
2001-11-22 07:02:28 +03:00
|
|
|
MOZ_MAKE := $(MAKE) $(MOZ_MAKE_FLAGS)
|
1999-02-17 20:36:29 +03:00
|
|
|
endif
|
1998-12-19 03:10:52 +03:00
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
endif # MOZ_BUILD_PROJECTS
|
|
|
|
|
2000-12-22 23:43:27 +03:00
|
|
|
####################################
|
|
|
|
# CVS defines for NSS
|
|
|
|
#
|
2004-11-24 01:22:58 +03:00
|
|
|
NSS_CO_MODULE = \
|
2006-03-27 20:21:55 +04:00
|
|
|
mozilla/dbm \
|
2004-11-24 01:22:58 +03:00
|
|
|
mozilla/security/nss \
|
2001-04-13 13:01:36 +04:00
|
|
|
mozilla/security/coreconf \
|
2006-03-27 20:21:55 +04:00
|
|
|
mozilla/security/dbm \
|
2001-04-13 13:01:36 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2000-12-22 23:43:27 +03:00
|
|
|
NSS_CO_FLAGS := -P
|
2001-08-07 01:19:30 +04:00
|
|
|
ifdef MOZ_CO_FLAGS
|
|
|
|
NSS_CO_FLAGS := $(MOZ_CO_FLAGS)
|
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
NSS_CO_FLAGS := $(NSS_CO_FLAGS) $(if $(NSS_CO_TAG),-r $(NSS_CO_TAG),-A)
|
|
|
|
|
2006-04-05 00:58:55 +04:00
|
|
|
# Can only pull the tip or branch tags by date
|
|
|
|
ifeq (,$(filter-out HEAD %BRANCH,$(NSS_CO_TAG)))
|
2001-04-17 04:11:22 +04:00
|
|
|
CVSCO_NSS = $(CVS) $(CVS_FLAGS) co $(NSS_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(NSS_CO_MODULE)
|
2006-04-05 00:58:55 +04:00
|
|
|
else
|
|
|
|
CVSCO_NSS = $(CVS) $(CVS_FLAGS) co $(NSS_CO_FLAGS) $(NSS_CO_MODULE)
|
2001-05-16 15:16:08 +04:00
|
|
|
endif
|
2000-12-22 23:43:27 +03:00
|
|
|
|
2000-03-22 00:08:35 +03:00
|
|
|
####################################
|
|
|
|
# CVS defines for NSPR
|
2000-02-06 00:37:55 +03:00
|
|
|
#
|
2000-03-17 03:56:58 +03:00
|
|
|
NSPR_CO_MODULE = mozilla/nsprpub
|
2000-02-06 00:37:55 +03:00
|
|
|
NSPR_CO_FLAGS := -P
|
2001-08-07 01:19:30 +04:00
|
|
|
ifdef MOZ_CO_FLAGS
|
|
|
|
NSPR_CO_FLAGS := $(MOZ_CO_FLAGS)
|
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
NSPR_CO_FLAGS := $(NSPR_CO_FLAGS) $(if $(NSPR_CO_TAG),-r $(NSPR_CO_TAG),-A)
|
|
|
|
|
2006-11-27 22:12:41 +03:00
|
|
|
# Can only pull the tip or branch tags by date
|
|
|
|
ifeq (,$(filter-out HEAD %BRANCH,$(NSPR_CO_TAG)))
|
2001-04-17 04:11:22 +04:00
|
|
|
CVSCO_NSPR = $(CVS) $(CVS_FLAGS) co $(NSPR_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(NSPR_CO_MODULE)
|
2006-11-27 22:12:41 +03:00
|
|
|
else
|
|
|
|
CVSCO_NSPR = $(CVS) $(CVS_FLAGS) co $(NSPR_CO_FLAGS) $(NSPR_CO_MODULE)
|
2001-08-15 00:54:09 +04:00
|
|
|
endif
|
2000-02-06 00:37:55 +03:00
|
|
|
|
2000-06-07 07:07:45 +04:00
|
|
|
####################################
|
|
|
|
# CVS defines for the C LDAP SDK
|
|
|
|
#
|
2000-06-08 05:50:04 +04:00
|
|
|
LDAPCSDK_CO_MODULE = mozilla/directory/c-sdk
|
2000-06-07 07:07:45 +04:00
|
|
|
LDAPCSDK_CO_FLAGS := -P
|
2001-08-07 01:19:30 +04:00
|
|
|
ifdef MOZ_CO_FLAGS
|
|
|
|
LDAPCSDK_CO_FLAGS := $(MOZ_CO_FLAGS)
|
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
LDAPCSDK_CO_FLAGS := $(LDAPCSDK_CO_FLAGS) $(if $(LDAPCSDK_CO_TAG),-r $(LDAPCSDK_CO_TAG),-A)
|
2007-03-30 18:03:08 +04:00
|
|
|
|
|
|
|
# Can only pull the tip or branch tags by date
|
|
|
|
ifeq (,$(filter-out HEAD %BRANCH,$(LDAPCSDK_CO_TAG)))
|
2001-04-17 04:11:22 +04:00
|
|
|
CVSCO_LDAPCSDK = $(CVS) $(CVS_FLAGS) co $(LDAPCSDK_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(LDAPCSDK_CO_MODULE)
|
2007-03-30 18:03:08 +04:00
|
|
|
else
|
|
|
|
CVSCO_LDAPCSDK = $(CVS) $(CVS_FLAGS) co $(LDAPCSDK_CO_FLAGS) $(LDAPCSDK_CO_MODULE)
|
|
|
|
endif
|
2000-06-07 07:07:45 +04:00
|
|
|
|
2001-12-12 10:59:31 +03:00
|
|
|
####################################
|
2004-11-24 01:22:58 +03:00
|
|
|
# Error on obsolete variables.
|
2001-12-12 10:59:31 +03:00
|
|
|
#
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
ifdef MOZ_MAPINFO
|
2004-11-24 05:40:08 +03:00
|
|
|
$(warning MOZ_MAPINFO is obsolete, use MOZ_CO_MODULE=mozilla/tools/codesighs instead.)
|
2004-11-24 23:19:33 +03:00
|
|
|
MOZ_MODULE_LIST += mozilla/tools/codesighs
|
2003-07-23 08:47:26 +04:00
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
ifdef MOZ_INTERNAL_LIBART_LGPL
|
|
|
|
$(error MOZ_INTERNAL_LIBART_LGPL is obsolete, use MOZ_CO_MODULE=mozilla/other-licenses/libart_lgpl instead.)
|
2003-07-23 08:47:26 +04:00
|
|
|
endif
|
2002-08-07 10:37:13 +04:00
|
|
|
ifdef MOZ_PHOENIX
|
2004-11-24 01:54:31 +03:00
|
|
|
$(warning MOZ_PHOENIX is obsolete.)
|
|
|
|
MOZ_MODULE_LIST += $(MODULES_browser)
|
|
|
|
# $(error MOZ_PHOENIX is obsolete, use MOZ_CO_PROJECT=browser and --enable-application=browser)
|
2002-08-07 10:37:13 +04:00
|
|
|
endif
|
2003-04-17 10:14:23 +04:00
|
|
|
ifdef MOZ_THUNDERBIRD
|
2004-11-24 01:54:31 +03:00
|
|
|
$(warning MOZ_THUNDERBIRD is obsolete.)
|
|
|
|
MOZ_MODULE_LIST += $(MODULES_mail)
|
2004-11-24 02:14:10 +03:00
|
|
|
# $(error MOZ_THUNDERBIRD is obsolete, use MOZ_CO_PROJECT=mail and --enable-application=mail)
|
2003-04-17 10:14:23 +04:00
|
|
|
endif
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
###################################
|
|
|
|
# Checkout main modules
|
2004-06-02 22:06:03 +04:00
|
|
|
#
|
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
# sort is used to remove duplicates.
|
|
|
|
MOZ_MODULE_LIST := $(sort $(MOZ_MODULE_LIST))
|
|
|
|
MOZ_MODULE_LIST_NS := $(sort $(MOZ_MODULE_LIST_NS))
|
2004-06-02 22:06:03 +04:00
|
|
|
|
2006-11-16 20:21:46 +03:00
|
|
|
####################################
|
|
|
|
# Suppress standalone modules if they're not needed.
|
|
|
|
#
|
2007-04-14 04:29:26 +04:00
|
|
|
CONFIGURES := $(TOPSRCDIR)/configure
|
2006-11-16 20:21:46 +03:00
|
|
|
ifeq (,$(filter mozilla/xpcom,$(MOZ_MODULE_LIST)))
|
|
|
|
CVSCO_NSPR :=
|
2007-04-14 04:29:26 +04:00
|
|
|
else
|
|
|
|
CONFIGURES += $(TOPSRCDIR)/nsprpub/configure
|
2006-11-16 20:21:46 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(filter mozilla/security/manager,$(MOZ_MODULE_LIST)))
|
|
|
|
CVSCO_NSS :=
|
|
|
|
endif
|
|
|
|
ifeq (,$(filter mozilla/directory/xpcom,$(MOZ_MODULE_LIST)))
|
|
|
|
CVSCO_LDAPCSDK :=
|
2007-04-14 04:29:26 +04:00
|
|
|
else
|
|
|
|
CONFIGURES += $(TOPSRCDIR)/directory/c-sdk/configure
|
2006-11-16 20:21:46 +03:00
|
|
|
endif
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_CO_FLAGS := -P
|
2003-07-23 08:47:26 +04:00
|
|
|
ifdef MOZ_CO_FLAGS
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_CO_FLAGS := $(MOZ_CO_FLAGS)
|
2003-07-23 08:47:26 +04:00
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
MODULES_CO_FLAGS := $(MODULES_CO_FLAGS) $(if $(MOZ_CO_TAG),-r $(MOZ_CO_TAG),-A)
|
2003-07-23 08:47:26 +04:00
|
|
|
|
2006-02-28 22:21:14 +03:00
|
|
|
CVSCO_MODULES_NS = $(CVS) $(CVS_FLAGS) co $(MODULES_CO_FLAGS) $(CVS_CO_DATE_FLAGS) -l $(MOZ_MODULE_LIST_NS)
|
2003-04-17 10:14:23 +04:00
|
|
|
|
2004-11-25 03:42:20 +03:00
|
|
|
ifeq (,$(strip $(MOZ_MODULE_LIST)))
|
2004-11-24 01:22:58 +03:00
|
|
|
FASTUPDATE_MODULES = $(error No modules or projects were specified. Use MOZ_CO_PROJECT to specify a project for checkout.)
|
|
|
|
CHECKOUT_MODULES = $(error No modules or projects were specified. Use MOZ_CO_PROJECT to specify a project for checkout.)
|
|
|
|
else
|
2004-11-24 23:19:33 +03:00
|
|
|
FASTUPDATE_MODULES := fast_update $(CVS) $(CVS_FLAGS) co $(MODULES_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(MOZ_MODULE_LIST)
|
2006-02-28 22:21:14 +03:00
|
|
|
CHECKOUT_MODULES := cvs_co $(CVS) $(CVS_FLAGS) co $(MODULES_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(MOZ_MODULE_LIST);
|
2004-11-24 01:22:58 +03:00
|
|
|
endif
|
2006-02-28 22:21:14 +03:00
|
|
|
ifeq (,$(MOZ_MODULE_LIST_NS))
|
2004-11-24 01:22:58 +03:00
|
|
|
FASTUPDATE_MODULES_NS := true
|
|
|
|
CHECKOUT_MODULES_NS := true
|
2002-10-09 01:40:10 +04:00
|
|
|
else
|
2006-12-15 06:43:18 +03:00
|
|
|
FASTUPDATE_MODULES_NS := fast_update $(CVSCO_MODULES_NS)
|
2004-11-24 01:22:58 +03:00
|
|
|
CHECKOUT_MODULES_NS := cvs_co $(CVSCO_MODULES_NS)
|
2002-10-09 01:40:10 +04:00
|
|
|
endif
|
|
|
|
|
2004-09-02 00:40:10 +04:00
|
|
|
###################################
|
|
|
|
# CVS defines for locales
|
|
|
|
#
|
|
|
|
|
2004-11-24 01:22:58 +03:00
|
|
|
LOCALES_CO_FLAGS := -P
|
|
|
|
ifdef MOZ_CO_FLAGS
|
|
|
|
LOCALES_CO_FLAGS := $(MOZ_CO_FLAGS)
|
2004-09-02 00:40:10 +04:00
|
|
|
endif
|
2004-11-24 01:22:58 +03:00
|
|
|
LOCALES_CO_FLAGS := $(LOCALES_CO_FLAGS) $(if $(LOCALES_CO_TAG),-r $(LOCALES_CO_TAG),-A)
|
2004-09-02 00:40:10 +04:00
|
|
|
|
|
|
|
ifndef MOZ_CO_LOCALES
|
|
|
|
FASTUPDATE_LOCALES := true
|
|
|
|
CHECKOUT_LOCALES := true
|
|
|
|
else
|
2004-11-24 01:22:58 +03:00
|
|
|
|
|
|
|
override MOZ_CO_LOCALES := $(subst $(comma), ,$(MOZ_CO_LOCALES))
|
|
|
|
|
2004-09-02 00:40:10 +04:00
|
|
|
ifeq (all,$(MOZ_CO_LOCALES))
|
2005-01-27 17:04:06 +03:00
|
|
|
MOZCONFIG_MODULES += $(foreach project,$(MOZ_PROJECT_LIST),mozilla/$(project)/locales/all-locales)
|
2004-09-02 00:40:10 +04:00
|
|
|
|
2007-12-18 19:09:06 +03:00
|
|
|
LOCALE_CO_DIRS := $(sort $(foreach project,$(MOZ_PROJECT_LIST),$(foreach locale,$(shell cat mozilla/$(project)/locales/all-locales),l10n/$(locale)/)))
|
2004-11-24 01:22:58 +03:00
|
|
|
else # MOZ_CO_LOCALES != all
|
2007-12-18 19:09:06 +03:00
|
|
|
LOCALE_CO_DIRS = $(sort $(foreach locale,$(MOZ_CO_LOCALES),l10n/$(locale)/))
|
2005-01-27 17:04:06 +03:00
|
|
|
endif
|
2004-09-02 00:40:10 +04:00
|
|
|
|
2005-10-14 06:54:41 +04:00
|
|
|
CVSCO_LOCALES := $(CVS) $(CVS_FLAGS) -d $(LOCALES_CVSROOT) co $(LOCALES_CO_FLAGS) $(CVS_CO_LOCALES_DATE_FLAGS) $(LOCALE_CO_DIRS)
|
2004-09-02 00:40:10 +04:00
|
|
|
|
|
|
|
FASTUPDATE_LOCALES := fast_update $(CVSCO_LOCALES)
|
|
|
|
CHECKOUT_LOCALES := cvs_co $(CVSCO_LOCALES)
|
|
|
|
endif #MOZ_CO_LOCALES
|
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
#######################################################################
|
1999-02-17 20:36:29 +03:00
|
|
|
# Rules
|
1998-11-13 22:42:43 +03:00
|
|
|
#
|
|
|
|
|
2000-03-22 00:08:35 +03:00
|
|
|
# Print out any options loaded from mozconfig.
|
2001-11-21 11:55:59 +03:00
|
|
|
all build checkout clean depend distclean export libs install realclean::
|
2000-03-22 00:08:35 +03:00
|
|
|
@if test -f .mozconfig.out; then \
|
|
|
|
cat .mozconfig.out; \
|
|
|
|
rm -f .mozconfig.out; \
|
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
|
1999-04-14 06:34:49 +04:00
|
|
|
ifdef _IS_FIRST_CHECKOUT
|
2000-03-22 00:08:35 +03:00
|
|
|
all:: checkout build
|
1999-03-26 03:03:10 +03:00
|
|
|
else
|
2002-01-31 09:15:19 +03:00
|
|
|
all:: checkout alldep
|
1999-03-26 03:03:10 +03:00
|
|
|
endif
|
1998-11-06 11:39:52 +03:00
|
|
|
|
1999-02-17 20:59:06 +03:00
|
|
|
# Windows equivalents
|
2000-03-17 03:56:58 +03:00
|
|
|
pull_all: checkout
|
|
|
|
build_all: build
|
2002-01-25 11:32:27 +03:00
|
|
|
build_all_dep: alldep
|
|
|
|
build_all_depend: alldep
|
2000-03-17 03:56:58 +03:00
|
|
|
clobber clobber_all: clean
|
2002-01-29 13:25:13 +03:00
|
|
|
pull_and_build_all: checkout alldep
|
1998-11-06 11:39:52 +03:00
|
|
|
|
1999-05-01 06:10:34 +04:00
|
|
|
# Do everything from scratch
|
2000-03-14 05:59:43 +03:00
|
|
|
everything: checkout clean build
|
1999-05-01 06:10:34 +04:00
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
1998-11-13 22:42:43 +03:00
|
|
|
# CVS checkout
|
1999-11-30 05:00:13 +03:00
|
|
|
#
|
2000-03-22 00:08:35 +03:00
|
|
|
checkout::
|
2000-06-09 05:21:45 +04:00
|
|
|
# @: Backup the last checkout log.
|
2000-02-26 06:25:57 +03:00
|
|
|
@if test -f $(CVSCO_LOGFILE) ; then \
|
|
|
|
mv $(CVSCO_LOGFILE) $(CVSCO_LOGFILE).old; \
|
|
|
|
else true; \
|
|
|
|
fi
|
2001-11-13 00:57:55 +03:00
|
|
|
ifdef RUN_AUTOCONF_LOCALLY
|
|
|
|
@echo "Removing local configures" ; \
|
|
|
|
cd $(ROOTDIR) && \
|
2007-04-14 04:29:26 +04:00
|
|
|
$(RM) -f $(CONFIGURES)
|
2001-11-13 00:57:55 +03:00
|
|
|
endif
|
2000-02-23 01:25:56 +03:00
|
|
|
@echo "checkout start: "`date` | tee $(CVSCO_LOGFILE)
|
2005-04-30 02:21:46 +04:00
|
|
|
@echo '$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)'; \
|
2001-11-13 11:38:56 +03:00
|
|
|
cd $(ROOTDIR) && \
|
2005-04-30 02:21:46 +04:00
|
|
|
$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)
|
2001-11-13 11:38:56 +03:00
|
|
|
@cd $(ROOTDIR) && $(MAKE) -f mozilla/client.mk real_checkout
|
2000-02-23 01:25:56 +03:00
|
|
|
|
2004-09-02 00:40:10 +04:00
|
|
|
# Start the checkout. Split the output to the tty and a log file.
|
|
|
|
|
2000-02-23 01:25:56 +03:00
|
|
|
real_checkout:
|
2004-09-02 00:40:10 +04:00
|
|
|
@set -e; \
|
|
|
|
cvs_co() { set -e; echo "$$@" ; \
|
|
|
|
"$$@" 2>&1 | tee -a $(CVSCO_LOGFILE); }; \
|
|
|
|
cvs_co $(CVSCO_NSPR); \
|
|
|
|
cvs_co $(CVSCO_NSS); \
|
|
|
|
cvs_co $(CVSCO_LDAPCSDK); \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(CHECKOUT_MODULES_NS); \
|
2006-02-28 22:21:14 +03:00
|
|
|
$(CHECKOUT_MODULES) \
|
2005-04-30 02:21:46 +04:00
|
|
|
$(CHECKOUT_LOCALES);
|
2000-02-23 01:25:56 +03:00
|
|
|
@echo "checkout finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
2006-09-29 01:22:27 +04:00
|
|
|
# update the NSS checkout timestamp, if we checked PSM out
|
|
|
|
@if test -d $(TOPSRCDIR)/security/manager -a \
|
|
|
|
`egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
2003-05-22 00:13:24 +04:00
|
|
|
touch $(TOPSRCDIR)/security/manager/.nss.checkout; \
|
|
|
|
fi
|
2007-04-13 23:49:29 +04:00
|
|
|
ifdef RUN_AUTOCONF_LOCALLY
|
|
|
|
cd $(ROOTDIR) && \
|
2007-04-14 04:29:26 +04:00
|
|
|
$(RM) -f $(CONFIGURES)
|
2007-04-13 23:49:29 +04:00
|
|
|
endif
|
2000-06-23 01:56:41 +04:00
|
|
|
# @: Check the log for conflicts. ;
|
|
|
|
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
1999-11-30 05:00:13 +03:00
|
|
|
if test "$$conflicts" ; then \
|
|
|
|
echo "$(MAKE): *** Conflicts during checkout." ;\
|
|
|
|
echo "$$conflicts" ;\
|
|
|
|
echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\
|
2000-02-23 01:25:56 +03:00
|
|
|
false; \
|
|
|
|
else true; \
|
|
|
|
fi
|
1999-02-17 20:36:29 +03:00
|
|
|
|
2001-08-15 08:20:31 +04:00
|
|
|
fast-update:
|
2001-08-16 03:55:25 +04:00
|
|
|
# @: Backup the last checkout log.
|
|
|
|
@if test -f $(CVSCO_LOGFILE) ; then \
|
|
|
|
mv $(CVSCO_LOGFILE) $(CVSCO_LOGFILE).old; \
|
|
|
|
else true; \
|
|
|
|
fi
|
2001-11-13 00:57:55 +03:00
|
|
|
ifdef RUN_AUTOCONF_LOCALLY
|
|
|
|
@echo "Removing local configures" ; \
|
|
|
|
cd $(ROOTDIR) && \
|
2007-04-14 04:29:26 +04:00
|
|
|
$(RM) -f $(CONFIGURES)
|
2001-11-13 00:57:55 +03:00
|
|
|
endif
|
2001-08-16 03:55:25 +04:00
|
|
|
@echo "checkout start: "`date` | tee $(CVSCO_LOGFILE)
|
2002-10-25 13:22:44 +04:00
|
|
|
@echo '$(CVSCO) mozilla/client.mk $(MOZCONFIG_MODULES)'; \
|
2001-11-13 11:38:56 +03:00
|
|
|
cd $(ROOTDIR) && \
|
2002-10-25 13:22:44 +04:00
|
|
|
$(CVSCO) mozilla/client.mk $(MOZCONFIG_MODULES)
|
2001-11-13 11:38:56 +03:00
|
|
|
@cd $(TOPSRCDIR) && \
|
2001-08-16 03:55:25 +04:00
|
|
|
$(MAKE) -f client.mk real_fast-update
|
|
|
|
|
2004-09-02 00:40:10 +04:00
|
|
|
# Start the update. Split the output to the tty and a log file.
|
2001-08-16 03:55:25 +04:00
|
|
|
real_fast-update:
|
2004-09-05 23:39:02 +04:00
|
|
|
@set -e; \
|
2004-09-02 00:40:10 +04:00
|
|
|
fast_update() { set -e; config/cvsco-fast-update.pl $$@ 2>&1 | tee -a $(CVSCO_LOGFILE); }; \
|
|
|
|
cvs_co() { set -e; echo "$$@" ; \
|
|
|
|
"$$@" 2>&1 | tee -a $(CVSCO_LOGFILE); }; \
|
|
|
|
fast_update $(CVSCO_NSPR); \
|
|
|
|
cd $(ROOTDIR); \
|
|
|
|
cvs_co $(CVSCO_NSS); \
|
|
|
|
cd mozilla; \
|
|
|
|
fast_update $(CVSCO_LDAPCSDK); \
|
2004-11-24 01:22:58 +03:00
|
|
|
$(FASTUPDATE_MODULES); \
|
|
|
|
$(FASTUPDATE_MODULES_NS); \
|
|
|
|
$(FASTUPDATE_LOCALES);
|
2001-08-15 08:20:31 +04:00
|
|
|
@echo "fast_update finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
2003-05-22 00:13:24 +04:00
|
|
|
# update the NSS checkout timestamp
|
|
|
|
@if test `egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
2003-05-23 01:56:54 +04:00
|
|
|
touch $(TOPSRCDIR)/security/manager/.nss.checkout; \
|
2003-05-22 00:13:24 +04:00
|
|
|
fi
|
2007-04-13 23:49:29 +04:00
|
|
|
ifdef RUN_AUTOCONF_LOCALLY
|
|
|
|
cd $(ROOTDIR) && \
|
2007-04-14 04:29:26 +04:00
|
|
|
$(RM) -f $(CONFIGURES)
|
2007-04-13 23:49:29 +04:00
|
|
|
endif
|
2001-08-15 08:20:31 +04:00
|
|
|
# @: Check the log for conflicts. ;
|
|
|
|
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
|
|
|
if test "$$conflicts" ; then \
|
|
|
|
echo "$(MAKE): *** Conflicts during fast-update." ;\
|
|
|
|
echo "$$conflicts" ;\
|
|
|
|
echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\
|
|
|
|
false; \
|
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
|
2006-02-14 12:45:58 +03:00
|
|
|
CVSCO_LOGFILE_L10N := $(ROOTDIR)/cvsco-l10n.log
|
|
|
|
CVSCO_LOGFILE_L10N := $(shell echo $(CVSCO_LOGFILE_L10N) | sed s%//%/%)
|
|
|
|
|
|
|
|
l10n-checkout:
|
|
|
|
# @: Backup the last checkout log.
|
|
|
|
@if test -f $(CVSCO_LOGFILE_L10N) ; then \
|
|
|
|
mv $(CVSCO_LOGFILE_L10N) $(CVSCO_LOGFILE_L10N).old; \
|
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
@echo "checkout start: "`date` | tee $(CVSCO_LOGFILE_L10N)
|
|
|
|
@echo '$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)'; \
|
|
|
|
cd $(ROOTDIR) && \
|
|
|
|
$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)
|
|
|
|
@cd $(ROOTDIR) && $(MAKE) -f mozilla/client.mk real_l10n-checkout
|
|
|
|
|
2007-11-13 13:43:11 +03:00
|
|
|
FULL_EN_US_DIRS := toolkit \
|
|
|
|
extensions \
|
|
|
|
$(MOZ_PROJECT_LIST) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
EN_US_LOCALE_DIRS := $(foreach dir, \
|
|
|
|
$(filter-out toolkit extensions/% $(MOZ_PROJECT_LIST), $(LOCALE_DIRS)), \
|
|
|
|
mozilla/$(dir)/locales)
|
|
|
|
|
|
|
|
EN_US_CO_DIRS := $(EN_US_LOCALE_DIRS) \
|
|
|
|
$(foreach mod,$(FULL_EN_US_DIRS),mozilla/$(mod)) \
|
2006-02-14 12:45:58 +03:00
|
|
|
mozilla/client.mk \
|
|
|
|
mozilla/configure \
|
|
|
|
mozilla/configure.in \
|
|
|
|
mozilla/allmakefiles.sh \
|
|
|
|
mozilla/build \
|
|
|
|
mozilla/config \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# Start the checkout. Split the output to the tty and a log file.
|
|
|
|
real_l10n-checkout:
|
|
|
|
@set -e; \
|
|
|
|
cvs_co() { set -e; echo "$$@" ; \
|
|
|
|
"$$@" 2>&1 | tee -a $(CVSCO_LOGFILE_L10N); }; \
|
|
|
|
cvs_co $(CVS) $(CVS_FLAGS) co $(MODULES_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(EN_US_CO_DIRS); \
|
|
|
|
cvs_co $(CVSCO_LOCALES)
|
|
|
|
@echo "checkout finish: "`date` | tee -a $(CVSCO_LOGFILE_L10N)
|
|
|
|
# @: Check the log for conflicts. ;
|
|
|
|
@conflicts=`egrep "^C " $(CVSCO_LOGFILE_L10N)` ;\
|
|
|
|
if test "$$conflicts" ; then \
|
|
|
|
echo "$(MAKE): *** Conflicts during checkout." ;\
|
|
|
|
echo "$$conflicts" ;\
|
|
|
|
echo "$(MAKE): Refer to $(CVSCO_LOGFILE_L10N) for full log." ;\
|
|
|
|
false; \
|
|
|
|
else true; \
|
|
|
|
fi
|
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
#####################################################
|
|
|
|
# First Checkout
|
|
|
|
|
1999-04-14 06:34:49 +04:00
|
|
|
ifdef _IS_FIRST_CHECKOUT
|
1999-02-19 22:49:15 +03:00
|
|
|
# First time, do build target in a new process to pick up new files.
|
2000-03-22 00:08:35 +03:00
|
|
|
build::
|
2001-05-08 03:50:39 +04:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/client.mk build
|
1999-02-17 20:36:29 +03:00
|
|
|
else
|
1998-11-06 11:39:52 +03:00
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
#####################################################
|
|
|
|
# After First Checkout
|
|
|
|
|
2006-02-21 23:55:47 +03:00
|
|
|
#####################################################
|
|
|
|
# Build date unification
|
|
|
|
|
|
|
|
ifdef MOZ_UNIFY_BDATE
|
|
|
|
ifndef MOZ_BUILD_DATE
|
|
|
|
ifdef MOZ_BUILD_PROJECTS
|
2007-07-02 22:20:24 +04:00
|
|
|
MOZ_BUILD_DATE = $(shell $(PYTHON) $(TOPSRCDIR)/toolkit/xre/make-platformini.py --print-buildid)
|
2006-02-21 23:55:47 +03:00
|
|
|
export MOZ_BUILD_DATE
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
#####################################################
|
|
|
|
# Preflight, before building any project
|
|
|
|
|
|
|
|
build profiledbuild alldep preflight_all::
|
|
|
|
ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_PREFLIGHT_ALL),,1))
|
|
|
|
# Don't run preflight_all for individual projects in multi-project builds
|
|
|
|
# (when MOZ_CURRENT_PROJECT is set.)
|
|
|
|
ifndef MOZ_BUILD_PROJECTS
|
|
|
|
# Building a single project, OBJDIR is usable.
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_PREFLIGHT_ALL); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
else
|
|
|
|
# OBJDIR refers to the project-specific OBJDIR, which is not available at
|
|
|
|
# this point when building multiple projects. Only MOZ_OBJDIR is available.
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_PREFLIGHT_ALL); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS="$(MOZ_BUILD_PROJECTS)"; \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
# If we're building multiple projects, but haven't specified which project,
|
|
|
|
# loop through them.
|
|
|
|
|
|
|
|
ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_BUILD_PROJECTS),,1))
|
2006-02-21 22:38:38 +03:00
|
|
|
configure depend build profiledbuild install export libs clean realclean distclean alldep preflight postflight::
|
2005-09-30 21:39:16 +04:00
|
|
|
set -e; \
|
|
|
|
for app in $(MOZ_BUILD_PROJECTS); do \
|
|
|
|
$(MAKE) -f $(TOPSRCDIR)/client.mk $@ MOZ_CURRENT_PROJECT=$$app; \
|
|
|
|
done
|
|
|
|
|
|
|
|
else
|
1999-03-26 03:03:10 +03:00
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
# MOZ_CURRENT_PROJECT: either doing a single-project build, or building an
|
|
|
|
# individual project in a multi-project build.
|
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
1999-02-17 20:36:29 +03:00
|
|
|
# Configure
|
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
CONFIG_STATUS = $(wildcard $(OBJDIR)/config.status)
|
|
|
|
CONFIG_CACHE = $(wildcard $(OBJDIR)/config.cache)
|
1999-02-17 20:36:29 +03:00
|
|
|
|
|
|
|
ifdef RUN_AUTOCONF_LOCALLY
|
1999-02-19 22:49:15 +03:00
|
|
|
EXTRA_CONFIG_DEPS := \
|
1999-02-17 20:36:29 +03:00
|
|
|
$(TOPSRCDIR)/aclocal.m4 \
|
2001-11-13 00:57:55 +03:00
|
|
|
$(wildcard $(TOPSRCDIR)/build/autoconf/*.m4) \
|
1999-02-17 20:36:29 +03:00
|
|
|
$(NULL)
|
|
|
|
|
1999-02-19 22:49:15 +03:00
|
|
|
$(TOPSRCDIR)/configure: $(TOPSRCDIR)/configure.in $(EXTRA_CONFIG_DEPS)
|
1998-11-13 22:42:43 +03:00
|
|
|
@echo Generating $@ using autoconf
|
1999-02-17 20:36:29 +03:00
|
|
|
cd $(TOPSRCDIR); $(AUTOCONF)
|
2007-04-13 23:49:29 +04:00
|
|
|
|
|
|
|
$(TOPSRCDIR)/nsprpub/configure: $(TOPSRCDIR)/nsprpub/configure.in $(EXTRA_CONFIG_DEPS)
|
|
|
|
@echo Generating $@ using autoconf
|
|
|
|
cd $(TOPSRCDIR)/nsprpub; $(AUTOCONF)
|
|
|
|
|
|
|
|
$(TOPSRCDIR)/directory/c-sdk/configure: $(TOPSRCDIR)/directory/c-sdk/configure.in $(EXTRA_CONFIG_DEPS)
|
|
|
|
@echo Generating $@ using autoconf
|
|
|
|
cd $(TOPSRCDIR)/directory/c-sdk; $(AUTOCONF)
|
1999-02-17 20:36:29 +03:00
|
|
|
endif
|
1998-11-13 22:42:43 +03:00
|
|
|
|
1999-04-28 00:57:13 +04:00
|
|
|
CONFIG_STATUS_DEPS := \
|
|
|
|
$(TOPSRCDIR)/configure \
|
2000-03-22 00:08:35 +03:00
|
|
|
$(TOPSRCDIR)/.mozconfig.mk \
|
2000-06-14 07:51:17 +04:00
|
|
|
$(wildcard $(TOPSRCDIR)/nsprpub/configure) \
|
2002-03-27 10:49:23 +03:00
|
|
|
$(wildcard $(TOPSRCDIR)/directory/c-sdk/configure) \
|
2003-12-03 02:22:11 +03:00
|
|
|
$(wildcard $(TOPSRCDIR)/config/milestone.txt) \
|
|
|
|
$(wildcard $(TOPSRCDIR)/config/chrome-versions.sh) \
|
2008-01-18 23:17:36 +03:00
|
|
|
$(wildcard $(addsuffix confvars.sh,$(wildcard $(TOPSRCDIR)/*/))) \
|
1999-04-28 00:57:13 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2000-03-14 05:59:43 +03:00
|
|
|
# configure uses the program name to determine @srcdir@. Calling it without
|
|
|
|
# $(TOPSRCDIR) will set @srcdir@ to "."; otherwise, it is set to the full
|
|
|
|
# path of $(TOPSRCDIR).
|
|
|
|
ifeq ($(TOPSRCDIR),$(OBJDIR))
|
2005-09-30 21:39:16 +04:00
|
|
|
CONFIGURE = ./configure
|
2000-03-14 05:59:43 +03:00
|
|
|
else
|
2005-09-30 21:39:16 +04:00
|
|
|
CONFIGURE = $(TOPSRCDIR)/configure
|
2000-03-14 05:59:43 +03:00
|
|
|
endif
|
|
|
|
|
2002-06-17 21:09:57 +04:00
|
|
|
ifdef MOZ_TOOLS
|
2005-09-30 21:39:16 +04:00
|
|
|
CONFIGURE = $(TOPSRCDIR)/configure
|
2002-04-06 10:20:55 +04:00
|
|
|
endif
|
|
|
|
|
2007-04-14 04:29:26 +04:00
|
|
|
configure:: $(CONFIGURES)
|
2005-09-30 21:39:16 +04:00
|
|
|
ifdef MOZ_BUILD_PROJECTS
|
|
|
|
@if test ! -d $(MOZ_OBJDIR); then $(MKDIR) $(MOZ_OBJDIR); else true; fi
|
|
|
|
endif
|
1999-03-12 05:55:24 +03:00
|
|
|
@if test ! -d $(OBJDIR); then $(MKDIR) $(OBJDIR); else true; fi
|
2000-03-14 05:59:43 +03:00
|
|
|
@echo cd $(OBJDIR);
|
2002-04-06 10:20:55 +04:00
|
|
|
@echo $(CONFIGURE) $(CONFIGURE_ARGS)
|
2005-09-30 21:39:16 +04:00
|
|
|
@cd $(OBJDIR) && $(BUILD_PROJECT_ARG) $(CONFIGURE_ENV_ARGS) $(CONFIGURE) $(CONFIGURE_ARGS) \
|
1999-04-17 03:47:04 +04:00
|
|
|
|| ( echo "*** Fix above errors and then restart with\
|
|
|
|
\"$(MAKE) -f client.mk build\"" && exit 1 )
|
1999-08-20 19:02:00 +04:00
|
|
|
@touch $(OBJDIR)/Makefile
|
1999-02-17 20:36:29 +03:00
|
|
|
|
2005-07-28 23:48:12 +04:00
|
|
|
$(OBJDIR)/Makefile $(OBJDIR)/config.status: $(CONFIG_STATUS_DEPS)
|
2005-08-08 20:51:40 +04:00
|
|
|
@$(MAKE) -f $(TOPSRCDIR)/client.mk configure
|
2005-07-28 23:48:12 +04:00
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
ifneq (,$(CONFIG_STATUS))
|
1999-02-17 20:36:29 +03:00
|
|
|
$(OBJDIR)/config/autoconf.mk: $(TOPSRCDIR)/config/autoconf.mk.in
|
|
|
|
cd $(OBJDIR); \
|
|
|
|
CONFIG_FILES=config/autoconf.mk ./config.status
|
|
|
|
endif
|
1998-11-13 22:42:43 +03:00
|
|
|
|
1998-11-10 04:56:13 +03:00
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
|
|
|
# Depend
|
|
|
|
|
2000-03-22 00:08:35 +03:00
|
|
|
depend:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
2001-09-28 04:36:07 +04:00
|
|
|
$(MOZ_MAKE) export && $(MOZ_MAKE) depend
|
1999-03-26 03:03:10 +03:00
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
####################################
|
|
|
|
# Preflight
|
|
|
|
|
|
|
|
build profiledbuild alldep preflight::
|
|
|
|
ifdef MOZ_PREFLIGHT
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_PREFLIGHT); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile preflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
endif
|
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
|
|
|
# Build it
|
|
|
|
|
2000-03-22 00:08:35 +03:00
|
|
|
build:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
2001-11-17 06:56:53 +03:00
|
|
|
$(MOZ_MAKE)
|
1999-03-26 03:03:10 +03:00
|
|
|
|
2004-03-21 05:31:17 +03:00
|
|
|
####################################
|
|
|
|
# Profile-feedback build (gcc only)
|
|
|
|
# To use this, you should set the following variables in your mozconfig
|
|
|
|
# mk_add_options PROFILE_GEN_SCRIPT=/path/to/profile-script
|
|
|
|
#
|
|
|
|
# The profile script should exercise the functionality to be included
|
|
|
|
# in the profile feedback.
|
|
|
|
|
|
|
|
profiledbuild:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
|
|
|
$(MOZ_MAKE) MOZ_PROFILE_GENERATE=1
|
|
|
|
OBJDIR=${OBJDIR} $(PROFILE_GEN_SCRIPT)
|
|
|
|
$(MOZ_MAKE) clobber_all
|
|
|
|
$(MOZ_MAKE) MOZ_PROFILE_USE=1
|
2004-03-21 22:20:59 +03:00
|
|
|
find $(OBJDIR) -name "*.da" -exec rm {} \;
|
2004-03-21 05:31:17 +03:00
|
|
|
|
1999-03-26 03:03:10 +03:00
|
|
|
####################################
|
|
|
|
# Other targets
|
|
|
|
|
1999-02-17 20:59:06 +03:00
|
|
|
# Pass these target onto the real build system
|
2002-01-25 11:32:27 +03:00
|
|
|
install export libs clean realclean distclean alldep:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
2000-03-17 03:56:58 +03:00
|
|
|
$(MOZ_MAKE) $@
|
1999-02-17 20:59:06 +03:00
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
####################################
|
|
|
|
# Postflight
|
|
|
|
|
|
|
|
build profiledbuild alldep postflight::
|
|
|
|
ifdef MOZ_POSTFLIGHT
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_POSTFLIGHT); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
endif
|
|
|
|
|
2005-09-30 21:39:16 +04:00
|
|
|
endif # MOZ_CURRENT_PROJECT
|
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
####################################
|
|
|
|
# Postflight, after building all projects
|
|
|
|
|
|
|
|
build profiledbuild alldep postflight_all::
|
|
|
|
ifeq (,$(MOZ_CURRENT_PROJECT)$(if $(MOZ_POSTFLIGHT_ALL),,1))
|
|
|
|
# Don't run postflight_all for individual projects in multi-project builds
|
|
|
|
# (when MOZ_CURRENT_PROJECT is set.)
|
|
|
|
ifndef MOZ_BUILD_PROJECTS
|
|
|
|
# Building a single project, OBJDIR is usable.
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_POSTFLIGHT_ALL); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) OBJDIR=$(OBJDIR) MOZ_OBJDIR=$(MOZ_OBJDIR); \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
else
|
|
|
|
# OBJDIR refers to the project-specific OBJDIR, which is not available at
|
|
|
|
# this point when building multiple projects. Only MOZ_OBJDIR is available.
|
|
|
|
set -e; \
|
|
|
|
for mkfile in $(MOZ_POSTFLIGHT_ALL); do \
|
2007-02-20 22:32:45 +03:00
|
|
|
$(MAKE) -f $(TOPSRCDIR)/$$mkfile postflight_all TOPSRCDIR=$(TOPSRCDIR) MOZ_OBJDIR=$(MOZ_OBJDIR) MOZ_BUILD_PROJECTS="$(MOZ_BUILD_PROJECTS)"; \
|
2006-02-21 22:38:38 +03:00
|
|
|
done
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
1999-04-24 00:46:22 +04:00
|
|
|
cleansrcdir:
|
|
|
|
@cd $(TOPSRCDIR); \
|
2000-12-06 10:14:00 +03:00
|
|
|
if [ -f Makefile ]; then \
|
|
|
|
$(MAKE) distclean ; \
|
|
|
|
else \
|
1999-04-24 00:46:22 +04:00
|
|
|
echo "Removing object files from srcdir..."; \
|
|
|
|
rm -fr `find . -type d \( -name .deps -print -o -name CVS \
|
|
|
|
-o -exec test ! -d {}/CVS \; \) -prune \
|
|
|
|
-o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \
|
2000-12-06 10:14:00 +03:00
|
|
|
build/autoconf/clean-config.sh; \
|
|
|
|
fi;
|
1999-04-24 00:46:22 +04:00
|
|
|
|
1999-02-17 20:36:29 +03:00
|
|
|
# (! IS_FIRST_CHECKOUT)
|
|
|
|
endif
|
1999-04-14 06:34:49 +04:00
|
|
|
|
2007-04-27 19:00:33 +04:00
|
|
|
echo-variable-%:
|
|
|
|
@echo $($*)
|
2003-06-02 23:00:57 +04:00
|
|
|
|
2006-02-21 22:38:38 +03:00
|
|
|
.PHONY: checkout real_checkout depend build export libs alldep install clean realclean distclean cleansrcdir pull_all build_all clobber clobber_all pull_and_build_all everything configure preflight_all preflight postflight postflight_all
|