Mercurial > hg > truffle
annotate make/linux/makefiles/buildtree.make @ 3927:f1b4e0e0bdad
7089625: G1: policy for how many old regions to add to the CSet (when young gen is fixed) is broken
Summary: When refactoring the code for a previous fix, a condition was not correctly negated which prevents the G1 policy from adding the correct number of old regions to the CSet when the young gen size is fixed. The changeset also fixes a small syntactical issue in g1ErgoVerbose.hpp which is causing compiler warnings.
Reviewed-by: brutisso, ysr
author | tonyp |
---|---|
date | Tue, 13 Sep 2011 12:40:14 -0400 |
parents | d8a72fbc4be7 |
children | 0cd39a385a72 da0999c4b733 |
rev | line source |
---|---|
0 | 1 # |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
2 # Copyright (c) 2005, 2011, 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:
1010
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1010
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:
1010
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
25 # Usage: | |
26 # | |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
27 # $(MAKE) -f buildtree.make SRCARCH=srcarch BUILDARCH=buildarch LIBARCH=libarch |
0 | 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) | |
1977
c7db7adb83b4
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
1681
diff
changeset
|
40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty |
0 | 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 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
59 include $(GAMMADIR)/make/altsrc.make |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
60 |
0 | 61 |
62 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. | |
63 QUIETLY$(MAKE_VERBOSE) = @ | |
64 | |
65 # For now, until the compiler is less wobbly: | |
66 TESTFLAGS = -Xbatch -showversion | |
67 | |
1010 | 68 ifeq ($(ZERO_BUILD), true) |
69 PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero | |
50
485d403e94e1
6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers
dcubed
parents:
0
diff
changeset
|
70 else |
1010 | 71 ifdef USE_SUNCC |
72 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc | |
73 else | |
74 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) | |
75 endif | |
76 endif | |
77 | |
78 # Allow overriding of the arch part of the directory but default | |
79 # to BUILDARCH if nothing is specified | |
80 ifeq ($(VARIANTARCH),) | |
81 VARIANTARCH=$(BUILDARCH) | |
50
485d403e94e1
6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers
dcubed
parents:
0
diff
changeset
|
82 endif |
0 | 83 |
84 ifdef FORCE_TIERED | |
85 ifeq ($(VARIANT),tiered) | |
1010 | 86 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2 |
0 | 87 else |
1010 | 88 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
0 | 89 endif |
90 else | |
1010 | 91 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
0 | 92 endif |
93 | |
94 # | |
95 # We do two levels of exclusion in the shared directory. | |
96 # TOPLEVEL excludes are pruned, they are not recursively searched, | |
97 # but lower level directories can be named without fear of collision. | |
98 # ALWAYS excludes are excluded at any level in the directory tree. | |
99 # | |
100 | |
101 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS) | |
102 | |
103 ifeq ($(VARIANT),tiered) | |
104 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent | |
105 else | |
106 ifeq ($(VARIANT),compiler2) | |
107 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent | |
108 else | |
109 # compiler1 and core use the same exclude list | |
110 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent | |
111 endif | |
112 endif | |
113 | |
114 # Get things from the platform file. | |
115 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) | |
116 | |
117 SIMPLE_DIRS = \ | |
1972 | 118 $(PLATFORM_DIR)/generated/dependencies \ |
0 | 119 $(PLATFORM_DIR)/generated/adfiles \ |
120 $(PLATFORM_DIR)/generated/jvmtifiles | |
121 | |
122 TARGETS = debug fastdebug jvmg optimized product profiled | |
123 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) | |
124 | |
125 # For dependencies and recursive makes. | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
126 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
0 | 127 |
128 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make \ | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
129 env.sh env.csh jdkpath.sh .dbxrc test_gamma |
0 | 130 |
131 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ | |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
132 SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
0 | 133 |
134 # Define variables to be set in flags.make. | |
135 # Default values are set in make/defs.make. | |
136 ifeq ($(HOTSPOT_BUILD_VERSION),) | |
137 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) | |
138 else | |
139 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) | |
140 endif | |
141 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) | |
142 ifndef HOTSPOT_BUILD_USER | |
143 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) | |
144 endif | |
145 ifndef HOTSPOT_BUILD_USER | |
146 HOTSPOT_BUILD_USER := $(shell whoami) | |
147 endif | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
148 # Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
149 # or make/hotspot_distro. |
0 | 150 ifndef HOTSPOT_VM_DISTRO |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
151 ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
152 include $(GAMMADIR)/make/hotspot_distro |
0 | 153 else |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
154 include $(GAMMADIR)/make/openjdk_distro |
0 | 155 endif |
156 endif | |
157 | |
158 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) | |
159 | |
160 BUILDTREE = \ | |
161 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) | |
162 | |
163 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" | |
164 | |
165 all: $(SUBMAKE_DIRS) | |
166 | |
167 # Run make in each subdirectory recursively. | |
168 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE | |
169 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; } | |
170 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) | |
171 $(QUIETLY) touch $@ | |
172 | |
173 $(SIMPLE_DIRS): | |
174 $(QUIETLY) mkdir -p $@ | |
175 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
176 # Convenience macro which takes a source relative path, applies $(1) to the |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
177 # absolute path, and then replaces $(GAMMADIR) in the result with a |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
178 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
179 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
180 |
0 | 181 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
182 @echo Creating $@ ... | |
183 $(QUIETLY) ( \ | |
184 $(BUILDTREE_COMMENT); \ | |
185 echo; \ | |
186 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ | |
187 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ | |
188 echo; \ | |
189 echo "GAMMADIR = $(GAMMADIR)"; \ | |
190 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ | |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
191 echo "SRCARCH = $(SRCARCH)"; \ |
0 | 192 echo "BUILDARCH = $(BUILDARCH)"; \ |
193 echo "LIBARCH = $(LIBARCH)"; \ | |
194 echo "TARGET = $(TARGET)"; \ | |
195 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ | |
196 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ | |
197 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ | |
198 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ | |
199 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ | |
200 echo; \ | |
1972 | 201 echo "# Used for platform dispatching"; \ |
202 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ | |
203 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ | |
204 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ | |
205 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ | |
206 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ | |
207 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ | |
208 echo "CFLAGS += \$$(TARGET_DEFINES)"; \ | |
209 echo; \ | |
210 echo "Src_Dirs_V = \\"; \ | |
0 | 211 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
212 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
213 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
214 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
215 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
216 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
217 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
218 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
219 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
1972 | 220 echo; \ |
221 echo "Src_Dirs_I = \\"; \ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
222 echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
223 echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
224 echo "$(call gamma-path,altsrc,share/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
225 echo "$(call gamma-path,commonsrc,share/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
226 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
227 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
228 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
229 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
230 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
231 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
232 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
233 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
0 | 234 [ -n "$(CFLAGS_BROWSE)" ] && \ |
235 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ | |
236 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ | |
237 echo && \ | |
238 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ | |
239 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ | |
240 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
241 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
242 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
0 | 243 ) > $@ |
244 | |
245 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst | |
246 @echo Creating $@ ... | |
247 $(QUIETLY) ( \ | |
248 $(BUILDTREE_COMMENT); \ | |
249 echo; \ | |
250 [ "$(TARGET)" = profiled ] && \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
251 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/optimized.make"; \ |
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
252 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
0 | 253 ) > $@ |
254 | |
255 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm | |
256 @echo Creating directory list $@ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
257 $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
258 find $(HS_ALT_SRC)/share/vm/* -prune \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
259 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
260 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
261 fi; |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
262 $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ |
0 | 263 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
264 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ |
0 | 265 |
266 Makefile: $(BUILDTREE_MAKE) | |
267 @echo Creating $@ ... | |
268 $(QUIETLY) ( \ | |
269 $(BUILDTREE_COMMENT); \ | |
270 echo; \ | |
271 echo include flags.make; \ | |
272 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
273 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
0 | 274 ) > $@ |
275 | |
276 vm.make: $(BUILDTREE_MAKE) | |
277 @echo Creating $@ ... | |
278 $(QUIETLY) ( \ | |
279 $(BUILDTREE_COMMENT); \ | |
280 echo; \ | |
281 echo include flags.make; \ | |
282 echo include flags_vm.make; \ | |
283 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
284 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 285 ) > $@ |
286 | |
287 adlc.make: $(BUILDTREE_MAKE) | |
288 @echo Creating $@ ... | |
289 $(QUIETLY) ( \ | |
290 $(BUILDTREE_COMMENT); \ | |
291 echo; \ | |
292 echo include flags.make; \ | |
293 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
294 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 295 ) > $@ |
296 | |
297 jvmti.make: $(BUILDTREE_MAKE) | |
298 @echo Creating $@ ... | |
299 $(QUIETLY) ( \ | |
300 $(BUILDTREE_COMMENT); \ | |
301 echo; \ | |
302 echo include flags.make; \ | |
303 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
304 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 305 ) > $@ |
306 | |
307 sa.make: $(BUILDTREE_MAKE) | |
308 @echo Creating $@ ... | |
309 $(QUIETLY) ( \ | |
310 $(BUILDTREE_COMMENT); \ | |
311 echo; \ | |
312 echo include flags.make; \ | |
313 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
314 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 315 ) > $@ |
316 | |
317 env.sh: $(BUILDTREE_MAKE) | |
318 @echo Creating $@ ... | |
319 $(QUIETLY) ( \ | |
320 $(BUILDTREE_COMMENT); \ | |
321 [ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \ | |
322 { \ | |
323 echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \ | |
324 echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \ | |
325 } | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \ | |
326 echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \ | |
327 echo "export JAVA_HOME LD_LIBRARY_PATH CLASSPATH HOTSPOT_BUILD_USER"; \ | |
328 ) > $@ | |
329 | |
330 env.csh: env.sh | |
331 @echo Creating $@ ... | |
332 $(QUIETLY) ( \ | |
333 $(BUILDTREE_COMMENT); \ | |
334 [ -n "$$JAVA_HOME" ] && \ | |
335 { echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \ | |
336 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ | |
337 ) > $@ | |
338 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
339 jdkpath.sh: $(BUILDTREE_MAKE) |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
340 @echo Creating $@ ... |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
341 $(QUIETLY) ( \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
342 $(BUILDTREE_COMMENT); \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
343 echo "JDK=${JAVA_HOME}"; \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
344 ) > $@ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
345 |
0 | 346 .dbxrc: $(BUILDTREE_MAKE) |
347 @echo Creating $@ ... | |
348 $(QUIETLY) ( \ | |
349 echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \ | |
350 echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \ | |
351 echo "then"; \ | |
352 echo " source \"\$${HOTSPOT_DBXWARE}\""; \ | |
353 echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \ | |
354 echo "then"; \ | |
355 echo " source \"\$$HOME/.dbxrc\""; \ | |
356 echo "fi"; \ | |
357 ) > $@ | |
358 | |
359 # Skip the test for product builds (which only work when installed in a JDK), to | |
360 # avoid exiting with an error and causing make to halt. | |
361 NO_TEST_MSG = \ | |
362 echo "$@: skipping the test--this build must be tested in a JDK." | |
363 | |
364 NO_JAVA_HOME_MSG = \ | |
365 echo "JAVA_HOME must be set to run this test." | |
366 | |
367 DATA_MODE = $(DATA_MODE/$(BUILDARCH)) | |
368 JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE)) | |
369 | |
370 DATA_MODE/i486 = 32 | |
371 DATA_MODE/sparc = 32 | |
372 DATA_MODE/sparcv9 = 64 | |
373 DATA_MODE/amd64 = 64 | |
374 DATA_MODE/ia64 = 64 | |
1010 | 375 DATA_MODE/zero = $(ARCH_DATA_MODEL) |
0 | 376 |
377 JAVA_FLAG/32 = -d32 | |
378 JAVA_FLAG/64 = -d64 | |
379 | |
380 WRONG_DATA_MODE_MSG = \ | |
381 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." | |
382 | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
383 CROSS_COMPILING_MSG = \ |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
384 echo "Cross compiling for ARCH $(CROSS_COMPILE_ARCH), skipping gamma run." |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
385 |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
386 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java |
0 | 387 @echo Creating $@ ... |
388 $(QUIETLY) ( \ | |
389 echo '#!/bin/sh'; \ | |
390 $(BUILDTREE_COMMENT); \ | |
391 echo '. ./env.sh'; \ | |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
392 echo "if [ \"$(CROSS_COMPILE_ARCH)\" != \"\" ]; then { $(CROSS_COMPILING_MSG); exit 0; }; fi"; \ |
0 | 393 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ |
233
17c572e2697c
6723762: Fix shell command that gets java version (uses 2>1)
ohair
parents:
91
diff
changeset
|
394 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>&1 > /dev/null"; \ |
0 | 395 echo "then"; \ |
396 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ | |
397 echo "fi"; \ | |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
398 echo "rm -f Queens.class"; \ |
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
399 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \ |
0 | 400 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ |
401 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ | |
402 ) > $@ | |
403 $(QUIETLY) chmod +x $@ | |
404 | |
405 FORCE: | |
406 | |
407 .PHONY: all FORCE |