Mercurial > hg > truffle
annotate make/Makefile @ 6542:592782b4bc00
Change that was missing in earlier improvements to annotation processing in the mx script
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 09 Oct 2012 15:39:49 -0700 |
parents | 957c266d8bc5 |
children | e522a00b91aa |
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 | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
146 # We specify 'BUILD_FLAVOR=product' so that the proper |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
147 # ENABLE_FULL_DEBUG_SYMBOLS value is used. |
0 | 148 $(CD) $(OUTPUTDIR); \ |
149 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
150 $(MAKE_ARGS) BUILD_FLAVOR=product docs |
0 | 151 endif |
152 | |
153 # Build variation of hotspot | |
154 $(C1_VM_TARGETS): | |
155 $(CD) $(GAMMADIR)/make; \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
156 $(MAKE) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT) |
0 | 157 |
158 $(C2_VM_TARGETS): | |
159 $(CD) $(GAMMADIR)/make; \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
160 $(MAKE) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT) |
0 | 161 |
162 $(KERNEL_VM_TARGETS): | |
163 $(CD) $(GAMMADIR)/make; \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
164 $(MAKE) BUILD_FLAVOR=$(@:%kernel=%) VM_TARGET=$@ \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
165 generic_buildkernel $(ALT_OUT) |
0 | 166 |
1010 | 167 $(ZERO_VM_TARGETS): |
168 $(CD) $(GAMMADIR)/make; \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
169 $(MAKE) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
170 generic_buildzero $(ALT_OUT) |
1010 | 171 |
1692 | 172 $(SHARK_VM_TARGETS): |
173 $(CD) $(GAMMADIR)/make; \ | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
174 $(MAKE) BUILD_FLAVOR=$(@:%shark=%) VM_TARGET=$@ \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
175 generic_buildshark $(ALT_OUT) |
1692 | 176 |
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
|
177 $(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
|
178 $(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
|
179 $(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
|
180 |
0 | 181 # Build compiler1 (client) rule, different for platforms |
182 generic_build1: | |
183 $(MKDIR) -p $(OUTPUTDIR) | |
184 ifeq ($(OSNAME),windows) | |
185 ifeq ($(ARCH_DATA_MODEL), 32) | |
186 $(CD) $(OUTPUTDIR); \ | |
187 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
188 Variant=compiler1 \ | |
189 WorkSpace=$(ABS_GAMMADIR) \ | |
190 BootStrapDir=$(ABS_BOOTDIR) \ | |
191 BuildUser=$(USERNAME) \ | |
192 $(MAKE_ARGS) $(VM_TARGET:%1=%) | |
193 else | |
194 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
195 endif | |
196 else | |
197 $(CD) $(OUTPUTDIR); \ | |
198 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
199 $(MAKE_ARGS) $(VM_TARGET) | |
200 endif | |
201 | |
202 # Build compiler2 (server) rule, different for platforms | |
203 generic_build2: | |
204 $(MKDIR) -p $(OUTPUTDIR) | |
205 ifeq ($(OSNAME),windows) | |
206 $(CD) $(OUTPUTDIR); \ | |
207 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
208 Variant=compiler2 \ | |
209 WorkSpace=$(ABS_GAMMADIR) \ | |
210 BootStrapDir=$(ABS_BOOTDIR) \ | |
211 BuildUser=$(USERNAME) \ | |
212 $(MAKE_ARGS) $(VM_TARGET) | |
213 else | |
214 $(CD) $(OUTPUTDIR); \ | |
215 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
216 $(MAKE_ARGS) $(VM_TARGET) | |
217 endif | |
218 | |
219 generic_buildkernel: | |
220 $(MKDIR) -p $(OUTPUTDIR) | |
221 ifeq ($(OSNAME),windows) | |
222 ifeq ($(ARCH_DATA_MODEL), 32) | |
223 $(CD) $(OUTPUTDIR); \ | |
224 $(NMAKE) -f $(ABS_OS_MAKEFILE) \ | |
225 Variant=kernel \ | |
226 WorkSpace=$(ABS_GAMMADIR) \ | |
227 BootStrapDir=$(ABS_BOOTDIR) \ | |
228 BuildUser=$(USERNAME) \ | |
229 $(MAKE_ARGS) $(VM_TARGET:%kernel=%) | |
230 else | |
231 @$(ECHO) "No kernel ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" | |
232 endif | |
233 else | |
234 @$(ECHO) "No kernel ($(VM_TARGET)) for OS_NAME=$(OSNAME)" | |
235 endif | |
236 | |
1010 | 237 generic_buildzero: |
238 $(MKDIR) -p $(OUTPUTDIR) | |
239 $(CD) $(OUTPUTDIR); \ | |
240 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
241 $(MAKE_ARGS) $(VM_TARGET) | |
242 | |
1692 | 243 generic_buildshark: |
244 $(MKDIR) -p $(OUTPUTDIR) | |
245 $(CD) $(OUTPUTDIR); \ | |
246 $(MAKE) -f $(ABS_OS_MAKEFILE) \ | |
247 $(MAKE_ARGS) $(VM_TARGET) | |
248 | |
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
|
249 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
|
250 $(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
|
251 $(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
|
252 $(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
|
253 $(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
|
254 |
0 | 255 # Export file rule |
256 generic_export: $(EXPORT_LIST) | |
257 export_product: | |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
258 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
259 generic_export |
0 | 260 export_fastdebug: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
261 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
262 EXPORT_SUBDIR=/$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
263 generic_export |
0 | 264 export_debug: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
265 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=${VM_DEBUG} \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
266 EXPORT_SUBDIR=/$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
267 generic_export |
0 | 268 export_optimized: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
269 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
270 EXPORT_SUBDIR=/$(@:export_%=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
271 generic_export |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
272 export_product_jdk:: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
273 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
274 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
275 generic_export |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
276 export_optimized_jdk:: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
277 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
278 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
279 generic_export |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
280 export_fastdebug_jdk:: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
281 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
282 VM_SUBDIR=$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
283 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
284 generic_export |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
285 export_debug_jdk:: |
6021
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
286 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) VM_SUBDIR=${VM_DEBUG} \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
287 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \ |
744728c16316
7158067: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect product builds
dcubed
parents:
6020
diff
changeset
|
288 generic_export |
0 | 289 |
290 # Export file copy rules | |
291 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt | |
292 DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs | |
293 C1_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 | |
294 C2_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 | |
295 KERNEL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_kernel | |
1010 | 296 ZERO_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_zero |
1692 | 297 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
|
298 GRAAL_BASE_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_graal |
0 | 299 C1_DIR=$(C1_BASE_DIR)/$(VM_SUBDIR) |
300 C2_DIR=$(C2_BASE_DIR)/$(VM_SUBDIR) | |
301 KERNEL_DIR=$(KERNEL_BASE_DIR)/$(VM_SUBDIR) | |
1010 | 302 ZERO_DIR=$(ZERO_BASE_DIR)/$(VM_SUBDIR) |
1692 | 303 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
|
304 GRAAL_DIR=$(GRAAL_BASE_DIR)/$(VM_SUBDIR) |
0 | 305 |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
306 ifeq ($(JVM_VARIANT_SERVER), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
307 MISC_DIR=$(C2_DIR) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
308 GEN_DIR=$(C2_BASE_DIR)/generated |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
309 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
310 ifeq ($(JVM_VARIANT_CLIENT), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
311 MISC_DIR=$(C1_DIR) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
312 GEN_DIR=$(C1_BASE_DIR)/generated |
1692 | 313 endif |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
314 ifeq ($(JVM_VARIANT_KERNEL), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
315 MISC_DIR=$(C2_DIR) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
316 GEN_DIR=$(C2_BASE_DIR)/generated |
0 | 317 endif |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
318 ifeq ($(JVM_VARIANT_ZEROSHARK), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
319 MISC_DIR=$(SHARK_DIR) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
320 GEN_DIR=$(SHARK_BASE_DIR)/generated |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
321 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
322 ifeq ($(JVM_VARIANT_ZERO), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
323 MISC_DIR=$(ZERO_DIR) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
324 GEN_DIR=$(ZERO_BASE_DIR)/generated |
1010 | 325 endif |
0 | 326 |
327 # Bin files (windows) | |
328 ifeq ($(OSNAME),windows) | |
329 | |
330 # Get jvm.lib | |
331 $(EXPORT_LIB_DIR)/%.lib: $(MISC_DIR)/%.lib | |
332 $(install-file) | |
333 | |
334 # Other libraries (like SA) | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
335 $(EXPORT_JRE_BIN_DIR)/%.diz: $(MISC_DIR)/%.diz |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
336 $(install-file) |
0 | 337 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MISC_DIR)/%.dll |
338 $(install-file) | |
339 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MISC_DIR)/%.pdb | |
340 $(install-file) | |
341 $(EXPORT_JRE_BIN_DIR)/%.map: $(MISC_DIR)/%.map | |
342 $(install-file) | |
343 | |
344 # Client files always come from C1 area | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
345 $(EXPORT_CLIENT_DIR)/%.diz: $(C1_DIR)/%.diz |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
346 $(install-file) |
0 | 347 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll |
348 $(install-file) | |
349 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb | |
350 $(install-file) | |
351 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map | |
352 $(install-file) | |
353 | |
354 # Server files always come from C2 area | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
355 $(EXPORT_SERVER_DIR)/%.diz: $(C2_DIR)/%.diz |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
356 $(install-file) |
0 | 357 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll |
358 $(install-file) | |
359 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb | |
360 $(install-file) | |
361 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map | |
362 $(install-file) | |
363 | |
364 # Kernel files always come from kernel area | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
365 $(EXPORT_KERNEL_DIR)/%.diz: $(KERNEL_DIR)/%.diz |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4940
diff
changeset
|
366 $(install-file) |
0 | 367 $(EXPORT_KERNEL_DIR)/%.dll: $(KERNEL_DIR)/%.dll |
368 $(install-file) | |
369 $(EXPORT_KERNEL_DIR)/%.pdb: $(KERNEL_DIR)/%.pdb | |
370 $(install-file) | |
371 $(EXPORT_KERNEL_DIR)/%.map: $(KERNEL_DIR)/%.map | |
372 $(install-file) | |
373 endif | |
374 | |
375 # Shared Library | |
376 ifneq ($(OSNAME),windows) | |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
377 ifeq ($(JVM_VARIANT_SERVER), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
378 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
379 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
380 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
381 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
382 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
383 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
384 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
385 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
386 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
387 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
388 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
389 $(install-file) |
6022 | 390 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C2_DIR)/%.diz |
391 $(install-file) | |
392 $(EXPORT_SERVER_DIR)/%.diz: $(C2_DIR)/%.diz | |
393 $(install-file) | |
394 $(EXPORT_SERVER_DIR)/64/%.diz: $(C2_DIR)/%.diz | |
395 $(install-file) | |
1692 | 396 endif |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
397 ifeq ($(JVM_VARIANT_CLIENT), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
398 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
399 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
400 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
401 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
402 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
403 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
404 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
405 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
406 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
407 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
408 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
409 $(install-file) |
6022 | 410 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C1_DIR)/%.diz |
411 $(install-file) | |
412 $(EXPORT_CLIENT_DIR)/%.diz: $(C1_DIR)/%.diz | |
413 $(install-file) | |
414 $(EXPORT_CLIENT_DIR)/64/%.diz: $(C1_DIR)/%.diz | |
415 $(install-file) | |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
416 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
417 ifeq ($(JVM_VARIANT_ZEROSHARK), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
418 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
419 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
420 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
421 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
422 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
423 ifeq ($(JVM_VARIANT_ZERO), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
424 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
425 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
426 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
427 $(install-file) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
428 endif |
0 | 429 endif |
430 | |
431 # Jar file (sa-jdi.jar) | |
432 $(EXPORT_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar | |
433 $(install-file) | |
434 | |
5915 | 435 $(EXPORT_JRE_LIB_DIR)/%.jar: $(GEN_DIR)/%.jar |
436 $(install-file) | |
437 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
438 # Include files (jvmti.h, jvmticmlr.h, jni.h, $(JDK_INCLUDE_SUBDIR)/jni_md.h, jmm.h, jfr.h) |
0 | 439 $(EXPORT_INCLUDE_DIR)/%: $(GEN_DIR)/jvmtifiles/% |
440 $(install-file) | |
441 | |
1184
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
442 $(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
|
443 $(install-file) |
7fbf850d87b7
6580131: 3/4 CompiledMethodLoad events don't produce the expected extra notifications to describe inlining
dcubed
parents:
196
diff
changeset
|
444 |
0 | 445 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/% |
446 $(install-file) | |
447 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
448 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
|
449 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC) |
0 | 450 $(install-file) |
451 | |
452 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/% | |
453 $(install-file) | |
454 | |
4800
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
455 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
|
456 # export jfr.h |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
457 ifeq ($JFR_EXISTS,1) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
458 $(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
|
459 $(install-file) |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
460 else |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
461 $(EXPORT_INCLUDE_DIR)/jfr.h: |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
462 endif |
94ec88ca68e2
7115199: Add event tracing hooks and Java Flight Recorder infrastructure
phh
parents:
4006
diff
changeset
|
463 |
0 | 464 # Doc files (jvmti.html) |
465 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% | |
466 $(install-file) | |
467 | |
468 # Xusage file | |
469 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_KERNEL_DIR)/Xusage.txt: $(XUSAGE) | |
470 $(prep-target) | |
471 $(RM) $@.temp | |
472 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp | |
473 $(MV) $@.temp $@ | |
474 | |
475 # | |
476 # Clean rules | |
477 # | |
478 clobber clean: clean_build clean_export clean_jdk | |
479 clean_build: | |
480 $(RM) -r $(C1_DIR) | |
481 $(RM) -r $(C2_DIR) | |
482 $(RM) -r $(KERNEL_DIR) | |
1010 | 483 $(RM) -r $(ZERO_DIR) |
1692 | 484 $(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
|
485 $(RM) -r $(GRAAL_DIR) |
0 | 486 clean_export: |
487 $(RM) -r $(EXPORT_PATH) | |
488 clean_jdk: | |
489 $(RM) -r $(JDK_IMAGE_DIR) | |
490 | |
491 # | |
492 # Create JDK and place this build into it | |
493 # | |
494 create_jdk: copy_jdk update_jdk | |
495 | |
496 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk | |
497 | |
498 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar | |
499 | |
500 $(JDK_IMAGE_DIR)/jre/lib/rt.jar: | |
501 $(RM) -r $(JDK_IMAGE_DIR) | |
502 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
503 ($(CD) $(JDK_IMPORT_PATH) && \ | |
504 $(TAR) -cf - *) | \ | |
505 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) | |
506 | |
507 test_jdk: | |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
508 ifeq ($(JVM_VARIANT_CLIENT), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
509 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
510 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
511 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
512 ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\ |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
513 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
514 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
515 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
516 endif |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
517 ifeq ($(JVM_VARIANT_KERNEL), true) |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
518 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -kernel -Xinternalversion |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
519 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -kernel -version |
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5915
diff
changeset
|
520 endif |
0 | 521 |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
522 copy_product_jdk:: |
0 | 523 $(RM) -r $(JDK_IMAGE_DIR) |
524 $(MKDIR) -p $(JDK_IMAGE_DIR) | |
525 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
526 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 527 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) |
528 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
529 copy_fastdebug_jdk:: |
0 | 530 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug |
531 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug | |
532 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
533 ($(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
|
534 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 535 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
536 else \ | |
537 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
538 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 539 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ |
540 fi | |
541 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
542 copy_debug_jdk:: |
0 | 543 $(RM) -r $(JDK_IMAGE_DIR)/debug |
544 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug | |
545 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \ | |
546 ($(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
|
547 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 548 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
549 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ | |
550 ($(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
|
551 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 552 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
553 else \ | |
554 ($(CD) $(JDK_IMPORT_PATH) && \ | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
555 $(TAR) -cf - $(JDK_DIRS)) | \ |
0 | 556 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ |
557 fi | |
558 | |
559 # | |
560 # Check target | |
561 # | |
562 check: variable_check | |
563 | |
564 # | |
565 # Help target | |
566 # | |
567 help: intro_help target_help variable_help notes_help examples_help | |
568 | |
569 # Intro help message | |
570 intro_help: | |
571 @$(ECHO) \ | |
572 "Makefile for the Hotspot workspace." | |
573 @$(ECHO) \ | |
574 "Default behavior is to build and create an export area for the j2se builds." | |
575 | |
576 # Target help | |
577 target_help: | |
578 @$(ECHO) "help: This help message" | |
579 @$(ECHO) "all: Same as: all_product all_fastdebug" | |
580 @$(ECHO) "world: Same as: all create_jdk" | |
581 @$(ECHO) "all_product: Same as: product product1 export_product" | |
582 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug" | |
583 @$(ECHO) "all_debug: Same as: jvmg jvmg1 export_debug" | |
584 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized" | |
585 @$(ECHO) "clean: Clean all areas" | |
586 @$(ECHO) "export_product: Export product files to EXPORT_PATH" | |
587 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH" | |
588 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH" | |
589 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH" | |
590 @$(ECHO) "create_jdk: Create JDK image, export all files into it" | |
591 @$(ECHO) "update_jdk: Update JDK image with fresh exported files" | |
592 @$(ECHO) " " | |
593 @$(ECHO) "Others targets are:" | |
594 @$(ECHO) " $(C1_VM_TARGETS)" | |
595 @$(ECHO) " $(C2_VM_TARGETS)" | |
596 @$(ECHO) " $(KERNEL_VM_TARGETS)" | |
597 | |
598 # Variable help (only common ones used by this workspace) | |
599 variable_help: variable_help_intro variable_list variable_help_end | |
600 variable_help_intro: | |
601 @$(ECHO) "--- Common Variables ---" | |
602 variable_help_end: | |
603 @$(ECHO) " " | |
604 @$(ECHO) "--- Make Arguments ---" | |
605 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)" | |
606 | |
607 # One line descriptions for the variables | |
608 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: | |
609 OUTPUTDIR.desc = Output directory, default is build/<osname> | |
610 BOOTDIR.desc = JDK used to compile agent java source and test with | |
611 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
|
612 JDK_IMAGE_DIR.desc = Directory to place JDK to copy |
0 | 613 EXPORT_PATH.desc = Directory to place files to export for JDK build |
614 | |
615 # Make variables to print out (description and value) | |
616 VARIABLE_PRINTVAL_LIST += \ | |
617 SLASH_JAVA \ | |
618 OUTPUTDIR \ | |
619 BOOTDIR \ | |
620 JDK_IMPORT_PATH \ | |
4940
f09ae3853e3b
7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents:
4865
diff
changeset
|
621 JDK_IMAGE_DIR \ |
0 | 622 EXPORT_PATH |
623 | |
624 # Make variables that should refer to directories that exist | |
625 VARIABLE_CHECKDIR_LIST += \ | |
626 SLASH_JAVA \ | |
627 BOOTDIR \ | |
628 JDK_IMPORT_PATH | |
629 | |
630 # For pattern rules below, so all are treated the same | |
631 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) | |
632 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) | |
633 | |
634 # Complete variable check | |
635 variable_check: $(DO_CHECKDIR_LIST) | |
636 variable_list: $(DO_PRINTVAL_LIST) variable_check | |
637 | |
638 # Pattern rule for printing out a variable | |
639 %.printval: | |
640 @$(ECHO) " ALT_$* - $($*.desc)" | |
641 @$(ECHO) " $*=$($*)" | |
642 | |
643 # Pattern rule for checking to see if a variable with a directory exists | |
644 %.checkdir: | |
645 @if [ ! -d $($*) ] ; then \ | |
646 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
647 fi | |
648 | |
649 # Pattern rule for checking to see if a variable with a file exists | |
650 %.checkfil: | |
651 @if [ ! -f $($*) ] ; then \ | |
652 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ | |
653 fi | |
654 | |
655 # Misc notes on help | |
656 notes_help: | |
657 @$(ECHO) \ | |
658 "--- Notes --- " | |
659 @$(ECHO) \ | |
660 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted" | |
661 @$(ECHO) \ | |
662 " builds or previous release JDK builds will work." | |
663 @$(ECHO) \ | |
664 "- The fastest builds have been when the workspace and the BOOTDIR are on" | |
665 @$(ECHO) \ | |
666 " local disk." | |
667 | |
668 examples_help: | |
669 @$(ECHO) \ | |
670 "--- Examples --- " | |
671 @$(ECHO) \ | |
672 " $(MAKE) all" | |
673 @$(ECHO) \ | |
674 " $(MAKE) world" | |
675 @$(ECHO) \ | |
676 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" | |
677 @$(ECHO) \ | |
678 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)" | |
679 | |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
680 # Universal build support |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
681 ifeq ($(OS_VENDOR), Darwin) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
682 ifeq ($(MACOSX_UNIVERSAL),true) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
683 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
684 endif |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
685 endif |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
4800
diff
changeset
|
686 |
0 | 687 # JPRT rule to build this workspace |
688 include $(GAMMADIR)/make/jprt.gmk | |
689 | |
690 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \ | |
691 $(KERNEL_VM_TARGETS) \ | |
692 generic_build1 generic_build2 generic_buildkernel generic_export \ | |
693 export_product export_fastdebug export_debug export_optimized \ | |
694 export_jdk_product export_jdk_fastdebug export_jdk_debug \ | |
695 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
|
696 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk |