mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 10:10:31 +00:00
174 lines
4.1 KiB
Plaintext
174 lines
4.1 KiB
Plaintext
# 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.
|
|
|
|
NECKO=1
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Toplevel windows Makefile to build the mozilla tree
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Specify the depth of the current directory relative to the
|
|
#// root of mozilla
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
DEPTH=.
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...)
|
|
#// (these must come before the common makefiles are included)
|
|
#//
|
|
#// DIRS - There are subdirectories to process
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
DIRS = \
|
|
!if defined(DIST_DIRS)
|
|
config \
|
|
db \
|
|
dbm \
|
|
include \
|
|
jpeg \
|
|
modules\libreg \
|
|
xpcom \
|
|
modules\zlib \
|
|
modules\libjar \
|
|
modules\libutil \
|
|
sun-java \
|
|
js \
|
|
modules\security\freenav \
|
|
modules\libimg \
|
|
modules\plugin \
|
|
modules\oji \
|
|
modules\libpref \
|
|
intl \
|
|
caps \
|
|
!if !defined(NECKO)
|
|
lib\libpwcac \
|
|
network \
|
|
!endif
|
|
!endif
|
|
!if defined(LAYOUT_DIRS)
|
|
# the following are associated with the layout engine
|
|
expat \
|
|
gfx \
|
|
!if defined(NECKO)
|
|
netwerk \
|
|
!endif
|
|
profile \
|
|
htmlparser \
|
|
widget \
|
|
dom \
|
|
view \
|
|
layout \
|
|
rdf \
|
|
webshell \
|
|
editor \
|
|
!if defined(GC_LEAK_DETECTOR)
|
|
gc\boehm \
|
|
!endif
|
|
!endif
|
|
!if defined(CLIENT_DIRS)
|
|
# the following are associated with the browser
|
|
xpfe \
|
|
xpinstall \
|
|
extensions \
|
|
!if !defined(DISABLE_MAILNEWS)
|
|
mailnews \
|
|
!endif
|
|
!endif
|
|
$(NULL)
|
|
|
|
|
|
!ifdef NECKO
|
|
all::
|
|
export::
|
|
@echo NECKO is enabled
|
|
!endif
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Include the common makefile rules
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
include <$(DEPTH)\config\rules.mak>
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// MOZILLA_OFFICIAL junk: rebase and splitsym for binary release
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
#// should make sure we have rebase, and die if not
|
|
|
|
!if defined(MOZILLA_OFFICIAL)
|
|
|
|
!if [for %i in (. %PATH%) do $(QUIET)if exist %i\$(REBASE) echo %i\$(REBASE) > rebase.yes]
|
|
!endif
|
|
|
|
!if !exist(rebase.yes)
|
|
REBASE=
|
|
!if [del rebase.yes]
|
|
!endif
|
|
!endif
|
|
!endif
|
|
|
|
rebase:
|
|
!if defined(MOZILLA_OFFICIAL)
|
|
!if defined(FIND)
|
|
!if "$(REBASE)" != ""
|
|
echo rebasing $(DIST)
|
|
$(FIND) $(DIST) -name "*.dll" > rebase.lst
|
|
$(REBASE) -b 60000000 -R . -G rebase.lst
|
|
del rebase.lst
|
|
!else
|
|
echo No rebase defined.
|
|
!endif
|
|
!else
|
|
echo No find defined.
|
|
!endif
|
|
!endif
|
|
|
|
splitsymbols:
|
|
!if defined(MOZILLA_OFFICIAL)
|
|
!if defined(FIND)
|
|
!if "$(SPLITSYM)" != ""
|
|
echo splitting symbols out of binaries
|
|
cd $(MOZ_SRC)\mozilla
|
|
$(FIND) $(DIST) -name "*.dll" -exec $(SPLITSYM) {} ;
|
|
$(FIND) $(DIST) -name "*.exe" -exec $(SPLITSYM) {} ;
|
|
$(FIND) $(DIST) -name "*.EXE" -exec $(SPLITSYM) {} ;
|
|
|
|
!else
|
|
echo No splitsym defined.
|
|
!endif
|
|
!else
|
|
echo No find defined.
|
|
!endif
|
|
!endif
|
|
|
|
componentreg:
|
|
!if defined(MOZILLA_OFFICIAL)
|
|
cd $(DIST)\bin
|
|
regxpcom.exe
|
|
!endif
|
|
|
|
install:: rebase splitsymbols componentreg
|
|
|