author | alanb |
Fri, 02 Nov 2012 15:50:11 +0000 | |
changeset 14342 | 8435a30053c1 |
parent 14091 | e5c8662f325d |
child 19870 | 19ebc43b932b |
permissions | -rw-r--r-- |
2 | 1 |
# |
14342
8435a30053c1
7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents:
14091
diff
changeset
|
2 |
# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Shared sanity settings file. Fills in the variable ALL_SETTINGS. |
|
28 |
# |
|
29 |
||
30 |
# On Windows in particular, it can happen that quotes get into the PATH |
|
31 |
# variable. This is very bad, and must be caught early or you can |
|
32 |
# see errors like: sh: -c: line 0: syntax error near unexpected token |
|
33 |
# |
|
34 |
ifneq ($(PATH), $(subst ",,$(PATH))) |
|
35 |
dummy1:=$(error ERROR: PATH variable contains double quotes, fix your PATH.) |
|
36 |
endif |
|
37 |
ifneq ($(PATH), $(subst ',,$(PATH))) |
|
38 |
dummy1:=$(error ERROR: PATH variable contains single quotes, fix your PATH.) |
|
39 |
endif |
|
40 |
||
41 |
# Used to add a heading to ALL_SETTINGS |
|
42 |
define addHeading |
|
43 |
"\n$1:\n" |
|
44 |
endef |
|
45 |
||
46 |
# Used to add a line to ALL_SETTINGS for an optional value |
|
47 |
# (need if test for windows which has issues with ; characters in values) |
|
48 |
define addOptionalSetting |
|
49 |
$(if $($1)," $1 = $($1)\n"," $1 = $($1)\n") |
|
50 |
endef |
|
51 |
||
52 |
# Used to add a line to ALL_SETTINGS for something that must have a value |
|
53 |
define addRequiredSetting |
|
54 |
$(if $($1)," $1 = $($1)\n",$(warning WARNING: $1 should not be empty [Sanity-Settings.gmk])) |
|
55 |
endef |
|
56 |
||
57 |
# Used to add a line to ALL_SETTINGS for something that must have a value |
|
58 |
define addRequiredVersionSetting |
|
59 |
$(if $($1)," $1 = $($1) [requires at least $(REQUIRED_$1)]\n",$(warning WARNING: $1 should not be empty [Sanity-Settings.gmk])) |
|
60 |
endef |
|
61 |
||
62 |
# Used to add a series of lines to ALL_SETTINGS |
|
63 |
define addAltSetting |
|
64 |
" $1 = $($1)\n ALT_$1 = $(ALT_$1)\n" |
|
65 |
endef |
|
66 |
||
67 |
# Variable that contains a string of all information |
|
68 |
||
69 |
# Make sure this is a 'do it now' variable. |
|
70 |
ALL_SETTINGS:=$(call addHeading,Bootstrap Settings) |
|
71 |
ALL_SETTINGS+=$(call addAltSetting,BOOTDIR) |
|
72 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,BOOT_VER) |
|
73 |
ALL_SETTINGS+=$(call addAltSetting,OUTPUTDIR) |
|
74 |
ALL_SETTINGS+=$(call addRequiredSetting,ABS_OUTPUTDIR) |
|
75 |
||
76 |
||
77 |
ALL_SETTINGS+=$(call addHeading,Build Tool Settings) |
|
78 |
ALL_SETTINGS+=$(call addAltSetting,SLASH_JAVA) |
|
79 |
ALL_SETTINGS+=$(call addRequiredSetting,VARIANT) |
|
80 |
ALL_SETTINGS+=$(call addAltSetting,JDK_DEVTOOLS_DIR) |
|
81 |
ALL_SETTINGS+=$(call addOptionalSetting,ANT_HOME) |
|
82 |
ALL_SETTINGS+=$(call addAltSetting,UNIXCOMMAND_PATH) |
|
83 |
ALL_SETTINGS+=$(call addAltSetting,COMPILER_PATH) |
|
84 |
ALL_SETTINGS+=$(call addAltSetting,DEVTOOLS_PATH) |
|
85 |
ifeq ($(PLATFORM),linux) |
|
86 |
ALL_SETTINGS+=$(call addAltSetting,UNIXCCS_PATH) |
|
87 |
ALL_SETTINGS+=$(call addAltSetting,USRBIN_PATH) |
|
88 |
ifndef OPENJDK |
|
89 |
ALL_SETTINGS+=$(call addAltSetting,GCC29_COMPILER_PATH) |
|
90 |
endif |
|
91 |
endif |
|
92 |
ifeq ($(PLATFORM),solaris) |
|
93 |
ALL_SETTINGS+=$(call addAltSetting,UNIXCCS_PATH) |
|
94 |
ifndef OPENJDK |
|
95 |
ALL_SETTINGS+=$(call addAltSetting,GCC_COMPILER_PATH) |
|
96 |
endif |
|
97 |
endif |
|
98 |
ifeq ($(PLATFORM),windows) |
|
2186
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2158
diff
changeset
|
99 |
ifneq ($(MSVCRNN_DLL),) |
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
1162
diff
changeset
|
100 |
ALL_SETTINGS+=$(call addAltSetting,MSVCRNN_DLL_PATH) |
2 | 101 |
endif |
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
102 |
ALL_SETTINGS+=$(call addRequiredSetting,INCLUDE) |
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
103 |
ALL_SETTINGS+=$(call addRequiredSetting,LIB) |
2 | 104 |
endif |
105 |
ALL_SETTINGS+=$(call addOptionalSetting,COMPILER_NAME) |
|
106 |
ALL_SETTINGS+=$(call addOptionalSetting,COMPILER_VERSION) |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8018
diff
changeset
|
107 |
ifdef REQUIRED_CC_VER |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8018
diff
changeset
|
108 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,CC_VER) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8018
diff
changeset
|
109 |
else |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8018
diff
changeset
|
110 |
ALL_SETTINGS+=$(call addOptionalSetting,CC_VER) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8018
diff
changeset
|
111 |
endif |
2 | 112 |
ifeq ($(PLATFORM),solaris) |
113 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
114 |
ifndef OPENJDK |
|
115 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,GCC_VER) |
|
116 |
endif |
|
117 |
endif |
|
118 |
endif |
|
119 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,ZIP_VER) |
|
120 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,UNZIP_VER) |
|
121 |
ifeq ($(PLATFORM),windows) |
|
122 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,LINK_VER) |
|
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7669
diff
changeset
|
123 |
ALL_SETTINGS+=$(call addRequiredSetting,CC) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7669
diff
changeset
|
124 |
ALL_SETTINGS+=$(call addRequiredSetting,LINK) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7669
diff
changeset
|
125 |
ALL_SETTINGS+=$(call addRequiredSetting,DUMPBIN) |
2 | 126 |
endif |
127 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,ANT_VER) |
|
128 |
ALL_SETTINGS+=$(call addRequiredSetting,TEMPDIR) |
|
129 |
||
130 |
||
131 |
ALL_SETTINGS+=$(call addHeading,Build Directives) |
|
132 |
ALL_SETTINGS+=$(call addOptionalSetting,OPENJDK) |
|
133 |
ALL_SETTINGS+=$(call addOptionalSetting,USE_HOTSPOT_INTERPRETER_MODE) |
|
134 |
ALL_SETTINGS+=$(call addOptionalSetting,PEDANTIC) |
|
135 |
ALL_SETTINGS+=$(call addOptionalSetting,DEV_ONLY) |
|
136 |
ALL_SETTINGS+=$(call addOptionalSetting,NO_DOCS) |
|
11994
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
9457
diff
changeset
|
137 |
ALL_SETTINGS+=$(call addOptionalSetting,NO_DEMOS) |
74f1488b7347
7143162: Allow disable building of jdk demos and samples
mduigou
parents:
9457
diff
changeset
|
138 |
ALL_SETTINGS+=$(call addOptionalSetting,NO_SAMPLES) |
2 | 139 |
ALL_SETTINGS+=$(call addOptionalSetting,NO_IMAGES) |
140 |
ALL_SETTINGS+=$(call addOptionalSetting,TOOLS_ONLY) |
|
141 |
ALL_SETTINGS+=$(call addOptionalSetting,INSANE) |
|
142 |
ALL_SETTINGS+=$(call addRequiredSetting,COMPILE_APPROACH) |
|
143 |
ifeq ($(COMPILE_APPROACH), parallel) |
|
144 |
ALL_SETTINGS+=$(call addAltSetting,PARALLEL_COMPILE_JOBS) |
|
145 |
endif |
|
146 |
ALL_SETTINGS+=$(call addOptionalSetting,FASTDEBUG) |
|
147 |
ALL_SETTINGS+=$(call addRequiredSetting,COMPILER_WARNINGS_FATAL) |
|
148 |
ALL_SETTINGS+=$(call addOptionalSetting,COMPILER_WARNING_LEVEL) |
|
7669
3ebe17bda998
6991482: Add global jdk makefile options to silence some VS2010 warnings
ohair
parents:
7666
diff
changeset
|
149 |
ALL_SETTINGS+=$(call addOptionalSetting,SHOW_ALL_WARNINGS) |
2 | 150 |
ALL_SETTINGS+=$(call addRequiredSetting,INCREMENTAL_BUILD) |
151 |
ALL_SETTINGS+=$(call addOptionalSetting,CC_HIGHEST_OPT) |
|
152 |
ALL_SETTINGS+=$(call addOptionalSetting,CC_HIGHER_OPT) |
|
153 |
ALL_SETTINGS+=$(call addOptionalSetting,CC_LOWER_OPT) |
|
154 |
ALL_SETTINGS+=$(call addOptionalSetting,CXXFLAGS) |
|
155 |
ALL_SETTINGS+=$(call addOptionalSetting,CFLAGS) |
|
156 |
||
157 |
ALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAVA_CMD) |
|
158 |
ALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAVAC_CMD) |
|
159 |
ALL_SETTINGS+=$(call addOptionalSetting,BOOT_JAR_CMD) |
|
160 |
ALL_SETTINGS+=$(call addOptionalSetting,BOOT_JARSIGNER_CMD) |
|
161 |
||
162 |
# These don't print out well with windows due to the ';' characters |
|
163 |
ifneq ($(PLATFORM),windows) |
|
164 |
ALL_SETTINGS+=$(call addOptionalSetting,JAVAC_CMD) |
|
165 |
ALL_SETTINGS+=$(call addOptionalSetting,JAVAH_CMD) |
|
166 |
ALL_SETTINGS+=$(call addOptionalSetting,JAVADOC_CMD) |
|
167 |
endif |
|
168 |
||
169 |
ALL_SETTINGS+=$(call addHeading,Build Platform Settings) |
|
170 |
ALL_SETTINGS+=$(call addRequiredSetting,USER) |
|
171 |
ALL_SETTINGS+=$(call addRequiredSetting,PLATFORM) |
|
172 |
ALL_SETTINGS+=$(call addRequiredSetting,ARCH) |
|
173 |
ALL_SETTINGS+=$(call addRequiredSetting,LIBARCH) |
|
174 |
ALL_SETTINGS+=$(call addRequiredSetting,ARCH_FAMILY) |
|
175 |
ALL_SETTINGS+=$(call addRequiredSetting,ARCH_DATA_MODEL) |
|
176 |
ALL_SETTINGS+=$(call addRequiredSetting,ARCHPROP) |
|
177 |
ifeq ($(PLATFORM),windows) |
|
178 |
ALL_SETTINGS+=$(call addRequiredSetting,PROCESSOR_ARCHITECTURE) |
|
179 |
ALL_SETTINGS+=$(call addRequiredSetting,PROCESSOR_IDENTIFIER) |
|
180 |
ifdef USING_CYGWIN |
|
181 |
ALL_SETTINGS+=$(call addRequiredSetting,USING_CYGWIN) |
|
182 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,CYGWIN_VER) |
|
183 |
ALL_SETTINGS+=$(call addRequiredSetting,CYGPATH_CMD) |
|
184 |
else |
|
14091 | 185 |
ifdef USING_MSYS |
186 |
ALL_SETTINGS+=$(call addRequiredSetting,USING_MSYS) |
|
187 |
ALL_SETTINGS+=$(call addRequiredSetting,DOSPATH_CMD) |
|
188 |
else |
|
189 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,MKS_VER) |
|
190 |
ALL_SETTINGS+=$(call addOptionalSetting,DOSNAME_CMD) |
|
191 |
endif |
|
2 | 192 |
endif |
193 |
endif |
|
194 |
ifeq ($(PLATFORM),linux) |
|
8993
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8796
diff
changeset
|
195 |
ifdef REQUIRED_ALSA_VERSION |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8796
diff
changeset
|
196 |
ALL_SETTINGS+=$(call addRequiredSetting,ALSA_VERSION) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
8796
diff
changeset
|
197 |
endif |
2 | 198 |
endif |
199 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,OS_VERSION) |
|
2158
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
1776
diff
changeset
|
200 |
ALL_SETTINGS+=$(call addOptionalSetting,OS_VARIANT_NAME) |
68869a085470
6799141: Build with --hash-style=both so that binaries can work on SuSE 10
ohair
parents:
1776
diff
changeset
|
201 |
ALL_SETTINGS+=$(call addOptionalSetting,OS_VARIANT_VERSION) |
2 | 202 |
ALL_SETTINGS+=$(call addRequiredSetting,MB_OF_MEMORY) |
203 |
||
204 |
||
205 |
ALL_SETTINGS+=$(call addHeading,GNU Make Settings) |
|
206 |
ALL_SETTINGS+=$(call addRequiredSetting,MAKE) |
|
207 |
ALL_SETTINGS+=$(call addRequiredVersionSetting,MAKE_VER) |
|
208 |
ALL_SETTINGS+=$(call addOptionalSetting,MAKECMDGOALS) |
|
209 |
ALL_SETTINGS+=$(call addOptionalSetting,MAKEFLAGS) |
|
210 |
ALL_SETTINGS+=$(call addRequiredSetting,SHELL) |
|
211 |
||
212 |
||
213 |
ALL_SETTINGS+=$(call addHeading,Target Build Versions) |
|
214 |
ALL_SETTINGS+=$(call addRequiredSetting,JDK_VERSION) |
|
215 |
ALL_SETTINGS+=$(call addOptionalSetting,MILESTONE) |
|
216 |
ALL_SETTINGS+=$(call addOptionalSetting,RELEASE) |
|
217 |
ALL_SETTINGS+=$(call addRequiredSetting,FULL_VERSION) |
|
218 |
ALL_SETTINGS+=$(call addOptionalSetting,BUILD_NUMBER) |
|
219 |
||
220 |
||
221 |
ALL_SETTINGS+=$(call addHeading,External File/Binary Locations) |
|
222 |
ALL_SETTINGS+=$(call addRequiredSetting,USRJDKINSTANCES_PATH) |
|
223 |
ALL_SETTINGS+=$(call addAltSetting,BUILD_JDK_IMPORT_PATH) |
|
224 |
ALL_SETTINGS+=$(call addAltSetting,JDK_IMPORT_PATH) |
|
225 |
ALL_SETTINGS+=$(call addAltSetting,LANGTOOLS_DIST) |
|
226 |
ALL_SETTINGS+=$(call addAltSetting,CORBA_DIST) |
|
227 |
ALL_SETTINGS+=$(call addAltSetting,JAXP_DIST) |
|
228 |
ALL_SETTINGS+=$(call addAltSetting,JAXWS_DIST) |
|
229 |
ALL_SETTINGS+=$(call addAltSetting,HOTSPOT_DOCS_IMPORT_PATH) |
|
230 |
ALL_SETTINGS+=$(call addAltSetting,HOTSPOT_IMPORT_PATH) |
|
231 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
232 |
ALL_SETTINGS+=$(call addAltSetting,HOTSPOT_CLIENT_PATH) |
|
233 |
endif |
|
234 |
ALL_SETTINGS+=$(call addAltSetting,HOTSPOT_SERVER_PATH) |
|
235 |
ifeq ($(PLATFORM),windows) |
|
236 |
ALL_SETTINGS+=$(call addAltSetting,HOTSPOT_LIB_PATH) |
|
237 |
ALL_SETTINGS+=$(call addRequiredSetting,DXSDK_VER) |
|
238 |
ALL_SETTINGS+=$(call addAltSetting,DXSDK_PATH) |
|
239 |
ALL_SETTINGS+=$(call addAltSetting,DXSDK_INCLUDE_PATH) |
|
240 |
ALL_SETTINGS+=$(call addAltSetting,DXSDK_LIB_PATH) |
|
7665
bc5dbdc44e1e
6360517: ALT_MSDEVTOOLS_PATH and rc.exe location, and rebase location
ohair
parents:
5506
diff
changeset
|
241 |
ALL_SETTINGS+=$(call addAltSetting,WINDOWSSDKDIR) |
8008
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7669
diff
changeset
|
242 |
ALL_SETTINGS+=$(call addRequiredSetting,RC) |
753c38f4af83
6975326: Problem in install/make/rebase/Makefile, grep on empty pattern
ohair
parents:
7669
diff
changeset
|
243 |
ALL_SETTINGS+=$(call addRequiredSetting,REBASE) |
2 | 244 |
ifndef OPENJDK |
245 |
ALL_SETTINGS+=$(call addAltSetting,DEPLOY_MSSDK) |
|
246 |
ALL_SETTINGS+=$(call addAltSetting,INSTALL_MSSDK) |
|
247 |
ALL_SETTINGS+=$(call addAltSetting,WSCRIPT) |
|
248 |
ALL_SETTINGS+=$(call addAltSetting,MSICERT) |
|
249 |
endif |
|
250 |
endif |
|
251 |
ALL_SETTINGS+=$(call addAltSetting,CACERTS_FILE) |
|
252 |
ifndef OPENJDK |
|
253 |
ALL_SETTINGS+=$(call addAltSetting,MOZILLA_HEADERS_PATH) |
|
254 |
endif |
|
255 |
ifneq ($(PLATFORM),windows) |
|
256 |
ALL_SETTINGS+=$(call addAltSetting,CUPS_HEADERS_PATH) |
|
257 |
endif |
|
258 |
||
259 |
ifdef OPENJDK |
|
260 |
ALL_SETTINGS+=$(call addHeading,OpenJDK-specific settings) |
|
261 |
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_HEADERS_PATH) |
|
262 |
ALL_SETTINGS+=$(call addAltSetting,FREETYPE_LIB_PATH) |
|
263 |
endif |
|
264 |
||
265 |
ifdef OPENJDK |
|
266 |
ALL_SETTINGS+=$(call addHeading,Previous JDK Settings) |
|
267 |
ALL_SETTINGS+=$(call addAltSetting,PREVIOUS_RELEASE_PATH) |
|
268 |
ALL_SETTINGS+=$(call addAltSetting,PREVIOUS_JDK_VERSION) |
|
269 |
ALL_SETTINGS+=$(call addAltSetting,PREVIOUS_JDK_FILE) |
|
270 |
ALL_SETTINGS+=$(call addAltSetting,PREVIOUS_JRE_FILE) |
|
271 |
ALL_SETTINGS+=$(call addAltSetting,PREVIOUS_RELEASE_IMAGE) |
|
272 |
endif |