gecko-dev/makefile.win

188 lines
5.2 KiB
Plaintext
Raw Normal View History

# 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-03-28 02:44:41 +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-03-28 02:44:41 +00:00
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
1998-03-28 02:44:41 +00:00
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
1998-03-28 02:44:41 +00:00
1999-07-29 00:28:38 +00:00
NECKO=1
1998-03-28 02:44:41 +00:00
#//------------------------------------------------------------------------
#//
#// Toplevel windows Makefile to build the mozilla tree
1998-03-28 02:44:41 +00:00
#//
#//------------------------------------------------------------------------
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of mozilla
1998-03-28 02:44:41 +00:00
#//
#//------------------------------------------------------------------------
1999-11-28 03:05:01 +00:00
1998-03-28 02:44:41 +00:00
DEPTH=.
include <$(DEPTH)\config\config.mak>
1998-03-28 02:44:41 +00:00
#//------------------------------------------------------------------------
#//
#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...)
#// (these must come before the common makefiles are included)
#//
#// DIRS - There are subdirectories to process
#//
#//------------------------------------------------------------------------
1999-11-28 03:05:01 +00:00
DIRS = \
!if defined(DIST_DIRS)
1999-11-28 03:05:01 +00:00
config \
include \
jpeg \
sun-java \
modules\libreg \
string \
1999-11-28 03:05:01 +00:00
xpcom \
db \
dbm \
modules\libutil \
modules\mpfilelocprovider \
modules\zlib \
1999-11-28 03:05:01 +00:00
netwerk \
widget\timer \
js \
modules\libjar \
modules\libimg \
modules\libpref \
modules\oji \
1999-11-28 03:05:01 +00:00
caps \
intl \
rdf \
!endif
!if defined(LAYOUT_DIRS)
# the following are associated with the layout engine
1999-11-28 03:05:01 +00:00
expat \
gfx \
!if defined(USE_IMG2)
gfx2 \
modules\libpr0n \
!endif
modules\plugin \
1999-11-28 03:05:01 +00:00
uriloader \
htmlparser \
widget \
dom \
view \
content \
1999-11-28 03:05:01 +00:00
layout \
1999-11-29 22:21:36 +00:00
docshell \
1999-11-28 03:05:01 +00:00
webshell \
2000-08-10 07:06:21 +00:00
embedding \
1999-11-28 03:05:01 +00:00
profile \
editor \
2001-03-28 21:18:29 +00:00
accessible \
!if defined(GC_LEAK_DETECTOR)
1999-11-28 03:05:01 +00:00
gc\boehm \
!endif
1999-10-21 22:40:16 +00:00
!endif
!if defined(CLIENT_DIRS)
# the following are associated with the browser
1999-11-28 03:05:01 +00:00
xpfe \
xpinstall \
!if defined(BUILD_PSM) || defined(BUILD_PSM2)
security \
!endif
1999-11-28 03:05:01 +00:00
extensions \
themes \
!if !defined(DISABLE_LDAP)
directory\c-sdk \
directory\xpcom \
!endif
l10n \
!if !defined(DISABLE_MAILNEWS)
1999-11-28 03:05:01 +00:00
mailnews \
!endif
!endif
$(NULL)
1998-03-28 02:44:41 +00:00
1998-04-03 16:14:01 +00:00
#//------------------------------------------------------------------------
1998-03-28 02:44:41 +00:00
#//
#// Include the common makefile rules
#//
1998-04-03 16:14:01 +00:00
#//------------------------------------------------------------------------
1999-06-26 06:36:26 +00:00
1999-11-28 03:05:01 +00:00
include <$(DEPTH)\config\rules.mak>
1999-07-02 12:42:17 +00:00
#//------------------------------------------------------------------------
#//
#// 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
1999-07-02 12:42:17 +00:00
rebase:
!if defined(MOZILLA_OFFICIAL)
1999-07-02 12:42:17 +00:00
!if defined(FIND)
!if "$(REBASE)" != ""
echo rebasing $(DIST:\=/)
$(FIND) $(DIST:\=/) -name "*.dll" > rebase.lst
1999-07-02 12:42:17 +00:00
$(REBASE) -b 60000000 -R . -G rebase.lst
del rebase.lst
!else
echo No rebase defined.
!endif
!else
echo No find defined.
!endif
!endif
1999-07-02 12:42:17 +00:00
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:: regchrome rebase splitsymbols componentreg
1999-07-02 12:42:17 +00:00