defs.make revision 456
0N/A#
31N/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.
87N/A# Include the top level defs.make under make directory instead of this one.
0N/A# This file is included into make/defs.make.
0N/A# On windows it is only used to construct parameters for
0N/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
87N/Aendif
87N/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
87N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),)
59N/A ARCH_DATA_MODEL=64
59N/A PLATFORM=windows-amd64
59N/A VM_PLATFORM=windows_amd64
59N/A HS_ARCH=x86
59N/A MAKE_ARGS += LP64=1
59N/A MAKE_ARGS += ARCH=x86
59N/A MAKE_ARGS += BUILDARCH=amd64
59N/A MAKE_ARGS += Platform_arch=x86
0N/A MAKE_ARGS += Platform_arch_model=x86_64
87N/Aendif
87N/A
87N/AJDK_INCLUDE_SUBDIR=win32
87N/A
87N/A# HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
87N/A# and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
87N/A
87N/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)
87N/AMAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
87N/AMAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
87N/A
87N/Aifdef COOKED_JDK_UPDATE_VERSION
87N/A MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
87N/Aendif
87N/A
87N/A# COOKED_BUILD_NUMBER should only be set if we have a numeric
87N/A# build number. It must not be zero padded.
87N/Aifdef COOKED_BUILD_NUMBER
87N/A MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
96N/Aendif
96N/A
96N/ANMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
96N/A
96N/A# Check for CYGWIN
96N/Aifneq (,$(findstring CYGWIN,$(shell uname)))
87N/A USING_CYGWIN=true
96N/Aelse
96N/A USING_CYGWIN=false
96N/Aendif
96N/A# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
96N/AVM_DEBUG=debug
87N/A
87N/A# Windows wants particular paths due to nmake (must be after macros defined)
96N/A# It is important that gnumake invokes nmake with C:\\...\\ formated
96N/A# strings so that nmake gets C:\...\ style strings.
87N/A# Check for CYGWIN
0N/Aifeq ($(USING_CYGWIN), true)
0N/A ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
87N/A ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
0N/A ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
0N/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)))
87N/A ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
87N/A ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
99N/Aendif
87N/A
0N/A# Disable building SA on windows until we are sure
87N/A# we want to release it. If we build it here,
87N/A# the SDK makefiles will copy it over and put it into
87N/A# the created image.
99N/ABUILD_WIN_SA = 1
87N/Aifneq ($(ALT_BUILD_WIN_SA),)
0N/A BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
0N/Aendif
0N/A
0N/Aifeq ($(BUILD_WIN_SA), 1)
0N/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
87N/Aifeq ($(ARCH_DATA_MODEL), 32)
0N/A EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
0N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
94N/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
99N/A EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
87N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt
87N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll
87N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb
87N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map
87N/Aendif
87N/A
87N/Aifeq ($(BUILD_WIN_SA), 1)
87N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll
87N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb
87N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map
87N/A EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
87N/A # Must pass this down to nmake.
87N/A MAKE_ARGS += BUILD_WIN_SA=1
87N/Aendif
87N/A