vm.make 14.6 KB
Newer Older
D
duke 已提交
1
#
Z
zgu 已提交
2
# Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3
# Copyright 2019 Red Hat, Inc.
D
duke 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
20 21 22
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
23
#
D
duke 已提交
24 25 26 27 28
#

# Resource file containing VERSIONINFO
Res_Files=.\version.res

29 30
!include ..\generated\objfiles.make

31 32 33
COMMONSRC=$(WorkSpace)\src
ALTSRC=$(WorkSpace)\src\closed

34
!ifdef RELEASE
35
CXX_FLAGS=$(CXX_FLAGS) /D "PRODUCT"
D
duke 已提交
36
!else
37
CXX_FLAGS=$(CXX_FLAGS) /D "ASSERT"
D
duke 已提交
38 39 40
!endif

!if "$(Variant)" == "compiler1"
41
CXX_FLAGS=$(CXX_FLAGS) /D "COMPILER1"
D
duke 已提交
42 43 44
!endif

!if "$(Variant)" == "compiler2"
45
CXX_FLAGS=$(CXX_FLAGS) /D "COMPILER2"
D
duke 已提交
46 47 48
!endif

!if "$(Variant)" == "tiered"
49
CXX_FLAGS=$(CXX_FLAGS) /D "COMPILER1" /D "COMPILER2"
D
duke 已提交
50 51
!endif

52 53 54 55 56 57
!if "$(BUILDARCH)" == "i486"
HOTSPOT_LIB_ARCH=i386
!else
HOTSPOT_LIB_ARCH=$(BUILDARCH)
!endif

D
duke 已提交
58
# The following variables are defined in the generated local.make file.
59 60 61 62 63 64
CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_RELEASE_VERSION=\"$(HS_BUILD_VER)\""
CXX_FLAGS=$(CXX_FLAGS) /D "JRE_RELEASE_VERSION=\"$(JRE_RELEASE_VER)\""
CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_LIB_ARCH=\"$(HOTSPOT_LIB_ARCH)\""
CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_TARGET=\"$(BUILD_FLAVOR)\""
CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_BUILD_USER=\"$(BuildUser)\""
CXX_FLAGS=$(CXX_FLAGS) /D "HOTSPOT_VM_DISTRO=\"$(HOTSPOT_VM_DISTRO)\""
D
duke 已提交
65

66
CXX_FLAGS=$(CXX_FLAGS) $(CXX_INCLUDE_DIRS)
D
duke 已提交
67 68

# Define that so jni.h is on correct side
69
CXX_FLAGS=$(CXX_FLAGS) /D "_JNI_IMPLEMENTATION_"
D
duke 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83

!if "$(BUILDARCH)" == "ia64"
STACK_SIZE="/STACK:1048576,262144"
!else
STACK_SIZE=
!endif

!if "$(BUILDARCH)" == "ia64"
# AsyncGetCallTrace is not supported on IA64 yet
AGCT_EXPORT=
!else
AGCT_EXPORT=/export:AsyncGetCallTrace
!endif

84
# If you modify exports below please do the corresponding changes in
85
# src/share/tools/ProjectCreator/WinGammaPlatformVC7.java
86
LD_FLAGS=$(LD_FLAGS) $(STACK_SIZE) /subsystem:windows /dll /base:0x8000000 \
87 88 89 90 91 92 93 94 95 96 97 98 99
  /export:JNI_GetDefaultJavaVMInitArgs       \
  /export:JNI_CreateJavaVM                   \
  /export:JVM_FindClassFromBootLoader        \
  /export:JNI_GetCreatedJavaVMs              \
  /export:jio_snprintf                       \
  /export:jio_printf                         \
  /export:jio_fprintf                        \
  /export:jio_vfprintf                       \
  /export:jio_vsnprintf                      \
  $(AGCT_EXPORT)                             \
  /export:JVM_GetVersionInfo                 \
  /export:JVM_GetThreadStateNames            \
  /export:JVM_GetThreadStateValues           \
D
duke 已提交
100 101
  /export:JVM_InitAgentProperties

102
CXX_INCLUDE_DIRS=/I "..\generated"
103 104

!if exists($(ALTSRC)\share\vm)
105
CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) /I "$(ALTSRC)\share\vm"
106 107 108
!endif

!if exists($(ALTSRC)\os\windows\vm)
109
CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) /I "$(ALTSRC)\os\windows\vm"
110 111 112
!endif

!if exists($(ALTSRC)\os_cpu\windows_$(Platform_arch)\vm)
113
CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) /I "$(ALTSRC)\os_cpu\windows_$(Platform_arch)\vm"
114 115 116
!endif

!if exists($(ALTSRC)\cpu\$(Platform_arch)\vm)
117
CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) /I "$(ALTSRC)\cpu\$(Platform_arch)\vm"
118 119
!endif

120
CXX_INCLUDE_DIRS=$(CXX_INCLUDE_DIRS) \
121
  /I "$(COMMONSRC)\share\vm" \
122
  /I "$(COMMONSRC)\share\vm\precompiled" \
123 124 125 126
  /I "$(COMMONSRC)\share\vm\prims" \
  /I "$(COMMONSRC)\os\windows\vm" \
  /I "$(COMMONSRC)\os_cpu\windows_$(Platform_arch)\vm" \
  /I "$(COMMONSRC)\cpu\$(Platform_arch)\vm"
D
duke 已提交
127

128
CXX_DONT_USE_PCH=/D DONT_USE_PRECOMPILED_HEADER
129 130

!if "$(USE_PRECOMPILED_HEADER)" != "0"
131
CXX_USE_PCH=/Fp"vm.pch" /Yu"precompiled.hpp"
132 133
!if "$(COMPILER_NAME)" == "VS2012" || "$(COMPILER_NAME)" == "VS2013" || "$(COMPILER_NAME)" == "VS2015" || "$(COMPILER_NAME)" == "VS2017"
# VS2012 and later require this object file to be listed:
134 135
LD_FLAGS=$(LD_FLAGS) _build_pch_file.obj
!endif
136
!else
137
CXX_USE_PCH=$(CXX_DONT_USE_PCH)
138
!endif
D
duke 已提交
139

140
# Where to find the source code for the virtual machine (is this used?)
141 142
VM_PATH=../generated
VM_PATH=$(VM_PATH);../generated/adfiles
D
duke 已提交
143
VM_PATH=$(VM_PATH);../generated/jvmtifiles
S
sla 已提交
144
VM_PATH=$(VM_PATH);../generated/tracefiles
D
duke 已提交
145 146 147 148 149 150 151 152 153 154
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/c1
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/compiler
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/code
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/interpreter
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/ci
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/classfile
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parallelScavenge
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/shared
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/parNew
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/concurrentMarkSweep
155
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_implementation/g1
D
duke 已提交
156 157 158 159 160
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/gc_interface
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/asm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/memory
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/oops
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims
161
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/prims/wbtestmethods
D
duke 已提交
162 163
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/runtime
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/services
164
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/trace
D
duke 已提交
165 166 167 168 169 170 171
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/utilities
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/libadt
VM_PATH=$(VM_PATH);$(WorkSpace)/src/os/windows/vm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/cpu/$(Platform_arch)/vm
VM_PATH=$(VM_PATH);$(WorkSpace)/src/share/vm/opto

172 173
!if exists($(ALTSRC)\share\vm\jfr)
VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr
S
sla 已提交
174
VM_PATH=$(VM_PATH);$(ALTSRC)/share/vm/jfr/buffers
175 176
!endif

D
duke 已提交
177 178 179 180
VM_PATH={$(VM_PATH)}

# Special case files not using precompiled header files.

D
drchase 已提交
181
c1_RInfo_$(Platform_arch).obj: $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
182
	 $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\cpu\$(Platform_arch)\vm\c1_RInfo_$(Platform_arch).cpp
D
duke 已提交
183 184

os_windows.obj: $(WorkSpace)\src\os\windows\vm\os_windows.cpp
185
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\os_windows.cpp
D
duke 已提交
186 187

os_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
188
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\os_windows_$(Platform_arch).cpp
D
duke 已提交
189 190

osThread_windows.obj: $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
191
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\osThread_windows.cpp
D
duke 已提交
192 193

conditionVar_windows.obj: $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
194
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os\windows\vm\conditionVar_windows.cpp
D
duke 已提交
195 196

getThread_windows_$(Platform_arch).obj: $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
197
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\os_cpu\windows_$(Platform_arch)\vm\getThread_windows_$(Platform_arch).cpp
D
duke 已提交
198 199

opcodes.obj: $(WorkSpace)\src\share\vm\opto\opcodes.cpp
200
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\share\vm\opto\opcodes.cpp
D
duke 已提交
201 202

bytecodeInterpreter.obj: $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
203
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c $(WorkSpace)\src\share\vm\interpreter\bytecodeInterpreter.cpp
D
duke 已提交
204 205

bytecodeInterpreterWithChecks.obj: ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
206
        $(CXX) $(CXX_FLAGS) $(CXX_DONT_USE_PCH) /c ..\generated\jvmtifiles\bytecodeInterpreterWithChecks.cpp
D
duke 已提交
207

208 209 210 211 212 213 214 215
#files compiled with version flags

vm_version.obj: $(WorkSpace)\src\share\vm\runtime\vm_version.cpp
        $(CXX) $(CXX_FLAGS) $(VERSION_CFLAGS) $(CXX_USE_PCH) /c $(WorkSpace)\src\share\vm\runtime\vm_version.cpp

arguments.obj: $(WorkSpace)\src\share\vm\runtime\arguments.cpp
        $(CXX) $(CXX_FLAGS) $(VERSION_CFLAGS) $(CXX_USE_PCH) /c $(WorkSpace)\src\share\vm\runtime\arguments.cpp

D
duke 已提交
216
# Default rules for the Virtual Machine
217
{$(COMMONSRC)\share\vm\c1}.cpp.obj::
218
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
219

220
{$(COMMONSRC)\share\vm\compiler}.cpp.obj::
221
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
222

223
{$(COMMONSRC)\share\vm\code}.cpp.obj::
224
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
225

226
{$(COMMONSRC)\share\vm\interpreter}.cpp.obj::
227
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
228

229
{$(COMMONSRC)\share\vm\ci}.cpp.obj::
230
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
231

232
{$(COMMONSRC)\share\vm\classfile}.cpp.obj::
233
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
234

235
{$(COMMONSRC)\share\vm\gc_implementation\parallelScavenge}.cpp.obj::
236
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
237

238
{$(COMMONSRC)\share\vm\gc_implementation\shared}.cpp.obj::
239
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
240

241
{$(COMMONSRC)\share\vm\gc_implementation\parNew}.cpp.obj::
242
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
243

244
{$(COMMONSRC)\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj::
245
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
246

247
{$(COMMONSRC)\share\vm\gc_implementation\g1}.cpp.obj::
248
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
249

250
{$(COMMONSRC)\share\vm\gc_interface}.cpp.obj::
251
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
252

253
{$(COMMONSRC)\share\vm\asm}.cpp.obj::
254
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
255

256
{$(COMMONSRC)\share\vm\memory}.cpp.obj::
257
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
258

259
{$(COMMONSRC)\share\vm\oops}.cpp.obj::
260
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
261

262
{$(COMMONSRC)\share\vm\prims}.cpp.obj::
263
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
264

265 266 267
{$(COMMONSRC)\share\vm\prims\wbtestmethods}.cpp.obj::
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<

268
{$(COMMONSRC)\share\vm\runtime}.cpp.obj::
269
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
270

271
{$(COMMONSRC)\share\vm\services}.cpp.obj::
272
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
273

274
{$(COMMONSRC)\share\vm\trace}.cpp.obj::
275
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
276

277
{$(COMMONSRC)\share\vm\utilities}.cpp.obj::
278
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
279

280
{$(COMMONSRC)\share\vm\libadt}.cpp.obj::
281
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
282

283
{$(COMMONSRC)\share\vm\opto}.cpp.obj::
284
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
285

286
{$(COMMONSRC)\os\windows\vm}.cpp.obj::
287
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
288 289 290

# This guy should remain a single colon rule because
# otherwise we can't specify the output filename.
291 292 293 294
{$(COMMONSRC)\os\windows\vm}.rc.res:
        @$(RC) $(RC_FLAGS) /fo"$@" $<

{$(COMMONSRC)\cpu\$(Platform_arch)\vm}.cpp.obj::
295
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
296 297

{$(COMMONSRC)\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
298
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
299 300

{$(ALTSRC)\share\vm\c1}.cpp.obj::
301
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
302 303

{$(ALTSRC)\share\vm\compiler}.cpp.obj::
304
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
305 306

{$(ALTSRC)\share\vm\code}.cpp.obj::
307
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
308 309

{$(ALTSRC)\share\vm\interpreter}.cpp.obj::
310
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
311 312

{$(ALTSRC)\share\vm\ci}.cpp.obj::
313
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
314 315

{$(ALTSRC)\share\vm\classfile}.cpp.obj::
316
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
317 318

{$(ALTSRC)\share\vm\gc_implementation\parallelScavenge}.cpp.obj::
319
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
320 321

{$(ALTSRC)\share\vm\gc_implementation\shared}.cpp.obj::
322
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
323 324

{$(ALTSRC)\share\vm\gc_implementation\parNew}.cpp.obj::
325
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
326 327

{$(ALTSRC)\share\vm\gc_implementation\concurrentMarkSweep}.cpp.obj::
328
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
329 330

{$(ALTSRC)\share\vm\gc_implementation\g1}.cpp.obj::
331
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
332 333

{$(ALTSRC)\share\vm\gc_interface}.cpp.obj::
334
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
335 336

{$(ALTSRC)\share\vm\asm}.cpp.obj::
337
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
338 339

{$(ALTSRC)\share\vm\memory}.cpp.obj::
340
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
341 342

{$(ALTSRC)\share\vm\oops}.cpp.obj::
343
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
344 345

{$(ALTSRC)\share\vm\prims}.cpp.obj::
346
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
347

348 349 350
{$(ALTSRC)\share\vm\prims\wbtestmethods}.cpp.obj::
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<

351
{$(ALTSRC)\share\vm\runtime}.cpp.obj::
352
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
353 354

{$(ALTSRC)\share\vm\services}.cpp.obj::
355
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
356

357
{$(ALTSRC)\share\vm\trace}.cpp.obj::
358
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
359

360
{$(ALTSRC)\share\vm\utilities}.cpp.obj::
361
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
362 363

{$(ALTSRC)\share\vm\libadt}.cpp.obj::
364
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
365 366

{$(ALTSRC)\share\vm\opto}.cpp.obj::
367
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
368 369

{$(ALTSRC)\os\windows\vm}.cpp.obj::
370
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
371 372 373

# otherwise we can't specify the output filename.
{$(ALTSRC)\os\windows\vm}.rc.res:
D
duke 已提交
374 375
        @$(RC) $(RC_FLAGS) /fo"$@" $<

376
{$(ALTSRC)\cpu\$(Platform_arch)\vm}.cpp.obj::
377
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
378

379
{$(ALTSRC)\os_cpu\windows_$(Platform_arch)\vm}.cpp.obj::
380
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
381 382

{..\generated\incls}.cpp.obj::
383
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
384

385
{..\generated\adfiles}.cpp.obj::
386
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
387

D
duke 已提交
388
{..\generated\jvmtifiles}.cpp.obj::
389
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
D
duke 已提交
390

S
sla 已提交
391
{..\generated\tracefiles}.cpp.obj::
392
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
393

S
sla 已提交
394
{$(ALTSRC)\share\vm\jfr}.cpp.obj::
395
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
396

S
sla 已提交
397
{$(ALTSRC)\share\vm\jfr\buffers}.cpp.obj::
398
        $(CXX) $(CXX_FLAGS) $(CXX_USE_PCH) /c $<
399

D
duke 已提交
400 401 402
default::

_build_pch_file.obj:
403
        @echo #include "precompiled.hpp" > ../generated/_build_pch_file.cpp
404
        $(CXX) $(CXX_FLAGS) /Fp"vm.pch" /Yc"precompiled.hpp" /c ../generated/_build_pch_file.cpp
405 406 407 408 409 410 411 412

!if "$(BUILD_WIN_SA)" != "1"
BUILD_VM_DEF_FLAG=-nosa
!endif

vm.def: $(Obj_Files)
	sh $(WorkSpace)/make/windows/build_vm_def.sh $(BUILD_VM_DEF_FLAG)