pjs/trex.mak

297 строки
7.9 KiB
Makefile
Исходник Обычный вид История

1998-05-05 06:03:57 +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.
######################################################################
#
# 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-21 03:21:01 +04:00
CVTREX = :pserver:$(USERNAME)@cvsserver:/m/src
1998-05-05 06:03:57 +04: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 05:50:29 +03:00
TREX_MSGSDK_BRANCH =
TREX_MSGSDK_DIR = mozilla/msgsdk
1998-09-04 00:20:45 +04:00
TREX_XPFC_BRANCH =
TREX_XPFC_DIR = mozilla/xpfc
1998-05-05 06:03:57 +04:00
TREX_TREX_BRANCH =
TREX_TREX_DIR = mozilla/calendar
1998-05-05 06:03:57 +04:00
LIBNLS_BRANCH = -r libnls_v3_zulu_branch
LIBNLS_DIR = ns/modules/libnls
1998-05-05 06:03:57 +04: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
depend:: depend_dist depend_julian depend_trex
1998-09-04 21:32:19 +04:00
clobber:: clobber_dist clobber_julian clobber_trex
1998-09-04 21:32:19 +04:00
1998-05-05 06:03:57 +04: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)
pull_all:: pull_platform pull_julian pull_trex
1998-05-05 06:03:57 +04:00
1998-07-31 03:28:03 +04: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 06:03:57 +04:00
pull_platform::
@echo +++ trex.mak: checking out platform with "$(CVS_BRANCH)"
cd $(MOZ_SRC)\.
-$(CVS) $(CONFIG_BRANCH) $(CONFIG_DIR)
1998-05-11 20:32:14 +04:00
-$(CVS) $(MOZ_TOP)/nglayout.mak
1998-05-05 06:03:57 +04:00
cd $(MOZ_SRC)\$(MOZ_TOP)
1998-05-11 20:32:14 +04:00
nmake -f nglayout.mak pull_all
1998-05-05 06:03:57 +04:00
cd $(MOZ_SRC)\.
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 06:03:57 +04:00
pull_trex::
@echo +++ trex.mak: checking out trex with "$(CVTREX)"
cd $(MOZ_SRC)\.
-$(CVS) $(TREX_GCONFIG_BRANCH) $(TREX_GCONFIG_DIR)
1998-10-29 05:50:29 +03:00
-$(CVS) $(TREX_MSGSDK_BRANCH) $(TREX_MSGSDK_DIR)
1998-09-04 00:20:45 +04:00
-$(CVS) $(TREX_XPFC_BRANCH) $(TREX_XPFC_DIR)
-$(CVS) $(TREX_TREX_BRANCH) $(TREX_TREX_DIR)
1998-05-05 06:03:57 +04:00
cd $(MOZ_SRC)\.
build_all:: build_platform build_julian build_trex
1998-05-05 06:03:57 +04:00
1998-07-31 03:28:03 +04:00
build_julian_and_trex:: build_julian build_trex
1998-05-05 06:03:57 +04: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 20:32:14 +04:00
nmake -f nglayout.mak all
1998-05-05 06:03:57 +04:00
cd $(MOZ_SRC)\.
build_julian::
1998-10-08 23:45:01 +04:00
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
nmake -f makefile.win
1998-09-25 21:58:12 +04:00
!endif
cd $(MOZ_SRC)\.
1998-05-05 06:03:57 +04:00
build_trex::
1998-10-29 05:50:29 +03:00
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
gmake buildC
1998-09-04 00:20:45 +04:00
cd $(MOZ_SRC)\$(MOZ_TOP)\xpfc
nmake -f makefile.win
cd $(MOZ_SRC)\$(MOZ_TOP)\calendar
1998-08-10 23:56:34 +04:00
nmake -f makefile.win
1998-05-05 06:03:57 +04:00
cd $(MOZ_SRC)\.
1998-09-04 21:32:19 +04:00
depend_dist::
cd $(MOZ_SRC)\$(MOZ_TOP)\.
nmake -f nglayout.mak depend
cd $(MOZ_SRC)\.
depend_julian::
1998-10-08 23:45:01 +04:00
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
nmake -f makefile.win depend
1998-09-25 21:58:12 +04:00
!endif
cd $(MOZ_SRC)\.
1998-09-04 21:32:19 +04: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)\.
clobber_julian::
1998-10-08 23:45:01 +04:00
!if !defined(MOZ_ZULU_FREE)
cd $(MOZ_SRC)\ns\modules\libnls
1998-09-25 21:58:12 +04:00
!endif
nmake -f makefile.win clobber_all
cd $(MOZ_SRC)\.
1998-09-04 21:32:19 +04:00
clobber_trex::
1998-10-29 05:50:29 +03:00
cd $(MOZ_SRC)\$(MOZ_TOP)\msgsdk
gmake FRESH
1998-09-04 21:32:19 +04: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)\.