author | henryjen |
Tue, 03 Sep 2013 16:05:45 -0700 | |
changeset 19802 | d44eb5b1f125 |
parent 14095 | ab1fb3836ddb |
permissions | -rw-r--r-- |
4 | 1 |
# |
7672 | 2 |
# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
4 | 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 |
|
5555 | 7 |
# published by the Free Software Foundation. Oracle designates this |
4 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5555 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
4 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5555 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
4 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Definitions for Windows. |
|
28 |
# |
|
29 |
||
30 |
# Default for COMPILER_WARNINGS_FATAL on Windows (C++ compiler warnings) |
|
31 |
# Level: Default is 3, 0 means none, 4 is the most but may be unreliable |
|
32 |
# Some makefiles may have set this to 0 to turn off warnings completely, |
|
33 |
# which also effectively creates a COMPILER_WARNINGS_FATAL=false situation. |
|
34 |
# Windows 64bit platforms are less likely to be warning free. |
|
35 |
# Historically, Windows 32bit builds should be mostly warning free. |
|
36 |
ifndef COMPILER_WARNING_LEVEL |
|
37 |
COMPILER_WARNING_LEVEL=3 |
|
38 |
endif |
|
39 |
ifndef COMPILER_WARNINGS_FATAL |
|
40 |
COMPILER_WARNINGS_FATAL=false |
|
41 |
endif |
|
42 |
||
43 |
# Windows should use parallel compilation for best build times |
|
44 |
ifndef COMPILE_APPROACH |
|
45 |
COMPILE_APPROACH = normal |
|
46 |
endif |
|
47 |
||
48 |
# Indication that we are doing an incremental build. |
|
49 |
# This may trigger the creation of make depend files. |
|
50 |
# (This may not be working on windows yet, always force to false.) |
|
51 |
override INCREMENTAL_BUILD = false |
|
52 |
||
53 |
# WARNING: This is extremely touch stuff, between CYGWIN vs. MKS and all |
|
54 |
# variations of MKS and CYGWIN releases, and 32bit vs 64bit, |
|
55 |
# this file can give you nightmares. |
|
56 |
# |
|
57 |
# Notes: |
|
58 |
# Keep all paths in the windows "mixed" style except CYGWIN UNXIXCOMMAND_PATH. |
|
59 |
# Use of PrefixPath is critical, some variables must end with / (see NOTE). |
|
60 |
# Use of quotes is critical due to possible spaces in paths coming from |
|
61 |
# the environment variables, be careful. |
|
62 |
# First convert \ to / with subst, keep it quoted due to blanks, then |
|
63 |
# use cygpath -s or dosname -s to get the short non-blank name. |
|
64 |
# If the MKS is old and doesn't have a dosname -s, you will be forced |
|
65 |
# to set ALT variables with the short non-space directory names. |
|
66 |
# If dosname doesn't appear to work, we won't use it. |
|
67 |
# The dosname utility also wants to accept stdin if it is not supplied |
|
68 |
# any path on the command line, this is really dangerous when using |
|
69 |
# make variables that can easily become empty, so I use: |
|
70 |
# echo $1 | dosname -s instead of dosname -s $1 |
|
71 |
# to prevent dosname from hanging up the make process when $1 is empty. |
|
72 |
# The cygpath utility does not have this problem. |
|
73 |
# The ALT values should never really have spaces or use \. |
|
74 |
# Suspect these environment variables to have spaces and/or \ characters: |
|
75 |
# SYSTEMROOT, SystemRoot, WINDIR, windir, PROGRAMFILES, ProgramFiles, |
|
6551
476ed8653670
6981043: Clean out all native code makefile logic from corba repository
ohair
parents:
5555
diff
changeset
|
76 |
# VC71COMNTOOLS, |
4 | 77 |
# MSVCDIR, MSVCDir. |
78 |
# So use $(subst \,/,) on them first adding quotes and placing them in |
|
79 |
# their own variable assigned with :=, then use FullPath. |
|
80 |
# |
|
81 |
||
82 |
# Use FullPath to get C:/ style non-spaces path. Never ends with a /! |
|
83 |
ifdef USING_CYGWIN |
|
84 |
# We assume cygpath is available in the search path |
|
85 |
# NOTE: Use of 'pwd' with CYGWIN will not get you a mixed style path! |
|
86 |
CYGPATH_CMD=cygpath -a -s -m |
|
87 |
define FullPath |
|
88 |
$(shell $(CYGPATH_CMD) $1 2> $(DEV_NULL)) |
|
89 |
endef |
|
90 |
define OptFullPath |
|
91 |
$(shell if [ "$1" != "" -a -d "$1" ]; then $(CYGPATH_CMD) "$1"; else echo "$1"; fi) |
|
92 |
endef |
|
93 |
else |
|
14095 | 94 |
ifdef USING_MSYS |
95 |
DOSPATH_CMD:=$(shell cd $(JDK_TOPDIR) 2> $(DEV_NULL) && pwd)/make/tools/msys_build_scripts/dospath.sh |
|
96 |
define FullPath |
|
97 |
$(subst \,/,$(shell $(DOSPATH_CMD) $1)) |
|
98 |
endef |
|
99 |
define OptFullPath |
|
100 |
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi) |
|
101 |
endef |
|
102 |
else |
|
4 | 103 |
# Temporary until we upgrade to MKS 8.7, MKS pwd returns mixed mode path |
104 |
define FullPath |
|
105 |
$(shell cd $1 2> $(DEV_NULL) && pwd) |
|
106 |
endef |
|
107 |
define OptFullPath |
|
108 |
$(shell if [ "$1" != "" -a -d "$1" ]; then (cd $1 && pwd); else echo "$1"; fi) |
|
109 |
endef |
|
110 |
endif |
|
14095 | 111 |
endif |
4 | 112 |
|
113 |
# System drive |
|
114 |
ifdef SYSTEMDRIVE |
|
115 |
_system_drive =$(SYSTEMDRIVE) |
|
116 |
else |
|
117 |
ifdef SystemDrive |
|
118 |
_system_drive =$(SystemDrive) |
|
119 |
endif |
|
120 |
endif |
|
121 |
_system_drive:=$(call CheckValue,_system_drive,C:) |
|
122 |
||
123 |
# UNIXCOMMAND_PATH: path to where the most common Unix commands are. |
|
124 |
# NOTE: Must end with / so that it could be empty, allowing PATH usage. |
|
14095 | 125 |
# With cygwin, use this as is; don't use FullPath on it. |
126 |
ifdef ALT_UNIXCOMMAND_PATH |
|
127 |
ifdef USING_CYGWIN |
|
128 |
UNIXCOMMAND_PATH :=$(call PrefixPath,$(ALT_UNIXCOMMAND_PATH)) |
|
129 |
else |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
130 |
xALT_UNIXCOMMAND_PATH :="$(subst \,/,$(ALT_UNIXCOMMAND_PATH))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
131 |
fxALT_UNIXCOMMAND_PATH :=$(call FullPath,$(xALT_UNIXCOMMAND_PATH)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
132 |
UNIXCOMMAND_PATH :=$(call PrefixPath,$(fxALT_UNIXCOMMAND_PATH)) |
14095 | 133 |
endif |
134 |
else |
|
135 |
ifdef USING_CYGWIN |
|
136 |
UNIXCOMMAND_PATH :=$(call PrefixPath,/usr/bin) |
|
4 | 137 |
else |
14095 | 138 |
ifdef USING_MSYS |
139 |
UNIXCOMMAND_PATH :=$(call PrefixPath,/bin) |
|
4 | 140 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
141 |
ifdef ROOTDIR |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
142 |
xROOTDIR :="$(subst \,/,$(ROOTDIR))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
143 |
_rootdir :=$(call FullPath,$(xROOTDIR)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
144 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
145 |
xROOTDIR :="$(_system_drive)/mksnt" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
146 |
_rootdir :=$(call FullPath,$(xROOTDIR)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
147 |
endif |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
148 |
ifneq ($(_rootdir),) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
149 |
UNIXCOMMAND_PATH :=$(call PrefixPath,$(_rootdir)/mksnt) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
150 |
endif |
14095 | 151 |
endif # USING_MSYS |
152 |
endif # USING_CYGWIN |
|
4 | 153 |
endif |
14095 | 154 |
UNIXCOMMAND_PATH:=$(call AltCheckSpaces,UNIXCOMMAND_PATH) |
155 |
export UNIXCOMMAND_PATH |
|
4 | 156 |
|
157 |
# Get version of MKS or CYGWIN |
|
14095 | 158 |
ifdef USING_MKS |
159 |
_MKS_VER :=$(shell $(MKSINFO) 2>&1 | $(GREP) Release | $(TAIL) -1 | $(SED) -e 's@.*\(Release.*\)@\1@') |
|
160 |
MKS_VER :=$(call GetVersion,$(_MKS_VER)) |
|
161 |
# At this point, we can re-define FullPath to use DOSNAME_CMD |
|
162 |
CHECK_MKS87:=$(call CheckVersions,$(MKS_VER),8.7) |
|
163 |
TRY_DOSNAME:=false |
|
164 |
ifeq ($(CHECK_MKS87),same) |
|
165 |
TRY_DOSNAME:=true |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
166 |
endif |
14095 | 167 |
# Newer should be ok |
168 |
ifeq ($(CHECK_MKS87),newer) |
|
169 |
TRY_DOSNAME:=true |
|
170 |
endif |
|
171 |
ifeq ($(TRY_DOSNAME),true) |
|
172 |
ifeq ($(shell $(UNIXCOMMAND_PATH)dosname -s $(_system_drive)/ 2> $(DEV_NULL)),$(_system_drive)/) |
|
173 |
_DOSNAME=$(UNIXCOMMAND_PATH)dosname |
|
174 |
DOSNAME_CMD:=$(_DOSNAME) -s |
|
4 | 175 |
define FullPath |
176 |
$(subst //,/,$(shell echo $1 | $(DOSNAME_CMD) 2> $(DEV_NULL))) |
|
177 |
endef |
|
14095 | 178 |
endif # test dosname -s |
179 |
endif # TRY_DOSNAME |
|
4 | 180 |
endif # MKS |
181 |
||
182 |
# We try to get references to what we need via the default component |
|
183 |
# environment variables, or what was used historically. |
|
184 |
||
185 |
# Process Windows values into FullPath values, these paths may have \ chars |
|
186 |
||
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
187 |
# Program Files directory |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
188 |
ifndef SHORTPROGRAMFILES |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
189 |
ifdef PROGRAMFILES |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
190 |
xPROGRAMFILES :="$(subst \,/,$(PROGRAMFILES))" |
4 | 191 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
192 |
ifeq ($(ARCH_DATA_MODEL), 32) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
193 |
xPROGRAMFILES :="$(_system_drive)/Program Files" |
4 | 194 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
195 |
xPROGRAMFILES :="$(_system_drive)/Program Files (x86)" |
4 | 196 |
endif |
197 |
endif |
|
198 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
199 |
SHORTPROGRAMFILES :=$(call FullPath,$(xPROGRAMFILES)) |
4 | 200 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
201 |
ifdef PROGRAMW6432 |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
202 |
xPROGRAMW6432 :="$(subst \,/,$(PROGRAMW6432))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
203 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
204 |
xPROGRAMW6432 :="$(_system_drive)/Program Files" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
205 |
endif |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
206 |
SHORTPROGRAMFILES :=$(call FullPath,$(xPROGRAMW6432)) |
4 | 207 |
endif |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
208 |
ifneq ($(word 1,$(SHORTPROGRAMFILES)),$(SHORTPROGRAMFILES)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
209 |
SHORTPROGRAMFILES := |
4 | 210 |
endif |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
211 |
export SHORTPROGRAMFILES |
4 | 212 |
endif |
213 |
||
214 |
# Location on system where jdk installs might be |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
215 |
ifneq ($(SHORTPROGRAMFILES),) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
216 |
USRJDKINSTANCES_PATH =$(SHORTPROGRAMFILES)/Java |
4 | 217 |
else |
218 |
USRJDKINSTANCES_PATH =$(_system_drive)/ |
|
219 |
endif |
|
220 |
||
221 |
# SLASH_JAVA: location of all network accessable files |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
222 |
ifndef SLASH_JAVA |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
223 |
ifdef ALT_SLASH_JAVA |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
224 |
xALT_SLASH_JAVA :="$(subst \,/,$(ALT_SLASH_JAVA))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
225 |
SLASH_JAVA :=$(call FullPath,$(xALT_SLASH_JAVA)) |
4 | 226 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
227 |
ifdef ALT_JDK_JAVA_DRIVE |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
228 |
SLASH_JAVA =$(JDK_JAVA_DRIVE) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
229 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
230 |
SLASH_JAVA =J: |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
231 |
endif |
4 | 232 |
endif |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
233 |
SLASH_JAVA:=$(call AltCheckSpaces,SLASH_JAVA) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
234 |
SLASH_JAVA:=$(call AltCheckValue,SLASH_JAVA) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
235 |
export SLASH_JAVA |
4 | 236 |
endif |
237 |
||
238 |
# JDK_DEVTOOLS_DIR: common path for all the java devtools |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
239 |
ifndef JDK_DEVTOOLS_DIR |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
240 |
ifdef ALT_JDK_DEVTOOLS_DIR |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
241 |
xALT_JDK_DEVTOOLS_DIR :="$(subst \,/,$(ALT_JDK_DEVTOOLS_DIR))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
242 |
JDK_DEVTOOLS_DIR :=$(call FullPath,$(xALT_JDK_DEVTOOLS_DIR)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
243 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
244 |
JDK_DEVTOOLS_DIR =$(SLASH_JAVA)/devtools |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
245 |
endif |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
246 |
JDK_DEVTOOLS_DIR:=$(call AltCheckSpaces,JDK_DEVTOOLS_DIR) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
247 |
JDK_DEVTOOLS_DIR:=$(call AltCheckValue,JDK_DEVTOOLS_DIR) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
248 |
export JDK_DEVTOOLS_DIR |
4 | 249 |
endif |
250 |
||
251 |
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) |
|
252 |
# NOTE: Must end with / so that it could be empty, allowing PATH usage. |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
253 |
ifndef DEVTOOLS_PATH |
14095 | 254 |
# DEVTOOLS_PATH: for other tools required for building (such as zip, etc.) |
255 |
# NOTE: Must end with / so that it could be empty, allowing PATH usage. |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
256 |
ifdef ALT_DEVTOOLS_PATH |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
257 |
xALT_DEVTOOLS_PATH :="$(subst \,/,$(ALT_DEVTOOLS_PATH))" |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
258 |
fxALT_DEVTOOLS_PATH :=$(call FullPath,$(xALT_DEVTOOLS_PATH)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
259 |
DEVTOOLS_PATH :=$(call PrefixPath,$(fxALT_DEVTOOLS_PATH)) |
4 | 260 |
else |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
261 |
ifdef USING_CYGWIN |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
262 |
DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
263 |
else |
14095 | 264 |
ifdef USING_MSYS |
265 |
DEVTOOLS_PATH :=$(UNIXCOMMAND_PATH) |
|
266 |
else |
|
267 |
xDEVTOOLS_PATH :="$(_system_drive)/utils" |
|
268 |
fxDEVTOOLS_PATH :=$(call FullPath,$(xDEVTOOLS_PATH)) |
|
269 |
DEVTOOLS_PATH :=$(call PrefixPath,$(fxDEVTOOLS_PATH)) |
|
270 |
endif # USING_MSYS |
|
271 |
endif # USING_CYGWIN |
|
4 | 272 |
endif |
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
273 |
DEVTOOLS_PATH:=$(call AltCheckSpaces,DEVTOOLS_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
274 |
export DEVTOOLS_PATH |
4 | 275 |
endif |
276 |
||
277 |
# _BOOTDIR1: First choice for a Bootstrap JDK, previous released JDK. |
|
278 |
# _BOOTDIR2: Second choice |
|
279 |
ifndef ALT_BOOTDIR |
|
280 |
_BOOTDIR1 =$(_system_drive)/jdk$(PREVIOUS_JDK_VERSION) |
|
281 |
_BOOTDIR2 =$(USRJDKINSTANCES_PATH)/jdk$(PREVIOUS_JDK_VERSION) |
|
282 |
endif |
|
283 |
||
284 |
# Import JDK images allow for partial builds, components not built are |
|
285 |
# imported (or copied from) these import areas when needed. |
|
286 |
||
287 |
# BUILD_JDK_IMPORT_PATH: location of JDK install trees to import for |
|
288 |
# multiple platforms, e.g. windows-i586, solaris-sparc, linux-586, etc. |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
289 |
ifndef BUILD_JDK_IMPORT_PATH |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
290 |
ifdef ALT_BUILD_JDK_IMPORT_PATH |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
291 |
BUILD_JDK_IMPORT_PATH :=$(call FullPath,$(ALT_BUILD_JDK_IMPORT_PATH)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
292 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
293 |
BUILD_JDK_IMPORT_PATH = $(PROMOTED_BUILD_BINARIES) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
294 |
endif |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
295 |
BUILD_JDK_IMPORT_PATH:=$(call AltCheckSpaces,BUILD_JDK_IMPORT_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
296 |
BUILD_JDK_IMPORT_PATH:=$(call AltCheckValue,BUILD_JDK_IMPORT_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
297 |
export BUILD_JDK_IMPORT_PATH |
4 | 298 |
endif |
299 |
||
300 |
# JDK_IMPORT_PATH: location of previously built JDK (this version) to import |
|
3871
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
301 |
ifndef JDK_IMPORT_PATH |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
302 |
ifdef ALT_JDK_IMPORT_PATH |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
303 |
JDK_IMPORT_PATH :=$(call FullPath,$(ALT_JDK_IMPORT_PATH)) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
304 |
else |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
305 |
JDK_IMPORT_PATH = $(BUILD_JDK_IMPORT_PATH)/$(PLATFORM)-$(ARCH)$(_JDK_IMPORT_VARIANT) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
306 |
endif |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
307 |
JDK_IMPORT_PATH:=$(call AltCheckSpaces,JDK_IMPORT_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
308 |
JDK_IMPORT_PATH:=$(call AltCheckValue,JDK_IMPORT_PATH) |
3d528461f61d
6875240: Reduce Makefile build time by limiting repeated exec's (mostly for cygwin building)
ohair
parents:
3291
diff
changeset
|
309 |
export JDK_IMPORT_PATH |
4 | 310 |
endif |
311 |