git-svn-id: svn://10.0.0.236/trunk@1341 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-05-08 20:19:18 +00:00
parent 30a587c651
commit 31d88fddf9
4 changed files with 0 additions and 929 deletions

View File

@@ -1,180 +0,0 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-mac-roman">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (WinNT; U) [Netscape]">
<META NAME="KeyWords" CONTENT="client, source, documentation">
<META NAME="Author" CONTENT="Kipp E.B. Hickman">
<TITLE>New Layout Windows Build Instructions</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H2>
<FONT FACE="Arial,Helvetica">New Layout Windows Build Instructions</FONT></H2>
This document explains how to build New Layout for the Windows platform.
<HR><B><FONT SIZE=+1>Required Tools:</FONT></B>
<UL>
<LI>
<B>Microsoft Visual C++ version 4.2 or later</B></LI>
<LI>
<B>The same set of tools for building <A HREF="http://www.mozilla.org/docs/tplist/catBuild/winbuild.htm">Mozilla</A></B></LI>
</UL>
<B><FONT SIZE=+1>Setting up:</FONT></B>
<UL>
<LI>
You need a Pentium with at least a 133 MHz processor and at least 250 megs
(NTFS partition) or 500 megs (FAT partition) of hard drive space. You need
to have a minimum of 64 megs of memory in order to build this tree. These
numbers are approximations.</LI>
<LI>
The preferred platform is NT 4.0. NT 3.51 will also work, and Win95 might
work if you're lucky. Maybe.</LI>
<LI>
Install MSVC. If you don't choose to have the MSVC install modify your
environment variables for PATH, INCLUDE, and LIB information, be sure to
run VCVARS32.BAT out of the MSVC bin directory prior to attempting to build.</LI>
<LI>
Download and install GNU tools. Put them in your path.</LI>
<LI>
Install New Layout source.</LI>
<UL>
<LI>
cd &lt;your-source-area></LI>
<LI>
unzip -o -q win-19980415.zip</LI>
</UL>
<LI>
There are several environment variables you will need to set, either manually
or via a script within a command session, or by setting them in your system
environment located through the Control Panel | System icon.<P>
<B>Note: There is an additional variable for building New Layout!
Use this list carefully!</B><P>
The variables are:</LI>
<UL>
<LI>
set MOZ_BITS=32</LI>
<LI>
set MOZ_DEBUG=1 (don't set this if you want to build an optimized release
build)</LI>
<LI>
set MOZ_GOLD=1</LI>
<LI>
set MOZ_MEDIUM=1</LI>
<LI>
set MOZ_NT=351 (if running NT 3.51, don't set otherwise)</LI>
<LI>
set MOZ_OUT=(location of resulting executable and totally optional, see
Notes for more details)</LI>
<LI>
set MOZ_SRC=(top of your tree, drive letter and path, i.e. set MOZ_SRC=d:\mozilla_src.
The topmost directory under this should be ns)</LI>
<LI>
set MOZ_TOOLS=(location of the bin directory containing your GNU tools.
The build looks for MOZ_TOOLS\bin\gmake.exe, so make sure your MOZ_TOOLS
is figured appropriately)</LI>
<LI>
set NO_SECURITY=1</LI>
<LI>
set NSPR20=1</LI>
<LI>
if you are running VC++ 5.0 or higher: set _MSC_VER=1100; if you are running
VC++ 4.2 then set MOZ_VCVER=42</LI>
<LI>
<B>set STANDALONE_IMAGE_LIB=1</B></LI>
</UL>
</UL>
<B><FONT SIZE=+1>Building:</FONT></B>
<UL>
<LI>
You need to be running a vanilla command prompt. Other shells may work,
but you might have to tweak makefiles.</LI>
<LI>
<B>Build the tools:</B> This generates several tools that handle things
like dependency generation</LI>
<UL>
<LI>
cd ns\config</LI>
<LI>
nmake /f makefile.win</LI>
</UL>
<LI>
<B>Build the New Layout:</B> This will do a complete build of the source tree.
You will end up with a viewer.exe at the end. The viewer.exe will be in
your dist\win32_[OD].obj\bin directory (O will be used when you don't set
MOZ_DEBUG; D will be used when you set MOZ_DEBUG).</LI>
<UL>
<LI>
cd ns</LI>
<LI>
nmake /f raptor.mak</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Running:</FONT></B>
<UL>
<LI>
Once you have built the system, do this to run the viewer program (the
viewer program is a simple test program that uses the nsIWebWidget API
to embed a web widget object). The viewer program has a few basic menu
items, include "Samples" which load sample tests.</LI>
<UL>
<LI>
cd ns\dist\win32_[OD].obj\bin</LI>
<LI>
.\viewer.exe</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Notes:</FONT></B>
<UL>
<LI>
This build process does not use Visual C++ generated project files for
several reasons having to do with (among other things) size, maintainability,
and the long term desire to start using more of tools like gmake, or plug
and play developer tools. This does not preclude you from using the Visual
C++ IDE, or it's debugger. Once you have built a viewer.exe do this to
run it under the debugger:</LI>
</UL>
<UL>
<UL>
<LI>
cd ns\dist\win32_[OD].obj\bin</LI>
<LI>
msdev viewer.exe</LI>
</UL>
</UL>
<HR WIDTH="100%">
<CENTER><FONT SIZE=-1>Copyright &copy; 1998 <A HREF="http://home.netscape.com/misc/contact_info.html">Netscape
Communications Corporation</A></FONT></CENTER>
&nbsp;
</BODY>
</HTML>

View File

@@ -1,180 +0,0 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-mac-roman">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (WinNT; U) [Netscape]">
<META NAME="KeyWords" CONTENT="client, source, documentation">
<META NAME="Author" CONTENT="Kipp E.B. Hickman">
<TITLE>Raptor Windows Build Instructions</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<H2>
<FONT FACE="Arial,Helvetica">Raptor Windows Build Instructions</FONT></H2>
This document explains how to build Raptor for the Windows platform.
<HR><B><FONT SIZE=+1>Required Tools:</FONT></B>
<UL>
<LI>
<B>Microsoft Visual C++ version 4.2 or later</B></LI>
<LI>
<B>The same set of tools for building <A HREF="http://www.mozilla.org/docs/tplist/catBuild/winbuild.htm">Mozilla</A></B></LI>
</UL>
<B><FONT SIZE=+1>Setting up:</FONT></B>
<UL>
<LI>
You need a Pentium with at least a 133 MHz processor and at least 250 megs
(NTFS partition) or 500 megs (FAT partition) of hard drive space. You need
to have a minimum of 64 megs of memory in order to build this tree. These
numbers are approximations.</LI>
<LI>
The preferred platform is NT 4.0. NT 3.51 will also work, and Win95 might
work if you're lucky. Maybe.</LI>
<LI>
Install MSVC. If you don't choose to have the MSVC install modify your
environment variables for PATH, INCLUDE, and LIB information, be sure to
run VCVARS32.BAT out of the MSVC bin directory prior to attempting to build.</LI>
<LI>
Download and install GNU tools. Put them in your path.</LI>
<LI>
Install Raptor source.</LI>
<UL>
<LI>
cd &lt;your-source-area></LI>
<LI>
unzip -o -q win-19980415.zip</LI>
</UL>
<LI>
There are several environment variables you will need to set, either manually
or via a script within a command session, or by setting them in your system
environment located through the Control Panel | System icon.<P>
<B>Note: There is an additional variable for building Raptor!
Use this list carefully!</B><P>
The variables are:</LI>
<UL>
<LI>
set MOZ_BITS=32</LI>
<LI>
set MOZ_DEBUG=1 (don't set this if you want to build an optimized release
build)</LI>
<LI>
set MOZ_GOLD=1</LI>
<LI>
set MOZ_MEDIUM=1</LI>
<LI>
set MOZ_NT=351 (if running NT 3.51, don't set otherwise)</LI>
<LI>
set MOZ_OUT=(location of resulting executable and totally optional, see
Notes for more details)</LI>
<LI>
set MOZ_SRC=(top of your tree, drive letter and path, i.e. set MOZ_SRC=d:\mozilla_src.
The topmost directory under this should be ns)</LI>
<LI>
set MOZ_TOOLS=(location of the bin directory containing your GNU tools.
The build looks for MOZ_TOOLS\bin\gmake.exe, so make sure your MOZ_TOOLS
is figured appropriately)</LI>
<LI>
set NO_SECURITY=1</LI>
<LI>
set NSPR20=1</LI>
<LI>
if you are running VC++ 5.0 or higher: set _MSC_VER=1100; if you are running
VC++ 4.2 then set MOZ_VCVER=42</LI>
<LI>
<B>set STANDALONE_IMAGE_LIB=1</B></LI>
</UL>
</UL>
<B><FONT SIZE=+1>Building:</FONT></B>
<UL>
<LI>
You need to be running a vanilla command prompt. Other shells may work,
but you might have to tweak makefiles.</LI>
<LI>
<B>Build the tools:</B> This generates several tools that handle things
like dependency generation</LI>
<UL>
<LI>
cd ns\config</LI>
<LI>
nmake /f makefile.win</LI>
</UL>
<LI>
<B>Build the Raptor:</B> This will do a complete build of the source tree.
You will end up with a viewer.exe at the end. The viewer.exe will be in
your dist\win32_[OD].obj\bin directory (O will be used when you don't set
MOZ_DEBUG; D will be used when you set MOZ_DEBUG).</LI>
<UL>
<LI>
cd ns</LI>
<LI>
nmake /f raptor.mak</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Running:</FONT></B>
<UL>
<LI>
Once you have built the system, do this to run the viewer program (the
viewer program is a simple test program that uses the nsIWebWidget API
to embed a web widget object). The viewer program has a few basic menu
items, include "Samples" which load sample tests.</LI>
<UL>
<LI>
cd ns\dist\win32_[OD].obj\bin</LI>
<LI>
.\viewer.exe</LI>
</UL>
</UL>
<B><FONT SIZE=+1>Notes:</FONT></B>
<UL>
<LI>
This build process does not use Visual C++ generated project files for
several reasons having to do with (among other things) size, maintainability,
and the long term desire to start using more of tools like gmake, or plug
and play developer tools. This does not preclude you from using the Visual
C++ IDE, or it's debugger. Once you have built a viewer.exe do this to
run it under the debugger:</LI>
</UL>
<UL>
<UL>
<LI>
cd ns\dist\win32_[OD].obj\bin</LI>
<LI>
msdev viewer.exe</LI>
</UL>
</UL>
<HR WIDTH="100%">
<CENTER><FONT SIZE=-1>Copyright &copy; 1998 <A HREF="http://home.netscape.com/misc/contact_info.html">Netscape
Communications Corporation</A></FONT></CENTER>
&nbsp;
</BODY>
</HTML>

View File

@@ -1,361 +0,0 @@
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=.
IGNORE_MANIFEST=1
THIS_MAKEFILE=raptor.mak
THAT_MAKEFILE=makefile.win
!if !defined(MOZ_TOP)
#enable builds from changed top level directories
MOZ_TOP=mozilla
!endif
include <$(DEPTH)\config\config.mak>
# This section is copied from rules.mak
!if "$(WINOS)" == "WIN95"
W95MAKE=$(MOZ_SRC)\$(MOZ_TOP)\config\w95make.exe
W32OBJS = $(OBJS:.obj=.obj, )
W32LOBJS = $(OBJS: .= +-.)
!endif
######################################################################
# This makefile is designed to make building the raptor viewer
# application easy.
#
# Command macro defines
#
CVSCO = cvs -q co -P
# Branch tags we use
IMGLIB_BRANCH = MODULAR_IMGLIB_BRANCH
NETLIB_BRANCH = MODULAR_NETLIB_BRANCH
XPCOM_BRANCH = XPCOM_BRANCH
RAPTOR_BRANCH = RAPTOR_BRANCH
# CVS commands to pull the appropriate branch versions
CVSCO_XPCOM = $(CVSCO) -r $(XPCOM_BRANCH)
CVSCO_IMGLIB = $(CVSCO) -r $(IMGLIB_BRANCH)
CVSCO_NETLIB = $(CVSCO) -r $(NETLIB_BRANCH)
CVSCO_RAPTOR = $(CVSCO)
CVSCO_LIZARD = $(CVSCO)
# The list of directories that need to be built to build the
# standalone raptor test program. The order is important. The
# DIST_DIRS need to be built before the RAPTOR_DIRS.
DIST_DIRS = \
nsprpub \
include \
jpeg \
modules\libreg \
xpcom \
modules\zlib \
modules\libutil \
sun-java \
nav-java \
js \
modules\security\freenav \
modules\libpref \
modules\libimg \
base \
lib\xp \
lib\libnet
# The list of directories to build the raptor layout engine and
# related libraries.
RAPTOR_DIRS = \
htmlparser \
dom \
gfx \
view \
widget \
layout \
webshell
# Main rules
all:: all_dist all_raptor
export:: export_dist export_raptor
libs:: libs_dist libs_raptor
install:: install_dist install_raptor
depend:: depend_dist depend_raptor
clobber:: clobber_dist clobber_raptor
cd $(MOZ_SRC)\$(MOZ_TOP)
-rd /s /q dist
clobber_all:: clobber_all_dist clobber_all_raptor
cd $(MOZ_SRC)\$(MOZ_TOP)
-rd /s /q dist
######################################################################
# Rule to build subdirectories
$(DIST_DIRS) $(RAPTOR_DIRS)::
!if "$(WINOS)" == "WIN95"
@echo +++ make: cannot recursively make on win95 using command.com, use w95make.
!else
@echo +++ make: %MAKE_ARGS% in $(MAKEDIR)\$@
@cd $@
@$(NMAKE) -f $(THAT_MAKEFILE) %%MAKE_ARGS%%
@cd $(MAKEDIR)
!endif
######################################################################
# Rules for pulling the source from the cvs repository
pull_all: pull_lizard pull_xpcom pull_imglib pull_netlib pull_raptor
pull_lizard:
cd $(MOZ_SRC)\.
$(CVSCO_LIZARD) $(MOZ_TOP)/LICENSE
$(CVSCO_LIZARD) $(MOZ_TOP)/LEGAL
$(CVSCO_LIZARD) $(MOZ_TOP)/config
$(CVSCO_LIZARD) $(MOZ_TOP)/lib/liblayer
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/zlib
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/libutil
$(CVSCO_LIZARD) $(MOZ_TOP)/nsprpub
$(CVSCO_LIZARD) $(MOZ_TOP)/sun-java
$(CVSCO_LIZARD) $(MOZ_TOP)/nav-java
$(CVSCO_LIZARD) $(MOZ_TOP)/js
$(CVSCO_LIZARD) $(MOZ_TOP)/modules/security/freenav
$(CVSCO_XPCOM) $(MOZ_TOP)/modules/libpref
pull_xpcom:
@cd $(MOZ_SRC)\.
$(CVSCO_XPCOM) $(MOZ_TOP)/modules/libreg
$(CVSCO_XPCOM) $(MOZ_TOP)/xpcom
pull_imglib:
@cd $(MOZ_SRC)\.
$(CVSCO_IMGLIB) $(MOZ_TOP)/jpeg
$(CVSCO_IMGLIB) $(MOZ_TOP)/modules/libutil
$(CVSCO_IMGLIB) $(MOZ_TOP)/modules/libimg
pull_netlib:
@cd $(MOZ_SRC)\.
$(CVSCO_NETLIB) $(MOZ_TOP)/lib/xp
$(CVSCO_NETLIB) $(MOZ_TOP)/lib/libnet
$(CVSCO_NETLIB) $(MOZ_TOP)/include
pull_raptor:
@cd $(MOZ_SRC)\.
$(CVSCO_RAPTOR) $(MOZ_TOP)/base
$(CVSCO_RAPTOR) $(MOZ_TOP)/dom
$(CVSCO_RAPTOR) $(MOZ_TOP)/gfx
$(CVSCO_RAPTOR) $(MOZ_TOP)/htmlparser
$(CVSCO_RAPTOR) $(MOZ_TOP)/layout
$(CVSCO_RAPTOR) $(MOZ_TOP)/view
$(CVSCO_RAPTOR) $(MOZ_TOP)/webshell
$(CVSCO_RAPTOR) $(MOZ_TOP)/widget
######################################################################
# Build rules for the "dist" portion. The "dist" contains those things
# which are imported by the raptor test programs.
all_dist:
@cd $(MOZ_SRC)\$(MOZ_TOP)
$(NMAKE) -f $(THIS_MAKEFILE) export_dist
$(NMAKE) -f $(THIS_MAKEFILE) libs_dist
$(NMAKE) -f $(THIS_MAKEFILE) install_dist
export_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) export $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=export
export_dist:: $(DIST_DIRS)
!endif
libs_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) libs $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=libs
libs_dist:: $(DIST_DIRS)
!endif
install_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) install $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=install
install_dist:: $(DIST_DIRS)
!endif
depend_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) depend $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=depend
depend_dist:: $(DIST_DIRS)
!endif
clobber_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) clobber $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=clobber
clobber_dist:: $(DIST_DIRS)
!endif
clobber_all_dist::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) clobber_all $(MAKEDIR) $(DIST_DIRS)
!else
@set MAKE_ARGS=clobber_all
clobber_all_dist:: $(DIST_DIRS)
!endif
######################################################################
# Build rules for the "raptor" portion. This builds the raptor software
# including the sample webshell viewer application.
all_raptor:
cd $(MOZ_SRC)\$(MOZ_TOP)
$(NMAKE) -f $(THIS_MAKEFILE) export_raptor
$(NMAKE) -f $(THIS_MAKEFILE) libs_raptor
$(NMAKE) -f $(THIS_MAKEFILE) install_raptor
export_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) export $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=export
export_raptor:: $(RAPTOR_DIRS)
!endif
libs_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) libs $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=libs
libs_raptor:: $(RAPTOR_DIRS)
!endif
install_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) install $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=install
install_raptor:: $(RAPTOR_DIRS)
!endif
depend_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) depend $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=depend
depend_raptor:: $(RAPTOR_DIRS)
!endif
clobber_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) clobber $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=clobber
clobber_raptor:: $(RAPTOR_DIRS)
!endif
clobber_all_raptor::
!if "$(WINOS)" == "WIN95"
@$(W95MAKE) clobber_all $(MAKEDIR) $(RAPTOR_DIRS)
!else
@set MAKE_ARGS=clobber_all
clobber_all_raptor:: $(RAPTOR_DIRS)
!endif
######################################################################
# Build raptor Doc++ documentation
DOCXX = $(MOZ_TOOLS)\bin\docxx
DOCXX_RAPTOR = $(DOCXX) -H -A -p -f -B c:\fake_banner-file_name -j -a
DOCXX_DESTDIR = $(MOZ_SRC)\$(MOZ_TOP)\dist\documentation
doc_raptor:
-rm -rf $(DOCXX_DESTDIR)
-@mkdir $(DOCXX_DESTDIR)
@for %d in (raptor xpcom img dom netlib) do \
$(DOCXX_RAPTOR) -d $(DOCXX_DESTDIR)\%d $(MOZ_SRC)\$(MOZ_TOP)\dist\public\%d\*.h
@echo Documentation written to $(DOCXX_DESTDIR)
######################################################################
# Build tarball
DATE_CMD=$(MOZ_TOOLS)\bin\unix_date
!if [$(DATE_CMD) +%Y%m%d > today.inc]
!endif
DATE=\
!include "today.inc"
DATE=$(DATE: =)^
!if [del today.inc]
!endif
TAR = tar
ZIP = $(MOZ_TOOLS)\bin\zip
GZIP = gzip
TARBALL = $(MOZ_SRC)\win-$(DATE).tar
TARBALL_ZIP = $(MOZ_SRC)\win-$(DATE).zip
TARFILES = mozilla README\\raptor
tarballs: tarball_zip tarball_gz
tarball_zip: prepare_for_tarballing
@echo Making $(TARBALL_ZIP)
cd $(MOZ_SRC)\.
rm -f $(TARBALL_ZIP)
$(ZIP) -9 -r -q $(TARBALL_ZIP) $(TARFILES)
tarball_gz: prepare_for_tarballing
@echo Making $(TARBALL)
cd $(MOZ_SRC)\.
rm -f $(TARBALL) $(TARBALL).gz
$(TAR) cf $(TARBALL) $(TARFILES)
@echo Making gzip of $(TARBALL)
$(GZIP) -9 -q $(TARBALL)
prepare_for_tarballing:
$(NMAKE) -f $(THIS_MAKEFILE) clobber clobber_all

View File

@@ -1,208 +0,0 @@
#!gmake
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH=.
#
# Command macro defines
#
CVSCO = cvs -q co -P
# Branch tags we use
IMGLIB_BRANCH = MODULAR_IMGLIB_BRANCH
NETLIB_BRANCH = MODULAR_NETLIB_BRANCH
XPCOM_BRANCH = XPCOM_BRANCH
RAPTOR_BRANCH = RAPTOR_BRANCH
# CVS commands to pull the appropriate branch versions
CVSCO_XPCOM = $(CVSCO) -r $(XPCOM_BRANCH)
CVSCO_IMGLIB = $(CVSCO) -r $(IMGLIB_BRANCH)
CVSCO_NETLIB = $(CVSCO) -r $(NETLIB_BRANCH)
CVSCO_RAPTOR = $(CVSCO)
CVSCO_LIZARD = $(CVSCO)
# The list of directories that need to be built to build the standalone
# raptor test program. The order is important.
ifndef RAPTOR_PASS2
DIRS = \
config \
nsprpub \
jpeg \
modules/libreg \
xpcom \
modules/zlib \
modules/libutil \
sun-java \
nav-java \
js \
modules/security/freenav \
modules/libpref \
modules/libimg \
base \
lib/xp \
lib/libnet \
lib/liblayer/include
else
DIRS = \
htmlparser \
dom \
gfx \
view \
widget \
layout \
webshell
endif
include $(DEPTH)/config/config.mk
#
# NOTE: Don't use make all with this makefile; it won't work!
# NOTE: Don't use make export with this makefile; it won't work!
# NOTE: Don't use make libs with this makefile; it won't work!
# NOTE: Don't use make clobber with this makefile; it won't work!
#
THIS_MAKEFILE = raptor.mk
real_all: pass1_all pass2_all
pass1_all:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) export
cd $(MOZ_SRC)/mozilla/base; \
$(MAKE) export
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) libs; \
$(MAKE) -f $(THIS_MAKEFILE) install
pass2_all:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 export; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 libs; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 install
real_export:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) export; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 export
real_libs:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) libs; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 libs
real_install:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) install; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 install
real_clobber:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) clobber_all; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 clobber_all; \
$(MAKE) -f $(THIS_MAKEFILE) final_clobber
final_clobber:
cd $(MOZ_SRC)/mozilla; \
$(RM) -r dist
real_depend:
cd $(MOZ_SRC)/mozilla; \
$(MAKE) -f $(THIS_MAKEFILE) depend; \
$(MAKE) -f $(THIS_MAKEFILE) RAPTOR_PASS2=pass2 depend
include $(DEPTH)/config/rules.mk
#
# Rules for pulling the source from the cvs repository
#
pull_all: pull_lizard pull_xpcom pull_imglib pull_netlib pull_raptor
pull_lizard:
cd $(MOZ_SRC)/.; \
$(CVSCO_LIZARD) mozilla/config; \
$(CVSCO_LIZARD) mozilla/build/build_number; \
$(CVSCO_LIZARD) mozilla/cmd/xfe/icons/icondata.h; \
$(CVSCO_LIZARD) mozilla/lib/liblayer; \
$(CVSCO_LIZARD) mozilla/modules/zlib; \
$(CVSCO_LIZARD) mozilla/modules/libutil; \
$(CVSCO_LIZARD) mozilla/nsprpub; \
$(CVSCO_LIZARD) mozilla/sun-java; \
$(CVSCO_LIZARD) mozilla/nav-java; \
$(CVSCO_LIZARD) mozilla/js; \
$(CVSCO_LIZARD) mozilla/modules/security/freenav; \
pull_xpcom:
cd $(MOZ_SRC)/.; \
$(CVSCO_XPCOM) mozilla/modules/libreg; \
$(CVSCO_XPCOM) mozilla/xpcom; \
$(CVSCO_XPCOM) mozilla/modules/libpref
pull_imglib:
cd $(MOZ_SRC)/.; \
$(CVSCO_IMGLIB) mozilla/jpeg; \
$(CVSCO_IMGLIB) mozilla/modules/libutil; \
$(CVSCO_IMGLIB) mozilla/modules/libimg
pull_netlib:
cd $(MOZ_SRC)/.; \
$(CVSCO_NETLIB) mozilla/lib/xp; \
$(CVSCO_NETLIB) mozilla/lib/libnet; \
$(CVSCO_NETLIB) mozilla/include
pull_raptor:
cd $(MOZ_SRC)/.; \
$(CVSCO_RAPTOR) mozilla/base; \
$(CVSCO_RAPTOR) mozilla/dom; \
$(CVSCO_RAPTOR) mozilla/gfx; \
$(CVSCO_RAPTOR) mozilla/htmlparser; \
$(CVSCO_RAPTOR) mozilla/layout; \
$(CVSCO_RAPTOR) mozilla/view; \
$(CVSCO_RAPTOR) mozilla/webshell; \
$(CVSCO_RAPTOR) mozilla/widget
pull_doc:
cd $(MOZ_SRC)/.; \
$(CVSCO_RAPTOR) README/raptor; \
$(CVSCO_RAPTOR) mozilla/LICENSE; \
$(CVSCO_RAPTOR) mozilla/LEGAL
######################################################################
#
# Build tarball
DATE_CMD=date
DATE=$(shell $(DATE_CMD) +%Y%m%d)
TAR = tar
GZIP = gzip
TARBALL = $(MOZ_SRC)/unix-$(DATE).tar
TARFILES = mozilla README/raptor
tarball: pull_all pull_doc clobber clobber_all real_tar
real_tar:
@echo Making $(TARBALL)
cd $(MOZ_SRC)/.; \
rm -f $(TARBALL) $(TARBALL).gz; \
$(TAR) cf $(TARBALL) $(TARFILES)
@echo Making gzip of $(TARBALL); \
cd $(MOZ_SRC)/.; \
$(GZIP) -9 -q $(TARBALL)