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-05-05 02:03:57 +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-05-05 02:03:57 +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-05-05 02:03:57 +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-05-05 02:03:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
#
|
|
|
|
# This is a windows based makefile (currently) designed to pull
|
|
|
|
# and build all appropriate components and systems to generate
|
|
|
|
# a Trex distribution and products using such a distribution
|
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
DEPTH=.
|
|
|
|
IGNORE_MANIFEST=1
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# General environment variables
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
!if !defined(MOZ_SRC)
|
|
|
|
MOZ_SRC=y:
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if !defined(MOZ_TOP)
|
|
|
|
MOZ_TOP=mozilla
|
|
|
|
!endif
|
|
|
|
|
|
|
|
CVS=cvs -q co -P
|
|
|
|
NMAKE=@nmake -nologo -$(MAKEFLAGS)
|
|
|
|
MMAKE=$(MOZ_SRC)\$(MOZ_TOP)\config\w95make.exe
|
|
|
|
GMAKE=gmake
|
|
|
|
GMAKEFILE=Makefile
|
|
|
|
|
1998-07-20 23:21:01 +00:00
|
|
|
CVTREX = :pserver:$(USERNAME)@cvsserver:/m/src
|
1998-05-05 02:03:57 +00:00
|
|
|
CVST=cvs -q -d $(CVTREX) co -P
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Branches and Modules - Trex Needs These
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
CONFIG_BRANCH =
|
|
|
|
CONFIG_DIR = $(MOZ_TOP)/config
|
|
|
|
|
|
|
|
NSPR20_BRANCH =
|
|
|
|
NSPR20_DIR = $(MOZ_TOP)/nsprpub
|
|
|
|
|
|
|
|
NETLIB_BRANCH = -r MODULAR_NETLIB_BRANCH
|
|
|
|
NETLIB_DIR = $(MOZ_TOP)/lib/libnet
|
|
|
|
|
|
|
|
IMGLIB_BRANCH = -r MODULAR_IMGLIB_BRANCH
|
|
|
|
IMGLIB_DIR1 = $(MOZ_TOP)/jpeg
|
|
|
|
IMGLIB_DIR2 = $(MOZ_TOP)/modules/libutil
|
|
|
|
IMGLIB_DIR3 = $(MOZ_TOP)/modules/libimg
|
|
|
|
|
|
|
|
ZLIB_BRANCH =
|
|
|
|
ZLIB_DIR = $(MOZ_TOP)/modules/zlib
|
|
|
|
|
|
|
|
INCLUDE_BRANCH =
|
|
|
|
INCLUDE_DIR = $(MOZ_TOP)/include
|
|
|
|
#
|
|
|
|
#LIBXP_BRANCH =
|
|
|
|
#LIBXP_DIR = $(MOZ_TOP)/lib/xp
|
|
|
|
|
|
|
|
RAPTOR_XPCOM_BRANCH =
|
|
|
|
RAPTOR_XPCOM_DIR = $(MOZ_TOP)/xpcom
|
|
|
|
|
|
|
|
RAPTOR_BASE_BRANCH =
|
|
|
|
RAPTOR_BASE_DIR = $(MOZ_TOP)/base
|
|
|
|
|
|
|
|
RAPTOR_GFX_BRANCH =
|
|
|
|
RAPTOR_GFX_DIR = $(MOZ_TOP)/gfx
|
|
|
|
|
|
|
|
RAPTOR_PARSER_BRANCH =
|
|
|
|
RAPTOR_PARSER_DIR = $(MOZ_TOP)/htmlparser
|
|
|
|
|
|
|
|
RAPTOR_WIDGET_BRANCH =
|
|
|
|
RAPTOR_WIDGET_DIR = $(MOZ_TOP)/widget
|
|
|
|
|
|
|
|
RAPTOR_VIEW_BRANCH =
|
|
|
|
RAPTOR_VIEW_DIR = $(MOZ_TOP)/view
|
|
|
|
|
|
|
|
RAPTOR_LAYOUT_BRANCH =
|
|
|
|
RAPTOR_LAYOUT_DIR = $(MOZ_TOP)/layout
|
|
|
|
|
|
|
|
TREX_GCONFIG_BRANCH =
|
|
|
|
TREX_GCONFIG_DIR = $(MOZ_TOP)/gconfig
|
|
|
|
|
1998-10-29 02:50:29 +00:00
|
|
|
TREX_MSGSDK_BRANCH =
|
|
|
|
TREX_MSGSDK_DIR = mozilla/msgsdk
|
|
|
|
|
1998-09-03 20:20:45 +00:00
|
|
|
TREX_XPFC_BRANCH =
|
|
|
|
TREX_XPFC_DIR = mozilla/xpfc
|
|
|
|
|
1998-05-05 02:03:57 +00:00
|
|
|
TREX_TREX_BRANCH =
|
1998-09-03 21:37:43 +00:00
|
|
|
TREX_TREX_DIR = mozilla/calendar
|
1998-05-05 02:03:57 +00:00
|
|
|
|
1998-10-07 22:40:08 +00:00
|
|
|
LIBNLS_BRANCH = -r libnls_v3_zulu_branch
|
1998-05-23 18:34:15 +00:00
|
|
|
LIBNLS_DIR = ns/modules/libnls
|
|
|
|
|
1998-05-05 02:03:57 +00:00
|
|
|
# $(MOZ_TOP)/LICENSE
|
|
|
|
# $(MOZ_TOP)/LEGAL
|
|
|
|
# $(MOZ_TOP)/lib/liblayer
|
|
|
|
# $(MOZ_TOP)/modules/zlib
|
|
|
|
# $(MOZ_TOP)/modules/libutil
|
|
|
|
# $(MOZ_TOP)/sun-java
|
|
|
|
# $(MOZ_TOP)/nav-java
|
|
|
|
# $(MOZ_TOP)/js
|
|
|
|
# $(MOZ_TOP)/modules/security/freenav
|
|
|
|
# $(MOZ_TOP)/modules/libpref
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Modules - PLATFORM_DIRS are what Trex needs
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
PLATFORM_DIRS = \
|
|
|
|
nsprpub \
|
|
|
|
xpcom \
|
|
|
|
jpeg \
|
|
|
|
modules\zlib \
|
|
|
|
modules\libutil \
|
|
|
|
modules\libimg \
|
|
|
|
base \
|
|
|
|
htmlparser \
|
|
|
|
gfx \
|
|
|
|
view \
|
|
|
|
widget
|
|
|
|
|
|
|
|
PLATFORM_EXPORT_DIRS = $(PLATFORM_DIRS) \
|
|
|
|
lib\libnet \
|
|
|
|
layout
|
|
|
|
|
|
|
|
TREX_DIRS = \
|
|
|
|
trex
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Targets
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
default:: build_all
|
|
|
|
|
1998-09-04 18:00:47 +00:00
|
|
|
depend:: depend_dist depend_julian depend_trex
|
1998-09-04 17:32:19 +00:00
|
|
|
|
1998-09-04 18:00:47 +00:00
|
|
|
clobber:: clobber_dist clobber_julian clobber_trex
|
1998-09-04 17:32:19 +00:00
|
|
|
|
1998-05-05 02:03:57 +00:00
|
|
|
pull_and_build_all:: pull_all \
|
|
|
|
build_all
|
|
|
|
|
|
|
|
pull_clobber_build_all:: pull_all \
|
|
|
|
clobber_all \
|
|
|
|
build_all
|
|
|
|
|
|
|
|
clobber_build_all:: clobber_all \
|
|
|
|
build_all
|
|
|
|
|
|
|
|
|
|
|
|
#pull_all::
|
|
|
|
# @echo +++ trex.mak: checking out trex with "$(CVS_BRANCH)"
|
|
|
|
# cd $(MOZ_SRC)\.
|
|
|
|
# -$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
|
|
|
|
# -$(CVS) $(INCLUDE_BRANCH) $(INCLUDE_DIR)
|
|
|
|
# -$(CVS) $(NSPR20_BRANCH) $(NSPR20_DIR)
|
|
|
|
# -$(CVS) $(NETLIB_BRANCH) $(NETLIB_DIR)
|
|
|
|
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR1)
|
|
|
|
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR2)
|
|
|
|
# -$(CVS) $(IMGLIB_BRANCH) $(IMGLIB_DIR3)
|
|
|
|
# -$(CVS) $(ZLIB_BRANCH) $(ZLIB_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_XPCOM_BRANCH) $(RAPTOR_XPCOM_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_BASE_BRANCH) $(RAPTOR_BASE_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_GFX_BRANCH) $(RAPTOR_GFX_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_PARSER_BRANCH) $(RAPTOR_PARSER_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_WIDGET_BRANCH) $(RAPTOR_WIDGET_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_VIEW_BRANCH) $(RAPTOR_VIEW_DIR)
|
|
|
|
# -$(CVS) $(RAPTOR_LAYOUT_BRANCH) $(RAPTOR_LAYOUT_DIR)
|
|
|
|
|
|
|
|
|
1998-05-23 18:34:15 +00:00
|
|
|
pull_all:: pull_platform pull_julian pull_trex
|
1998-05-05 02:03:57 +00:00
|
|
|
|
1998-07-30 23:28:03 +00:00
|
|
|
pull_julian_and_trex:: pull_julian pull_trex
|
|
|
|
@echo +++ trex.mak: checking out platform with "$(CVS_BRANCH)"
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
-$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-05-05 02:03:57 +00:00
|
|
|
pull_platform::
|
|
|
|
@echo +++ trex.mak: checking out platform with "$(CVS_BRANCH)"
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
-$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
|
1998-05-11 16:32:14 +00:00
|
|
|
-$(CVS) $(MOZ_TOP)/nglayout.mak
|
1998-05-05 02:03:57 +00:00
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)
|
1998-05-11 16:32:14 +00:00
|
|
|
nmake -f nglayout.mak pull_all
|
1998-05-05 02:03:57 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-05-23 18:34:15 +00:00
|
|
|
pull_julian::
|
|
|
|
@echo +++ trex.mak: checking out libnls with "$(CVTREX)"
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
-$(CVST) ns/client.mak
|
|
|
|
cd $(MOZ_SRC)\ns\.
|
|
|
|
-$(CVST) -d config ns/clientconfig
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
-$(CVST) $(LIBNLS_BRANCH) $(LIBNLS_DIR)
|
|
|
|
cd $(MOZ_SRC)\.
|
1998-05-05 02:03:57 +00:00
|
|
|
|
|
|
|
pull_trex::
|
|
|
|
@echo +++ trex.mak: checking out trex with "$(CVTREX)"
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
-$(CVS) $(TREX_GCONFIG_BRANCH) $(TREX_GCONFIG_DIR)
|
1998-10-29 02:50:29 +00:00
|
|
|
-$(CVS) $(TREX_MSGSDK_BRANCH) $(TREX_MSGSDK_DIR)
|
1998-09-03 20:20:45 +00:00
|
|
|
-$(CVS) $(TREX_XPFC_BRANCH) $(TREX_XPFC_DIR)
|
|
|
|
-$(CVS) $(TREX_TREX_BRANCH) $(TREX_TREX_DIR)
|
1998-05-05 02:03:57 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
|
|
|
|
1998-05-23 18:34:15 +00:00
|
|
|
build_all:: build_platform build_julian build_trex
|
1998-05-05 02:03:57 +00:00
|
|
|
|
1998-07-30 23:28:03 +00:00
|
|
|
build_julian_and_trex:: build_julian build_trex
|
|
|
|
|
1998-05-05 02:03:57 +00:00
|
|
|
# builds PLATFORM_DIRS
|
|
|
|
#build_platform::
|
|
|
|
# cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
|
|
|
# @$(MMAKE) export $(MAKEDIR) $(PLATFORM_EXPORT_DIRS)
|
|
|
|
# @$(MMAKE) libs $(MAKEDIR) $(PLATFORM_DIRS)
|
|
|
|
# @$(MMAKE) install $(MAKEDIR) $(PLATFORM_DIRS)
|
|
|
|
build_platform::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
1998-05-11 16:32:14 +00:00
|
|
|
nmake -f nglayout.mak all
|
1998-05-05 02:03:57 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-05-23 18:34:15 +00:00
|
|
|
build_julian::
|
1998-10-08 19:45:01 +00:00
|
|
|
!if !defined(MOZ_ZULU_FREE)
|
1998-05-23 18:34:15 +00:00
|
|
|
cd $(MOZ_SRC)\ns\modules\libnls
|
|
|
|
nmake -f makefile.win
|
1998-09-25 17:58:12 +00:00
|
|
|
!endif
|
1998-05-23 18:34:15 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
1998-05-05 02:03:57 +00:00
|
|
|
|
|
|
|
build_trex::
|
1998-10-29 02:50:29 +00:00
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
|
|
|
|
gmake buildC
|
1998-09-03 20:20:45 +00:00
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
|
|
|
|
nmake -f makefile.win
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
|
1998-08-10 19:56:34 +00:00
|
|
|
nmake -f makefile.win
|
1998-05-05 02:03:57 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-09-04 17:32:19 +00:00
|
|
|
depend_dist::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
|
|
|
nmake -f nglayout.mak depend
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-09-04 18:00:47 +00:00
|
|
|
depend_julian::
|
1998-10-08 19:45:01 +00:00
|
|
|
!if !defined(MOZ_ZULU_FREE)
|
1998-09-04 18:00:47 +00:00
|
|
|
cd $(MOZ_SRC)\ns\modules\libnls
|
|
|
|
nmake -f makefile.win depend
|
1998-09-25 17:58:12 +00:00
|
|
|
!endif
|
1998-09-04 18:00:47 +00:00
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-09-04 17:32:19 +00:00
|
|
|
depend_trex::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
|
|
|
|
nmake -f makefile.win depend
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
|
|
|
|
nmake -f makefile.win depend
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
|
|
|
clobber_dist::
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\.
|
|
|
|
nmake -f nglayout.mak clobber_all
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-09-04 18:00:47 +00:00
|
|
|
clobber_julian::
|
1998-10-08 19:45:01 +00:00
|
|
|
!if !defined(MOZ_ZULU_FREE)
|
1998-09-04 18:00:47 +00:00
|
|
|
cd $(MOZ_SRC)\ns\modules\libnls
|
1998-09-25 17:58:12 +00:00
|
|
|
!endif
|
1998-09-04 18:00:47 +00:00
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
cd $(MOZ_SRC)\.
|
|
|
|
|
1998-09-04 17:32:19 +00:00
|
|
|
clobber_trex::
|
1998-10-29 02:50:29 +00:00
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
|
|
|
|
gmake FRESH
|
1998-09-04 17:32:19 +00:00
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
|
|
|
|
nmake -f makefile.win clobber_all
|
|
|
|
cd $(MOZ_SRC)\.
|