1998-03-28 05:44:41 +03:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
!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-14 23:32:20 +04:00
|
|
|
!if !defined(WINOS)
|
1998-04-08 00:41:06 +04:00
|
|
|
!if [$(MOZ_TOOLS)\bin\uname > osuname.inc]
|
|
|
|
!endif
|
|
|
|
WINOS=\
|
|
|
|
!include "osuname.inc"
|
|
|
|
WINOS=$(WINOS: =)^
|
|
|
|
|
|
|
|
!if [del osuname.inc]
|
|
|
|
!endif
|
1999-07-14 23:30:50 +04:00
|
|
|
!endif
|
1998-04-08 00:41:06 +04:00
|
|
|
|
1998-09-30 06:07:26 +04:00
|
|
|
# need this everywhere jsapi.h might be included
|
|
|
|
LCFLAGS=$(LCFLAGS) -DJS_THREADSAFE
|
|
|
|
|
1998-08-01 03:41:45 +04:00
|
|
|
!if "$(STAND_ALONE_JAVA)" == "1"
|
|
|
|
LCFLAGS=$(LCFLAGS) -DSTAND_ALONE_JAVA
|
|
|
|
!endif
|
|
|
|
|
1999-06-18 21:34:08 +04:00
|
|
|
!ifdef NECKO
|
|
|
|
LCFLAGS=$(LCFLAGS) -DNECKO
|
|
|
|
!endif
|
|
|
|
|
1998-08-05 04:36:13 +04:00
|
|
|
!ifndef MOZ_JAVA
|
|
|
|
MOZ_OJI = 1 # on by default now
|
|
|
|
!endif
|
|
|
|
|
1998-09-22 01:43:38 +04:00
|
|
|
!ifdef MOZ_LIBTEST
|
|
|
|
MOZ_LIBTEST = 1
|
|
|
|
LCFLAGS=$(LCFLAGS) -DLAYPROBE_API
|
|
|
|
!endif
|
|
|
|
|
1998-08-01 03:41:45 +04:00
|
|
|
!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
|
1998-09-01 04:16:53 +04:00
|
|
|
AWT_11 = 1 # always build awt 1.1 with nsjvm now
|
1998-08-01 03:41:45 +04:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifdef MOZ_OJI
|
|
|
|
LCFLAGS=$(LCFLAGS) -DOJI
|
|
|
|
JAVA_OR_OJI=1
|
|
|
|
!endif
|
|
|
|
|
1998-08-04 02:21:58 +04:00
|
|
|
!ifdef SMART_MAIL
|
|
|
|
LCFLAGS=$(LCFLAGS) -DSMART_MAIL
|
|
|
|
!endif
|
|
|
|
|
1998-09-12 23:35:20 +04:00
|
|
|
!ifdef MOZ_TRACE_XPCOM_REFCNT
|
|
|
|
LCFLAGS=$(LCFLAGS) -DMOZ_TRACE_XPCOM_REFCNT
|
|
|
|
!endif
|
|
|
|
|
1998-10-09 08:33:07 +04:00
|
|
|
!ifdef MOZ_SMOOTH_PROGRESS
|
|
|
|
LCFLAGS=$(LCFLAGS) -DSMOOTH_PROGRESS
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
XPDIST=$(DEPTH)\dist
|
1999-06-12 08:30:44 +04:00
|
|
|
PUBLIC=$(XPDIST)\include
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
#// OBJDIR is NOT the same as DIST for Win16. The Win16 dist stuff can
|
|
|
|
#// be built with EXE or DLL compiler flags, but the DIST directory
|
|
|
|
#// has the same name no matter what
|
|
|
|
#//-----------------------------------------------------------------------
|
|
|
|
|
1998-06-05 05:03:18 +04:00
|
|
|
|
|
|
|
!ifdef NGLAYOUT_BUILD_PREFIX
|
|
|
|
DIST_PREFIX=NGL
|
|
|
|
!else
|
1998-03-28 05:44:41 +03:00
|
|
|
!ifdef MOZ_NAV_BUILD_PREFIX
|
|
|
|
DIST_PREFIX=NAV
|
|
|
|
!else
|
|
|
|
DIST_PREFIX=WIN
|
|
|
|
!endif
|
1998-06-05 05:03:18 +04:00
|
|
|
!endif
|
1998-03-28 05:44:41 +03: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 05:03:18 +04: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
|
|
|
|
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
CFGFILE=$(OBJDIR)\cmd.cfg
|
|
|
|
|
1999-06-12 08:30:44 +04:00
|
|
|
INCS=$(INCS) -I$(PUBLIC) -I$(DIST)\include -I$(DEPTH)\include
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
# Perhaps we should add MOZ_LITENESS_FLAGS to 16 bit build
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
1998-10-06 02:15:43 +04:00
|
|
|
CFLAGS=$(MOZ_JAVA_FLAG) -DLAYERS -DEDITOR $(OS_CFLAGS) $(MOZ_CFLAGS)
|
1998-03-28 05:44:41 +03:00
|
|
|
!else
|
1998-10-06 02:15:43 +04:00
|
|
|
CFLAGS=$(MOZ_JAVA_FLAG) -DLAYERS $(OS_CFLAGS) $(MOZ_CFLAGS) $(MOZ_LITENESS_FLAGS)
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif
|
|
|
|
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-06 01:32:17 +03:00
|
|
|
!ifdef MOZ_BSCFILE
|
|
|
|
CFLAGS = $(CFLAGS) -FR
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
!ifdef STANDALONE_IMAGE_LIB
|
|
|
|
CFLAGS=$(CFLAGS) -DSTANDALONE_IMAGE_LIB
|
|
|
|
!endif
|
|
|
|
|
1999-01-15 22:33:17 +03:00
|
|
|
# Switching off NuCache for now...
|
|
|
|
# !ifndef NO_NU_CACHE
|
|
|
|
# NU_CACHE = 1
|
|
|
|
# CFLAGS=$(CFLAGS) -DNU_CACHE
|
|
|
|
# !endif
|
1998-12-01 07:43:46 +03:00
|
|
|
|
1998-11-24 03:16:43 +03:00
|
|
|
# Crash-reporting system. http://www.fullcirclesoftware.com
|
|
|
|
!ifdef MOZ_FULLCIRCLE
|
|
|
|
CFLAGS=$(CFLAGS) -DMOZ_FULLCIRCLE
|
|
|
|
!endif
|
|
|
|
|
1998-05-23 05:38:10 +04:00
|
|
|
!ifdef MODULAR_NETLIB
|
1999-04-06 00:32:11 +04:00
|
|
|
CFLAGS=$(CFLAGS) -DMODULAR_NETLIB -DNS_MT_SUPPORTED -DNETLIB_THREAD -DNS_NET_FILE
|
1998-05-23 05:38:10 +04:00
|
|
|
!endif
|
|
|
|
|
1999-07-02 17:49:17 +04:00
|
|
|
# Defines for new Drag and Drop for toolbars
|
1999-07-02 20:39:39 +04:00
|
|
|
#CFLAGS=$(CFLAGS) -DTOOLBAR_DD
|
1999-07-02 17:49:17 +04:00
|
|
|
|
1999-04-06 00:32:11 +04: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 22:40:09 +04:00
|
|
|
!endif
|
|
|
|
|
1998-09-11 06:43:05 +04:00
|
|
|
# TODO Cleanup later -Gagan
|
1998-10-20 17:51:11 +04:00
|
|
|
!ifdef NU_CACHE
|
1998-09-11 06:43:05 +04:00
|
|
|
CFLAGS=$(CFLAGS) -DNU_CACHE
|
|
|
|
!endif
|
1998-08-04 04:20:15 +04:00
|
|
|
|
1998-03-28 05:44:41 +03: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-02-19 01:51:05 +03:00
|
|
|
# use whatever perl is in the path. we don't need to hardcode it
|
|
|
|
# unless, of course it exists in the hardcoded places
|
|
|
|
!if exist($(MOZ_TOOLS)\perl5\bin\perl.exe)
|
|
|
|
PERL = $(MOZ_TOOLS)\perl5\bin\perl.exe
|
|
|
|
!elseif exist($(MOZ_TOOLS)\perl5\perl.exe)
|
|
|
|
PERL = $(MOZ_TOOLS)\perl5\perl.exe
|
|
|
|
!else
|
|
|
|
PERL = perl.exe
|
|
|
|
!endif
|
|
|
|
|
1999-07-08 00:30:58 +04:00
|
|
|
#if MOZILLA_OFFICIAL is set, then define splitsym
|
|
|
|
!if defined (MOZILLA_OFFICIAL)
|
|
|
|
SPLITSYM = $(MOZ_TOOLS)\bin\splitsym
|
|
|
|
!endif
|
|
|
|
|
1999-07-02 14:11:00 +04:00
|
|
|
# use find
|
|
|
|
FIND = $(MOZ_TOOLS)\bin\find.exe
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
MASM = $(MOZ_TOOLS)\bin\ml.exe
|
|
|
|
|
1998-04-08 00:41:06 +04:00
|
|
|
!if "$(WINOS)" == "WIN95"
|
1998-04-22 01:22:54 +04:00
|
|
|
MKDIR = $(DEPTH)\config\w95mkdir
|
1998-04-08 00:41:06 +04:00
|
|
|
QUIET =
|
|
|
|
!else
|
|
|
|
MKDIR = mkdir
|
|
|
|
QUIET=@
|
|
|
|
!endif
|
|
|
|
|
1999-04-20 11:24:42 +04:00
|
|
|
!if defined(USE_STRING2)
|
|
|
|
CFLAGS = $(CFLAGS) -DUSE_STRING2
|
|
|
|
!endif
|
|
|
|
|
1998-04-08 00:41:06 +04:00
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Include the OS dependent configuration information
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
include <$(DEPTH)/config/WIN$(MOZ_BITS)>
|
|
|
|
|
|
|
|
!ifdef MOZ_DEBUG
|
|
|
|
!ifdef USERNAME
|
|
|
|
CFLAGS = $(CFLAGS) -DDEBUG_$(USERNAME)
|
|
|
|
!endif
|
1998-07-09 20:33:15 +04:00
|
|
|
!if defined(GLOWCODE) && defined(GLOWPROF) && "$(MOZ_BITS)"=="32"
|
|
|
|
CFLAGS = $(CFLAGS) -Gh
|
|
|
|
!endif
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// 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
|
1998-04-08 00:41:06 +04:00
|
|
|
MAKE_INSTALL=$(QUIET)$(DEPTH)\config\makecopy.exe
|
1998-03-28 05:44:41 +03:00
|
|
|
MAKE_MANGLE=$(DEPTH)\config\mangle.exe
|
|
|
|
MAKE_UNMANGLE=if exist unmangle.bat call unmangle.bat
|
|
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
|
|
#//
|
|
|
|
#// Common Libraries
|
|
|
|
#//
|
|
|
|
#//------------------------------------------------------------------------
|
1999-03-18 00:32:03 +03:00
|
|
|
LIBNSPR=$(DIST)\lib\nspr3.lib
|
1999-04-28 04:17:25 +04:00
|
|
|
LIBNSPR=$(LIBNSPR) $(DIST)\lib\plds3.lib $(DIST)\lib\plc3.lib
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
NSPRDIR = nsprpub
|
|
|
|
CFLAGS = $(CFLAGS) -DNSPR20
|
|
|
|
|
|
|
|
LIBJPEG=$(DIST)\lib\jpeg$(MOZ_BITS)$(VERSION_NUMBER).lib
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
### Windows-Specific Java Stuff
|
|
|
|
|
|
|
|
PATH_SEPARATOR = ;
|
|
|
|
|
|
|
|
# where the bytecode will go
|
|
|
|
!if "$(AWT_11)" == "1"
|
1998-04-22 01:22:54 +04:00
|
|
|
JAVA_DESTPATH = $(DEPTH)\dist\classes11
|
1998-03-28 05:44:41 +03:00
|
|
|
!else
|
1998-04-22 01:22:54 +04:00
|
|
|
JAVA_DESTPATH = $(DEPTH)\dist\classes
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif
|
|
|
|
|
|
|
|
# where the source are
|
1998-04-22 01:22:54 +04:00
|
|
|
DEFAULT_JAVA_SOURCEPATH = $(DEPTH)\sun-java\classsrc
|
1998-03-28 05:44:41 +03:00
|
|
|
!ifndef JAVA_SOURCEPATH
|
|
|
|
!if "$(AWT_11)" == "1"
|
1998-04-22 01:22:54 +04:00
|
|
|
JAVA_SOURCEPATH = $(DEPTH)\sun-java\classsrc11;$(DEFAULT_JAVA_SOURCEPATH)
|
1998-03-28 05:44:41 +03:00
|
|
|
!else
|
|
|
|
JAVA_SOURCEPATH = $(DEFAULT_JAVA_SOURCEPATH)
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
JAVA_PROG=$(MOZ_TOOLS)\bin\java.exe
|
|
|
|
#JAVA_PROG=$(DIST)\bin\java
|
|
|
|
|
|
|
|
JAVAC_ZIP=$(MOZ_TOOLS)/lib/javac.zip
|
|
|
|
|
|
|
|
ZIP_PROG = $(MOZ_TOOLS)\bin\zip
|
|
|
|
UNZIP_PROG = $(MOZ_TOOLS)\bin\unzip
|
1998-08-05 04:36:13 +04:00
|
|
|
ZIP_COMPR = 9
|
|
|
|
ZIP_FLAGS = -$(ZIP_COMPR)r
|
1998-03-28 05:44:41 +03: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 04:37:20 +04:00
|
|
|
MOD_NPJ=npj$(MOZ_BITS)$(VERSION_NUMBER)
|
1998-03-28 05:44:41 +03: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 04:37:20 +04:00
|
|
|
NPJDLL=$(MOD_NPJ).$(DLL_SUFFIX)
|
1998-03-28 05:44:41 +03: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 20:50:16 +04:00
|
|
|
!if "$(AWT_11)" == "1"
|
|
|
|
JAVA_DEFINES = $(JAVA_DEFINES) -DAWT_11
|
|
|
|
!else
|
|
|
|
JAVA_DEFINES = $(JAVA_DEFINES) -DAWT_102
|
|
|
|
!endif
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#JAVA_CLASSPATH = $(JAVA_CLASSPATH:/=\)
|
|
|
|
JMCSRCDIR = $(JMCSRCDIR:/=\)
|
|
|
|
JAVA_BOOT_CLASSPATH = $(JAVA_BOOT_CLASSPATH:/=\)
|
|
|
|
|
|
|
|
NMAKE=nmake -nologo -$(MAKEFLAGS)
|
|
|
|
|
|
|
|
########
|
|
|
|
# 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-04-26 08:35:41 +04:00
|
|
|
XPIDL_PROG=$(DIST)\bin\xpidl
|
|
|
|
XPTLINK_PROG=$(DIST)\bin\xpt_link
|
|
|
|
|
1999-05-10 22:49:20 +04: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
|
|
|
|
|
1998-03-28 05:44:41 +03:00
|
|
|
!endif # CONFIG_CONFIG_MAK
|
|
|
|
|