Thu, 11 Nov 2010 23:17:26 -0800
Added tag hs20-b02 for changeset 3ef7426b4dea
duke@435 | 1 | # |
trims@1907 | 2 | # Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved. |
duke@435 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@435 | 4 | # |
duke@435 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@435 | 6 | # under the terms of the GNU General Public License version 2 only, as |
duke@435 | 7 | # published by the Free Software Foundation. |
duke@435 | 8 | # |
duke@435 | 9 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@435 | 10 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@435 | 11 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@435 | 12 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@435 | 13 | # accompanied this code). |
duke@435 | 14 | # |
duke@435 | 15 | # You should have received a copy of the GNU General Public License version |
duke@435 | 16 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@435 | 17 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@435 | 18 | # |
trims@1907 | 19 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | # or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | # questions. |
duke@435 | 22 | # |
duke@435 | 23 | # |
duke@435 | 24 | |
duke@435 | 25 | # The common definitions for hotspot windows builds. |
duke@435 | 26 | # Include the top level defs.make under make directory instead of this one. |
duke@435 | 27 | # This file is included into make/defs.make. |
tbell@862 | 28 | # On windows it is only used to construct parameters for |
kamg@526 | 29 | # make/windows/build.make when make/Makefile is used to build VM. |
duke@435 | 30 | |
duke@435 | 31 | SLASH_JAVA ?= J: |
duke@435 | 32 | PATH_SEP = ; |
duke@435 | 33 | |
duke@435 | 34 | # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name |
prr@1953 | 35 | ifeq ($(ARCH_DATA_MODEL),32) |
prr@1953 | 36 | ARCH_DATA_MODEL=32 |
prr@1953 | 37 | PLATFORM=windows-i586 |
prr@1953 | 38 | VM_PLATFORM=windows_i486 |
prr@1953 | 39 | HS_ARCH=x86 |
prr@1953 | 40 | MAKE_ARGS += ARCH=x86 |
prr@1953 | 41 | MAKE_ARGS += BUILDARCH=i486 |
prr@1953 | 42 | MAKE_ARGS += Platform_arch=x86 |
prr@1953 | 43 | MAKE_ARGS += Platform_arch_model=x86_32 |
prr@1953 | 44 | endif |
prr@1953 | 45 | |
duke@435 | 46 | ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) x86),) |
duke@435 | 47 | ARCH_DATA_MODEL=32 |
duke@435 | 48 | PLATFORM=windows-i586 |
duke@435 | 49 | VM_PLATFORM=windows_i486 |
duke@435 | 50 | HS_ARCH=x86 |
duke@435 | 51 | MAKE_ARGS += ARCH=x86 |
duke@435 | 52 | MAKE_ARGS += BUILDARCH=i486 |
duke@435 | 53 | MAKE_ARGS += Platform_arch=x86 |
duke@435 | 54 | MAKE_ARGS += Platform_arch_model=x86_32 |
duke@435 | 55 | endif |
duke@435 | 56 | |
prr@1953 | 57 | ifneq ($(ARCH_DATA_MODEL),32) |
prr@1953 | 58 | ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) ia64),) |
prr@1953 | 59 | ARCH_DATA_MODEL=64 |
prr@1953 | 60 | PLATFORM=windows-ia64 |
prr@1953 | 61 | VM_PLATFORM=windows_ia64 |
prr@1953 | 62 | HS_ARCH=ia64 |
prr@1953 | 63 | MAKE_ARGS += LP64=1 |
prr@1953 | 64 | MAKE_ARGS += ARCH=ia64 |
prr@1953 | 65 | MAKE_ARGS += BUILDARCH=ia64 |
prr@1953 | 66 | MAKE_ARGS += Platform_arch=ia64 |
prr@1953 | 67 | MAKE_ARGS += Platform_arch_model=ia64 |
prr@1953 | 68 | endif |
duke@435 | 69 | |
prr@1840 | 70 | # http://support.microsoft.com/kb/888731 : this can be either |
prr@1840 | 71 | # AMD64 for AMD, or EM64T for Intel chips. |
prr@1953 | 72 | ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) AMD64),) |
prr@1953 | 73 | ARCH_DATA_MODEL=64 |
prr@1953 | 74 | PLATFORM=windows-amd64 |
prr@1953 | 75 | VM_PLATFORM=windows_amd64 |
prr@1953 | 76 | HS_ARCH=x86 |
prr@1953 | 77 | MAKE_ARGS += LP64=1 |
prr@1953 | 78 | MAKE_ARGS += ARCH=x86 |
prr@1953 | 79 | MAKE_ARGS += BUILDARCH=amd64 |
prr@1953 | 80 | MAKE_ARGS += Platform_arch=x86 |
prr@1953 | 81 | MAKE_ARGS += Platform_arch_model=x86_64 |
prr@1953 | 82 | endif |
duke@435 | 83 | |
prr@1912 | 84 | ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) EM64T),) |
prr@1953 | 85 | ARCH_DATA_MODEL=64 |
prr@1953 | 86 | PLATFORM=windows-amd64 |
prr@1953 | 87 | VM_PLATFORM=windows_amd64 |
prr@1953 | 88 | HS_ARCH=x86 |
prr@1953 | 89 | MAKE_ARGS += LP64=1 |
prr@1953 | 90 | MAKE_ARGS += ARCH=x86 |
prr@1953 | 91 | MAKE_ARGS += BUILDARCH=amd64 |
prr@1953 | 92 | MAKE_ARGS += Platform_arch=x86 |
prr@1953 | 93 | MAKE_ARGS += Platform_arch_model=x86_64 |
prr@1953 | 94 | endif |
prr@1912 | 95 | |
prr@1840 | 96 | # NB later OS versions than 2003 may report "Intel64" |
prr@1953 | 97 | ifneq ($(shell $(ECHO) $(PROCESSOR_IDENTIFIER) | $(GREP) Intel64),) |
prr@1953 | 98 | ARCH_DATA_MODEL=64 |
prr@1953 | 99 | PLATFORM=windows-amd64 |
prr@1953 | 100 | VM_PLATFORM=windows_amd64 |
prr@1953 | 101 | HS_ARCH=x86 |
prr@1953 | 102 | MAKE_ARGS += LP64=1 |
prr@1953 | 103 | MAKE_ARGS += ARCH=x86 |
prr@1953 | 104 | MAKE_ARGS += BUILDARCH=amd64 |
prr@1953 | 105 | MAKE_ARGS += Platform_arch=x86 |
prr@1953 | 106 | MAKE_ARGS += Platform_arch_model=x86_64 |
prr@1953 | 107 | endif |
prr@1840 | 108 | endif |
prr@1840 | 109 | |
duke@435 | 110 | JDK_INCLUDE_SUBDIR=win32 |
duke@435 | 111 | |
tbell@862 | 112 | # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined |
duke@435 | 113 | # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make. |
duke@435 | 114 | |
duke@435 | 115 | # next parameters are defined in $(GAMMADIR)/make/defs.make. |
duke@435 | 116 | MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION) |
duke@435 | 117 | MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION) |
duke@435 | 118 | MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION) |
duke@435 | 119 | MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION) |
duke@435 | 120 | |
duke@435 | 121 | ifdef COOKED_JDK_UPDATE_VERSION |
duke@435 | 122 | MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION) |
duke@435 | 123 | endif |
duke@435 | 124 | |
duke@435 | 125 | # COOKED_BUILD_NUMBER should only be set if we have a numeric |
duke@435 | 126 | # build number. It must not be zero padded. |
duke@435 | 127 | ifdef COOKED_BUILD_NUMBER |
duke@435 | 128 | MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER) |
duke@435 | 129 | endif |
duke@435 | 130 | |
duke@435 | 131 | NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO |
duke@435 | 132 | |
duke@435 | 133 | # Check for CYGWIN |
duke@435 | 134 | ifneq (,$(findstring CYGWIN,$(shell uname))) |
duke@435 | 135 | USING_CYGWIN=true |
duke@435 | 136 | else |
duke@435 | 137 | USING_CYGWIN=false |
duke@435 | 138 | endif |
duke@435 | 139 | # FIXUP: The subdirectory for a debug build is NOT the same on all platforms |
duke@435 | 140 | VM_DEBUG=debug |
duke@435 | 141 | |
duke@435 | 142 | # Windows wants particular paths due to nmake (must be after macros defined) |
duke@435 | 143 | # It is important that gnumake invokes nmake with C:\\...\\ formated |
duke@435 | 144 | # strings so that nmake gets C:\...\ style strings. |
duke@435 | 145 | # Check for CYGWIN |
duke@435 | 146 | ifeq ($(USING_CYGWIN), true) |
duke@435 | 147 | ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)")) |
duke@435 | 148 | ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)")) |
duke@435 | 149 | ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)")) |
jmasa@706 | 150 | ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make |
duke@435 | 151 | else |
duke@435 | 152 | ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD))) |
duke@435 | 153 | ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD))) |
duke@435 | 154 | ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD))) |
kamg@526 | 155 | ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make) |
duke@435 | 156 | endif |
duke@435 | 157 | |
duke@435 | 158 | # Disable building SA on windows until we are sure |
duke@435 | 159 | # we want to release it. If we build it here, |
duke@435 | 160 | # the SDK makefiles will copy it over and put it into |
duke@435 | 161 | # the created image. |
poonam@891 | 162 | BUILD_WIN_SA = 1 |
duke@435 | 163 | ifneq ($(ALT_BUILD_WIN_SA),) |
duke@435 | 164 | BUILD_WIN_SA = $(ALT_BUILD_WIN_SA) |
duke@435 | 165 | endif |
duke@435 | 166 | |
duke@435 | 167 | ifeq ($(BUILD_WIN_SA), 1) |
tbell@862 | 168 | ifeq ($(ARCH),ia64) |
duke@435 | 169 | BUILD_WIN_SA = 0 |
duke@435 | 170 | endif |
duke@435 | 171 | endif |
duke@435 | 172 | |
duke@435 | 173 | EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server |
duke@435 | 174 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt |
duke@435 | 175 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.dll |
duke@435 | 176 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb |
duke@435 | 177 | EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map |
duke@435 | 178 | EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib |
duke@435 | 179 | ifeq ($(ARCH_DATA_MODEL), 32) |
duke@435 | 180 | EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client |
duke@435 | 181 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt |
duke@435 | 182 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.dll |
duke@435 | 183 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb |
duke@435 | 184 | EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map |
duke@435 | 185 | # kernel vm |
duke@435 | 186 | EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel |
duke@435 | 187 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt |
duke@435 | 188 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.dll |
duke@435 | 189 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb |
duke@435 | 190 | EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map |
duke@435 | 191 | endif |
duke@435 | 192 | |
duke@435 | 193 | ifeq ($(BUILD_WIN_SA), 1) |
duke@435 | 194 | EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.dll |
duke@435 | 195 | EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb |
duke@435 | 196 | EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map |
tbell@862 | 197 | EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar |
duke@435 | 198 | # Must pass this down to nmake. |
duke@435 | 199 | MAKE_ARGS += BUILD_WIN_SA=1 |
duke@435 | 200 | endif |