make/windows/makefiles/vm.make

Thu, 06 Jan 2011 20:10:19 -0800

author
cl
date
Thu, 06 Jan 2011 20:10:19 -0800
changeset 2385
09d92cbb793b
parent 2369
aa6e219afbf1
child 2515
d8a72fbc4be7
permissions
-rw-r--r--

Added tag jdk7-b124 for changeset 0a8e0d4345b3

duke@435 1 #
stefank@2314 2 # Copyright (c) 1997, 2010, 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 # Resource file containing VERSIONINFO
duke@435 26 Res_Files=.\version.res
duke@435 27
stefank@2314 28 !include ..\generated\objfiles.make
stefank@2314 29
duke@435 30 !ifdef RELEASE
duke@435 31 !ifdef DEVELOP
duke@435 32 CPP_FLAGS=$(CPP_FLAGS) /D "DEBUG"
duke@435 33 !else
duke@435 34 CPP_FLAGS=$(CPP_FLAGS) /D "PRODUCT"
duke@435 35 !endif
duke@435 36 !else
duke@435 37 CPP_FLAGS=$(CPP_FLAGS) /D "ASSERT"
duke@435 38 !endif
duke@435 39
duke@435 40 !if "$(Variant)" == "core"
duke@435 41 # No need to define anything, CORE is defined as !COMPILER1 && !COMPILER2
duke@435 42 !endif
duke@435 43
duke@435 44 !if "$(Variant)" == "kernel"
duke@435 45 CPP_FLAGS=$(CPP_FLAGS) /D "KERNEL"
duke@435 46 !endif
duke@435 47
duke@435 48 !if "$(Variant)" == "compiler1"
duke@435 49 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1"
duke@435 50 !endif
duke@435 51
duke@435 52 !if "$(Variant)" == "compiler2"
duke@435 53 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER2"
duke@435 54 !endif
duke@435 55
duke@435 56 !if "$(Variant)" == "tiered"
duke@435 57 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" /D "COMPILER2"
duke@435 58 !endif
duke@435 59
never@1155 60 !if "$(BUILDARCH)" == "i486"
never@1155 61 HOTSPOT_LIB_ARCH=i386
never@1155 62 !else
never@1155 63 HOTSPOT_LIB_ARCH=$(BUILDARCH)
never@1155 64 !endif
never@1155 65
duke@435 66 # The following variables are defined in the generated local.make file.
duke@435 67 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\""
duke@435 68 CPP_FLAGS=$(CPP_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\""
never@1155 69 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(HOTSPOT_LIB_ARCH)\""
duke@435 70 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\""
duke@435 71 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\""
duke@435 72 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\""
duke@435 73
sla@2369 74 CPP_FLAGS=$(CPP_FLAGS) $(CPP_INCLUDE_DIRS)
duke@435 75
duke@435 76 # Define that so jni.h is on correct side
duke@435 77 CPP_FLAGS=$(CPP_FLAGS) /D "_JNI_IMPLEMENTATION_"
duke@435 78
duke@435 79 !if "$(BUILDARCH)" == "ia64"
duke@435 80 STACK_SIZE="/STACK:1048576,262144"
duke@435 81 !else
duke@435 82 STACK_SIZE=
duke@435 83 !endif
duke@435 84
duke@435 85 !if "$(BUILDARCH)" == "ia64"
duke@435 86 # AsyncGetCallTrace is not supported on IA64 yet
duke@435 87 AGCT_EXPORT=
duke@435 88 !else
duke@435 89 !if "$(Variant)" == "kernel"
duke@435 90 AGCT_EXPORT=
duke@435 91 !else
duke@435 92 AGCT_EXPORT=/export:AsyncGetCallTrace
duke@435 93 !endif
duke@435 94 !endif
duke@435 95
sla@2369 96 # If you modify exports below please do the corresponding changes in
sla@2369 97 # src/share/tools/ProjectCreator/WinGammaPlatformVC7.java
ksrini@661 98 LINK_FLAGS=$(LINK_FLAGS) $(STACK_SIZE) /subsystem:windows /dll /base:0x8000000 \
ksrini@661 99 /export:JNI_GetDefaultJavaVMInitArgs \
ksrini@661 100 /export:JNI_CreateJavaVM \
ksrini@661 101 /export:JVM_FindClassFromBootLoader \
ksrini@661 102 /export:JNI_GetCreatedJavaVMs \
ksrini@661 103 /export:jio_snprintf \
ksrini@661 104 /export:jio_printf \
ksrini@661 105 /export:jio_fprintf \
ksrini@661 106 /export:jio_vfprintf \
ksrini@661 107 /export:jio_vsnprintf \
ksrini@661 108 $(AGCT_EXPORT) \
ksrini@661 109 /export:JVM_GetVersionInfo \
ksrini@661 110 /export:JVM_GetThreadStateNames \
ksrini@661 111 /export:JVM_GetThreadStateValues \
duke@435 112 /export:JVM_InitAgentProperties
duke@435 113
duke@435 114 CPP_INCLUDE_DIRS=\
stefank@2314 115 /I "..\generated" \
stefank@2314 116 /I "$(WorkSpace)\src\share\vm" \
stefank@2314 117 /I "$(WorkSpace)\src\share\vm\prims" \
stefank@2314 118 /I "$(WorkSpace)\src\os\windows\vm" \
duke@435 119 /I "$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm" \
duke@435 120 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
duke@435 121
stefank@2325 122 CPP_DONT_USE_PCH=/D DONT_USE_PRECOMPILED_HEADER
stefank@2325 123
stefank@2325 124 !if "$(USE_PRECOMPILED_HEADER)" != "0"
stefank@2314 125 CPP_USE_PCH=/Fp"vm.pch" /Yu"precompiled.hpp"
stefank@2325 126 !else
stefank@2325 127 CPP_USE_PCH=$(CPP_DONT_USE_PCH)
stefank@2325 128 !endif
duke@435 129
duke@435 130 # Where to find the source code for the virtual machine
stefank@2314 131 VM_PATH=../generated
stefank@2314 132 VM_PATH=$(VM_PATH);../generated/adfiles
duke@435 133 VM_PATH=$(VM_PATH);../generated/jvmtifiles
duke@435 134 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1
duke@435 135 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler
duke@435 136 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code
duke@435 137 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter
duke@435 138 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci
duke@435 139 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile
duke@435 140 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge
duke@435 141 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared
duke@435 142 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew
duke@435 143 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep
ysr@777 144 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1
duke@435 145 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface
duke@435 146 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm
duke@435 147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory
duke@435 148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops
duke@435 149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims
duke@435 150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime
duke@435 151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
duke@435 152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
duke@435 153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
duke@435 154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
duke@435 155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
duke@435 156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
duke@435 157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto
duke@435 158
duke@435 159 VM_PATH={$(VM_PATH)}
duke@435 160
duke@435 161 # Special case files not using precompiled header files.
duke@435 162
duke@435 163 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
stefank@2325 164 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
duke@435 165
duke@435 166 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp
stefank@2325 167 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp
duke@435 168
duke@435 169 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
stefank@2325 170 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
duke@435 171
duke@435 172 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
stefank@2325 173 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
duke@435 174
duke@435 175 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
stefank@2325 176 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
duke@435 177
duke@435 178 getThread_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
stefank@2325 179 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
duke@435 180
duke@435 181 opcodes.obj: $(WorkSpace)\src\share\vm\opto\opcodes.cpp
stefank@2325 182 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\share\vm\opto\opcodes.cpp
duke@435 183
duke@435 184 bytecodeInterpreter.obj: $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
stefank@2325 185 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
duke@435 186
duke@435 187 bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
stefank@2325 188 $(CPP) $(CPP_FLAGS) $(CPP_DONT_USE_PCH) /c ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
duke@435 189
duke@435 190 # Default rules for the Virtual Machine
duke@435 191 {$(WorkSpace)\src\share\vm\c1}.cpp.obj::
duke@435 192 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 193
duke@435 194 {$(WorkSpace)\src\share\vm\compiler}.cpp.obj::
duke@435 195 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 196
duke@435 197 {$(WorkSpace)\src\share\vm\code}.cpp.obj::
duke@435 198 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 199
duke@435 200 {$(WorkSpace)\src\share\vm\interpreter}.cpp.obj::
duke@435 201 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 202
duke@435 203 {$(WorkSpace)\src\share\vm\ci}.cpp.obj::
duke@435 204 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 205
duke@435 206 {$(WorkSpace)\src\share\vm\classfile}.cpp.obj::
duke@435 207 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 208
duke@435 209 {$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge}.cpp.obj::
duke@435 210 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 211
duke@435 212 {$(WorkSpace)\src\share\vm\gc_implementation\shared}.cpp.obj::
duke@435 213 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 214
duke@435 215 {$(WorkSpace)\src\share\vm\gc_implementation\parNew}.cpp.obj::
duke@435 216 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 217
duke@435 218 {$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj::
duke@435 219 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 220
ysr@777 221 {$(WorkSpace)\src\share\vm\gc_implementation\g1}.cpp.obj::
ysr@777 222 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
ysr@777 223
duke@435 224 {$(WorkSpace)\src\share\vm\gc_interface}.cpp.obj::
duke@435 225 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 226
duke@435 227 {$(WorkSpace)\src\share\vm\asm}.cpp.obj::
duke@435 228 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 229
duke@435 230 {$(WorkSpace)\src\share\vm\memory}.cpp.obj::
duke@435 231 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 232
duke@435 233 {$(WorkSpace)\src\share\vm\oops}.cpp.obj::
duke@435 234 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 235
duke@435 236 {$(WorkSpace)\src\share\vm\prims}.cpp.obj::
duke@435 237 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 238
duke@435 239 {$(WorkSpace)\src\share\vm\runtime}.cpp.obj::
duke@435 240 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 241
duke@435 242 {$(WorkSpace)\src\share\vm\services}.cpp.obj::
duke@435 243 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 244
duke@435 245 {$(WorkSpace)\src\share\vm\utilities}.cpp.obj::
duke@435 246 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 247
duke@435 248 {$(WorkSpace)\src\share\vm\libadt}.cpp.obj::
duke@435 249 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 250
duke@435 251 {$(WorkSpace)\src\share\vm\opto}.cpp.obj::
duke@435 252 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 253
duke@435 254 {$(WorkSpace)\src\os\windows\vm}.cpp.obj::
duke@435 255 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 256
duke@435 257 # This guy should remain a single colon rule because
duke@435 258 # otherwise we can't specify the output filename.
duke@435 259 {$(WorkSpace)\src\os\windows\vm}.rc.res:
duke@435 260 @$(RC) $(RC_FLAGS) /fo"$@" $<
duke@435 261
duke@435 262 {$(WorkSpace)\src\cpu\$(Platform_arch)\vm}.cpp.obj::
duke@435 263 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 264
duke@435 265 {$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
duke@435 266 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 267
duke@435 268 {..\generated\incls}.cpp.obj::
duke@435 269 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 270
stefank@2314 271 {..\generated\adfiles}.cpp.obj::
stefank@2314 272 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
stefank@2314 273
duke@435 274 {..\generated\jvmtifiles}.cpp.obj::
duke@435 275 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@435 276
duke@435 277 default::
duke@435 278
duke@435 279 _build_pch_file.obj:
stefank@2314 280 @echo #include "precompiled.hpp" > ../generated/_build_pch_file.cpp
stefank@2314 281 $(CPP) $(CPP_FLAGS) /Fp"vm.pch" /Yc"precompiled.hpp" /c ../generated/_build_pch_file.cpp

mercurial