Mercurial > hg > graal-compiler
annotate make/Makefile @ 5311:46fb141ae20f
Merge
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 26 Apr 2012 14:35:25 +0200 |
parents | 33df1aeaebbf |
children | 957c266d8bc5 |
rev | line source |
---|---|
0 | 1 # |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
2 # Copyright (c) 2005, 2012, 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 |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
91 GRAAL_VM_TARGETS=productgraal fastdebuggraal optimizedgraal jvmggraal |
0 | 92 |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
93 COMMON_VM_PRODUCT_TARGETS=product product1 productkernel docs export_product |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
94 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 fastdebugkernel docs export_fastdebug |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
95 COMMON_VM_DEBUG_TARGETS=jvmg jvmg1 jvmgkernel docs export_debug |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
96 |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
97 # JDK directory list |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
98 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
|
99 |
0 | 100 all: all_product all_fastdebug |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
101 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
102 ifdef BUILD_CLIENT_ONLY |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
103 all_product: product1 docs export_product |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
104 all_fastdebug: fastdebug1 docs export_fastdebug |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
105 all_debug: jvmg1 docs export_debug |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
106 else |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
107 ifeq ($(MACOSX_UNIVERSAL),true) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
108 all_product: universal_product |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
109 all_fastdebug: universal_fastdebug |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
110 all_debug: universal_debug |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
111 else |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
112 all_product: $(COMMON_VM_PRODUCT_TARGETS) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
113 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
114 all_debug: $(COMMON_VM_DEBUG_TARGETS) |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
115 endif |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
116 endif |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
117 |
0 | 118 all_optimized: optimized optimized1 optimizedkernel docs export_optimized |
119 | |
1010 | 120 allzero: all_productzero all_fastdebugzero |
121 all_productzero: productzero docs export_product | |
122 all_fastdebugzero: fastdebugzero docs export_fastdebug | |
123 all_debugzero: jvmgzero docs export_debug | |
124 all_optimizedzero: optimizedzero docs export_optimized | |
125 | |
1692 | 126 allshark: all_productshark all_fastdebugshark |
127 all_productshark: productshark docs export_product | |
128 all_fastdebugshark: fastdebugshark docs export_fastdebug | |
129 all_debugshark: jvmgshark docs export_debug | |
130 all_optimizedshark: optimizedshark docs export_optimized | |
131 | |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
132 allgraal: all_productgraal all_fastdebuggraal |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
133 all_productgraal: productgraal docs export_product |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
134 all_fastdebuggraal: fastdebuggraal docs export_fastdebug |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
135 all_debuggraal: jvmggraal docs export_debug |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
136 all_optimizedgraal: optimizedgraal docs export_optimized |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
137 |
0 | 138 # Do everything |
139 world: all create_jdk | |
140 | |
141 # Build or export docs | |
142 docs: | |
143 ifeq ($(OSNAME),windows) | |
144 @$(ECHO) "No docs ($(VM_TARGET)) for windows" | |
145 else | |
146 $(CD) $(OUTPUTDIR); \ | |
147 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
148 $(MAKE_ARGS) docs | |
149 endif | |
150 | |
151 # Build variation of hotspot | |
152 $(C1_VM_TARGETS): | |
153 $(CD) $(GAMMADIR)/make; \ | |
154 $(MAKE) VM_TARGET=$@ generic_build1 $(ALT_OUT) | |
155 | |
156 $(C2_VM_TARGETS): | |
157 $(CD) $(GAMMADIR)/make; \ | |
158 $(MAKE) VM_TARGET=$@ generic_build2 $(ALT_OUT) | |
159 | |
160 $(KERNEL_VM_TARGETS): | |
161 $(CD) $(GAMMADIR)/make; \ | |
162 $(MAKE) VM_TARGET=$@ generic_buildkernel $(ALT_OUT) | |
163 | |
1010 | 164 $(ZERO_VM_TARGETS): |
165 $(CD) $(GAMMADIR)/make; \ | |
166 $(MAKE) VM_TARGET=$@ generic_buildzero $(ALT_OUT) | |
167 | |
1692 | 168 $(SHARK_VM_TARGETS): |
169 $(CD) $(GAMMADIR)/make; \ | |
170 $(MAKE) VM_TARGET=$@ generic_buildshark $(ALT_OUT) | |
171 | |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
172 $(GRAAL_VM_TARGETS): |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
173 $(CD) $(GAMMADIR)/make; \ |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
174 $(MAKE) VM_TARGET=$@ generic_buildgraal $(ALT_OUT) |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
175 |
0 | 176 # Build compiler1 (client) rule, different for platforms |
177 generic_build1: | |
178 $(MKDIR) -p $(OUTPUTDIR) | |
179 ifeq ($(OSNAME),windows) | |
180 ifeq ($(ARCH_DATA_MODEL), 32) | |
181 $(CD) $(OUTPUTDIR); \ | |
182 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
183 Variant=compiler1 \ | |
184 WorkSpace=$(ABS_GAMMADIR) \ | |
185 BootStrapDir=$(ABS_BOOTDIR) \ | |
186 BuildUser=$(USERNAME) \ | |
187 $(MAKE_ARGS) $(VM_TARGET:%1=%) | |
188 else | |
189 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
190 endif | |
191 else | |
192 $(CD) $(OUTPUTDIR); \ | |
193 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
194 $(MAKE_ARGS) $(VM_TARGET) | |
195 endif | |
196 | |
197 # Build compiler2 (server) rule, different for platforms | |
198 generic_build2: | |
199 $(MKDIR) -p $(OUTPUTDIR) | |
200 ifeq ($(OSNAME),windows) | |
201 $(CD) $(OUTPUTDIR); \ | |
202 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
203 Variant=compiler2 \ | |
204 WorkSpace=$(ABS_GAMMADIR) \ | |
205 BootStrapDir=$(ABS_BOOTDIR) \ | |
206 BuildUser=$(USERNAME) \ | |
207 $(MAKE_ARGS) $(VM_TARGET) | |
208 else | |
209 $(CD) $(OUTPUTDIR); \ | |
210 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
211 $(MAKE_ARGS) $(VM_TARGET) | |
212 endif | |
213 | |
214 generic_buildkernel: | |
215 $(MKDIR) -p $(OUTPUTDIR) | |
216 ifeq ($(OSNAME),windows) | |
217 ifeq ($(ARCH_DATA_MODEL), 32) | |
218 $(CD) $(OUTPUTDIR); \ | |
219 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
220 Variant=kernel \ | |
221 WorkSpace=$(ABS_GAMMADIR) \ | |
222 BootStrapDir=$(ABS_BOOTDIR) \ | |
223 BuildUser=$(USERNAME) \ | |
224 $(MAKE_ARGS) $(VM_TARGET:%kernel=%) | |
225 else | |
226 @$(ECHO) "No kernel ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
227 endif | |
228 else | |
229 @$(ECHO) "No kernel ($(VM_TARGET)) for OS_NAME=$(OSNAME)" | |
230 endif | |
231 | |
1010 | 232 generic_buildzero: |
233 $(MKDIR) -p $(OUTPUTDIR) | |
234 $(CD) $(OUTPUTDIR); \ | |
235 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
236 $(MAKE_ARGS) $(VM_TARGET) | |
237 | |
1692 | 238 generic_buildshark: |
239 $(MKDIR) -p $(OUTPUTDIR) | |
240 $(CD) $(OUTPUTDIR); \ | |
241 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
242 $(MAKE_ARGS) $(VM_TARGET) | |
243 | |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
244 generic_buildgraal: |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
245 $(MKDIR) -p $(OUTPUTDIR) |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
246 $(CD) $(OUTPUTDIR); \ |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
247 $(MAKE) -f $(ABS_OS_MAKEFILE) \ |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
248 $(MAKE_ARGS) $(VM_TARGET) |
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
249 |
0 | 250 # Export file rule |
251 generic_export: $(EXPORT_LIST) | |
252 export_product: | |
253 $(MAKE) VM_SUBDIR=product generic_export | |
254 export_fastdebug: | |
255 $(MAKE) VM_SUBDIR=fastdebug EXPORT_SUBDIR=/fastdebug generic_export | |
256 export_debug: | |
257 $(MAKE) VM_SUBDIR=${VM_DEBUG} EXPORT_SUBDIR=/debug generic_export | |
258 export_optimized: | |
259 $(MAKE) VM_SUBDIR=optimized EXPORT_SUBDIR=/optimized generic_export | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
260 export_product_jdk:: |
0 | 261 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ |
262 VM_SUBDIR=product generic_export | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
263 export_optimized_jdk:: |
0 | 264 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ |
265 VM_SUBDIR=optimized generic_export | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
266 export_fastdebug_jdk:: |
0 | 267 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/fastdebug \ |
268 VM_SUBDIR=fastdebug generic_export | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
269 export_debug_jdk:: |
0 | 270 $(MAKE) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/debug \ |
271 VM_SUBDIR=${VM_DEBUG} generic_export | |
272 | |
273 # Export file copy rules | |
274 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt | |
275 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs | |
276 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 | |
277 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 | |
278 KERNEL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_kernel | |
1010 | 279 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero |
1692 | 280 SHARK_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_shark |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
281 GRAAL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_graal |
0 | 282 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR) |
283 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR) | |
284 KERNEL_DIR=$(KERNEL_BASE_DIR)/$(VM_SUBDIR) | |
1010 | 285 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR) |
1692 | 286 SHARK_DIR=$(SHARK_BASE_DIR)/$(VM_SUBDIR) |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
287 GRAAL_DIR=$(GRAAL_BASE_DIR)/$(VM_SUBDIR) |
0 | 288 |
289 # Misc files and generated files need to come from C1 or C2 area | |
1010 | 290 ifeq ($(ZERO_BUILD), true) |
1692 | 291 ifeq ($(SHARK_BUILD), true) |
292 MISC_DIR=$(SHARK_DIR) | |
293 GEN_DIR=$(SHARK_BASE_DIR)/generated | |
294 else | |
1010 | 295 MISC_DIR=$(ZERO_DIR) |
296 GEN_DIR=$(ZERO_BASE_DIR)/generated | |
1692 | 297 endif |
1010 | 298 else |
0 | 299 ifeq ($(ARCH_DATA_MODEL), 32) |
300 MISC_DIR=$(C1_DIR) | |
301 GEN_DIR=$(C1_BASE_DIR)/generated | |
302 else | |
303 MISC_DIR=$(C2_DIR) | |
304 GEN_DIR=$(C2_BASE_DIR)/generated | |
305 endif | |
1010 | 306 endif |
0 | 307 |
308 # Bin files (windows) | |
309 ifeq ($(OSNAME),windows) | |
310 | |
311 # Get jvm.lib | |
312 $(EXPORT_LIB_DIR)/%.lib: $(MISC_DIR)/%.lib | |
313 $(install-file) | |
314 | |
315 # Other libraries (like SA) | |
316 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll | |
317 $(install-file) | |
318 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb | |
319 $(install-file) | |
320 $(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map | |
321 $(install-file) | |
322 | |
323 # Client files always come from C1 area | |
324 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll | |
325 $(install-file) | |
326 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb | |
327 $(install-file) | |
328 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map | |
329 $(install-file) | |
330 | |
331 # Server files always come from C2 area | |
332 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll | |
333 $(install-file) | |
334 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb | |
335 $(install-file) | |
336 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map | |
337 $(install-file) | |
338 | |
339 # Kernel files always come from kernel area | |
340 $(EXPORT_KERNEL_DIR)/%.dll: $(KERNEL_DIR)/%.dll | |
341 $(install-file) | |
342 $(EXPORT_KERNEL_DIR)/%.pdb: $(KERNEL_DIR)/%.pdb | |
343 $(install-file) | |
344 $(EXPORT_KERNEL_DIR)/%.map: $(KERNEL_DIR)/%.map | |
345 $(install-file) | |
346 endif | |
347 | |
348 # Shared Library | |
349 ifneq ($(OSNAME),windows) | |
1010 | 350 ifeq ($(ZERO_BUILD), true) |
1692 | 351 ifeq ($(SHARK_BUILD), true) |
3960 | 352 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 353 $(install-file) |
3960 | 354 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
1692 | 355 $(install-file) |
356 else | |
3960 | 357 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 358 $(install-file) |
3960 | 359 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
1010 | 360 $(install-file) |
1692 | 361 endif |
1010 | 362 else |
3960 | 363 $(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
|
364 $(install-file) |
3960 | 365 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 366 $(install-file) |
3960 | 367 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 368 $(install-file) |
3960 | 369 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 370 $(install-file) |
3960 | 371 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 372 $(install-file) |
3960 | 373 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
0 | 374 $(install-file) |
3954 | 375 |
376 # Debug info for shared library | |
377 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
378 $(install-file) | |
379 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
380 $(install-file) | |
381 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo | |
382 $(install-file) | |
383 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo | |
384 $(install-file) | |
385 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo | |
386 $(install-file) | |
387 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo | |
388 $(install-file) | |
1010 | 389 endif |
0 | 390 endif |
391 | |
392 # Jar file (sa-jdi.jar) | |
393 $(EXPORT_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar | |
394 $(install-file) | |
395 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
396 # Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h, jfr.h) |
0 | 397 $(EXPORT_INCLUDE_DIR)/%: $(GEN_DIR)/jvmtifiles/% |
398 $(install-file) | |
399 | |
1184
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
400 $(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
|
401 $(install-file) |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
402 |
0 | 403 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/% |
404 $(install-file) | |
405 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
406 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
|
407 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC) |
0 | 408 $(install-file) |
409 | |
410 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/% | |
411 $(install-file) | |
412 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
413 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
|
414 # export jfr.h |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
415 ifeq ($JFR_EXISTS,1) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
416 $(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
|
417 $(install-file) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
418 else |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
419 $(EXPORT_INCLUDE_DIR)/jfr.h: |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
420 endif |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
421 |
0 | 422 # Doc files (jvmti.html) |
423 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% | |
424 $(install-file) | |
425 | |
426 # Xusage file | |
427 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_KERNEL_DIR)/Xusage.txt: $(XUSAGE) | |
428 $(prep-target) | |
429 $(RM) $@.temp | |
430 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp | |
431 $(MV) $@.temp $@ | |
432 | |
433 # | |
434 # Clean rules | |
435 # | |
436 clobber clean: clean_build clean_export clean_jdk | |
437 clean_build: | |
438 $(RM) -r $(C1_DIR) | |
439 $(RM) -r $(C2_DIR) | |
440 $(RM) -r $(KERNEL_DIR) | |
1010 | 441 $(RM) -r $(ZERO_DIR) |
1692 | 442 $(RM) -r $(SHARK_DIR) |
3547
44da449fc29c
Update linux makefiles to create a graal VM, make a few run* +x
Gilles Duboscq <gilles.duboscq@oracle.com>
parents:
2273
diff
changeset
|
443 $(RM) -r $(GRAAL_DIR) |
0 | 444 clean_export: |
445 $(RM) -r $(EXPORT_PATH) | |
446 clean_jdk: | |
447 $(RM) -r $(JDK_IMAGE_DIR) | |
448 | |
449 # | |
450 # Create JDK and place this build into it | |
451 # | |
452 create_jdk: copy_jdk update_jdk | |
453 | |
454 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk | |
455 | |
456 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar | |
457 | |
458 $(JDK_IMAGE_DIR)/jre/lib/rt.jar: | |
459 $(RM) -r $(JDK_IMAGE_DIR) | |
460 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
461 ($(CD) $(JDK_IMPORT_PATH) && \ | |
462 $(TAR) -cf - *) | \ | |
463 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) | |
464 | |
465 test_jdk: | |
1010 | 466 ifeq ($(ARCH_DATA_MODEL), 32) |
4940
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
467 ifneq ($(ZERO_BUILD), true) |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
468 $(JDK_IMAGE_DIR)/bin/java -d32 -client -Xinternalversion |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
469 $(JDK_IMAGE_DIR)/bin/java -d32 -client -version |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
470 endif |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
471 $(JDK_IMAGE_DIR)/bin/java -d32 -server -Xinternalversion |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
472 $(JDK_IMAGE_DIR)/bin/java -d32 -server -version |
1010 | 473 endif |
4940
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
474 ifeq ($(ARCH_DATA_MODEL), 64) |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
475 $(JDK_IMAGE_DIR)/bin/java -d64 -server -Xinternalversion |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
476 $(JDK_IMAGE_DIR)/bin/java -d64 -server -version |
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
477 endif |
0 | 478 |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
479 copy_product_jdk:: |
0 | 480 $(RM) -r $(JDK_IMAGE_DIR) |
481 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
482 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
483 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 484 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) |
485 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
486 copy_fastdebug_jdk:: |
0 | 487 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug |
488 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug | |
489 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
490 ($(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
|
491 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 492 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
493 else \ | |
494 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
495 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 496 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
497 fi | |
498 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
499 copy_debug_jdk:: |
0 | 500 $(RM) -r $(JDK_IMAGE_DIR)/debug |
501 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug | |
502 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \ | |
503 ($(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
|
504 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 505 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
506 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
507 ($(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
|
508 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 509 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
510 else \ | |
511 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
512 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 513 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
514 fi | |
515 | |
516 # | |
517 # Check target | |
518 # | |
519 check: variable_check | |
520 | |
521 # | |
522 # Help target | |
523 # | |
524 help: intro_help target_help variable_help notes_help examples_help | |
525 | |
526 # Intro help message | |
527 intro_help: | |
528 @$(ECHO) \ | |
529 "Makefile for the Hotspot workspace." | |
530 @$(ECHO) \ | |
531 "Default behavior is to build and create an export area for the j2se builds." | |
532 | |
533 # Target help | |
534 target_help: | |
535 @$(ECHO) "help: This help message" | |
536 @$(ECHO) "all: Same as: all_product all_fastdebug" | |
537 @$(ECHO) "world: Same as: all create_jdk" | |
538 @$(ECHO) "all_product: Same as: product product1 export_product" | |
539 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug" | |
540 @$(ECHO) "all_debug: Same as: jvmg jvmg1 export_debug" | |
541 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized" | |
542 @$(ECHO) "clean: Clean all areas" | |
543 @$(ECHO) "export_product: Export product files to EXPORT_PATH" | |
544 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH" | |
545 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH" | |
546 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH" | |
547 @$(ECHO) "create_jdk: Create JDK image, export all files into it" | |
548 @$(ECHO) "update_jdk: Update JDK image with fresh exported files" | |
549 @$(ECHO) " " | |
550 @$(ECHO) "Others targets are:" | |
551 @$(ECHO) " $(C1_VM_TARGETS)" | |
552 @$(ECHO) " $(C2_VM_TARGETS)" | |
553 @$(ECHO) " $(KERNEL_VM_TARGETS)" | |
554 | |
555 # Variable help (only common ones used by this workspace) | |
556 variable_help: variable_help_intro variable_list variable_help_end | |
557 variable_help_intro: | |
558 @$(ECHO) "--- Common Variables ---" | |
559 variable_help_end: | |
560 @$(ECHO) " " | |
561 @$(ECHO) "--- Make Arguments ---" | |
562 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)" | |
563 | |
564 # One line descriptions for the variables | |
565 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: | |
566 OUTPUTDIR.desc = Output directory, default is build/<osname> | |
567 BOOTDIR.desc = JDK used to compile agent java source and test with | |
568 JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk' | |
4940
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
569 JDK_IMAGE_DIR.desc = Directory to place JDK to copy |
0 | 570 EXPORT_PATH.desc = Directory to place files to export for JDK build |
571 | |
572 # Make variables to print out (description and value) | |
573 VARIABLE_PRINTVAL_LIST += \ | |
574 SLASH_JAVA \ | |
575 OUTPUTDIR \ | |
576 BOOTDIR \ | |
577 JDK_IMPORT_PATH \ | |
4940
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
578 JDK_IMAGE_DIR \ |
0 | 579 EXPORT_PATH |
580 | |
581 # Make variables that should refer to directories that exist | |
582 VARIABLE_CHECKDIR_LIST += \ | |
583 SLASH_JAVA \ | |
584 BOOTDIR \ | |
585 JDK_IMPORT_PATH | |
586 | |
587 # For pattern rules below, so all are treated the same | |
588 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) | |
589 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) | |
590 | |
591 # Complete variable check | |
592 variable_check: $(DO_CHECKDIR_LIST) | |
593 variable_list: $(DO_PRINTVAL_LIST) variable_check | |
594 | |
595 # Pattern rule for printing out a variable | |
596 %.printval: | |
597 @$(ECHO) " ALT_$* - $($*.desc)" | |
598 @$(ECHO) " $*=$($*)" | |
599 | |
600 # Pattern rule for checking to see if a variable with a directory exists | |
601 %.checkdir: | |
602 @if [ ! -d $($*) ] ; then \ | |
603 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
604 fi | |
605 | |
606 # Pattern rule for checking to see if a variable with a file exists | |
607 %.checkfil: | |
608 @if [ ! -f $($*) ] ; then \ | |
609 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
610 fi | |
611 | |
612 # Misc notes on help | |
613 notes_help: | |
614 @$(ECHO) \ | |
615 "--- Notes --- " | |
616 @$(ECHO) \ | |
617 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted" | |
618 @$(ECHO) \ | |
619 " builds or previous release JDK builds will work." | |
620 @$(ECHO) \ | |
621 "- The fastest builds have been when the workspace and the BOOTDIR are on" | |
622 @$(ECHO) \ | |
623 " local disk." | |
624 | |
625 examples_help: | |
626 @$(ECHO) \ | |
627 "--- Examples --- " | |
628 @$(ECHO) \ | |
629 " $(MAKE) all" | |
630 @$(ECHO) \ | |
631 " $(MAKE) world" | |
632 @$(ECHO) \ | |
633 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" | |
634 @$(ECHO) \ | |
635 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)" | |
636 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
637 # Universal build support |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
638 ifeq ($(OS_VENDOR), Darwin) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
639 ifeq ($(MACOSX_UNIVERSAL),true) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
640 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
641 endif |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
642 endif |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
643 |
0 | 644 # JPRT rule to build this workspace |
645 include $(GAMMADIR)/make/jprt.gmk | |
646 | |
647 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \ | |
648 $(KERNEL_VM_TARGETS) \ | |
649 generic_build1 generic_build2 generic_buildkernel generic_export \ | |
650 export_product export_fastdebug export_debug export_optimized \ | |
651 export_jdk_product export_jdk_fastdebug export_jdk_debug \ | |
652 create_jdk copy_jdk update_jdk test_jdk \ | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
653 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk |