author | twisti |
Fri, 07 Jan 2011 03:41:07 -0800 | |
changeset 7718 | 23502bf34686 |
parent 7452 | b3fa838286de |
parent 7704 | cc9d3ed42704 |
child 8114 | 340b5b8b544b |
permissions | -rw-r--r-- |
1 | 1 |
# |
7397 | 2 |
# Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
781
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
781
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
781
diff
changeset
|
21 |
# questions. |
1 | 22 |
# |
23 |
# |
|
24 |
||
25 |
# Usage: |
|
26 |
# |
|
27 |
# $(MAKE) -f buildtree.make ARCH=arch BUILDARCH=buildarch LIBARCH=libarch |
|
28 |
# GAMMADIR=dir OS_FAMILY=os VARIANT=variant |
|
29 |
# |
|
30 |
# The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the |
|
31 |
# environment or on the command-line: |
|
32 |
# |
|
33 |
# ARCH - sparc, i486, ... HotSpot cpu and os_cpu source directory |
|
34 |
# BUILDARCH - build directory |
|
35 |
# LIBARCH - the corresponding directory in JDK/JRE |
|
36 |
# GAMMADIR - top of workspace |
|
37 |
# OS_FAMILY - operating system |
|
38 |
# VARIANT - core, compiler1, compiler2, or tiered |
|
39 |
# HOTSPOT_RELEASE_VERSION - <major>.<minor>-b<nn> (11.0-b07) |
|
7402
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
5547
diff
changeset
|
40 |
# HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty |
1 | 41 |
# JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0) |
42 |
# |
|
43 |
# Builds the directory trees with makefiles plus some convenience files in |
|
44 |
# each directory: |
|
45 |
# |
|
46 |
# Makefile - for "make foo" |
|
47 |
# flags.make - with macro settings |
|
48 |
# vm.make - to support making "$(MAKE) -v vm.make" in makefiles |
|
49 |
# adlc.make - |
|
50 |
# jvmti.make - generate JVMTI bindings from the spec (JSR-163) |
|
51 |
# sa.make - generate SA jar file and natives |
|
52 |
# env.[ck]sh - environment settings |
|
53 |
# test_gamma - script to run the Queens program |
|
54 |
# |
|
55 |
# The makefiles are split this way so that "make foo" will run faster by not |
|
56 |
# having to read the dependency files for the vm. |
|
57 |
||
58 |
include $(GAMMADIR)/make/scm.make |
|
59 |
||
60 |
# 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. |
|
61 |
QUIETLY$(MAKE_VERBOSE) = @ |
|
62 |
||
63 |
# For now, until the compiler is less wobbly: |
|
7704 | 64 |
TESTFLAGS = -Xbatch -Xmx32m -showversion |
1 | 65 |
|
66 |
### maye ARCH_XXX instead? |
|
67 |
ifdef USE_GCC |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
68 |
PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).gcc |
1 | 69 |
GCC_LIB = /usr/local/lib |
70 |
else |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
71 |
PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) |
1 | 72 |
GCC_LIB = |
73 |
endif |
|
74 |
||
75 |
ifdef FORCE_TIERED |
|
76 |
ifeq ($(VARIANT),tiered) |
|
77 |
PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_compiler2 |
|
78 |
else |
|
79 |
PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT) |
|
80 |
endif |
|
81 |
else |
|
82 |
PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT) |
|
83 |
endif |
|
84 |
||
85 |
# |
|
86 |
# We do two levels of exclusion in the shared directory. |
|
87 |
# TOPLEVEL excludes are pruned, they are not recursively searched, |
|
88 |
# but lower level directories can be named without fear of collision. |
|
89 |
# ALWAYS excludes are excluded at any level in the directory tree. |
|
90 |
# |
|
91 |
||
92 |
ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS) |
|
93 |
||
94 |
ifeq ($(VARIANT),tiered) |
|
95 |
TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent |
|
96 |
else |
|
97 |
ifeq ($(VARIANT),compiler2) |
|
98 |
TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent |
|
99 |
else |
|
100 |
# compiler1 and core use the same exclude list |
|
101 |
TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent |
|
102 |
endif |
|
103 |
endif |
|
104 |
||
105 |
# Get things from the platform file. |
|
106 |
COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) |
|
107 |
||
108 |
SIMPLE_DIRS = \ |
|
7397 | 109 |
$(PLATFORM_DIR)/generated/dependencies \ |
1 | 110 |
$(PLATFORM_DIR)/generated/adfiles \ |
111 |
$(PLATFORM_DIR)/generated/jvmtifiles |
|
112 |
||
113 |
TARGETS = debug fastdebug jvmg optimized product profiled |
|
114 |
SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) |
|
115 |
||
116 |
# For dependencies and recursive makes. |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
117 |
BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
1 | 118 |
|
119 |
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \ |
|
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
120 |
env.ksh env.csh jdkpath.sh .dbxrc test_gamma |
1 | 121 |
|
122 |
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ |
|
123 |
ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
|
124 |
||
125 |
# Define variables to be set in flags.make. |
|
126 |
# Default values are set in make/defs.make. |
|
127 |
ifeq ($(HOTSPOT_BUILD_VERSION),) |
|
128 |
HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) |
|
129 |
else |
|
130 |
HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) |
|
131 |
endif |
|
132 |
# Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) |
|
133 |
ifndef HOTSPOT_BUILD_USER |
|
134 |
HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) |
|
135 |
endif |
|
136 |
ifndef HOTSPOT_BUILD_USER |
|
137 |
HOTSPOT_BUILD_USER := $(shell whoami) |
|
138 |
endif |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
139 |
# Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro |
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
140 |
# or make/hotspot_distro. |
1 | 141 |
ifndef HOTSPOT_VM_DISTRO |
142 |
CLOSED_DIR_EXISTS := $(shell \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
143 |
if [ -d $(GAMMADIR)/src/closed ] ; then \ |
1 | 144 |
echo true; \ |
145 |
else \ |
|
146 |
echo false; \ |
|
147 |
fi) |
|
148 |
ifeq ($(CLOSED_DIR_EXISTS), true) |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
149 |
include $(GAMMADIR)/make/hotspot_distro |
1 | 150 |
else |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
151 |
include $(GAMMADIR)/make/openjdk_distro |
1 | 152 |
endif |
153 |
endif |
|
154 |
||
155 |
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
|
156 |
||
157 |
BUILDTREE = \ |
|
158 |
$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) |
|
159 |
||
160 |
BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" |
|
161 |
||
162 |
all: $(SUBMAKE_DIRS) |
|
163 |
||
164 |
# Run make in each subdirectory recursively. |
|
165 |
$(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE |
|
166 |
$(QUIETLY) [ -d $@ ] || { mkdir -p $@; } |
|
167 |
$(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) |
|
168 |
$(QUIETLY) touch $@ |
|
169 |
||
170 |
$(SIMPLE_DIRS): |
|
171 |
$(QUIETLY) mkdir -p $@ |
|
172 |
||
173 |
flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
|
174 |
@echo Creating $@ ... |
|
175 |
$(QUIETLY) ( \ |
|
176 |
$(BUILDTREE_COMMENT); \ |
|
177 |
echo; \ |
|
178 |
echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ |
|
179 |
sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ |
|
180 |
echo; \ |
|
181 |
echo "GAMMADIR = $(GAMMADIR)"; \ |
|
182 |
echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
|
183 |
echo "SRCARCH = $(ARCH)"; \ |
|
184 |
echo "BUILDARCH = $(BUILDARCH)"; \ |
|
185 |
echo "LIBARCH = $(LIBARCH)"; \ |
|
186 |
echo "TARGET = $(TARGET)"; \ |
|
187 |
echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ |
|
188 |
echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ |
|
189 |
echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ |
|
190 |
echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ |
|
191 |
echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ |
|
192 |
echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
|
193 |
echo; \ |
|
7397 | 194 |
echo "# Used for platform dispatching"; \ |
195 |
echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ |
|
196 |
echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ |
|
197 |
echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ |
|
198 |
echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ |
|
199 |
echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ |
|
200 |
echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ |
|
201 |
echo "CFLAGS += \$$(TARGET_DEFINES)"; \ |
|
202 |
echo; \ |
|
203 |
echo "Src_Dirs_V = \\"; \ |
|
1 | 204 |
sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
205 |
echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \ |
|
206 |
echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \ |
|
207 |
echo "\$$(GAMMADIR)/src/os_cpu/$(OS_FAMILY)_$(ARCH)/vm"; \ |
|
7397 | 208 |
echo; \ |
209 |
echo "Src_Dirs_I = \\"; \ |
|
210 |
echo "\$$(GAMMADIR)/src/share/vm \\"; \ |
|
211 |
echo "\$$(GAMMADIR)/src/share/vm/prims \\"; \ |
|
212 |
echo "\$$(GAMMADIR)/src/cpu/$(ARCH)/vm \\"; \ |
|
213 |
echo "\$$(GAMMADIR)/src/os/$(OS_FAMILY)/vm \\"; \ |
|
214 |
echo "\$$(GAMMADIR)/src/os_cpu/$(OS_FAMILY)_$(ARCH)/vm"; \ |
|
1 | 215 |
[ -n "$(CFLAGS_BROWSE)" ] && \ |
216 |
echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ |
|
217 |
[ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ |
|
218 |
echo && \ |
|
219 |
echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ |
|
220 |
echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ |
|
221 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
222 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
223 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
1 | 224 |
) > $@ |
225 |
||
226 |
flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
|
227 |
@echo Creating $@ ... |
|
228 |
$(QUIETLY) ( \ |
|
229 |
$(BUILDTREE_COMMENT); \ |
|
230 |
echo; \ |
|
231 |
[ "$(TARGET)" = profiled ] && \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
232 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \ |
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
233 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
1 | 234 |
) > $@ |
235 |
||
236 |
../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm |
|
237 |
@echo Creating directory list $@ |
|
238 |
$(QUIETLY) find $(GAMMADIR)/src/share/vm/* -prune \ |
|
239 |
-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
|
240 |
\( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@ |
|
241 |
||
242 |
Makefile: $(BUILDTREE_MAKE) |
|
243 |
@echo Creating $@ ... |
|
244 |
$(QUIETLY) ( \ |
|
245 |
$(BUILDTREE_COMMENT); \ |
|
246 |
echo; \ |
|
247 |
echo include flags.make; \ |
|
248 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
249 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
1 | 250 |
) > $@ |
251 |
||
252 |
vm.make: $(BUILDTREE_MAKE) |
|
253 |
@echo Creating $@ ... |
|
254 |
$(QUIETLY) ( \ |
|
255 |
$(BUILDTREE_COMMENT); \ |
|
256 |
echo; \ |
|
257 |
echo include flags.make; \ |
|
258 |
echo include flags_vm.make; \ |
|
259 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
260 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 261 |
) > $@ |
262 |
||
263 |
adlc.make: $(BUILDTREE_MAKE) |
|
264 |
@echo Creating $@ ... |
|
265 |
$(QUIETLY) ( \ |
|
266 |
$(BUILDTREE_COMMENT); \ |
|
267 |
echo; \ |
|
268 |
echo include flags.make; \ |
|
269 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
270 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 271 |
) > $@ |
272 |
||
273 |
jvmti.make: $(BUILDTREE_MAKE) |
|
274 |
@echo Creating $@ ... |
|
275 |
$(QUIETLY) ( \ |
|
276 |
$(BUILDTREE_COMMENT); \ |
|
277 |
echo; \ |
|
278 |
echo include flags.make; \ |
|
279 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
280 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 281 |
) > $@ |
282 |
||
283 |
sa.make: $(BUILDTREE_MAKE) |
|
284 |
@echo Creating $@ ... |
|
285 |
$(QUIETLY) ( \ |
|
286 |
$(BUILDTREE_COMMENT); \ |
|
287 |
echo; \ |
|
288 |
echo include flags.make; \ |
|
289 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
290 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 291 |
) > $@ |
292 |
||
293 |
env.ksh: $(BUILDTREE_MAKE) |
|
294 |
@echo Creating $@ ... |
|
295 |
$(QUIETLY) ( \ |
|
296 |
$(BUILDTREE_COMMENT); \ |
|
297 |
[ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \ |
|
298 |
{ \ |
|
299 |
echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \ |
|
300 |
echo "unset LD_LIBRARY_PATH_32"; \ |
|
301 |
echo "unset LD_LIBRARY_PATH_64"; \ |
|
302 |
echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \ |
|
303 |
} | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \ |
|
304 |
echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \ |
|
305 |
echo "export JAVA_HOME LD_LIBRARY_PATH CLASSPATH HOTSPOT_BUILD_USER"; \ |
|
306 |
) > $@ |
|
307 |
||
308 |
env.csh: env.ksh |
|
309 |
@echo Creating $@ ... |
|
310 |
$(QUIETLY) ( \ |
|
311 |
$(BUILDTREE_COMMENT); \ |
|
312 |
[ -n "$$JAVA_HOME" ] && \ |
|
313 |
{ echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \ |
|
314 |
sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ |
|
315 |
) > $@ |
|
316 |
||
7452
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
317 |
jdkpath.sh: $(BUILDTREE_MAKE) |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
318 |
@echo Creating $@ ... |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
319 |
$(QUIETLY) ( \ |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
320 |
$(BUILDTREE_COMMENT); \ |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
321 |
echo "JDK=${JAVA_HOME}"; \ |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
322 |
) > $@ |
b3fa838286de
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
7403
diff
changeset
|
323 |
|
1 | 324 |
.dbxrc: $(BUILDTREE_MAKE) |
325 |
@echo Creating $@ ... |
|
326 |
$(QUIETLY) ( \ |
|
327 |
echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \ |
|
328 |
echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \ |
|
329 |
echo "then"; \ |
|
330 |
echo " source \"\$${HOTSPOT_DBXWARE}\""; \ |
|
331 |
echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \ |
|
332 |
echo "then"; \ |
|
333 |
echo " source \"\$$HOME/.dbxrc\""; \ |
|
334 |
echo "fi"; \ |
|
335 |
) > $@ |
|
336 |
||
337 |
# Skip the test for product builds (which only work when installed in a JDK), to |
|
338 |
# avoid exiting with an error and causing make to halt. |
|
339 |
NO_TEST_MSG = \ |
|
340 |
echo "$@: skipping the test--this build must be tested in a JDK." |
|
341 |
||
342 |
NO_JAVA_HOME_MSG = \ |
|
343 |
echo "JAVA_HOME must be set to run this test." |
|
344 |
||
345 |
DATA_MODE = $(DATA_MODE/$(BUILDARCH)) |
|
346 |
JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE)) |
|
347 |
||
348 |
DATA_MODE/i486 = 32 |
|
349 |
DATA_MODE/sparc = 32 |
|
350 |
DATA_MODE/sparcv9 = 64 |
|
351 |
DATA_MODE/amd64 = 64 |
|
352 |
DATA_MODE/ia64 = 64 |
|
353 |
||
354 |
# This bit is needed to enable local rebuilds. |
|
355 |
# Unless the makefile itself sets LP64, any environmental |
|
356 |
# setting of LP64 will interfere with the build. |
|
357 |
LP64_SETTING/32 = LP64 = \#empty |
|
358 |
LP64_SETTING/64 = LP64 = 1 |
|
359 |
||
360 |
JAVA_FLAG/32 = -d32 |
|
361 |
JAVA_FLAG/64 = -d64 |
|
362 |
||
363 |
WRONG_DATA_MODE_MSG = \ |
|
364 |
echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." |
|
365 |
||
778
574c011e95e3
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
338
diff
changeset
|
366 |
test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java |
1 | 367 |
@echo Creating $@ ... |
368 |
$(QUIETLY) ( \ |
|
369 |
echo '#!/bin/ksh'; \ |
|
370 |
$(BUILDTREE_COMMENT); \ |
|
371 |
echo '. ./env.ksh'; \ |
|
372 |
echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ |
|
373 |
echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \ |
|
374 |
echo "then"; \ |
|
375 |
echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ |
|
376 |
echo "fi"; \ |
|
778
574c011e95e3
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
338
diff
changeset
|
377 |
echo "rm -f Queens.class"; \ |
574c011e95e3
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
338
diff
changeset
|
378 |
echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \ |
1 | 379 |
echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ |
380 |
echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ |
|
381 |
) > $@ |
|
382 |
$(QUIETLY) chmod +x $@ |
|
383 |
||
384 |
FORCE: |
|
385 |
||
386 |
.PHONY: all FORCE |