1999-11-06 06:40:37 +03: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 05:44:41 +03:00
|
|
|
#
|
1999-11-06 06:40:37 +03: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 05:44:41 +03:00
|
|
|
#
|
1999-11-06 06:40:37 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-03-28 05:44:41 +03:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:40:37 +03:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
1999-02-19 01:26:31 +03:00
|
|
|
#// Makefile for MOZILLA/CONFIG - various commands used by other makefiles
|
1998-03-28 05:44:41 +03: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-02 01:36:59 +04:00
|
|
|
#// root of MOZILLA
|
1998-03-28 05:44:41 +03:00
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
DEPTH = ..
|
|
|
|
|
1999-07-02 01:36:59 +04: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
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
2000-10-20 09:21:40 +04:00
|
|
|
GARBAGE = *.obj *.sbr *.pdb build_number nsBuildID.h
|
1999-08-03 18:40:55 +04:00
|
|
|
|
2001-02-07 05:19:29 +03:00
|
|
|
!ifdef MOZ_COVERAGE
|
|
|
|
GARBAGE = $(GARBAGE) trace.dll trace.lib trace.exp
|
|
|
|
!endif
|
|
|
|
|
2001-09-23 07:34:32 +04:00
|
|
|
EXPORTS = nsBuildID.h
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Include the common makefile rules
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
2000-05-14 09:53:25 +04:00
|
|
|
include <$(DEPTH)/config/config.mak>
|
1998-03-28 05:44:41 +03:00
|
|
|
include <$(DEPTH)/config/rules.mak>
|
|
|
|
|
1999-08-24 04:56:04 +04:00
|
|
|
!ifdef MOZILLA_OFFICIAL
|
2000-10-20 09:21:40 +04:00
|
|
|
_BN_OFFICIAL=1
|
|
|
|
!else
|
|
|
|
_BN_OFFICIAL=
|
1999-07-08 22:14:31 +04:00
|
|
|
!endif
|
1999-07-02 13:04:22 +04:00
|
|
|
|
2000-10-20 09:21:40 +04:00
|
|
|
# update build number from within make script
|
|
|
|
build_number:
|
|
|
|
$(PERL) -I. bdate.pl $@ $(_BN_OFFICIAL)
|
|
|
|
|
|
|
|
nsBuildID.h: build_number nsBuildID.h.in
|
|
|
|
$(RM) $@
|
|
|
|
$(PERL) -I. aboutime.pl $@ build_number nsBuildID.h.in
|
|
|
|
|
1998-09-01 04:02:58 +04:00
|
|
|
#// Rule to set the timebomb on official mozilla builds
|
1999-07-02 13:04:22 +04:00
|
|
|
|
1998-09-01 04:02:58 +04:00
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
#//
|
1999-08-03 02:18:47 +04:00
|
|
|
#// Rules to build make utils
|
1998-03-28 05:44:41 +03:00
|
|
|
#//
|
1999-08-03 02:18:47 +04:00
|
|
|
|
|
|
|
#CFLAGS = /FR /Zi -MDd /W4
|
|
|
|
CFLAGS = /O2 /GB /MD
|
|
|
|
|
|
|
|
makecopy.exe:: makecopy.cpp
|
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
mangle.exe:: mangle.c
|
1999-08-03 02:18:47 +04:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
mantomak.exe:: mantomak.c
|
1999-08-03 02:18:47 +04:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
bin2rc.exe:: bin2rc.c
|
1999-08-03 02:18:47 +04:00
|
|
|
$(CC) $(CFLAGS) $**
|
1998-03-28 05:44:41 +03:00
|
|
|
|
1999-02-19 01:26:31 +03:00
|
|
|
makedep.exe:: makedep.cpp
|
1999-08-03 02:18:47 +04:00
|
|
|
$(CC) -MT /O2 /GB $**
|
1999-07-02 01:36:59 +04:00
|
|
|
|
2001-03-13 13:42:19 +03:00
|
|
|
!ifdef MOZ_COVERAGE
|
2001-02-07 05:19:29 +03:00
|
|
|
trace.dll:: trace.obj pldhash.obj
|
2001-03-13 13:42:19 +03:00
|
|
|
$(LD) /nologo /debug /libpath:$(DIST)/lib /dll /out:$@ $** nspr4.lib imagehlp.lib
|
2001-02-07 05:19:29 +03:00
|
|
|
|
|
|
|
pldhash.obj:: $(DEPTH)/xpcom/ds/pldhash.c
|
2001-05-09 08:01:57 +04:00
|
|
|
$(CC) /c /nologo /Od /Z7 /I$(DEPTH)/xpcom/ds /I$(DEPTH)/dist/include/nspr $**
|
2001-02-07 05:19:29 +03:00
|
|
|
|
|
|
|
trace.obj:: trace.cpp
|
2001-05-09 08:01:57 +04:00
|
|
|
$(CC) /c /nologo /Od /Z7 /DMOZ_SRC=\"$(MOZ_SRC)\" /I$(DEPTH)/xpcom/ds /I$(DEPTH)/dist/include/nspr $**
|
2001-03-13 13:42:19 +03:00
|
|
|
!endif
|
2001-02-07 05:19:29 +03:00
|
|
|
|
|
|
|
export:: \
|
|
|
|
makecopy.exe \
|
|
|
|
mangle.exe \
|
|
|
|
mantomak.exe \
|
|
|
|
bin2rc.exe \
|
2001-10-19 11:02:54 +04:00
|
|
|
!ifndef NO_MFC
|
2001-02-07 05:19:29 +03:00
|
|
|
makedep.exe \
|
2001-10-19 11:02:54 +04:00
|
|
|
!endif
|
2001-02-07 05:19:29 +03:00
|
|
|
build_number \
|
|
|
|
nsBuildID.h \
|
|
|
|
$(NULL)
|
2002-01-18 11:14:20 +03:00
|
|
|
|
2001-02-07 05:19:29 +03:00
|
|
|
!ifdef MOZ_COVERAGE
|
2002-01-18 11:14:20 +03:00
|
|
|
export:: trace.dll
|
2001-02-07 05:19:29 +03:00
|
|
|
$(MAKE_INSTALL) trace.dll $(DIST)/bin
|
|
|
|
$(MAKE_INSTALL) trace.lib $(DIST)/lib
|
2001-03-13 13:42:19 +03:00
|
|
|
$(MAKE_INSTALL) trace.dll $(DIST)/install
|
|
|
|
$(MAKE_INSTALL) $(DIST)/bin/nspr4.dll $(DIST)/install
|
2001-02-07 05:19:29 +03:00
|
|
|
!endif
|
2002-01-18 11:14:20 +03:00
|
|
|
|
|
|
|
export::
|
|
|
|
$(RM) $(DIST)\bin\chrome\chromelist.txt
|
|
|
|
$(RM) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMPS) $(FINAL_LINK_COMP_NAMES)
|
1998-03-28 05:44:41 +03:00
|
|
|
|
2000-09-21 05:47:19 +04:00
|
|
|
#install::
|
|
|
|
# $(RM) $(DIST)\bin\chrome\installed-chrome.txt
|
2000-05-14 09:53:25 +04:00
|
|
|
|
1998-12-04 22:56:48 +03:00
|
|
|
FORCE::
|