1998-05-22 09:57:00 +04:00
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
# Mac verstion of nglayout.mak, the windows makefile
|
|
|
|
|
# EXPERIMENTAL
|
|
|
|
|
# EXPERIMENTAL
|
|
|
|
|
# EXPERIMENTAL
|
|
|
|
|
# comments to atotic@netscape.com for now
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
MOZ_TOP = mozilla
|
|
|
|
|
# This makefile is designed to make building the nglayout 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 nglayout test program. The order is important. The
|
|
|
|
|
# DIST_DIRS need to be built before the RAPTOR_DIRS.
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
DIST_DIRS = <20>
|
|
|
|
|
nsprpub <09>
|
|
|
|
|
include <09>
|
|
|
|
|
jpeg <09>
|
|
|
|
|
"modules/libreg" <09>
|
|
|
|
|
xpcom <09>
|
|
|
|
|
"modules/zlib" <09>
|
|
|
|
|
"modules/libutil" <09>
|
|
|
|
|
sun-java <09>
|
|
|
|
|
nav-java <09>
|
|
|
|
|
js <09>
|
|
|
|
|
"modules/security/freenav" <09>
|
|
|
|
|
"modules/libpref" <09>
|
|
|
|
|
"modules/libimg" <09>
|
|
|
|
|
base <20>
|
|
|
|
|
"lib/xp" <09>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
"lib/libnet"
|
|
|
|
|
|
|
|
|
|
# The list of directories to build the nglayout layout engine and
|
|
|
|
|
# related libraries.
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
RAPTOR_DIRS = <09>
|
|
|
|
|
htmlparser <09>
|
|
|
|
|
dom <09>
|
|
|
|
|
gfx <09>
|
|
|
|
|
view <09>
|
|
|
|
|
widget <09>
|
|
|
|
|
layout <09>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
webshell
|
|
|
|
|
|
|
|
|
|
# Main rules
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
all <20> all_dist all_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
export <20> export_dist export_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
libs <20> libs_dist libs_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
install <20> install_dist install_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
depend <20> depend_dist depend_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber <20> clobber_dist clobber_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}\{MOZ_TOP}
|
|
|
|
|
-rd /s /q dist
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_all <20> clobber_all_dist clobber_all_nglayout
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}\{MOZ_TOP}
|
|
|
|
|
-rd /s /q dist
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
# Rule to build subdirectories
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
{DIST_DIRS} {RAPTOR_DIRS} <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
#!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
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_all <20> pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayout pull_mac
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_lizard <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
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"
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_xpcom <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
{CVSCO_XPCOM} "{MOZ_TOP}/modules/libreg"
|
|
|
|
|
{CVSCO_XPCOM} "{MOZ_TOP}/xpcom"
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_imglib <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
{CVSCO_IMGLIB} "{MOZ_TOP}/jpeg"
|
|
|
|
|
{CVSCO_IMGLIB} "{MOZ_TOP}/modules/libutil"
|
|
|
|
|
{CVSCO_IMGLIB} "{MOZ_TOP}/modules/libimg"
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_netlib <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
{CVSCO_NETLIB} "{MOZ_TOP}/lib/xp"
|
|
|
|
|
{CVSCO_NETLIB} "{MOZ_TOP}/lib/libnet"
|
|
|
|
|
{CVSCO_NETLIB} "{MOZ_TOP}/include"
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
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"
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
pull_mac <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/build/mac"
|
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/cmd/macfe"
|
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/MacMemoryAllocator"
|
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/NSStdLib"
|
1998-05-22 10:35:58 +04:00
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/MoreFiles"
|
|
|
|
|
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/NSRuntime"
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
# Build rules for the "dist" portion. The "dist" contains those things
|
|
|
|
|
# which are imported by the nglayout test programs.
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
all_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
@cd {MOZ_SRC}\{MOZ_TOP}
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} export_dist
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} libs_dist
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} install_dist
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
export_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS export
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
export_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
libs_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS libs
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
libs_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
install_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS install
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
install_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
depend_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS depend
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
depend_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS clobber
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_all_dist <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS clobber_all
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_all_dist <20> {DIST_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
# Build rules for the "nglayout" portion. This builds the nglayout software
|
|
|
|
|
# including the sample webshell viewer application.
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
all_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
cd {MOZ_SRC}\{MOZ_TOP}
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} export_nglayout
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} libs_nglayout
|
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} install_nglayout
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
export_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS export
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
export_nglayout <20> {RAPTOR_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
libs_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS libs
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
libs_nglayout <20> {RAPTOR_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
install_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS install
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
install_nglayout <20> {RAPTOR_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
depend_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS=depend
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
depend_nglayout <20> {RAPTOR_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS=clobber
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_all_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
set MAKE_ARGS=clobber_all
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
clobber_all_nglayout <20> {RAPTOR_DIRS}
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
# Build nglayout Doc++ documentation
|
|
|
|
|
DOCXX = {MOZ_TOOLS}\bin\docxx
|
1998-05-22 10:35:58 +04:00
|
|
|
|
DOCXX_RAPTOR = {DOCXX} -H -A -p -f -B c <20>\fake_banner-file_name -j -a
|
1998-05-22 09:57:00 +04:00
|
|
|
|
DOCXX_DESTDIR = {MOZ_SRC}\{MOZ_TOP}\dist\documentation
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
doc_nglayout <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
-rm -rf {DOCXX_DESTDIR}
|
|
|
|
|
-@mkdir {DOCXX_DESTDIR}
|
|
|
|
|
@for %d in (nglayout 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
|
|
|
|
|
dummy=`beep`
|
|
|
|
|
|
|
|
|
|
DATE = `Date -d -s`
|
|
|
|
|
|
|
|
|
|
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\\nglayout
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
tarballs <20> tarball_zip tarball_gz
|
1998-05-22 09:57:00 +04:00
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
tarball_zip <20> prepare_for_tarballing
|
1998-05-22 09:57:00 +04:00
|
|
|
|
@echo Making {TARBALL_ZIP}
|
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
rm -f {TARBALL_ZIP}
|
|
|
|
|
{ZIP} -9 -r -q {TARBALL_ZIP} {TARFILES}
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
tarball_gz <20> prepare_for_tarballing
|
1998-05-22 09:57:00 +04:00
|
|
|
|
@echo Making {TARBALL}
|
|
|
|
|
cd {MOZ_SRC}
|
|
|
|
|
rm -f {TARBALL} {TARBALL}.gz
|
|
|
|
|
{TAR} cf {TARBALL} {TARFILES}
|
|
|
|
|
@echo Making gzip of {TARBALL}
|
|
|
|
|
{GZIP} -9 -q {TARBALL}
|
|
|
|
|
|
1998-05-22 10:35:58 +04:00
|
|
|
|
prepare_for_tarballing <20>
|
1998-05-22 09:57:00 +04:00
|
|
|
|
{NMAKE} -f {THIS_MAKEFILE} clobber clobber_all
|