1999-11-06 03:40:37 +00:00
|
|
|
# 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
|
|
|
#
|
1999-11-06 03:40:37 +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
|
|
|
#
|
1999-11-06 03:40:37 +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
|
1999-11-06 03:40:37 +00:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
1999-02-18 22:26:31 +00:00
|
|
|
#// Makefile for MOZILLA/CONFIG - various commands used by other makefiles
|
1998-03-28 02:44:41 +00:00
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
|
|
!error This makefile must be build using 32-bit tools
|
|
|
|
!endif
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Specify the depth of the current directory relative to the
|
1999-07-01 21:36:59 +00:00
|
|
|
#// root of MOZILLA
|
1998-03-28 02:44:41 +00:00
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
DEPTH = ..
|
|
|
|
|
1999-07-01 21:36:59 +00:00
|
|
|
#// Specify any "command" targets. (ie. DIRS, INSTALL_FILES, ...)
|
|
|
|
#// (these must come before the common makefiles are included)
|
|
|
|
#//
|
|
|
|
#// DIRS - There is a subdirectory to process
|
|
|
|
#// INSTALL_FILES - Files to be installed in the distribution area
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
|
|
|
!ifdef MOZ_FULLCIRCLE
|
|
|
|
INSTALL_FILE_LIST=$(MOZ_TOOLS)\bin\fullsoft.dll $(MOZ_TOOLS)\bin\talkback.cnt $(MOZ_TOOLS)\bin\talkback.exe $(MOZ_TOOLS)\bin\talkback.hlp
|
|
|
|
INSTALL_DIR=$(DIST)\bin
|
|
|
|
!endif
|
|
|
|
|
1999-08-03 14:40:55 +00:00
|
|
|
GARBAGE = *.obj *.sbr *.pdb
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Include the common makefile rules
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
2000-05-14 05:53:25 +00:00
|
|
|
include <$(DEPTH)/config/config.mak>
|
1998-03-28 02:44:41 +00:00
|
|
|
include <$(DEPTH)/config/rules.mak>
|
|
|
|
|
1999-07-02 09:04:22 +00:00
|
|
|
# update build number from within make script
|
|
|
|
build_number::
|
1999-08-24 00:56:04 +00:00
|
|
|
!ifdef MOZILLA_OFFICIAL
|
1999-08-19 20:45:59 +00:00
|
|
|
echo Generating build number...
|
1999-07-02 09:04:22 +00:00
|
|
|
$(RM) $@
|
|
|
|
$(PERL) bdate.pl > $@
|
|
|
|
echo Setting build number...
|
1999-08-17 02:03:26 +00:00
|
|
|
$(PERL) aboutime.pl $(DEPTH)/xpfe/browser/resources/locale/en-US/navigator.dtd $@
|
1999-07-21 20:28:32 +00:00
|
|
|
$(PERL) aboutime.pl $(DEPTH)/xpfe/browser/resources/content/viewSource.xul $@
|
1999-08-24 00:56:04 +00:00
|
|
|
$(PERL) aboutime.pl $(DEPTH)/xpfe/appshell/public/nsBuildID.h $@
|
1999-07-08 18:14:31 +00:00
|
|
|
!endif
|
1999-07-02 09:04:22 +00:00
|
|
|
|
1998-09-01 00:02:58 +00:00
|
|
|
#// Rule to set the timebomb on official mozilla builds
|
1999-07-02 09:04:22 +00:00
|
|
|
|
1998-09-01 00:02:58 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#//
|
1999-08-02 22:18:47 +00:00
|
|
|
#// Rules to build make utils
|
1998-03-28 02:44:41 +00:00
|
|
|
#//
|
1999-08-02 22:18:47 +00:00
|
|
|
|
|
|
|
#CFLAGS = /FR /Zi -MDd /W4
|
|
|
|
CFLAGS = /O2 /GB /MD
|
|
|
|
|
|
|
|
makecopy.exe:: makecopy.cpp
|
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
mangle.exe:: mangle.c
|
1999-08-02 22:18:47 +00:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
mantomak.exe:: mantomak.c
|
1999-08-02 22:18:47 +00:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
bin2rc.exe:: bin2rc.c
|
1999-08-02 22:18:47 +00:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1999-02-18 22:26:31 +00:00
|
|
|
makedep.exe:: makedep.cpp
|
1999-08-02 22:18:47 +00:00
|
|
|
$(CC) -MT /O2 /GB $**
|
1999-07-01 21:36:59 +00:00
|
|
|
|
1999-08-03 15:33:19 +00:00
|
|
|
export:: makecopy.exe mangle.exe mantomak.exe bin2rc.exe makedep.exe build_number
|
1999-08-19 20:45:59 +00:00
|
|
|
$(MAKE_INSTALL) nsBuildID.h $(PUBLIC)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1999-07-01 21:36:59 +00:00
|
|
|
!ifdef MOZ_FULLCIRCLE
|
|
|
|
|
|
|
|
master.pl: build_number
|
|
|
|
$(PERL) build-number.pl
|
|
|
|
|
|
|
|
master.ini: master.pl
|
|
|
|
$(RM) $@
|
|
|
|
$(PERL) master.pl
|
|
|
|
|
|
|
|
install:: master.ini
|
|
|
|
$(MAKE_INSTALL) master.ini $(DIST)\bin\
|
|
|
|
!endif
|
|
|
|
|
2000-05-14 05:53:25 +00:00
|
|
|
install::
|
2000-05-15 00:36:56 +00:00
|
|
|
$(RM) $(DIST)\bin\chrome\installed-chrome.txt
|
2000-05-14 05:53:25 +00:00
|
|
|
|
1998-12-04 19:56:48 +00:00
|
|
|
FORCE::
|