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
|
|
|
|
|
|
|
!if !defined(CONFIG_CONFIG_MAK)
|
|
|
|
CONFIG_CONFIG_MAK=1
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Define public make variables:
|
|
|
|
#//
|
|
|
|
#// OBJDIR - Specifies the location of intermediate files (ie. objs...)
|
|
|
|
#// Currently, the names are WINxx_O.OBJ or WINxx_D.OBJ for
|
|
|
|
#// optimized and debug builds respectively.
|
|
|
|
#//
|
|
|
|
#// DIST - Specifies the location of the distribution directory where
|
|
|
|
#// all targets are delivered.
|
|
|
|
#//
|
|
|
|
#// CFGFILE - Specifies the name of the temporary configuration file
|
|
|
|
#// containing the arguments to the current command.
|
|
|
|
#//
|
|
|
|
#// INCS - Default include paths.
|
|
|
|
#//
|
|
|
|
#// CFLAGS - Default compiler options.
|
|
|
|
#//
|
|
|
|
#// LFLAGS - Default linker options.
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Detect WinNT vs. Win9x and set WINOS appropriately.
|
|
|
|
#//
|
|
|
|
#// Set WINOS in your environment to avoid the timewasting uname call
|
|
|
|
#//
|
|
|
|
#//-----------------------------------------------------------------------
|
1999-07-14 19:32:20 +00:00
|
|
|
!if !defined(WINOS)
|
1998-04-07 20:41:06 +00:00
|
|
|
!if [$(MOZ_TOOLS)\bin\uname > osuname.inc]
|
|
|
|
!endif
|
|
|
|
WINOS=\
|
|
|
|
!include "osuname.inc"
|
|
|
|
WINOS=$(WINOS: =)^
|
|
|
|
|
|
|
|
!if [del osuname.inc]
|
|
|
|
!endif
|
1999-07-14 19:30:50 +00:00
|
|
|
!endif
|
1998-04-07 20:41:06 +00:00
|
|
|
|
1998-08-03 22:21:58 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#//-----------------------------------------------------------------------
|
1999-07-30 23:50:03 +00:00
|
|
|
#//
|
|
|
|
#// DIST DEFINITION
|
|
|
|
#//
|
1998-03-28 02:44:41 +00:00
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
XPDIST=$(DEPTH)\dist
|
2001-09-27 21:30:42 +00:00
|
|
|
!ifdef MODULE
|
2001-09-06 03:49:50 +00:00
|
|
|
PUBLIC=$(XPDIST)\include\$(MODULE)
|
|
|
|
!else
|
1999-07-30 23:50:03 +00:00
|
|
|
PUBLIC=$(XPDIST)\include
|
2001-09-06 03:49:50 +00:00
|
|
|
!endif
|
1998-06-05 01:03:18 +00:00
|
|
|
|
|
|
|
!ifdef NGLAYOUT_BUILD_PREFIX
|
|
|
|
DIST_PREFIX=NGL
|
|
|
|
!else
|
1998-03-28 02:44:41 +00:00
|
|
|
!ifdef MOZ_NAV_BUILD_PREFIX
|
|
|
|
DIST_PREFIX=NAV
|
|
|
|
!else
|
|
|
|
DIST_PREFIX=WIN
|
|
|
|
!endif
|
1998-06-05 01:03:18 +00:00
|
|
|
!endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
!ifndef MOZ_DEBUG
|
|
|
|
OBJDIR=$(DIST_PREFIX)$(MOZ_BITS)$(OBJTYPE)_O.OBJ
|
|
|
|
JAVA_OPTIMIZER = -O
|
|
|
|
!ifdef NO_CAFE
|
|
|
|
JAVAC_OPTIMIZER =
|
|
|
|
!else
|
|
|
|
#JAVAC_OPTIMIZER= -O -noinline
|
|
|
|
JAVAC_OPTIMIZER =
|
|
|
|
!endif
|
|
|
|
!else
|
|
|
|
OBJDIR=$(DIST_PREFIX)$(MOZ_BITS)$(OBJTYPE)_D.OBJ
|
|
|
|
JAVA_OPTIMIZER = -g
|
|
|
|
JAVAC_OPTIMIZER = -g
|
|
|
|
!endif
|
|
|
|
|
|
|
|
#//
|
|
|
|
#// DIST DEFINES SHOULD NEVER BE COMPONENT SPECIFIC.
|
|
|
|
#//
|
|
|
|
!ifndef MOZ_DEBUG
|
|
|
|
DIST=$(XPDIST)\$(DIST_PREFIX)$(MOZ_BITS)_O.OBJ
|
|
|
|
!else
|
|
|
|
DIST=$(XPDIST)\$(DIST_PREFIX)$(MOZ_BITS)_D.OBJ
|
|
|
|
!endif
|
|
|
|
|
1998-06-05 01:03:18 +00:00
|
|
|
# This will always give the location of NGLayout's dist, even if "NGLAYOUT_BUILD_PREFIX" is not defined.
|
|
|
|
!if defined(MOZ_NGLAYOUT)
|
|
|
|
!ifndef MOZ_DEBUG
|
|
|
|
NGLAYOUT_DIST=$(XPDIST)\NGL$(MOZ_BITS)_O.OBJ
|
|
|
|
!else
|
|
|
|
NGLAYOUT_DIST=$(XPDIST)\NGL$(MOZ_BITS)_D.OBJ
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Basic configuration settings
|
|
|
|
#//
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
|
2001-09-22 02:28:40 +00:00
|
|
|
!ifndef DISABLE_LDAP
|
|
|
|
LDAP_CFLAGS=-I$(XPDIST)\include\ldap
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
CFGFILE=$(OBJDIR)\cmd.cfg
|
2001-09-06 03:49:50 +00:00
|
|
|
INCS=$(INCS) -I$(PUBLIC) -I$(DIST)\include -I$(XPDIST)\include\nspr
|
|
|
|
|
2001-09-21 14:25:16 +00:00
|
|
|
|
|
|
|
!ifdef REQUIRES
|
|
|
|
|
2001-09-29 23:09:15 +00:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
|
|
|
|
|
|
|
# use perl to translate REQUIRES into a proper include line
|
|
|
|
# using \1 instead of $1 because nmake barfs on $1
|
|
|
|
!if [echo $(REQUIRES) | perl -pe "s/(\w+)/-I$(XPDIST:\=\\)\\include\\\1/g; print \"REQINCS=$_\";" > reqincs.inc]
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!else
|
|
|
|
|
2001-09-21 14:25:16 +00:00
|
|
|
REQINCS1=REQINCS=-I $(XPDIST)/include/$(REQUIRES: = -I$(XPDIST^)/include/)
|
|
|
|
|
2001-09-29 09:01:54 +00:00
|
|
|
!if [echo $(REQINCS1) > reqincs.inc]
|
2001-09-06 03:49:50 +00:00
|
|
|
!endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
2001-09-29 23:09:15 +00:00
|
|
|
!endif
|
|
|
|
|
2001-09-06 03:49:50 +00:00
|
|
|
!include reqincs.inc
|
|
|
|
|
|
|
|
!if [del reqincs.inc]
|
|
|
|
!endif
|
|
|
|
|
2001-09-21 14:25:16 +00:00
|
|
|
!endif
|
|
|
|
|
2001-09-12 20:27:13 +00:00
|
|
|
INCS=$(INCS) -I$(XPDIST)\include $(REQINCS)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
2000-12-26 22:19:17 +00:00
|
|
|
CFLAGS=$(MOZ_JAVA_FLAG) -DEDITOR $(OS_CFLAGS) $(MOZ_CFLAGS)
|
1998-03-28 02:44:41 +00:00
|
|
|
!else
|
2000-12-26 22:19:17 +00:00
|
|
|
CFLAGS=$(MOZ_JAVA_FLAG) $(OS_CFLAGS) $(MOZ_CFLAGS)
|
1998-03-28 02:44:41 +00:00
|
|
|
!endif
|
1999-07-30 23:50:03 +00:00
|
|
|
|
2001-05-09 21:20:16 +00:00
|
|
|
IBMBIDI=1
|
2001-02-28 23:45:40 +00:00
|
|
|
CFLAGS=$(CFLAGS) -DIBMBIDI
|
|
|
|
|
2001-08-17 03:13:07 +00:00
|
|
|
!if "$(DISABLE_ACCESSIBILITY)" == "1"
|
|
|
|
!undef ACCESSIBILITY
|
|
|
|
!else
|
|
|
|
ACCESSIBILITY=1
|
|
|
|
CFLAGS=$(CFLAGS) -DACCESSIBILITY
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
LFLAGS=$(OS_LFLAGS) $(LLFLAGS) $(MOZ_LFLAGS)
|
|
|
|
|
|
|
|
# This compiles in heap dumping utilities and other good stuff
|
|
|
|
# for developers -- maybe we only want it in for a special SDK
|
|
|
|
# nspr/java runtime(?):
|
|
|
|
!if "$(MOZ_BITS)"=="32" || defined(MOZ_DEBUG)
|
|
|
|
CFLAGS = $(CFLAGS) -DDEVELOPER_DEBUG
|
|
|
|
!endif
|
|
|
|
|
1998-11-05 22:32:17 +00:00
|
|
|
!ifdef MOZ_BSCFILE
|
|
|
|
CFLAGS = $(CFLAGS) -FR
|
|
|
|
!endif
|
|
|
|
|
2001-05-05 10:18:53 +00:00
|
|
|
!ifdef NO_LOGGING
|
|
|
|
CFLAGS=$(CFLAGS) -DNS_DISABLE_LOGGING
|
|
|
|
!else
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_LOGGING
|
|
|
|
!endif
|
1999-07-30 23:50:03 +00:00
|
|
|
|
2001-06-20 20:21:49 +00:00
|
|
|
FINAL_LINK_COMPS=$(DIST)\final-link-comps
|
|
|
|
FINAL_LINK_COMP_NAMES=$(DIST)\final-link-comp-names
|
|
|
|
FINAL_LINK_LIBS=$(DIST)\final-link-libs
|
|
|
|
|
|
|
|
!ifdef MOZ_STATIC_COMPONENT_LIBS
|
|
|
|
# Force _all_ exported methods to be |_declspec(dllexport)| when we're
|
|
|
|
# building them into the executable.
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_APPSHELL
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_COOKIE
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_DOM
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_GFX
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_HTML
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_HTMLPARS
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_INTL
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_LAYOUT
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_MSG_BASE
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_NET
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_PICS
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_PLUGIN
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_RDF
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_VIEW
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_WEB
|
|
|
|
CFLAGS=$(CFLAGS) -D_IMPL_NS_WIDGET
|
|
|
|
!endif
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// feature-specific configuration settings
|
|
|
|
#//
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
|
1999-09-02 22:19:21 +00:00
|
|
|
# For modular netlib support.
|
|
|
|
CFLAGS=$(CFLAGS) -DNS_MT_SUPPORTED -DNETLIB_THREAD -DNS_NET_FILE
|
1998-05-23 01:38:10 +00:00
|
|
|
|
1999-04-05 20:32:11 +00:00
|
|
|
# Defines for cookie management feature...
|
|
|
|
CFLAGS=$(CFLAGS) -DCookieManagement
|
|
|
|
|
|
|
|
# Defines for single signon and client wallet features...
|
|
|
|
!ifndef MOZ_NO_WALLET_HACK
|
|
|
|
CFLAGS=$(CFLAGS) -DSingleSignon -DClientWallet
|
1998-07-20 18:40:09 +00:00
|
|
|
!endif
|
|
|
|
|
1998-09-11 02:43:05 +00:00
|
|
|
# TODO Cleanup later -Gagan
|
1998-10-20 13:51:11 +00:00
|
|
|
!ifdef NU_CACHE
|
1998-09-11 02:43:05 +00:00
|
|
|
CFLAGS=$(CFLAGS) -DNU_CACHE
|
|
|
|
!endif
|
1998-08-04 00:20:15 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
# always need these:
|
|
|
|
CFLAGS = $(CFLAGS) -DNETSCAPE
|
|
|
|
|
|
|
|
# Specify that we are building a client.
|
|
|
|
# This will instruct the cross platform libraries to
|
|
|
|
# include all the client specific cruft.
|
|
|
|
!if defined(SERVER_BUILD)
|
|
|
|
CFLAGS = $(CFLAGS) -DSERVER_BUILD
|
|
|
|
!elseif defined(LIVEWIRE)
|
|
|
|
CFLAGS = $(CFLAGS) -DLIVEWIRE
|
|
|
|
!else
|
|
|
|
CFLAGS = $(CFLAGS) -DMOZILLA_CLIENT
|
|
|
|
!endif
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
# need this everywhere jsapi.h might be included
|
|
|
|
CFLAGS=$(CFLAGS) -DJS_THREADSAFE
|
|
|
|
|
|
|
|
!if "$(STAND_ALONE_JAVA)" == "1"
|
|
|
|
CFLAGS=$(CFLAGS) -DSTAND_ALONE_JAVA
|
|
|
|
!endif
|
|
|
|
|
|
|
|
NECKO=1
|
|
|
|
CFLAGS=$(CFLAGS) -DNECKO
|
|
|
|
|
2000-07-19 03:36:27 +00:00
|
|
|
|
|
|
|
!if defined(XPCOM_STANDALONE)
|
|
|
|
CFLAGS=$(CFLAGS) -DXPCOM_STANDALONE
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if defined(XPCONNECT_STANDALONE)
|
|
|
|
CFLAGS=$(CFLAGS) -DXPCONNECT_STANDALONE
|
|
|
|
!endif
|
|
|
|
|
1999-10-19 22:37:53 +00:00
|
|
|
# Enable output of performance metrics if MOZ_PERF is set
|
|
|
|
!ifdef MOZ_PERF
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_PERF_METRICS
|
|
|
|
!endif
|
|
|
|
|
2001-08-17 02:03:34 +00:00
|
|
|
# Enable timeline service if MOZ_TIMELINE is set
|
|
|
|
!ifdef MOZ_TIMELINE
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_TIMELINE
|
|
|
|
!endif
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
!ifndef MOZ_JAVA
|
|
|
|
MOZ_OJI = 1 # on by default now
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef MOZ_LIBTEST
|
|
|
|
MOZ_LIBTEST = 1
|
|
|
|
CFLAGS=$(CFLAGS) -DLAYPROBE_API
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef MOZ_JAVA
|
|
|
|
MOZ_JAVA_FLAG=-DJAVA
|
|
|
|
!ifdef MOZ_OJI
|
|
|
|
!error You can't define both MOZ_JAVA and MOZ_OJI anymore.
|
|
|
|
!endif
|
|
|
|
JAVA_OR_OJI = 1
|
|
|
|
JAVA_OR_NSJVM = 1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef NSJVM
|
|
|
|
JAVA_OR_NSJVM = 1
|
|
|
|
AWT_11 = 1 # always build awt 1.1 with nsjvm now
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef MOZ_OJI
|
|
|
|
CFLAGS=$(CFLAGS) -DOJI
|
|
|
|
JAVA_OR_OJI=1
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef SMART_MAIL
|
|
|
|
CFLAGS=$(CFLAGS) -DSMART_MAIL
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef MOZ_TRACE_XPCOM_REFCNT
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_TRACE_XPCOM_REFCNT
|
|
|
|
!endif
|
|
|
|
|
2001-01-25 22:54:05 +00:00
|
|
|
!ifdef MOZ_TRACE_MALLOC
|
|
|
|
CFLAGS=$(CFLAGS) -DNS_TRACE_MALLOC
|
|
|
|
!endif
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
!ifdef MOZ_SMOOTH_PROGRESS
|
|
|
|
CFLAGS=$(CFLAGS) -DSMOOTH_PROGRESS
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if defined(USE_STRING2)
|
|
|
|
CFLAGS = $(CFLAGS) -DUSE_STRING2
|
|
|
|
!endif
|
|
|
|
|
2001-02-22 03:01:34 +00:00
|
|
|
#!ifdef MOZ_XUL
|
|
|
|
MOZ_XUL=1
|
|
|
|
CFLAGS=$(CFLAGS) -DINCLUDE_XUL -DMOZ_XUL
|
|
|
|
#!endif
|
|
|
|
|
1999-10-28 22:17:13 +00:00
|
|
|
!ifdef MOZ_MATHML
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_MATHML
|
|
|
|
!endif
|
1999-07-30 23:50:03 +00:00
|
|
|
|
2000-04-01 14:38:51 +00:00
|
|
|
!ifdef MOZ_SVG
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_SVG
|
|
|
|
!endif
|
|
|
|
|
2001-03-14 01:05:07 +00:00
|
|
|
!ifdef MOZ_DEBUG
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_REFLOW_PERF -DMOZ_REFLOW_PERF_DSP
|
2000-04-21 14:59:47 +00:00
|
|
|
!endif
|
|
|
|
|
2001-03-19 23:21:52 +00:00
|
|
|
CFLAGS=$(CFLAGS) -DUSE_IMG2
|
1999-07-30 23:50:03 +00:00
|
|
|
|
2001-06-20 20:21:49 +00:00
|
|
|
!ifdef MOZ_STATIC_COMPONENT_LIBS
|
|
|
|
CFLAGS=$(CFLAGS) -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT -DMOZ_STATIC_COMPONENT_LIBS
|
|
|
|
!endif
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// build tools
|
|
|
|
#//
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
NMAKE=nmake -nologo -$(MAKEFLAGS)
|
|
|
|
|
2000-08-25 19:52:53 +00:00
|
|
|
# grab the perl from the user's path (probably need 5.005)
|
1999-02-18 22:51:05 +00:00
|
|
|
PERL = perl.exe
|
|
|
|
|
1999-07-07 20:30:58 +00:00
|
|
|
#if MOZILLA_OFFICIAL is set, then define splitsym
|
|
|
|
!if defined (MOZILLA_OFFICIAL)
|
|
|
|
SPLITSYM = $(MOZ_TOOLS)\bin\splitsym
|
|
|
|
!endif
|
|
|
|
|
1999-07-02 10:11:00 +00:00
|
|
|
# use find
|
2001-03-01 02:26:22 +00:00
|
|
|
!ifndef FIND
|
|
|
|
FIND = find.exe
|
|
|
|
!endif
|
1999-07-02 10:11:00 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
MASM = $(MOZ_TOOLS)\bin\ml.exe
|
|
|
|
|
1998-04-07 20:41:06 +00:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
1998-04-21 21:22:54 +00:00
|
|
|
MKDIR = $(DEPTH)\config\w95mkdir
|
1998-04-07 20:41:06 +00:00
|
|
|
QUIET =
|
|
|
|
!else
|
|
|
|
MKDIR = mkdir
|
|
|
|
QUIET=@
|
|
|
|
!endif
|
|
|
|
|
1999-04-20 07:24:42 +00:00
|
|
|
|
1998-04-07 20:41:06 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Include the OS dependent configuration information
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
include <$(DEPTH)/config/WIN$(MOZ_BITS)>
|
|
|
|
|
|
|
|
!ifdef MOZ_DEBUG
|
|
|
|
!ifdef USERNAME
|
|
|
|
CFLAGS = $(CFLAGS) -DDEBUG_$(USERNAME)
|
|
|
|
!endif
|
2001-02-09 22:28:31 +00:00
|
|
|
!endif
|
|
|
|
|
2001-02-07 02:19:29 +00:00
|
|
|
!if (defined(MOZ_COVERAGE) && !defined(MOZ_NO_COVERAGE)) || (defined(GLOWCODE) && defined(GLOWPROF) && "$(MOZ_BITS)"=="32")
|
|
|
|
CFLAGS = $(CFLAGS) /Gh
|
1998-07-09 16:33:15 +00:00
|
|
|
!endif
|
1998-03-28 02:44:41 +00:00
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Define the global make commands.
|
|
|
|
#//
|
|
|
|
#// MAKE_INSTALL - Copy a target to the distribution directory.
|
|
|
|
#//
|
|
|
|
#// MAKE_OBJDIRS - Create an object directory (if necessary).
|
|
|
|
#//
|
|
|
|
#// MAKE_MANGLE - Convert all long filenames into 8.3 names
|
|
|
|
#//
|
|
|
|
#// MAKE_UNMANGLE - Restore all long filenames
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
!if !defined(MOZ_SRC)
|
|
|
|
#enable builds on any drive if defined.
|
|
|
|
MOZ_SRC=y:
|
|
|
|
!endif
|
1999-08-18 02:24:07 +00:00
|
|
|
MAKE_INSTALL=$(QUIET)$(DEPTH)\config\makecopy.exe
|
1998-03-28 02:44:41 +00:00
|
|
|
MAKE_MANGLE=$(DEPTH)\config\mangle.exe
|
|
|
|
MAKE_UNMANGLE=if exist unmangle.bat call unmangle.bat
|
|
|
|
|
1999-08-06 13:45:09 +00:00
|
|
|
!if defined(MOZ_PURIFY)
|
|
|
|
# add #line directive to header files for purify
|
|
|
|
MKCPYFLAGS= -i
|
|
|
|
!endif
|
1999-07-30 23:50:03 +00:00
|
|
|
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Common Libraries
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
2000-02-21 20:19:14 +00:00
|
|
|
NSPR_VERSION=4
|
2000-02-15 14:35:15 +00:00
|
|
|
LIBNSPR=$(DIST)\lib\nspr$(NSPR_VERSION).lib $(DIST)\lib\plds$(NSPR_VERSION).lib $(DIST)\lib\plc$(NSPR_VERSION).lib
|
|
|
|
LIBPLC=$(DIST)\lib\plc$(NSPR_VERSION).lib
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
NSPRDIR = nsprpub
|
|
|
|
CFLAGS = $(CFLAGS) -DNSPR20
|
|
|
|
|
|
|
|
LIBJPEG=$(DIST)\lib\jpeg$(MOZ_BITS)$(VERSION_NUMBER).lib
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Windows-Specific Java Stuff
|
|
|
|
#//
|
|
|
|
#// (Is this used anymore? Even if it is should it be in config.mak?)
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
PATH_SEPARATOR = ;
|
|
|
|
|
1999-07-30 23:50:03 +00:00
|
|
|
!ifndef JAVA_HOME
|
|
|
|
JAVA_HOME=$(JDKHOME)
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
# where the bytecode will go
|
|
|
|
!if "$(AWT_11)" == "1"
|
1999-07-30 22:04:08 +00:00
|
|
|
JAVA_DESTPATH = $(MOZ_SRC)\mozilla\dist\classes11
|
1998-03-28 02:44:41 +00:00
|
|
|
!else
|
1999-07-30 22:04:08 +00:00
|
|
|
JAVA_DESTPATH = $(MOZ_SRC)\mozilla\dist\classes
|
1998-03-28 02:44:41 +00:00
|
|
|
!endif
|
|
|
|
|
|
|
|
# where the source are
|
1999-07-30 22:04:08 +00:00
|
|
|
DEFAULT_JAVA_SOURCEPATH = $(MOZ_SRC)\mozilla\sun-java\classsrc
|
1998-03-28 02:44:41 +00:00
|
|
|
!ifndef JAVA_SOURCEPATH
|
|
|
|
!if "$(AWT_11)" == "1"
|
1999-07-30 22:04:08 +00:00
|
|
|
JAVA_SOURCEPATH = $(MOZ_SRC)\mozilla\sun-java\classsrc11;$(DEFAULT_JAVA_SOURCEPATH)
|
1998-03-28 02:44:41 +00:00
|
|
|
!else
|
|
|
|
JAVA_SOURCEPATH = $(DEFAULT_JAVA_SOURCEPATH)
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
JAVA_PROG=$(MOZ_TOOLS)\bin\java.exe
|
|
|
|
#JAVA_PROG=$(DIST)\bin\java
|
|
|
|
|
1999-07-30 22:04:08 +00:00
|
|
|
JAVAC_ZIP=$(JAVA_HOME)\lib\classes.zip
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
ZIP_PROG = $(MOZ_TOOLS)\bin\zip
|
|
|
|
UNZIP_PROG = $(MOZ_TOOLS)\bin\unzip
|
1998-08-05 00:36:13 +00:00
|
|
|
ZIP_COMPR = 9
|
|
|
|
ZIP_FLAGS = -$(ZIP_COMPR)r
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
CFLAGS = $(CFLAGS) -DOS_HAS_DLL
|
|
|
|
|
|
|
|
DLL_SUFFIX = dll
|
|
|
|
LIB_SUFFIX = lib
|
|
|
|
|
|
|
|
!if "$(STAND_ALONE_JAVA)" == "1"
|
|
|
|
STAND_ALONE_JAVA_DLL_SUFFIX=s
|
|
|
|
!else
|
|
|
|
STAND_ALONE_JAVA_DLL_SUFFIX=
|
|
|
|
!endif
|
|
|
|
|
|
|
|
MOD_JRT=jrt$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_MM =mm$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_AWT=awt$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_AWTS=awt$(MOZ_BITS)$(VERSION_NUMBER)$(STAND_ALONE_JAVA_DLL_SUFFIX)
|
|
|
|
MOD_JIT=jit$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_JSJ=jsj$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_NET=net$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_JBN=jbn$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_NSC=nsc$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_JPW=jpw$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_JDB=jdb$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_ZPW=zpw$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MOD_CON=con$(MOZ_BITS)$(VERSION_NUMBER)
|
1998-06-03 00:37:20 +00:00
|
|
|
MOD_NPJ=npj$(MOZ_BITS)$(VERSION_NUMBER)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
JRTDLL=$(MOD_JRT).$(DLL_SUFFIX)
|
|
|
|
MMDLL =$(MOD_MM).$(DLL_SUFFIX)
|
|
|
|
AWTDLL=$(MOD_AWT).$(DLL_SUFFIX)
|
|
|
|
AWTSDLL=$(MOD_AWT)$(STAND_ALONE_JAVA_DLL_SUFFIX).$(DLL_SUFFIX)
|
|
|
|
JITDLL=$(MOD_JIT).$(DLL_SUFFIX)
|
|
|
|
JSJDLL=$(MOD_JSJ).$(DLL_SUFFIX)
|
|
|
|
NETDLL=$(MOD_NET).$(DLL_SUFFIX)
|
|
|
|
JBNDLL=$(MOD_JBN).$(DLL_SUFFIX)
|
|
|
|
NSCDLL=$(MOD_NSC).$(DLL_SUFFIX)
|
|
|
|
JPWDLL=$(MOD_JPW).$(DLL_SUFFIX)
|
|
|
|
JDBDLL=$(MOD_JDB).$(DLL_SUFFIX)
|
|
|
|
ZPWDLL=$(MOD_ZPW).$(DLL_SUFFIX)
|
|
|
|
CONDLL=$(MOD_CON).$(DLL_SUFFIX)
|
1998-06-03 00:37:20 +00:00
|
|
|
NPJDLL=$(MOD_NPJ).$(DLL_SUFFIX)
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
AWTLIB=$(DIST)\lib\$(MOD_AWT).$(LIB_SUFFIX)
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
include <$(DEPTH)/config/common.mk>
|
|
|
|
|
|
|
|
JAVA_DEFINES = \
|
|
|
|
-DJAR_NAME=\"$(JAR_NAME)\" \
|
|
|
|
-DJRTDLL=\"$(JRTDLL)\" \
|
|
|
|
-DMMDLL=\"$(MMDLL)\" \
|
|
|
|
-DAWTDLL=\"$(AWTDLL)\" \
|
|
|
|
-DAWTSDLL=\"$(AWTSDLL)\" \
|
|
|
|
-DJSJDLL=\"$(JSJDLL)\" \
|
|
|
|
-DJITDLL=\"$(JITDLL)\" \
|
|
|
|
-DNETDLL=\"$(NETDLL)\" \
|
|
|
|
-DJBNDLL=\"$(JBNDLL)\" \
|
|
|
|
-DNSCDLL=\"$(NSCDLL)\" \
|
|
|
|
-DJDBDLL=\"$(JDBDLL)\" \
|
|
|
|
-DJPWDLL=\"$(JPWDLL)\" \
|
|
|
|
-DZPWDLL=\"$(ZPWDLL)\" \
|
|
|
|
-DCONDLL=\"$(CONDLL)\"
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
|
|
|
|
|
|
# Override JAVA_DEFINES to make command line short for win16.
|
|
|
|
# Put any new defines into javadefs.h in ns/sun-java/include.
|
|
|
|
# This is to shorten the command line in order not to break Win16.
|
|
|
|
|
|
|
|
JAVA_DEFINES = -DJAR_NAME=\"$(JAR_NAME)\" -DMOZ_BITS=\"$(MOZ_BITS)\" -DVERSION_NUMBER=\"$(VERSION_NUMBER)\" -DDLL_SUFFIX=\".$(DLL_SUFFIX)\"
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
1998-06-06 16:50:16 +00:00
|
|
|
!if "$(AWT_11)" == "1"
|
|
|
|
JAVA_DEFINES = $(JAVA_DEFINES) -DAWT_11
|
|
|
|
!else
|
|
|
|
JAVA_DEFINES = $(JAVA_DEFINES) -DAWT_102
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
|
|
|
|
#JAVA_CLASSPATH = $(JAVA_CLASSPATH:/=\)
|
|
|
|
JMCSRCDIR = $(JMCSRCDIR:/=\)
|
|
|
|
JAVA_BOOT_CLASSPATH = $(JAVA_BOOT_CLASSPATH:/=\)
|
|
|
|
|
|
|
|
|
|
|
|
########
|
|
|
|
# Get the cwd to prepend to all compiled source
|
|
|
|
# files. Will allow debugger to automatically find sources
|
|
|
|
# instead of asking for the path info.
|
|
|
|
# Win16 will break if enabled, guess we continue to live in pain
|
|
|
|
# therein.
|
|
|
|
########
|
|
|
|
!if "$(MOZ_BITS)" == "32"
|
|
|
|
CURDIR=$(MAKEDIR)^\
|
|
|
|
!endif
|
|
|
|
|
1999-08-24 14:42:37 +00:00
|
|
|
XPIDL_PROG=$(DIST)\bin\xpidl.exe
|
|
|
|
XPTLINK_PROG=$(DIST)\bin\xpt_link.exe
|
1999-04-26 04:35:41 +00:00
|
|
|
|
1999-05-10 18:49:20 +00:00
|
|
|
# XXX If you change this name, be _sure_ to update rules.mak;
|
|
|
|
# specifically, the rules that compute XPIDL_HEADERS and
|
|
|
|
# XPIDL_TYPELIBS. 'nmake' is too dumb to allow recursive macro
|
|
|
|
# substitution.
|
|
|
|
|
|
|
|
XPIDL_GEN_DIR=.\_xpidlgen
|
|
|
|
|
2000-09-14 04:45:15 +00:00
|
|
|
#MOZ_DISABLE_JAR_PACKAGING=1 # temporary
|
|
|
|
|
1998-03-28 02:44:41 +00:00
|
|
|
!endif # CONFIG_CONFIG_MAK
|
|
|
|
|