annotate make/windows/makefiles/vm.make @ 110:a49a647afe9a

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