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