make/windows/makefiles/defs.make

Thu, 23 Feb 2012 14:58:35 +0100

author
mgerdin
date
Thu, 23 Feb 2012 14:58:35 +0100
changeset 3619
2d503de963b3
parent 3156
f08d439fab8c
child 3623
22d276ade3e1
permissions
-rw-r--r--

7148152: Add whitebox testing API to HotSpot
Summary: Add an internal testing API to HotSpot to enable more targeted testing of vm functionality
Reviewed-by: phh, dholmes

duke@435 1 #
mgerdin@3619 2 # Copyright (c) 2006, 2012, 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
never@3156 112 # Library suffix
never@3156 113 LIBRARY_SUFFIX=dll
never@3156 114
tbell@862 115 # HOTSPOT_RELEASE_VERSION and HOTSPOT_BUILD_VERSION are defined
duke@435 116 # and added to MAKE_ARGS list in $(GAMMADIR)/make/defs.make.
duke@435 117
duke@435 118 # next parameters are defined in $(GAMMADIR)/make/defs.make.
duke@435 119 MAKE_ARGS += JDK_MKTG_VERSION=$(JDK_MKTG_VERSION)
duke@435 120 MAKE_ARGS += JDK_MAJOR_VER=$(JDK_MAJOR_VERSION)
duke@435 121 MAKE_ARGS += JDK_MINOR_VER=$(JDK_MINOR_VERSION)
duke@435 122 MAKE_ARGS += JDK_MICRO_VER=$(JDK_MICRO_VERSION)
duke@435 123
duke@435 124 ifdef COOKED_JDK_UPDATE_VERSION
duke@435 125 MAKE_ARGS += JDK_UPDATE_VER=$(COOKED_JDK_UPDATE_VERSION)
duke@435 126 endif
duke@435 127
duke@435 128 # COOKED_BUILD_NUMBER should only be set if we have a numeric
duke@435 129 # build number. It must not be zero padded.
duke@435 130 ifdef COOKED_BUILD_NUMBER
duke@435 131 MAKE_ARGS += JDK_BUILD_NUMBER=$(COOKED_BUILD_NUMBER)
duke@435 132 endif
duke@435 133
duke@435 134 NMAKE= MAKEFLAGS= MFLAGS= nmake /NOLOGO
duke@435 135
duke@435 136 # Check for CYGWIN
duke@435 137 ifneq (,$(findstring CYGWIN,$(shell uname)))
duke@435 138 USING_CYGWIN=true
duke@435 139 else
duke@435 140 USING_CYGWIN=false
duke@435 141 endif
duke@435 142 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
duke@435 143 VM_DEBUG=debug
duke@435 144
duke@435 145 # Windows wants particular paths due to nmake (must be after macros defined)
duke@435 146 # It is important that gnumake invokes nmake with C:\\...\\ formated
duke@435 147 # strings so that nmake gets C:\...\ style strings.
duke@435 148 # Check for CYGWIN
duke@435 149 ifeq ($(USING_CYGWIN), true)
duke@435 150 ABS_OUTPUTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(OUTPUTDIR)"))
duke@435 151 ABS_BOOTDIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(BOOTDIR)"))
duke@435 152 ABS_GAMMADIR := $(subst /,\\,$(shell /bin/cygpath -m -a "$(GAMMADIR)"))
jmasa@706 153 ABS_OS_MAKEFILE := $(shell /bin/cygpath -m -a "$(HS_MAKE_DIR)/$(OSNAME)")/build.make
duke@435 154 else
duke@435 155 ABS_OUTPUTDIR := $(subst /,\\,$(shell $(CD) $(OUTPUTDIR);$(PWD)))
duke@435 156 ABS_BOOTDIR := $(subst /,\\,$(shell $(CD) $(BOOTDIR);$(PWD)))
duke@435 157 ABS_GAMMADIR := $(subst /,\\,$(shell $(CD) $(GAMMADIR);$(PWD)))
kamg@526 158 ABS_OS_MAKEFILE := $(subst /,\\,$(shell $(CD) $(HS_MAKE_DIR)/$(OSNAME);$(PWD))/build.make)
duke@435 159 endif
duke@435 160
duke@435 161 # Disable building SA on windows until we are sure
duke@435 162 # we want to release it. If we build it here,
duke@435 163 # the SDK makefiles will copy it over and put it into
duke@435 164 # the created image.
poonam@891 165 BUILD_WIN_SA = 1
duke@435 166 ifneq ($(ALT_BUILD_WIN_SA),)
duke@435 167 BUILD_WIN_SA = $(ALT_BUILD_WIN_SA)
duke@435 168 endif
duke@435 169
duke@435 170 ifeq ($(BUILD_WIN_SA), 1)
tbell@862 171 ifeq ($(ARCH),ia64)
duke@435 172 BUILD_WIN_SA = 0
duke@435 173 endif
duke@435 174 endif
duke@435 175
duke@435 176 EXPORT_SERVER_DIR = $(EXPORT_JRE_BIN_DIR)/server
kvn@3044 177 EXPORT_CLIENT_DIR = $(EXPORT_JRE_BIN_DIR)/client
kvn@3044 178 EXPORT_KERNEL_DIR = $(EXPORT_JRE_BIN_DIR)/kernel
kvn@3044 179
duke@435 180 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
never@3156 181 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.$(LIBRARY_SUFFIX)
duke@435 182 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.pdb
duke@435 183 EXPORT_LIST += $(EXPORT_SERVER_DIR)/jvm.map
duke@435 184 EXPORT_LIST += $(EXPORT_LIB_DIR)/jvm.lib
duke@435 185 ifeq ($(ARCH_DATA_MODEL), 32)
duke@435 186 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
never@3156 187 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.$(LIBRARY_SUFFIX)
duke@435 188 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.pdb
duke@435 189 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/jvm.map
duke@435 190 # kernel vm
duke@435 191 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/Xusage.txt
never@3156 192 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.$(LIBRARY_SUFFIX)
duke@435 193 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.pdb
duke@435 194 EXPORT_LIST += $(EXPORT_KERNEL_DIR)/jvm.map
duke@435 195 endif
duke@435 196
mgerdin@3619 197 EXPORT_LIST += $(EXPORT_JRE_LIB_DIR)/wb.jar
mgerdin@3619 198
duke@435 199 ifeq ($(BUILD_WIN_SA), 1)
never@3156 200 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.$(LIBRARY_SUFFIX)
duke@435 201 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.pdb
duke@435 202 EXPORT_LIST += $(EXPORT_JRE_BIN_DIR)/sawindbg.map
tbell@862 203 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
duke@435 204 # Must pass this down to nmake.
duke@435 205 MAKE_ARGS += BUILD_WIN_SA=1
duke@435 206 endif

mercurial