annotate hotspot/make/windows/makefiles/vm.make @ 1388:3677f5f3d66b

Merge
author tonyp
date Thu, 21 Aug 2008 23:36:31 -0400
parents 4c24294029a9 e1baa9c8f16f
children 85c3ae53ca1c
rev   line source
duke@1 1 #
xdono@670 2 # Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@1 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 #
duke@1 5 # This code is free software; you can redistribute it and/or modify it
duke@1 6 # under the terms of the GNU General Public License version 2 only, as
duke@1 7 # published by the Free Software Foundation.
duke@1 8 #
duke@1 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@1 13 # accompanied this code).
duke@1 14 #
duke@1 15 # You should have received a copy of the GNU General Public License version
duke@1 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@1 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 18 #
duke@1 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@1 20 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@1 21 # have any questions.
duke@1 22 #
duke@1 23 #
duke@1 24
duke@1 25 # Resource file containing VERSIONINFO
duke@1 26 Res_Files=.\version.res
duke@1 27
duke@1 28 !ifdef RELEASE
duke@1 29 !ifdef DEVELOP
duke@1 30 CPP_FLAGS=$(CPP_FLAGS) /D "DEBUG"
duke@1 31 !else
duke@1 32 CPP_FLAGS=$(CPP_FLAGS) /D "PRODUCT"
duke@1 33 !endif
duke@1 34 !else
duke@1 35 CPP_FLAGS=$(CPP_FLAGS) /D "ASSERT"
duke@1 36 !endif
duke@1 37
duke@1 38 !if "$(Variant)" == "core"
duke@1 39 # No need to define anything, CORE is defined as !COMPILER1 && !COMPILER2
duke@1 40 !endif
duke@1 41
duke@1 42 !if "$(Variant)" == "kernel"
duke@1 43 CPP_FLAGS=$(CPP_FLAGS) /D "KERNEL"
duke@1 44 !endif
duke@1 45
duke@1 46 !if "$(Variant)" == "compiler1"
duke@1 47 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1"
duke@1 48 !endif
duke@1 49
duke@1 50 !if "$(Variant)" == "compiler2"
duke@1 51 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER2"
duke@1 52 !endif
duke@1 53
duke@1 54 !if "$(Variant)" == "tiered"
duke@1 55 CPP_FLAGS=$(CPP_FLAGS) /D "COMPILER1" /D "COMPILER2"
duke@1 56 !endif
duke@1 57
duke@1 58 # The following variables are defined in the generated local.make file.
duke@1 59 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\""
duke@1 60 CPP_FLAGS=$(CPP_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\""
jrose@347 61 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(BUILDARCH)\""
duke@1 62 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\""
duke@1 63 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\""
duke@1 64 CPP_FLAGS=$(CPP_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\""
duke@1 65
duke@1 66 CPP_FLAGS=$(CPP_FLAGS) /D "WIN32" /D "_WINDOWS" $(CPP_INCLUDE_DIRS)
duke@1 67
duke@1 68 # Must specify this for sharedRuntimeTrig.cpp
duke@1 69 CPP_FLAGS=$(CPP_FLAGS) /D "VM_LITTLE_ENDIAN"
duke@1 70
duke@1 71 # Define that so jni.h is on correct side
duke@1 72 CPP_FLAGS=$(CPP_FLAGS) /D "_JNI_IMPLEMENTATION_"
duke@1 73
duke@1 74 !if "$(BUILDARCH)" == "ia64"
duke@1 75 STACK_SIZE="/STACK:1048576,262144"
duke@1 76 !else
duke@1 77 STACK_SIZE=
duke@1 78 !endif
duke@1 79
duke@1 80 !if "$(BUILDARCH)" == "ia64"
duke@1 81 # AsyncGetCallTrace is not supported on IA64 yet
duke@1 82 AGCT_EXPORT=
duke@1 83 !else
duke@1 84 !if "$(Variant)" == "kernel"
duke@1 85 AGCT_EXPORT=
duke@1 86 !else
duke@1 87 AGCT_EXPORT=/export:AsyncGetCallTrace
duke@1 88 !endif
duke@1 89 !endif
duke@1 90
ksrini@772 91 LINK_FLAGS=$(LINK_FLAGS) $(STACK_SIZE) /subsystem:windows /dll /base:0x8000000 \
ksrini@772 92 /export:JNI_GetDefaultJavaVMInitArgs \
ksrini@772 93 /export:JNI_CreateJavaVM \
ksrini@772 94 /export:JVM_FindClassFromBootLoader \
ksrini@772 95 /export:JNI_GetCreatedJavaVMs \
ksrini@772 96 /export:jio_snprintf \
ksrini@772 97 /export:jio_printf \
ksrini@772 98 /export:jio_fprintf \
ksrini@772 99 /export:jio_vfprintf \
ksrini@772 100 /export:jio_vsnprintf \
ksrini@772 101 $(AGCT_EXPORT) \
ksrini@772 102 /export:JVM_GetVersionInfo \
ksrini@772 103 /export:JVM_GetThreadStateNames \
ksrini@772 104 /export:JVM_GetThreadStateValues \
duke@1 105 /export:JVM_InitAgentProperties
duke@1 106
duke@1 107 CPP_INCLUDE_DIRS=\
duke@1 108 /I "..\generated" \
duke@1 109 /I "..\generated\jvmtifiles" \
duke@1 110 /I "$(WorkSpace)\src\share\vm\c1" \
duke@1 111 /I "$(WorkSpace)\src\share\vm\compiler" \
duke@1 112 /I "$(WorkSpace)\src\share\vm\code" \
duke@1 113 /I "$(WorkSpace)\src\share\vm\interpreter" \
duke@1 114 /I "$(WorkSpace)\src\share\vm\ci" \
duke@1 115 /I "$(WorkSpace)\src\share\vm\classfile" \
duke@1 116 /I "$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge"\
duke@1 117 /I "$(WorkSpace)\src\share\vm\gc_implementation\shared"\
duke@1 118 /I "$(WorkSpace)\src\share\vm\gc_implementation\parNew"\
duke@1 119 /I "$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep"\
ysr@1374 120 /I "$(WorkSpace)\src\share\vm\gc_implementation\g1"\
duke@1 121 /I "$(WorkSpace)\src\share\vm\gc_interface"\
duke@1 122 /I "$(WorkSpace)\src\share\vm\asm" \
duke@1 123 /I "$(WorkSpace)\src\share\vm\memory" \
duke@1 124 /I "$(WorkSpace)\src\share\vm\oops" \
duke@1 125 /I "$(WorkSpace)\src\share\vm\prims" \
duke@1 126 /I "$(WorkSpace)\src\share\vm\runtime" \
duke@1 127 /I "$(WorkSpace)\src\share\vm\services" \
duke@1 128 /I "$(WorkSpace)\src\share\vm\utilities" \
duke@1 129 /I "$(WorkSpace)\src\share\vm\libadt" \
duke@1 130 /I "$(WorkSpace)\src\share\vm\opto" \
duke@1 131 /I "$(WorkSpace)\src\os\windows\vm" \
duke@1 132 /I "$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm" \
duke@1 133 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
duke@1 134
duke@1 135 CPP_USE_PCH=/Fp"vm.pch" /Yu"incls/_precompiled.incl"
duke@1 136
duke@1 137 # Where to find the source code for the virtual machine
duke@1 138 VM_PATH=../generated/incls
duke@1 139 VM_PATH=$(VM_PATH);../generated/jvmtifiles
duke@1 140 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1
duke@1 141 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler
duke@1 142 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code
duke@1 143 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter
duke@1 144 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci
duke@1 145 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile
duke@1 146 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge
duke@1 147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared
duke@1 148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew
duke@1 149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep
ysr@1374 150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1
duke@1 151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface
duke@1 152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm
duke@1 153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory
duke@1 154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops
duke@1 155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims
duke@1 156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime
duke@1 157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
duke@1 158 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
duke@1 159 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
duke@1 160 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
duke@1 161 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
duke@1 162 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
duke@1 163 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto
duke@1 164
duke@1 165 VM_PATH={$(VM_PATH)}
duke@1 166
duke@1 167 # Special case files not using precompiled header files.
duke@1 168
duke@1 169 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
duke@1 170 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
duke@1 171
duke@1 172 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp
duke@1 173 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp
duke@1 174
duke@1 175 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
duke@1 176 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
duke@1 177
duke@1 178 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
duke@1 179 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
duke@1 180
duke@1 181 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
duke@1 182 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
duke@1 183
duke@1 184 getThread_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
duke@1 185 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
duke@1 186
duke@1 187 opcodes.obj: $(WorkSpace)\src\share\vm\opto\opcodes.cpp
duke@1 188 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\opto\opcodes.cpp
duke@1 189
duke@1 190 bytecodeInterpreter.obj: $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
duke@1 191 $(CPP) $(CPP_FLAGS) /c $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
duke@1 192
duke@1 193 bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
duke@1 194 $(CPP) $(CPP_FLAGS) /c ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
duke@1 195
duke@1 196 # Default rules for the Virtual Machine
duke@1 197 {$(WorkSpace)\src\share\vm\c1}.cpp.obj::
duke@1 198 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 199
duke@1 200 {$(WorkSpace)\src\share\vm\compiler}.cpp.obj::
duke@1 201 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 202
duke@1 203 {$(WorkSpace)\src\share\vm\code}.cpp.obj::
duke@1 204 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 205
duke@1 206 {$(WorkSpace)\src\share\vm\interpreter}.cpp.obj::
duke@1 207 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 208
duke@1 209 {$(WorkSpace)\src\share\vm\ci}.cpp.obj::
duke@1 210 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 211
duke@1 212 {$(WorkSpace)\src\share\vm\classfile}.cpp.obj::
duke@1 213 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 214
duke@1 215 {$(WorkSpace)\src\share\vm\gc_implementation\parallelScavenge}.cpp.obj::
duke@1 216 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 217
duke@1 218 {$(WorkSpace)\src\share\vm\gc_implementation\shared}.cpp.obj::
duke@1 219 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 220
duke@1 221 {$(WorkSpace)\src\share\vm\gc_implementation\parNew}.cpp.obj::
duke@1 222 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 223
duke@1 224 {$(WorkSpace)\src\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj::
duke@1 225 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 226
ysr@1374 227 {$(WorkSpace)\src\share\vm\gc_implementation\g1}.cpp.obj::
ysr@1374 228 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
ysr@1374 229
duke@1 230 {$(WorkSpace)\src\share\vm\gc_interface}.cpp.obj::
duke@1 231 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 232
duke@1 233 {$(WorkSpace)\src\share\vm\asm}.cpp.obj::
duke@1 234 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 235
duke@1 236 {$(WorkSpace)\src\share\vm\memory}.cpp.obj::
duke@1 237 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 238
duke@1 239 {$(WorkSpace)\src\share\vm\oops}.cpp.obj::
duke@1 240 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 241
duke@1 242 {$(WorkSpace)\src\share\vm\prims}.cpp.obj::
duke@1 243 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 244
duke@1 245 {$(WorkSpace)\src\share\vm\runtime}.cpp.obj::
duke@1 246 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 247
duke@1 248 {$(WorkSpace)\src\share\vm\services}.cpp.obj::
duke@1 249 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 250
duke@1 251 {$(WorkSpace)\src\share\vm\utilities}.cpp.obj::
duke@1 252 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 253
duke@1 254 {$(WorkSpace)\src\share\vm\libadt}.cpp.obj::
duke@1 255 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 256
duke@1 257 {$(WorkSpace)\src\share\vm\opto}.cpp.obj::
duke@1 258 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 259
duke@1 260 {$(WorkSpace)\src\os\windows\vm}.cpp.obj::
duke@1 261 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 262
duke@1 263 # This guy should remain a single colon rule because
duke@1 264 # otherwise we can't specify the output filename.
duke@1 265 {$(WorkSpace)\src\os\windows\vm}.rc.res:
duke@1 266 @$(RC) $(RC_FLAGS) /fo"$@" $<
duke@1 267
duke@1 268 {$(WorkSpace)\src\cpu\$(Platform_arch)\vm}.cpp.obj::
duke@1 269 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 270
duke@1 271 {$(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
duke@1 272 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 273
duke@1 274 {..\generated\incls}.cpp.obj::
duke@1 275 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 276
duke@1 277 {..\generated\jvmtifiles}.cpp.obj::
duke@1 278 $(CPP) $(CPP_FLAGS) $(CPP_USE_PCH) /c $<
duke@1 279
duke@1 280 default::
duke@1 281
duke@1 282 _build_pch_file.obj:
duke@1 283 @echo #include "incls/_precompiled.incl" > ../generated/_build_pch_file.cpp
duke@1 284 $(CPP) $(CPP_FLAGS) /Fp"vm.pch" /Yc"incls/_precompiled.incl" /c ../generated/_build_pch_file.cpp