make/windows/makefiles/vm.make

Print this page
rev 4773 : 8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>


  49 !endif
  50 
  51 !if "$(Variant)" == "tiered"
  52 CXX_FLAGS=$(CXX_FLAGS) /D "COMPILER1" /D "COMPILER2"
  53 !endif
  54 
  55 !if "$(BUILDARCH)" == "i486"
  56 HOTSPOT_LIB_ARCH=i386
  57 !else
  58 HOTSPOT_LIB_ARCH=$(BUILDARCH)
  59 !endif
  60 
  61 # The following variables are defined in the generated local.make file.
  62 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\""
  63 CXX_FLAGS=$(CXX_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\""
  64 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(HOTSPOT_LIB_ARCH)\""
  65 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\""
  66 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\""
  67 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\""
  68 
  69 !ifndef JAVASE_EMBEDDED
  70 CXX_FLAGS=$(CXX_FLAGS) /D "INCLUDE_TRACE"
  71 !endif
  72 
  73 CXX_FLAGS=$(CXX_FLAGS) $(CXX_INCLUDE_DIRS)
  74 
  75 # Define that so jni.h is on correct side
  76 CXX_FLAGS=$(CXX_FLAGS) /D "_JNI_IMPLEMENTATION_"
  77 
  78 !if "$(BUILDARCH)" == "ia64"
  79 STACK_SIZE="/STACK:1048576,262144"
  80 !else
  81 STACK_SIZE=
  82 !endif
  83 
  84 !if "$(BUILDARCH)" == "ia64"
  85 # AsyncGetCallTrace is not supported on IA64 yet
  86 AGCT_EXPORT=
  87 !else
  88 AGCT_EXPORT=/export:AsyncGetCallTrace
  89 !endif
  90 
  91 # If you modify exports below please do the corresponding changes in
  92 # src/share/tools/ProjectCreator/WinGammaPlatformVC7.java


 127 CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) \
 128   /I "$(COMMONSRC)\share\vm" \
 129   /I "$(COMMONSRC)\share\vm\precompiled" \
 130   /I "$(COMMONSRC)\share\vm\prims" \
 131   /I "$(COMMONSRC)\os\windows\vm" \
 132   /I "$(COMMONSRC)\os_cpu\windows_$(Platform_arch)\vm" \
 133   /I "$(COMMONSRC)\cpu\$(Platform_arch)\vm"
 134 
 135 CXX_DONT_USE_PCH=/D DONT_USE_PRECOMPILED_HEADER
 136 
 137 !if "$(USE_PRECOMPILED_HEADER)" != "0"
 138 CXX_USE_PCH=/Fp"vm.pch" /Yu"precompiled.hpp"
 139 !else
 140 CXX_USE_PCH=$(CXX_DONT_USE_PCH)
 141 !endif
 142 
 143 # Where to find the source code for the virtual machine (is this used?)
 144 VM_PATH=../generated
 145 VM_PATH=$(VM_PATH);../generated/adfiles
 146 VM_PATH=$(VM_PATH);../generated/jvmtifiles

 147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1
 148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler
 149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code
 150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter
 151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci
 152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile
 153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge
 154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared
 155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew
 156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep
 157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1
 158 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface
 159 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm
 160 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory
 161 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops
 162 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims
 163 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims/wbtestmethods
 164 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime
 165 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
 166 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/trace
 167 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
 168 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
 169 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
 170 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
 171 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
 172 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto
 173 
 174 !if exists($(ALTSRC)\share\vm\jfr)
 175 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr/agent
 176 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr/agent/isolated_deps/util
 177 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr/jvm
 178 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr

 179 !endif
 180 
 181 VM_PATH={$(VM_PATH)}
 182 
 183 # Special case files not using precompiled header files.
 184 
 185 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
 186          $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
 187 
 188 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp
 189         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp
 190 
 191 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
 192         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
 193 
 194 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
 195         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
 196 
 197 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
 198         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp


 367 
 368 # otherwise we can't specify the output filename.
 369 {$(ALTSRC)\os\windows\vm}.rc.res:
 370         @$(RC) $(RC_FLAGS) /fo"$@" $<
 371 
 372 {$(ALTSRC)\cpu\$(Platform_arch)\vm}.cpp.obj::
 373         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 374 
 375 {$(ALTSRC)\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
 376         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 377 
 378 {..\generated\incls}.cpp.obj::
 379         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 380 
 381 {..\generated\adfiles}.cpp.obj::
 382         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 383 
 384 {..\generated\jvmtifiles}.cpp.obj::
 385         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 386 
 387 {$(ALTSRC)\share\vm\jfr}.cpp.obj::
 388         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 389 
 390 {$(ALTSRC)\share\vm\jfr\agent}.cpp.obj::
 391         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 392 
 393 {$(ALTSRC)\share\vm\jfr\agent\isolated_deps\util}.cpp.obj::
 394         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 395 
 396 {$(ALTSRC)\share\vm\jfr\jvm}.cpp.obj::
 397         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 398 
 399 default::
 400 
 401 _build_pch_file.obj:
 402         @echo #include "precompiled.hpp" > ../generated/_build_pch_file.cpp
 403         $(CXX) $(CXX_FLAGS) /Fp"vm.pch" /Yc"precompiled.hpp" /c ../generated/_build_pch_file.cpp


  49 !endif
  50 
  51 !if "$(Variant)" == "tiered"
  52 CXX_FLAGS=$(CXX_FLAGS) /D "COMPILER1" /D "COMPILER2"
  53 !endif
  54 
  55 !if "$(BUILDARCH)" == "i486"
  56 HOTSPOT_LIB_ARCH=i386
  57 !else
  58 HOTSPOT_LIB_ARCH=$(BUILDARCH)
  59 !endif
  60 
  61 # The following variables are defined in the generated local.make file.
  62 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\""
  63 CXX_FLAGS=$(CXX_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\""
  64 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(HOTSPOT_LIB_ARCH)\""
  65 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\""
  66 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\""
  67 CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\""
  68 




  69 CXX_FLAGS=$(CXX_FLAGS) $(CXX_INCLUDE_DIRS)
  70 
  71 # Define that so jni.h is on correct side
  72 CXX_FLAGS=$(CXX_FLAGS) /D "_JNI_IMPLEMENTATION_"
  73 
  74 !if "$(BUILDARCH)" == "ia64"
  75 STACK_SIZE="/STACK:1048576,262144"
  76 !else
  77 STACK_SIZE=
  78 !endif
  79 
  80 !if "$(BUILDARCH)" == "ia64"
  81 # AsyncGetCallTrace is not supported on IA64 yet
  82 AGCT_EXPORT=
  83 !else
  84 AGCT_EXPORT=/export:AsyncGetCallTrace
  85 !endif
  86 
  87 # If you modify exports below please do the corresponding changes in
  88 # src/share/tools/ProjectCreator/WinGammaPlatformVC7.java


 123 CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) \
 124   /I "$(COMMONSRC)\share\vm" \
 125   /I "$(COMMONSRC)\share\vm\precompiled" \
 126   /I "$(COMMONSRC)\share\vm\prims" \
 127   /I "$(COMMONSRC)\os\windows\vm" \
 128   /I "$(COMMONSRC)\os_cpu\windows_$(Platform_arch)\vm" \
 129   /I "$(COMMONSRC)\cpu\$(Platform_arch)\vm"
 130 
 131 CXX_DONT_USE_PCH=/D DONT_USE_PRECOMPILED_HEADER
 132 
 133 !if "$(USE_PRECOMPILED_HEADER)" != "0"
 134 CXX_USE_PCH=/Fp"vm.pch" /Yu"precompiled.hpp"
 135 !else
 136 CXX_USE_PCH=$(CXX_DONT_USE_PCH)
 137 !endif
 138 
 139 # Where to find the source code for the virtual machine (is this used?)
 140 VM_PATH=../generated
 141 VM_PATH=$(VM_PATH);../generated/adfiles
 142 VM_PATH=$(VM_PATH);../generated/jvmtifiles
 143 VM_PATH=$(VM_PATH);../generated/tracefiles
 144 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1
 145 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler
 146 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code
 147 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter
 148 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci
 149 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile
 150 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge
 151 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared
 152 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew
 153 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep
 154 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1
 155 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface
 156 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm
 157 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory
 158 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops
 159 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims
 160 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims/wbtestmethods
 161 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime
 162 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
 163 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/trace
 164 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
 165 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
 166 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
 167 VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
 168 VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
 169 VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto
 170 
 171 !if exists($(ALTSRC)\share\vm\jfr)



 172 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr
 173 VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr/buffers
 174 !endif
 175 
 176 VM_PATH={$(VM_PATH)}
 177 
 178 # Special case files not using precompiled header files.
 179 
 180 c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
 181          $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
 182 
 183 os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp
 184         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp
 185 
 186 os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
 187         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
 188 
 189 osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
 190         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
 191 
 192 conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
 193         $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp


 362 
 363 # otherwise we can't specify the output filename.
 364 {$(ALTSRC)\os\windows\vm}.rc.res:
 365         @$(RC) $(RC_FLAGS) /fo"$@" $<
 366 
 367 {$(ALTSRC)\cpu\$(Platform_arch)\vm}.cpp.obj::
 368         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 369 
 370 {$(ALTSRC)\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
 371         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 372 
 373 {..\generated\incls}.cpp.obj::
 374         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 375 
 376 {..\generated\adfiles}.cpp.obj::
 377         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 378 
 379 {..\generated\jvmtifiles}.cpp.obj::
 380         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 381 
 382 {..\generated\tracefiles}.cpp.obj::



 383         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 384 
 385 {$(ALTSRC)\share\vm\jfr}.cpp.obj::
 386         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 387 
 388 {$(ALTSRC)\share\vm\jfr\buffers}.cpp.obj::
 389         $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
 390 
 391 default::
 392 
 393 _build_pch_file.obj:
 394         @echo #include "precompiled.hpp" > ../generated/_build_pch_file.cpp
 395         $(CXX) $(CXX_FLAGS) /Fp"vm.pch" /Yc"precompiled.hpp" /c ../generated/_build_pch_file.cpp