1999-11-06 03:43:54 +00:00
|
|
|
# The contents of this file are subject to the Netscape 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/NPL/
|
1998-03-28 02:44:41 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# 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-03-28 02:44:41 +00:00
|
|
|
#
|
1999-11-06 03:43:54 +00:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-03-28 02:44:41 +00:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 03:43:54 +00:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1998-12-23 11:01:34 +00:00
|
|
|
DEPTH=.
|
1998-07-15 21:40:59 +00:00
|
|
|
|
1998-04-21 21:22:54 +00:00
|
|
|
!if !defined(MOZ_TOP)
|
1998-12-23 11:01:34 +00:00
|
|
|
#enable builds from changed top level directories
|
1998-04-27 18:16:04 +00:00
|
|
|
MOZ_TOP=mozilla
|
1998-04-21 21:22:54 +00:00
|
|
|
!endif
|
|
|
|
|
2001-01-22 00:32:42 +00:00
|
|
|
MOZ_SRC_FLIPPED = $(MOZ_SRC:\=/)
|
|
|
|
MOZ_DIST_FLIPPED = $(MOZ_SRC_FLIPPED)/mozilla/dist
|
|
|
|
!ifdef MOZ_DEBUG
|
|
|
|
MOZ_OBJDIR = WIN32_D.OBJ
|
|
|
|
!else
|
|
|
|
MOZ_OBJDIR = WIN32_O.OBJ
|
|
|
|
!endif
|
|
|
|
|
1998-12-23 11:01:34 +00:00
|
|
|
#
|
|
|
|
# Command macro defines
|
|
|
|
#
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1999-03-23 23:39:05 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to do the pull.
|
|
|
|
#//------------------------------------------------------------------------
|
2000-07-26 22:43:27 +00:00
|
|
|
# uncomment these, modify branch tag, and check in to branch for milestones
|
|
|
|
#MOZ_BRANCH=SeaMonkey_M17_BRANCH
|
|
|
|
#NSPR_CO_TAG=SeaMonkey_M17_BRANCH
|
|
|
|
#PSM_CO_TAG=SeaMonkey_M17_BRANCH
|
2001-06-27 03:52:58 +00:00
|
|
|
#NSS_CO_TAG=SeaMonkey_M17_BRANCH
|
2000-10-18 19:45:37 +00:00
|
|
|
#LDAPCSDK_CO_TAG=SeaMonkey_M17_BRANCH
|
2001-03-28 21:18:29 +00:00
|
|
|
#ACCESSIBLE_CO_TAG=SeaMonkey_M17_BRANCH
|
2001-06-05 00:25:32 +00:00
|
|
|
#IMGLIB2_CO_TAG=SeaMonkey_M17_BRANCH
|
|
|
|
#GFX2_CO_TAG=SeaMonkey_M17_BRANCH
|
2001-03-08 23:18:55 +00:00
|
|
|
|
2000-07-26 22:43:27 +00:00
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifdef MOZ_BRANCH
|
1999-03-23 23:39:05 +00:00
|
|
|
CVS_BRANCH=-r $(MOZ_BRANCH)
|
|
|
|
HAVE_BRANCH=1
|
|
|
|
!else
|
|
|
|
HAVE_BRANCH=0
|
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifdef MOZ_DATE
|
1999-11-30 17:29:20 +00:00
|
|
|
CVS_BRANCH=-D "$(MOZ_DATE)"
|
1999-03-23 23:39:05 +00:00
|
|
|
HAVE_DATE=1
|
|
|
|
!else
|
|
|
|
HAVE_DATE=0
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(HAVE_DATE) && $(HAVE_BRANCH)
|
|
|
|
ERR_MESSAGE=$(ERR_MESSAGE)^
|
|
|
|
Cannot specify both MOZ_BRANCH and MOZ_DATE
|
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
# default pull is "quiet" but it can be overridden with MOZ_CVS_VERBOSE
|
|
|
|
!ifndef MOZ_CVS_VERBOSE
|
|
|
|
CVS_FLAGS=-q
|
|
|
|
!endif
|
|
|
|
|
|
|
|
# honor any user-defined CVS flags
|
|
|
|
!ifdef MOZ_CVS_FLAGS
|
|
|
|
CVS_FLAGS=$(CVS_FLAGS) $(MOZ_CVS_FLAGS)
|
1999-11-22 22:33:40 +00:00
|
|
|
!endif
|
|
|
|
|
1999-02-28 07:51:10 +00:00
|
|
|
# let's be explicit about CVSROOT... some windows cvs clients
|
|
|
|
# are too stupid to correctly work without the -d option
|
2000-07-06 21:20:26 +00:00
|
|
|
#
|
|
|
|
# if they are too stupid, they should fail. I am
|
|
|
|
# commenting this out because this does not work
|
|
|
|
# under 4nt. (%'s are evaluted differently)
|
|
|
|
#
|
|
|
|
# If it breaks you, mail dougt@netscape.com
|
|
|
|
# and leaf@mozilla.org
|
|
|
|
#
|
|
|
|
!if 0
|
1999-03-23 23:39:05 +00:00
|
|
|
!if defined(CVSROOT)
|
2000-07-06 21:20:26 +00:00
|
|
|
CVS_FLAGS=$(CVS_FLAGS) -d "$(CVSROOT)"
|
|
|
|
!endif
|
1998-03-28 02:44:41 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef MOZ_CO_FLAGS
|
|
|
|
MOZ_CO_FLAGS = -P
|
1998-03-28 02:44:41 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO = cvs $(CVS_FLAGS) co $(MOZ_CO_FLAGS) $(CVS_BRANCH)
|
1999-11-30 17:29:20 +00:00
|
|
|
|
2000-02-05 21:17:07 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull NSPR.
|
|
|
|
#// If no NSPR_CO_TAG is specified, use the default static tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef NSPR_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
NSPR_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
2000-02-05 21:17:07 +00:00
|
|
|
|
|
|
|
!if "$(NSPR_CO_TAG)" != ""
|
2001-08-06 21:19:30 +00:00
|
|
|
NSPR_CO_FLAGS=$(NSPR_CO_FLAGS) -r $(NSPR_CO_TAG)
|
2000-02-05 21:17:07 +00:00
|
|
|
!else
|
2001-08-17 11:17:02 +00:00
|
|
|
NSPR_CO_FLAGS=$(NSPR_CO_FLAGS) -r NSPRPUB_PRE_4_2_CLIENT_BRANCH
|
2000-02-05 21:17:07 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_NSPR = cvs $(CVS_FLAGS) co $(NSPR_CO_FLAGS)
|
2000-02-05 21:17:07 +00:00
|
|
|
|
2000-03-11 04:55:28 +00:00
|
|
|
#//------------------------------------------------------------------------
|
2000-12-06 23:45:42 +00:00
|
|
|
#// Figure out how to pull NSS and PSM libs.
|
|
|
|
#// If no NSS_CO_TAG or PSM_CO_TAG is specified, use the default static tag
|
2000-03-11 04:55:28 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef NSS_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
NSS_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
|
|
|
|
2000-12-06 23:45:42 +00:00
|
|
|
!if "$(NSS_CO_TAG)" != ""
|
2001-08-06 21:19:30 +00:00
|
|
|
NSS_CO_FLAGS=$(NSS_CO_FLAGS) -r $(NSS_CO_TAG)
|
2000-12-06 23:45:42 +00:00
|
|
|
!else
|
2001-08-06 21:19:30 +00:00
|
|
|
NSS_CO_FLAGS=$(NSS_CO_FLAGS) -r NSS_CLIENT_TAG
|
2000-12-06 23:45:42 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_NSS = cvs $(CVS_FLAGS) co $(NSS_CO_FLAGS)
|
2001-08-06 21:19:30 +00:00
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef PSM_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
PSM_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
2000-12-06 23:45:42 +00:00
|
|
|
|
2000-03-11 04:55:28 +00:00
|
|
|
!if "$(PSM_CO_TAG)" != ""
|
2001-08-06 21:19:30 +00:00
|
|
|
PSM_CO_FLAGS=$(PSM_CO_FLAGS) -r $(PSM_CO_TAG)
|
2001-08-16 09:44:35 +00:00
|
|
|
!else
|
|
|
|
PSM_CO_FLAGS=$(PSM_CO_FLAGS) $(CVS_BRANCH)
|
2000-03-11 04:55:28 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_PSM = cvs $(CVS_FLAGS) co $(PSM_CO_FLAGS)
|
2000-03-11 04:55:28 +00:00
|
|
|
|
2000-06-16 21:20:18 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull LDAP C SDK client libs.
|
|
|
|
#// If no LDAPCSDK_CO_TAG is specified, use the default tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-06 21:19:30 +00:00
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef LDAPCSDK_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
LDAPCSDK_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
|
|
|
|
2000-06-16 21:20:18 +00:00
|
|
|
!if "$(LDAPCSDK_CO_TAG)" != ""
|
2001-08-06 21:19:30 +00:00
|
|
|
LDAPCSDK_CO_FLAGS=$(LDAPCSDK_CO_FLAGS) -r $(LDAPCSDK_CO_TAG)
|
2000-06-16 21:20:18 +00:00
|
|
|
!else
|
2001-08-06 21:19:30 +00:00
|
|
|
LDAPCSDK_CO_FLAGS=$(LDAPCSDK_CO_FLAGS) -r LDAPCSDK_40_BRANCH
|
2000-06-16 21:20:18 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_LDAPCSDK = cvs $(CVS_FLAGS) co $(LDAPCSDK_CO_FLAGS)
|
2000-06-16 21:20:18 +00:00
|
|
|
|
2001-03-28 21:18:29 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull accessibility libs.
|
|
|
|
#// If no ACCESSIBLE_CO_TAG is specified, use the default tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef ACCESSIBLE_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
ACCESSIBLE_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
|
|
|
|
2001-03-28 21:18:29 +00:00
|
|
|
!if "$(ACCESSIBLE_CO_TAG)" != ""
|
2001-08-16 09:44:35 +00:00
|
|
|
ACCESSIBLE_CO_FLAGS=$(ACCESSIBLE_CO_FLAGS) -r $(ACCESSIBLE_CO_TAG)
|
|
|
|
!else
|
|
|
|
ACCESSIBLE_CO_FLAGS=$(ACCESSIBLE_CO_FLAGS) $(CVS_BRANCH)
|
2001-03-28 21:18:29 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_ACCESSIBLE = cvs $(CVS_FLAGS) co $(ACCESSIBLE_CO_FLAGS)
|
2001-03-28 21:18:29 +00:00
|
|
|
|
2001-03-08 23:18:55 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull new image library.
|
|
|
|
#// If no IMGLIB2_CO_TAG is specified, use the default tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef IMGLIB2_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
IMGLIB2_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
|
|
|
|
2001-03-08 23:18:55 +00:00
|
|
|
!if "$(IMGLIB2_CO_TAG)" != ""
|
2001-08-06 21:19:30 +00:00
|
|
|
IMGLIB2_CO_FLAGS=$(IMGLIB2_CO_FLAGS) -r $(IMGLIB2_CO_TAG)
|
2001-08-16 09:44:35 +00:00
|
|
|
!else
|
|
|
|
IMGLIB2_CO_FLAGS=$(IMGLIB2_CO_FLAGS) $(CVS_BRANCH)
|
2001-03-08 23:18:55 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_IMGLIB2 = cvs $(CVS_FLAGS) co $(IMGLIB2_CO_FLAGS)
|
2001-03-08 23:18:55 +00:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull new image library.
|
|
|
|
#// If no GFX2_CO_TAG is specified, use the default tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
!ifndef GFX2_CO_FLAGS
|
2001-08-06 21:19:30 +00:00
|
|
|
GFX2_CO_FLAGS=$(MOZ_CO_FLAGS)
|
2001-03-08 23:18:55 +00:00
|
|
|
!endif
|
|
|
|
|
2001-08-06 21:19:30 +00:00
|
|
|
!if "$(GFX2_CO_TAG)" != ""
|
|
|
|
GFX2_CO_FLAGS=$(GFX2_CO_FLAGS) -r $(GFX2_CO_TAG)
|
2001-08-16 09:44:35 +00:00
|
|
|
!else
|
|
|
|
GFX2_CO_FLAGS=$(GFX2_CO_FLAGS) $(CVS_BRANCH)
|
2001-08-06 21:19:30 +00:00
|
|
|
!endif
|
2001-03-08 23:18:55 +00:00
|
|
|
|
2001-08-16 09:44:35 +00:00
|
|
|
CVSCO_GFX2 = cvs $(CVS_FLAGS) co $(GFX2_CO_FLAGS)
|
2001-03-08 23:18:55 +00:00
|
|
|
|
2001-12-12 07:59:31 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Figure out how to pull the internal libart
|
|
|
|
#// (only pulled and built if MOZ_INTERNAL_LIBART_LGPL is set)
|
|
|
|
#// If no MOZ_INTERNAL_LIBART_CO_TAG is specified, use the default tag
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!if defined(MOZ_SVG) && !defined(MOZ_INTERNAL_LIBART_LGPL)
|
|
|
|
ERR_MESSAGE = ^
|
|
|
|
You are trying to build Mozilla with SVG support (MOZ_SVG=1), but you ^
|
|
|
|
haven not specified that mozilla/other-licenses/libart_lgpl should be ^
|
|
|
|
pulled and built. At the moment Mozilla SVG builds need this patched ^
|
|
|
|
version of libart. You either need to disable SVG support (unset MOZ_SVG) ^
|
|
|
|
or enable pulling and building by setting MOZ_INTERNAL_LIBART_LGPL=1.^
|
|
|
|
^
|
|
|
|
If you choose to pull and build libart, note that it is only licensed^
|
|
|
|
under the terms of the LGPL, not the MPL. (Which is why you have to opt^
|
|
|
|
in explicitly.)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if defined(MOZ_INTERNAL_LIBART_LGPL)
|
|
|
|
|
|
|
|
!ifndef MOZ_INTERNAL_LIBART_CO_FLAGS
|
|
|
|
MOZ_INTERNAL_LIBART_CO_FLAGS=$(MOZ_CO_FLAGS)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(MOZ_INTERNAL_LIBART_CO_TAG)" != ""
|
|
|
|
MOZ_INTERNAL_LIBART_CO_FLAGS=$(MOZ_INTERNAL_LIBART_CO_FLAGS) -r $(MOZ_INTERNAL_LIBART_CO_TAG)
|
|
|
|
!else
|
|
|
|
MOZ_INTERNAL_LIBART_CO_FLAGS=$(MOZ_INTERNAL_LIBART_CO_FLAGS) $(CVS_BRANCH)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
CVSCO_MOZ_INTERNAL_LIBART = cvs $(CVS_FLAGS) co $(MOZ_INTERNAL_LIBART_CO_FLAGS)
|
|
|
|
|
|
|
|
!endif
|
2001-03-08 23:18:55 +00:00
|
|
|
|
1999-02-28 07:51:10 +00:00
|
|
|
## The master target
|
1998-12-23 11:01:34 +00:00
|
|
|
############################################################
|
1999-02-28 07:51:10 +00:00
|
|
|
|
2001-09-30 00:13:35 +00:00
|
|
|
pull_and_build_all: pull_all build_all_dep
|
1999-02-28 07:51:10 +00:00
|
|
|
|
1998-12-23 11:01:34 +00:00
|
|
|
|
|
|
|
## Rules for pulling the source from the cvs repository
|
|
|
|
############################################################
|
|
|
|
|
1999-07-30 23:40:42 +00:00
|
|
|
pull_clobber_and_build_all: pull_all clobber_all build_all
|
1998-12-23 11:01:34 +00:00
|
|
|
|
2001-12-12 07:59:31 +00:00
|
|
|
!if !defined(MOZ_INTERNAL_LIBART_LGPL)
|
2001-03-28 21:18:29 +00:00
|
|
|
pull_all: pull_nspr pull_psm pull_ldapcsdk pull_accessible pull_gfx2 pull_imglib2 pull_seamonkey
|
2001-12-12 07:59:31 +00:00
|
|
|
!else
|
|
|
|
pull_all: pull_nspr pull_psm pull_ldapcsdk pull_accessible pull_gfx2 pull_imglib2 pull_moz_internal_libart pull_seamonkey
|
|
|
|
!endif
|
2000-02-05 21:17:07 +00:00
|
|
|
|
2000-03-13 15:56:44 +00:00
|
|
|
pull_nspr: pull_clientmak
|
2000-02-05 21:17:07 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_NSPR) mozilla/nsprpub
|
1998-12-23 11:01:34 +00:00
|
|
|
|
2000-12-06 23:45:42 +00:00
|
|
|
pull_nss:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_NSS) mozilla/security/coreconf
|
|
|
|
$(CVSCO_NSS) mozilla/security/nss
|
|
|
|
|
|
|
|
pull_psm: pull_nss
|
2000-03-11 04:33:39 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
2001-03-04 23:05:45 +00:00
|
|
|
$(CVSCO_PSM) mozilla/security/manager
|
2000-12-09 00:34:08 +00:00
|
|
|
$(CVSCO_PSM) mozilla/security/makefile.win
|
2000-03-11 04:33:39 +00:00
|
|
|
|
2000-06-16 21:20:18 +00:00
|
|
|
pull_ldapcsdk:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_LDAPCSDK) mozilla/directory/c-sdk
|
|
|
|
|
2001-03-28 21:18:29 +00:00
|
|
|
pull_accessible:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_ACCESSIBLE) mozilla/accessible
|
|
|
|
|
2001-03-08 23:18:55 +00:00
|
|
|
pull_gfx2:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_GFX2) mozilla/gfx2
|
|
|
|
|
|
|
|
pull_imglib2:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_IMGLIB2) mozilla/modules/libpr0n
|
|
|
|
|
2001-12-12 07:59:31 +00:00
|
|
|
!if defined(MOZ_INTERNAL_LIBART_LGPL)
|
|
|
|
pull_moz_internal_libart:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO_MOZ_INTERNAL_LIBART) mozilla/other-licenses/libart_lgpl
|
|
|
|
!endif
|
|
|
|
|
2001-02-24 06:54:44 +00:00
|
|
|
pull_xpconnect: pull_nspr
|
2000-07-19 03:36:27 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO) mozilla/include
|
|
|
|
$(CVSCO) mozilla/config
|
|
|
|
$(CVSCO) -l mozilla/js
|
|
|
|
$(CVSCO) -l mozilla/js/src
|
|
|
|
$(CVSCO) mozilla/js/src/fdlibm
|
|
|
|
$(CVSCO) mozilla/js/src/xpconnect
|
|
|
|
$(CVSCO) mozilla/modules/libreg
|
|
|
|
$(CVSCO) mozilla/xpcom
|
2001-02-24 06:54:44 +00:00
|
|
|
$(CVSCO) mozilla/string
|
2000-07-19 03:36:27 +00:00
|
|
|
|
1999-03-23 19:38:05 +00:00
|
|
|
# pull either layout only or seamonkey the browser
|
|
|
|
pull_layout:
|
1999-10-19 01:29:44 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO) RaptorWin
|
1999-03-23 19:38:05 +00:00
|
|
|
|
2000-03-13 15:56:44 +00:00
|
|
|
pull_seamonkey: pull_clientmak
|
1999-10-19 01:29:44 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
1999-11-30 17:29:20 +00:00
|
|
|
$(CVSCO) SeaMonkeyAll
|
1998-12-23 11:01:34 +00:00
|
|
|
|
2000-03-13 15:56:44 +00:00
|
|
|
pull_clientmak:
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
$(CVSCO) mozilla/client.mak
|
|
|
|
|
1998-12-23 11:01:34 +00:00
|
|
|
############################################################
|
|
|
|
|
1999-03-01 20:16:01 +00:00
|
|
|
# nmake has to be hardcoded, or we have to depend on mozilla/config
|
|
|
|
# being pulled already to figure out what $(NMAKE) should be.
|
|
|
|
|
2000-03-11 04:33:39 +00:00
|
|
|
clobber_all: clobber_nspr clobber_psm clobber_seamonkey
|
1999-08-02 20:37:46 +00:00
|
|
|
|
2000-09-14 21:22:06 +00:00
|
|
|
build_all: build_nspr build_seamonkey
|
1999-08-02 20:37:46 +00:00
|
|
|
|
2001-11-21 09:49:41 +00:00
|
|
|
build_all_dep: depend libs
|
2001-11-06 23:16:37 +00:00
|
|
|
|
2001-03-01 05:04:21 +00:00
|
|
|
distclean:
|
1999-08-02 20:37:46 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\nsprpub
|
2001-03-01 05:04:21 +00:00
|
|
|
gmake -f gmakefile.win distclean MOZ_SRC_FLIPPED=$(MOZ_SRC_FLIPPED)
|
2001-02-23 05:30:00 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
nmake /f client.mak clobber_psm
|
|
|
|
nmake /f client.mak clobber_seamonkey
|
2001-11-06 23:16:37 +00:00
|
|
|
|
2001-03-01 05:04:21 +00:00
|
|
|
clobber_nspr:
|
2001-02-23 05:30:00 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\nsprpub
|
2001-03-01 05:04:21 +00:00
|
|
|
gmake -f gmakefile.win clobber_all MOZ_SRC_FLIPPED=$(MOZ_SRC_FLIPPED)
|
1999-08-02 20:37:46 +00:00
|
|
|
|
2000-03-11 04:33:39 +00:00
|
|
|
clobber_psm:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\security
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
|
2000-07-19 03:36:27 +00:00
|
|
|
clobber_xpconnect:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
|
|
|
-rd /s /q dist
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\nsprpub
|
2001-03-01 05:04:21 +00:00
|
|
|
gmake -f gmakefile.win clobber_all MOZ_SRC_FLIPPED=$(MOZ_SRC_FLIPPED)
|
2000-07-19 03:36:27 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\include
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\modules\libreg
|
|
|
|
nmake -f makefile.win clobber_all
|
2001-02-24 06:54:44 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\string
|
|
|
|
nmake -f makefile.win clobber_all
|
2000-07-19 03:36:27 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\xpcom
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js
|
|
|
|
nmake -f makefile.win clobber_all
|
2001-11-14 04:54:14 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js\src\xpconnect
|
|
|
|
nmake -f makefile.win clobber_all
|
2000-03-11 04:33:39 +00:00
|
|
|
|
1999-08-02 20:37:46 +00:00
|
|
|
clobber_seamonkey:
|
1999-02-28 07:51:10 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
1999-08-02 20:37:46 +00:00
|
|
|
-rd /s /q dist
|
1999-03-01 20:16:01 +00:00
|
|
|
nmake -f makefile.win clobber_all
|
1998-12-31 19:55:05 +00:00
|
|
|
|
2001-09-28 15:32:00 +00:00
|
|
|
depend: export
|
1999-02-28 07:51:10 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
1999-03-01 20:16:01 +00:00
|
|
|
nmake -f makefile.win depend
|
1999-02-18 22:27:52 +00:00
|
|
|
|
2001-02-01 19:58:12 +00:00
|
|
|
depend_xpconnect:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\include
|
|
|
|
nmake -f makefile.win depend
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\modules\libreg
|
|
|
|
nmake -f makefile.win depend
|
2001-02-24 06:54:44 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\string
|
|
|
|
nmake -f makefile.win depend
|
2001-02-01 19:58:12 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\xpcom
|
|
|
|
nmake -f makefile.win depend
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js\src
|
|
|
|
nmake -f makefile.win depend
|
2001-11-14 04:54:14 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js\src\xpconnect
|
|
|
|
nmake -f makefile.win depend
|
2001-02-01 19:58:12 +00:00
|
|
|
|
2001-03-01 05:04:21 +00:00
|
|
|
build_nspr:
|
2001-01-22 07:38:23 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\nsprpub
|
2001-03-01 05:04:21 +00:00
|
|
|
gmake -f gmakefile.win MOZ_SRC_FLIPPED=$(MOZ_SRC_FLIPPED)
|
1999-08-02 20:37:46 +00:00
|
|
|
|
2000-03-11 04:33:39 +00:00
|
|
|
build_psm:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\security
|
2001-03-04 23:05:45 +00:00
|
|
|
nmake -f makefile.win
|
2000-06-16 21:20:18 +00:00
|
|
|
|
2001-02-24 06:54:44 +00:00
|
|
|
build_xpconnect: build_nspr
|
2000-07-19 03:36:27 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\include
|
|
|
|
nmake -f makefile.win all
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\modules\libreg
|
|
|
|
nmake -f makefile.win all
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\xpcom
|
2001-02-24 06:54:44 +00:00
|
|
|
nmake -f makefile.win export
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\string
|
2000-07-19 03:36:27 +00:00
|
|
|
nmake -f makefile.win all
|
2001-02-24 06:54:44 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\xpcom
|
2001-11-21 09:49:41 +00:00
|
|
|
nmake -f makefile.win libs
|
2000-07-19 03:36:27 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js\src
|
|
|
|
nmake -f makefile.win all
|
2001-11-14 04:54:14 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\js\src\xpconnect
|
|
|
|
nmake -f makefile.win all
|
2000-07-19 03:36:27 +00:00
|
|
|
|
1999-08-02 20:37:46 +00:00
|
|
|
build_seamonkey:
|
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
1999-03-23 19:38:05 +00:00
|
|
|
nmake -f makefile.win all
|
|
|
|
|
1999-08-02 20:37:46 +00:00
|
|
|
build_client:
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake -f makefile.win all
|
|
|
|
|
1999-03-23 19:38:05 +00:00
|
|
|
build_layout:
|
1998-12-23 11:01:34 +00:00
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
1999-03-01 20:16:01 +00:00
|
|
|
nmake -f makefile.win all
|
1999-03-23 23:39:05 +00:00
|
|
|
|
1999-03-31 20:55:34 +00:00
|
|
|
build_dist:
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake -f makefile.win all
|
|
|
|
|
2001-11-21 09:49:41 +00:00
|
|
|
libs:
|
2000-02-10 04:51:54 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
2001-11-21 09:49:41 +00:00
|
|
|
nmake -f makefile.win libs
|
2000-02-10 04:51:54 +00:00
|
|
|
|
2001-09-30 00:13:35 +00:00
|
|
|
export: build_nspr
|
2000-02-10 04:51:54 +00:00
|
|
|
@cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
|
|
|
nmake -f makefile.win export
|
|
|
|
|
1999-03-31 20:55:34 +00:00
|
|
|
clobber_dist:
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
|
1999-08-02 20:37:46 +00:00
|
|
|
clobber_client:
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
|
1999-03-31 20:55:34 +00:00
|
|
|
clobber_layout:
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
|
1999-04-05 22:18:34 +00:00
|
|
|
browse_info::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
|
|
|
-dir /s /b *.sbr > sbrlist.tmp
|
2000-03-22 22:03:27 +00:00
|
|
|
-bscmake /Es /o mozilla.bsc @sbrlist.tmp
|
1999-04-05 22:18:34 +00:00
|
|
|
-rm sbrlist.tmp
|
|
|
|
|
2000-09-07 09:34:29 +00:00
|
|
|
regchrome::
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake /f makefile.win regchrome
|
|
|
|
|
1999-07-07 20:34:59 +00:00
|
|
|
deliver::
|
|
|
|
@cd $(MOZ_SRC)\mozilla\.
|
|
|
|
nmake /f makefile.win splitsymbols
|
|
|
|
|
1999-03-23 23:39:05 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Utility stuff...
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
# Verify that MOZ_SRC is set correctly
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# Check to see if it is set at all
|
2001-04-27 21:13:23 +00:00
|
|
|
!if "$(MOZ_SRC)"==""
|
|
|
|
MOZ_SRC = $(MAKEDIR)\..
|
|
|
|
!endif
|
1999-03-23 23:39:05 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# create a temp file at the root and make sure it is visible from MOZ_SRC
|
|
|
|
#
|
|
|
|
!if [copy $(MAKEDIR)\client.mak $(MAKEDIR)\xyzzy.tmp > NUL] == 0
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !EXIST( $(MOZ_SRC)\mozilla\xyzzy.tmp )
|
|
|
|
ERR_MESSAGE=$(ERR_MESSAGE)^
|
|
|
|
MOZ_SRC isn't set correctly: [$(MOZ_SRC)\mozilla]!=[$(MAKEDIR)]
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if [del $(MAKEDIR)\xyzzy.tmp]
|
|
|
|
!endif
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
# Verify that MOZ_BITS is set
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if !defined(MOZ_BITS)
|
|
|
|
ERR_MESSAGE=$(ERR_MESSAGE)^
|
|
|
|
Environment variable MOZ_BITS isn't set.
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !defined(MOZ_TOOLS)
|
|
|
|
ERR_MESSAGE=$(ERR_MESSAGE)^
|
|
|
|
Environment variable MOZ_TOOLS isn't set.
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#// Display error
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!if "$(ERR_MESSAGE)" != ""
|
|
|
|
ERR_MESSAGE = ^
|
|
|
|
client.mak: ^
|
|
|
|
$(ERR_MESSAGE) ^
|
|
|
|
^
|
|
|
|
client.mak: usage^
|
|
|
|
^
|
|
|
|
nmake -f client.mak [MOZ_BRANCH=<cvs_branch_name>] ^
|
|
|
|
[MOZ_DATE=<cvs_date>]^
|
|
|
|
[pull_and_build_all]^
|
|
|
|
[pull_all]^
|
|
|
|
[build_all]^
|
|
|
|
^
|
|
|
|
Environment variables:^
|
|
|
|
^
|
|
|
|
MOZ_BITS set to 32^
|
|
|
|
MOZ_TOOLS set to the directory containing the needed tools ^
|
|
|
|
|
|
|
|
!ERROR $(ERR_MESSAGE)
|
|
|
|
|
|
|
|
!endif
|