Mercurial > hg > graal-compiler
annotate make/Makefile @ 4855:bf5da1648543
Merge
author | kamg |
---|---|
date | Fri, 27 Jan 2012 10:42:36 -0500 |
parents | 94ec88ca68e2 |
children | 481a9443f721 |
rev | line source |
---|---|
0 | 1 # |
2237
b76d12f4ab2d
7018429: JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
dholmes
parents:
2199
diff
changeset
|
2 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
0 | 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 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1185
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1185
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1185
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
25 # Top level gnumake file for hotspot builds | |
26 # | |
27 # Default is to build the both product images and construct an export dir. | |
28 # The default export directory name is `pwd`/export-$(PLATFORM). | |
29 # | |
30 # Use: 'gnumake help' for more information. | |
31 # | |
32 # This makefile uses the default settings for where to find compilers and | |
33 # tools, and obeys the ALT_* variable settings used by the other JDK | |
34 # workspaces. | |
35 # | |
36 | |
37 # Expected/optional make variables defined on make command line: | |
38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build | |
39 # | |
40 # Expected/optional make variables or environment variables: | |
41 # ALT_SLASH_JAVA Location of /java or J: | |
42 # ALT_BOOTDIR Previous JDK home directory for javac compiler | |
43 # ALT_OUTPUTDIR Output directory to use for hotspot build | |
44 # ALT_EXPORT_PATH Directory to export hotspot build to | |
45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules) | |
2237
b76d12f4ab2d
7018429: JPRT: Update Makefile to use ALT_JDK_TARGET_IMPORT_PATH for copying JDK
dholmes
parents:
2199
diff
changeset
|
46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling |
0 | 47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default. |
48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on | |
49 # Windows. | |
50 # Version strings and numbers: | |
51 # JDK_VERSION Current JDK version (e.g. 1.6.0) | |
52 # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0) | |
53 # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42") | |
54 # | |
55 # Version strings and numbers especially needed on Windows: | |
56 # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02) | |
57 # COOKED_BUILD_NUMBER Just the build number (e.g. 42) | |
58 # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0) | |
59 # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1? | |
60 # JDK_MINOR_VERSION Minor number for version (e.g. 6) | |
61 # JDK_MICRO_VERSION Micro number for version (e.g. 0) | |
62 # | |
63 | |
64 # Default is build both product fastdebug and create export area | |
65 | |
66 # Allow to build HotSpot in local directory from sources specified by GAMMADIR. | |
67 # After make/defs.make GAMMADIR is defined. | |
68 ifdef GAMMADIR | |
69 ifndef ALT_OUTPUTDIR | |
70 ALT_OUTPUTDIR := $(shell pwd) | |
71 endif | |
72 include $(GAMMADIR)/make/defs.make | |
73 else | |
74 include defs.make | |
75 endif | |
76 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
77 include $(GAMMADIR)/make/altsrc.make |
0 | 78 |
79 ifneq ($(ALT_OUTPUTDIR),) | |
80 ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR) | |
81 else | |
82 ALT_OUT= | |
83 endif | |
84 | |
85 # Typical C1/C2 targets made available with this Makefile | |
86 C1_VM_TARGETS=product1 fastdebug1 optimized1 jvmg1 | |
87 C2_VM_TARGETS=product fastdebug optimized jvmg | |
88 KERNEL_VM_TARGETS=productkernel fastdebugkernel optimizedkernel jvmgkernel | |
1010 | 89 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero jvmgzero |
1692 | 90 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark jvmgshark |
0 | 91 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
92 # JDK directory list |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
93 JDK_DIRS=bin include jre lib demo |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
94 |
0 | 95 all: all_product all_fastdebug |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
96 ifndef BUILD_CLIENT_ONLY |
0 | 97 all_product: product product1 productkernel docs export_product |
98 all_fastdebug: fastdebug fastdebug1 fastdebugkernel docs export_fastdebug | |
99 all_debug: jvmg jvmg1 jvmgkernel docs export_debug | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
100 else |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
101 all_product: product1 docs export_product |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
102 all_fastdebug: fastdebug1 docs export_fastdebug |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
103 all_debug: jvmg1 docs export_debug |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
104 endif |
0 | 105 all_optimized: optimized optimized1 optimizedkernel docs export_optimized |
106 | |
1010 | 107 allzero: all_productzero all_fastdebugzero |
108 all_productzero: productzero docs export_product | |
109 all_fastdebugzero: fastdebugzero docs export_fastdebug | |
110 all_debugzero: jvmgzero docs export_debug | |
111 all_optimizedzero: optimizedzero docs export_optimized | |
112 | |
1692 | 113 allshark: all_productshark all_fastdebugshark |
114 all_productshark: productshark docs export_product | |
115 all_fastdebugshark: fastdebugshark docs export_fastdebug | |
116 all_debugshark: jvmgshark docs export_debug | |
117 all_optimizedshark: optimizedshark docs export_optimized | |
118 | |
0 | 119 # Do everything |
120 world: all create_jdk | |
121 | |
122 # Build or export docs | |
123 docs: | |
124 ifeq ($(OSNAME),windows) | |
125 @$(ECHO) "No docs ($(VM_TARGET)) for windows" | |
126 else | |
127 $(CD) $(OUTPUTDIR); \ | |
128 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
129 $(MAKE_ARGS) docs | |
130 endif | |
131 | |
132 # Build variation of hotspot | |
133 $(C1_VM_TARGETS): | |
134 $(CD) $(GAMMADIR)/make; \ | |
135 $(MAKE) VM_TARGET=$@ generic_build1 $(ALT_OUT) | |
136 | |
137 $(C2_VM_TARGETS): | |
138 $(CD) $(GAMMADIR)/make; \ | |
139 $(MAKE) VM_TARGET=$@ generic_build2 $(ALT_OUT) | |
140 | |
141 $(KERNEL_VM_TARGETS): | |
142 $(CD) $(GAMMADIR)/make; \ | |
143 $(MAKE) VM_TARGET=$@ generic_buildkernel $(ALT_OUT) | |
144 | |
1010 | 145 $(ZERO_VM_TARGETS): |
146 $(CD) $(GAMMADIR)/make; \ | |
147 $(MAKE) VM_TARGET=$@ generic_buildzero $(ALT_OUT) | |
148 | |
1692 | 149 $(SHARK_VM_TARGETS): |
150 $(CD) $(GAMMADIR)/make; \ | |
151 $(MAKE) VM_TARGET=$@ generic_buildshark $(ALT_OUT) | |
152 | |
0 | 153 # Build compiler1 (client) rule, different for platforms |
154 generic_build1: | |
155 $(MKDIR) -p $(OUTPUTDIR) | |
156 ifeq ($(OSNAME),windows) | |
157 ifeq ($(ARCH_DATA_MODEL), 32) | |
158 $(CD) $(OUTPUTDIR); \ | |
159 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
160 Variant=compiler1 \ | |
161 WorkSpace=$(ABS_GAMMADIR) \ | |
162 BootStrapDir=$(ABS_BOOTDIR) \ | |
163 BuildUser=$(USERNAME) \ | |
164 $(MAKE_ARGS) $(VM_TARGET:%1=%) | |
165 else | |
166 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
167 endif | |
168 else | |
169 ifeq ($(ARCH_DATA_MODEL), 32) | |
170 $(CD) $(OUTPUTDIR); \ | |
171 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
172 $(MAKE_ARGS) $(VM_TARGET) | |
173 else | |
174 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
175 endif | |
176 endif | |
177 | |
178 # Build compiler2 (server) rule, different for platforms | |
179 generic_build2: | |
180 $(MKDIR) -p $(OUTPUTDIR) | |
181 ifeq ($(OSNAME),windows) | |
182 $(CD) $(OUTPUTDIR); \ | |
183 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
184 Variant=compiler2 \ | |
185 WorkSpace=$(ABS_GAMMADIR) \ | |
186 BootStrapDir=$(ABS_BOOTDIR) \ | |
187 BuildUser=$(USERNAME) \ | |
188 $(MAKE_ARGS) $(VM_TARGET) | |
189 else | |
190 $(CD) $(OUTPUTDIR); \ | |
191 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
192 $(MAKE_ARGS) $(VM_TARGET) | |
193 endif | |
194 | |
195 generic_buildkernel: | |
196 $(MKDIR) -p $(OUTPUTDIR) | |
197 ifeq ($(OSNAME),windows) | |
198 ifeq ($(ARCH_DATA_MODEL), 32) | |
199 $(CD) $(OUTPUTDIR); \ | |
200 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
201 Variant=kernel \ | |
202 WorkSpace=$(ABS_GAMMADIR) \ | |
203 BootStrapDir=$(ABS_BOOTDIR) \ | |
204 BuildUser=$(USERNAME) \ | |
205 $(MAKE_ARGS) $(VM_TARGET:%kernel=%) | |
206 else | |
207 @$(ECHO) "No kernel ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
208 endif | |
209 else | |
210 @$(ECHO) "No kernel ($(VM_TARGET)) for OS_NAME=$(OSNAME)" | |
211 endif | |
212 | |
1010 | 213 generic_buildzero: |
214 $(MKDIR) -p $(OUTPUTDIR) | |
215 $(CD) $(OUTPUTDIR); \ | |
216 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
217 $(MAKE_ARGS) $(VM_TARGET) | |
218 | |
1692 | 219 generic_buildshark: |
220 $(MKDIR) -p $(OUTPUTDIR) | |
221 $(CD) $(OUTPUTDIR); \ | |
222 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
223 $(MAKE_ARGS) $(VM_TARGET) | |
224 | |
0 | 225 # Export file rule |
226 generic_export: $(EXPORT_LIST) | |
227 export_product: | |
228 $(MAKE) VM_SUBDIR=product generic_export | |
229 export_fastdebug: | |
230 $(MAKE) VM_SUBDIR=fastdebug EXPORT_SUBDIR=/fastdebug generic_export | |
231 export_debug: | |
232 $(MAKE) VM_SUBDIR=${VM_DEBUG} EXPORT_SUBDIR=/debug generic_export | |
233 export_optimized: | |
234 $(MAKE) VM_SUBDIR=optimized EXPORT_SUBDIR=/optimized generic_export | |
235 export_product_jdk: | |
236 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ | |
237 VM_SUBDIR=product generic_export | |
238 export_optimized_jdk: | |
239 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ | |
240 VM_SUBDIR=optimized generic_export | |
241 export_fastdebug_jdk: | |
242 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/fastdebug \ | |
243 VM_SUBDIR=fastdebug generic_export | |
244 export_debug_jdk: | |
245 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/debug \ | |
246 VM_SUBDIR=${VM_DEBUG} generic_export | |
247 | |
248 | |
249 # Export file copy rules | |
250 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt | |
251 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs | |
252 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 | |
253 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 | |
254 KERNEL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_kernel | |
1010 | 255 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero |
1692 | 256 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark |
0 | 257 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR) |
258 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR) | |
259 KERNEL_DIR=$(KERNEL_BASE_DIR)/$(VM_SUBDIR) | |
1010 | 260 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR) |
1692 | 261 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR) |
0 | 262 |
263 # Misc files and generated files need to come from C1 or C2 area | |
1010 | 264 ifeq ($(ZERO_BUILD), true) |
1692 | 265 ifeq ($(SHARK_BUILD), true) |
266 MISC_DIR=$(SHARK_DIR) | |
267 GEN_DIR=$(SHARK_BASE_DIR)/generated | |
268 else | |
1010 | 269 MISC_DIR=$(ZERO_DIR) |
270 GEN_DIR=$(ZERO_BASE_DIR)/generated | |
1692 | 271 endif |
1010 | 272 else |
0 | 273 ifeq ($(ARCH_DATA_MODEL), 32) |
274 MISC_DIR=$(C1_DIR) | |
275 GEN_DIR=$(C1_BASE_DIR)/generated | |
276 else | |
277 MISC_DIR=$(C2_DIR) | |
278 GEN_DIR=$(C2_BASE_DIR)/generated | |
279 endif | |
1010 | 280 endif |
0 | 281 |
282 # Bin files (windows) | |
283 ifeq ($(OSNAME),windows) | |
284 | |
285 # Get jvm.lib | |
286 $(EXPORT_LIB_DIR)/%.lib: $(MISC_DIR)/%.lib | |
287 $(install-file) | |
288 | |
289 # Other libraries (like SA) | |
290 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll | |
291 $(install-file) | |
292 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb | |
293 $(install-file) | |
294 $(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map | |
295 $(install-file) | |
296 | |
297 # Client files always come from C1 area | |
298 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll | |
299 $(install-file) | |
300 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb | |
301 $(install-file) | |
302 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map | |
303 $(install-file) | |
304 | |
305 # Server files always come from C2 area | |
306 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll | |
307 $(install-file) | |
308 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb | |
309 $(install-file) | |
310 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map | |
311 $(install-file) | |
312 | |
313 # Kernel files always come from kernel area | |
314 $(EXPORT_KERNEL_DIR)/%.dll: $(KERNEL_DIR)/%.dll | |
315 $(install-file) | |
316 $(EXPORT_KERNEL_DIR)/%.pdb: $(KERNEL_DIR)/%.pdb | |
317 $(install-file) | |
318 $(EXPORT_KERNEL_DIR)/%.map: $(KERNEL_DIR)/%.map | |
319 $(install-file) | |
320 endif | |
321 | |
322 # Shared Library | |
323 ifneq ($(OSNAME),windows) | |
1010 | 324 ifeq ($(ZERO_BUILD), true) |
1692 | 325 ifeq ($(SHARK_BUILD), true) |
3960 | 326 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 327 $(install-file) |
3960 | 328 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 329 $(install-file) |
330 else | |
3960 | 331 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 332 $(install-file) |
3960 | 333 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 334 $(install-file) |
1692 | 335 endif |
1010 | 336 else |
3960 | 337 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
338 $(install-file) |
3960 | 339 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 340 $(install-file) |
3960 | 341 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 342 $(install-file) |
3960 | 343 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 344 $(install-file) |
3960 | 345 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 346 $(install-file) |
3960 | 347 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 348 $(install-file) |
3954 | 349 |
350 # Debug info for shared library | |
351 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
352 $(install-file) | |
353 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
354 $(install-file) | |
355 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
356 $(install-file) | |
357 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo | |
358 $(install-file) | |
359 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
360 $(install-file) | |
361 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo | |
362 $(install-file) | |
1010 | 363 endif |
0 | 364 endif |
365 | |
366 # Jar file (sa-jdi.jar) | |
367 $(EXPORT_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar | |
368 $(install-file) | |
369 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
370 # Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h, jfr.h) |
0 | 371 $(EXPORT_INCLUDE_DIR)/%: $(GEN_DIR)/jvmtifiles/% |
372 $(install-file) | |
373 | |
1184
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
374 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/% |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
375 $(install-file) |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
376 |
0 | 377 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/% |
378 $(install-file) | |
379 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
380 HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h) |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
381 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC) |
0 | 382 $(install-file) |
383 | |
384 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/% | |
385 $(install-file) | |
386 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
387 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
388 # export jfr.h |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
389 ifeq ($JFR_EXISTS,1) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
390 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/% |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
391 $(install-file) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
392 else |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
393 $(EXPORT_INCLUDE_DIR)/jfr.h: |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
394 |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
395 endif |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
396 |
0 | 397 # Doc files (jvmti.html) |
398 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% | |
399 $(install-file) | |
400 | |
401 # Xusage file | |
402 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_KERNEL_DIR)/Xusage.txt: $(XUSAGE) | |
403 $(prep-target) | |
404 $(RM) $@.temp | |
405 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp | |
406 $(MV) $@.temp $@ | |
407 | |
408 # | |
409 # Clean rules | |
410 # | |
411 clobber clean: clean_build clean_export clean_jdk | |
412 clean_build: | |
413 $(RM) -r $(C1_DIR) | |
414 $(RM) -r $(C2_DIR) | |
415 $(RM) -r $(KERNEL_DIR) | |
1010 | 416 $(RM) -r $(ZERO_DIR) |
1692 | 417 $(RM) -r $(SHARK_DIR) |
0 | 418 clean_export: |
419 $(RM) -r $(EXPORT_PATH) | |
420 clean_jdk: | |
421 $(RM) -r $(JDK_IMAGE_DIR) | |
422 | |
423 # | |
424 # Create JDK and place this build into it | |
425 # | |
426 create_jdk: copy_jdk update_jdk | |
427 | |
428 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk | |
429 | |
430 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar | |
431 | |
432 $(JDK_IMAGE_DIR)/jre/lib/rt.jar: | |
433 $(RM) -r $(JDK_IMAGE_DIR) | |
434 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
435 ($(CD) $(JDK_IMPORT_PATH) && \ | |
436 $(TAR) -cf - *) | \ | |
437 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) | |
438 | |
439 test_jdk: | |
1010 | 440 ifneq ($(ZERO_BUILD), true) |
441 ifeq ($(ARCH_DATA_MODEL), 32) | |
0 | 442 $(JDK_IMAGE_DIR)/bin/java -client -version |
1010 | 443 endif |
0 | 444 endif |
445 $(JDK_IMAGE_DIR)/bin/java -server -version | |
446 | |
447 copy_product_jdk: | |
448 $(RM) -r $(JDK_IMAGE_DIR) | |
449 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
450 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
451 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 452 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) |
453 | |
454 copy_fastdebug_jdk: | |
455 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug | |
456 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug | |
457 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
458 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
459 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 460 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
461 else \ | |
462 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
463 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 464 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
465 fi | |
466 | |
467 copy_debug_jdk: | |
468 $(RM) -r $(JDK_IMAGE_DIR)/debug | |
469 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug | |
470 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \ | |
471 ($(CD) $(JDK_IMPORT_PATH)/debug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
472 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 473 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
474 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
475 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
476 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 477 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
478 else \ | |
479 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
480 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 481 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
482 fi | |
483 | |
4006 | 484 # macosx universal builds |
485 | |
486 ifeq ($(MACOSX_UNIVERSAL), true) | |
487 $(UNIVERSAL_LIPO_LIST): | |
488 lipo -create -output $@ $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) | |
489 | |
490 $(UNIVERSAL_COPY_LIST): | |
491 $(CP) $(EXPORT_JRE_LIB_DIR)/i386/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) $@ | |
492 | |
493 universalize: $(UNIVERSAL_LIPO_LIST) $(UNIVERSAL_COPY_LIST) | |
494 endif | |
495 | |
496 universal_product: | |
497 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_product | |
498 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_product | |
499 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
500 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
501 | |
502 universal_fastdebug: | |
503 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_fastdebug | |
504 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_fastdebug | |
505 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
506 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
507 | |
508 universal_debug: | |
509 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 MACOSX_UNIVERSAL=true all_debug | |
510 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 MACOSX_UNIVERSAL=true all_debug | |
511 $(MKDIR) -p $(EXPORT_JRE_LIB_DIR)/{client,server} | |
512 $(QUIETLY) $(MAKE) MACOSX_UNIVERSAL=true universalize | |
513 | |
0 | 514 # |
515 # Check target | |
516 # | |
517 check: variable_check | |
518 | |
519 # | |
520 # Help target | |
521 # | |
522 help: intro_help target_help variable_help notes_help examples_help | |
523 | |
524 # Intro help message | |
525 intro_help: | |
526 @$(ECHO) \ | |
527 "Makefile for the Hotspot workspace." | |
528 @$(ECHO) \ | |
529 "Default behavior is to build and create an export area for the j2se builds." | |
530 | |
531 # Target help | |
532 target_help: | |
533 @$(ECHO) "help: This help message" | |
534 @$(ECHO) "all: Same as: all_product all_fastdebug" | |
535 @$(ECHO) "world: Same as: all create_jdk" | |
536 @$(ECHO) "all_product: Same as: product product1 export_product" | |
537 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug" | |
538 @$(ECHO) "all_debug: Same as: jvmg jvmg1 export_debug" | |
539 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized" | |
540 @$(ECHO) "clean: Clean all areas" | |
541 @$(ECHO) "export_product: Export product files to EXPORT_PATH" | |
542 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH" | |
543 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH" | |
544 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH" | |
545 @$(ECHO) "create_jdk: Create JDK image, export all files into it" | |
546 @$(ECHO) "update_jdk: Update JDK image with fresh exported files" | |
547 @$(ECHO) " " | |
548 @$(ECHO) "Others targets are:" | |
549 @$(ECHO) " $(C1_VM_TARGETS)" | |
550 @$(ECHO) " $(C2_VM_TARGETS)" | |
551 @$(ECHO) " $(KERNEL_VM_TARGETS)" | |
552 | |
553 # Variable help (only common ones used by this workspace) | |
554 variable_help: variable_help_intro variable_list variable_help_end | |
555 variable_help_intro: | |
556 @$(ECHO) "--- Common Variables ---" | |
557 variable_help_end: | |
558 @$(ECHO) " " | |
559 @$(ECHO) "--- Make Arguments ---" | |
560 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)" | |
561 | |
562 # One line descriptions for the variables | |
563 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: | |
564 OUTPUTDIR.desc = Output directory, default is build/<osname> | |
565 BOOTDIR.desc = JDK used to compile agent java source and test with | |
566 JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk' | |
567 EXPORT_PATH.desc = Directory to place files to export for JDK build | |
568 | |
569 # Make variables to print out (description and value) | |
570 VARIABLE_PRINTVAL_LIST += \ | |
571 SLASH_JAVA \ | |
572 OUTPUTDIR \ | |
573 BOOTDIR \ | |
574 JDK_IMPORT_PATH \ | |
575 EXPORT_PATH | |
576 | |
577 # Make variables that should refer to directories that exist | |
578 VARIABLE_CHECKDIR_LIST += \ | |
579 SLASH_JAVA \ | |
580 BOOTDIR \ | |
581 JDK_IMPORT_PATH | |
582 | |
583 # For pattern rules below, so all are treated the same | |
584 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) | |
585 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) | |
586 | |
587 # Complete variable check | |
588 variable_check: $(DO_CHECKDIR_LIST) | |
589 variable_list: $(DO_PRINTVAL_LIST) variable_check | |
590 | |
591 # Pattern rule for printing out a variable | |
592 %.printval: | |
593 @$(ECHO) " ALT_$* - $($*.desc)" | |
594 @$(ECHO) " $*=$($*)" | |
595 | |
596 # Pattern rule for checking to see if a variable with a directory exists | |
597 %.checkdir: | |
598 @if [ ! -d $($*) ] ; then \ | |
599 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
600 fi | |
601 | |
602 # Pattern rule for checking to see if a variable with a file exists | |
603 %.checkfil: | |
604 @if [ ! -f $($*) ] ; then \ | |
605 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
606 fi | |
607 | |
608 # Misc notes on help | |
609 notes_help: | |
610 @$(ECHO) \ | |
611 "--- Notes --- " | |
612 @$(ECHO) \ | |
613 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted" | |
614 @$(ECHO) \ | |
615 " builds or previous release JDK builds will work." | |
616 @$(ECHO) \ | |
617 "- The fastest builds have been when the workspace and the BOOTDIR are on" | |
618 @$(ECHO) \ | |
619 " local disk." | |
620 | |
621 examples_help: | |
622 @$(ECHO) \ | |
623 "--- Examples --- " | |
624 @$(ECHO) \ | |
625 " $(MAKE) all" | |
626 @$(ECHO) \ | |
627 " $(MAKE) world" | |
628 @$(ECHO) \ | |
629 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" | |
630 @$(ECHO) \ | |
631 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)" | |
632 | |
633 # JPRT rule to build this workspace | |
634 include $(GAMMADIR)/make/jprt.gmk | |
635 | |
636 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \ | |
637 $(KERNEL_VM_TARGETS) \ | |
638 generic_build1 generic_build2 generic_buildkernel generic_export \ | |
639 export_product export_fastdebug export_debug export_optimized \ | |
640 export_jdk_product export_jdk_fastdebug export_jdk_debug \ | |
641 create_jdk copy_jdk update_jdk test_jdk \ | |
4006 | 642 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk universalize \ |
643 universal_product | |
0 | 644 |