3586N/A# Copyright (c) 2006, 2012, Oracle
and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
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# 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# 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.
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A# The common definitions for hotspot windows builds.
0N/A# Include the top level
defs.make under make directory instead of this one.
427N/A# On windows it is only used to construct parameters for
0N/A# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
1518N/Aifeq ($(ARCH_DATA_MODEL),32)
1518N/A MAKE_ARGS += BUILDARCH=i486
1518N/A MAKE_ARGS += Platform_arch=x86
1518N/A MAKE_ARGS += Platform_arch_model=x86_32
0N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),)
0N/A PLATFORM=windows-i586
0N/A VM_PLATFORM=windows_i486
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
1518N/Aifneq ($(ARCH_DATA_MODEL),32)
1518N/A ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),)
1518N/A MAKE_ARGS += BUILDARCH=ia64
1518N/A MAKE_ARGS += Platform_arch=ia64
1518N/A MAKE_ARGS += Platform_arch_model=ia64
1405N/A# AMD64 for AMD, or EM64T for Intel chips.
1518N/A ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),)
1518N/A MAKE_ARGS += BUILDARCH=amd64
1518N/A MAKE_ARGS += Platform_arch=x86
1518N/A MAKE_ARGS += Platform_arch_model=x86_64
1477N/Aifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) EM64T),)
1518N/A MAKE_ARGS += BUILDARCH=amd64
1518N/A MAKE_ARGS += Platform_arch=x86
1518N/A MAKE_ARGS += Platform_arch_model=x86_64
1405N/A# NB later OS versions than 2003 may report "Intel64"
1518N/A ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) Intel64),)
1518N/A MAKE_ARGS += BUILDARCH=amd64
1518N/A MAKE_ARGS += Platform_arch=x86
1518N/A MAKE_ARGS += Platform_arch_model=x86_64
0N/AJDK_INCLUDE_SUBDIR=win32
427N/A# HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
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/Aifdef COOKED_JDK_UPDATE_VERSION
0N/A MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
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/ANMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
0N/Aifneq (,$(findstring CYGWIN,$(shell uname)))
0N/A# FIXUP: The subdirectory for a debug build is NOT the same on all platforms
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/Aifeq ($(USING_CYGWIN), true)
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/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/Aifneq ($(ALT_BUILD_WIN_SA),)
0N/A BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
0N/Aifeq ($(BUILD_WIN_SA), 1)
0N/AEXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
2671N/AEXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
2671N/AEXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
2796N/AEXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.$(LIBRARY_SUFFIX)
0N/Aifeq ($(ARCH_DATA_MODEL), 32)
2796N/A EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.$(LIBRARY_SUFFIX)
2796N/A EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.$(LIBRARY_SUFFIX)
0N/Aifeq ($(BUILD_WIN_SA), 1)
2796N/A EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.$(LIBRARY_SUFFIX)
0N/A # Must pass this down to nmake.
0N/A MAKE_ARGS += BUILD_WIN_SA=1