defs.make revision 427
0N/A#
196N/A# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A# CA 95054 USA or visit www.sun.com if you need additional information or
0N/A# have any questions.
0N/A#
0N/A#
0N/A
0N/A# The common definitions for hotspot windows builds.
0N/A# Include the top level defs.make under make directory instead of this one.
0N/A# This file is included into make/defs.make.
427N/A# On windows it is only used to construct parameters for
91N/A# make/windows/build.make when make/Makefile is used to build VM.
0N/A
0N/ASLASH_JAVA ?= J:
0N/APATH_SEP = ;
0N/A
0N/A# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
0N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),)
0N/A ARCH_DATA_MODEL=32
0N/A PLATFORM=windows-i586
0N/A VM_PLATFORM=windows_i486
0N/A HS_ARCH=x86
0N/A MAKE_ARGS += ARCH=x86
0N/A MAKE_ARGS += BUILDARCH=i486
0N/A MAKE_ARGS += Platform_arch=x86
0N/A MAKE_ARGS += Platform_arch_model=x86_32
0N/Aendif
0N/A
0N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),)
0N/A ARCH_DATA_MODEL=64
0N/A PLATFORM=windows-ia64
0N/A VM_PLATFORM=windows_ia64
0N/A HS_ARCH=ia64
0N/A MAKE_ARGS += LP64=1
0N/A MAKE_ARGS += ARCH=ia64
0N/A MAKE_ARGS += BUILDARCH=ia64
0N/A MAKE_ARGS += Platform_arch=ia64
0N/A MAKE_ARGS += Platform_arch_model=ia64
0N/Aendif
0N/A
0N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),)
0N/A ARCH_DATA_MODEL=64
0N/A PLATFORM=windows-amd64
0N/A VM_PLATFORM=windows_amd64
0N/A HS_ARCH=x86
0N/A MAKE_ARGS += LP64=1
0N/A MAKE_ARGS += ARCH=x86
0N/A MAKE_ARGS += BUILDARCH=amd64
0N/A MAKE_ARGS += Platform_arch=x86
0N/A MAKE_ARGS += Platform_arch_model=x86_64
0N/Aendif
0N/A
0N/AJDK_INCLUDE_SUBDIR=win32
0N/A
427N/A# HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
0N/A# and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
0N/A
0N/A# next parameters are defined in $(GAMMADIR)/make/defs.make.
0N/AMAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
0N/AMAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
0N/AMAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
0N/AMAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
0N/A
0N/Aifdef COOKED_JDK_UPDATE_VERSION
0N/A MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
0N/Aendif
0N/A
0N/A# COOKED_BUILD_NUMBER should only be set if we have a numeric
0N/A# build number. It must not be zero padded.
0N/Aifdef COOKED_BUILD_NUMBER
0N/A MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
0N/Aendif
0N/A
0N/ANMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
0N/A
0N/A# Check for CYGWIN
0N/Aifneq (,$(findstring CYGWIN,$(shell uname)))
0N/A USING_CYGWIN=true
0N/Aelse
0N/A USING_CYGWIN=false
0N/Aendif
0N/A# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
0N/AVM_DEBUG=debug
0N/A
0N/A# Windows wants particular paths due to nmake (must be after macros defined)
0N/A# It is important that gnumake invokes nmake with C:\\...\\ formated
0N/A# strings so that nmake gets C:\...\ style strings.
0N/A# Check for CYGWIN
0N/Aifeq ($(USING_CYGWIN), true)
0N/A ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
0N/A ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
0N/A ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
271N/A ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
0N/Aelse
0N/A ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
0N/A ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
0N/A ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
91N/A ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
0N/Aendif
0N/A
0N/A# Disable building SA on windows until we are sure
0N/A# we want to release it. If we build it here,
0N/A# the SDK makefiles will copy it over and put it into
0N/A# the created image.
0N/ABUILD_WIN_SA = 0
0N/Aifneq ($(ALT_BUILD_WIN_SA),)
0N/A BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
0N/Aendif
0N/A
0N/Aifeq ($(BUILD_WIN_SA), 1)
427N/A ifeq ($(ARCH),ia64)
0N/A BUILD_WIN_SA = 0
0N/A endif
0N/Aendif
0N/A
0N/AEXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
0N/AEXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
0N/AEXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll
0N/AEXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb
0N/AEXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map
0N/AEXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib
0N/Aifeq ($(ARCH_DATA_MODEL), 32)
0N/A EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
0N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
0N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll
0N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb
0N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map
0N/A # kernel vm
0N/A EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
0N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt
0N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll
0N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb
0N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map
0N/Aendif
0N/A
0N/Aifeq ($(BUILD_WIN_SA), 1)
0N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll
0N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb
0N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map
427N/A EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
0N/A # Must pass this down to nmake.
0N/A MAKE_ARGS += BUILD_WIN_SA=1
0N/Aendif