Mercurial > hg > truffle
annotate make/linux/makefiles/buildtree.make @ 6665:6b71c116b370
PEA bugfix: look up scalar aliases when initializing virtual object entries
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Mon, 05 Nov 2012 12:58:32 +0100 |
parents | 957c266d8bc5 |
children | e522a00b91aa |
rev | line source |
---|---|
0 | 1 # |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
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:
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 | |
5897
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
58 -include $(SPEC) |
0 | 59 include $(GAMMADIR)/make/scm.make |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
60 include $(GAMMADIR)/make/altsrc.make |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
61 |
0 | 62 |
63 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. | |
64 QUIETLY$(MAKE_VERBOSE) = @ | |
65 | |
66 # For now, until the compiler is less wobbly: | |
67 TESTFLAGS = -Xbatch -showversion | |
68 | |
5946
3d7ea1dbe0de
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
5897
diff
changeset
|
69 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
1010 | 70 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
|
71 else |
1010 | 72 ifdef USE_SUNCC |
73 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc | |
74 else | |
75 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) | |
76 endif | |
77 endif | |
78 | |
79 # Allow overriding of the arch part of the directory but default | |
80 # to BUILDARCH if nothing is specified | |
81 ifeq ($(VARIANTARCH),) | |
82 VARIANTARCH=$(BUILDARCH) | |
50
485d403e94e1
6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers
dcubed
parents:
0
diff
changeset
|
83 endif |
0 | 84 |
85 ifdef FORCE_TIERED | |
86 ifeq ($(VARIANT),tiered) | |
1010 | 87 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2 |
0 | 88 else |
1010 | 89 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
0 | 90 endif |
91 else | |
1010 | 92 PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
0 | 93 endif |
94 | |
95 # | |
96 # We do two levels of exclusion in the shared directory. | |
97 # TOPLEVEL excludes are pruned, they are not recursively searched, | |
98 # but lower level directories can be named without fear of collision. | |
99 # ALWAYS excludes are excluded at any level in the directory tree. | |
100 # | |
101 | |
102 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS) | |
103 | |
104 ifeq ($(VARIANT),tiered) | |
105 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent | |
106 else | |
107 ifeq ($(VARIANT),compiler2) | |
108 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent | |
109 else | |
110 # compiler1 and core use the same exclude list | |
111 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent | |
112 endif | |
113 endif | |
114 | |
115 # Get things from the platform file. | |
116 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE)) | |
117 | |
118 SIMPLE_DIRS = \ | |
1972 | 119 $(PLATFORM_DIR)/generated/dependencies \ |
0 | 120 $(PLATFORM_DIR)/generated/adfiles \ |
121 $(PLATFORM_DIR)/generated/jvmtifiles | |
122 | |
123 TARGETS = debug fastdebug jvmg optimized product profiled | |
124 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) | |
125 | |
126 # For dependencies and recursive makes. | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
127 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
0 | 128 |
129 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
|
130 env.sh env.csh jdkpath.sh .dbxrc test_gamma |
0 | 131 |
132 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
|
133 SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
0 | 134 |
135 # Define variables to be set in flags.make. | |
136 # Default values are set in make/defs.make. | |
137 ifeq ($(HOTSPOT_BUILD_VERSION),) | |
138 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION) | |
139 else | |
140 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION) | |
141 endif | |
142 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) | |
143 ifndef HOTSPOT_BUILD_USER | |
144 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) | |
145 endif | |
146 ifndef HOTSPOT_BUILD_USER | |
147 HOTSPOT_BUILD_USER := $(shell whoami) | |
148 endif | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
149 # 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
|
150 # or make/hotspot_distro. |
0 | 151 ifndef HOTSPOT_VM_DISTRO |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
152 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
|
153 include $(GAMMADIR)/make/hotspot_distro |
0 | 154 else |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
155 include $(GAMMADIR)/make/openjdk_distro |
0 | 156 endif |
157 endif | |
158 | |
159 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) | |
160 | |
161 BUILDTREE = \ | |
162 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) | |
163 | |
164 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" | |
165 | |
166 all: $(SUBMAKE_DIRS) | |
167 | |
168 # Run make in each subdirectory recursively. | |
169 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE | |
170 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; } | |
171 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) | |
172 $(QUIETLY) touch $@ | |
173 | |
174 $(SIMPLE_DIRS): | |
175 $(QUIETLY) mkdir -p $@ | |
176 | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
177 # 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
|
178 # 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
|
179 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
180 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
|
181 |
0 | 182 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
183 @echo Creating $@ ... | |
184 $(QUIETLY) ( \ | |
185 $(BUILDTREE_COMMENT); \ | |
186 echo; \ | |
187 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ | |
188 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ | |
189 echo; \ | |
190 echo "GAMMADIR = $(GAMMADIR)"; \ | |
191 echo "SYSDEFS = \$$(Platform_sysdefs)"; \ | |
2192
b92c45f2bc75
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
2027
diff
changeset
|
192 echo "SRCARCH = $(SRCARCH)"; \ |
0 | 193 echo "BUILDARCH = $(BUILDARCH)"; \ |
194 echo "LIBARCH = $(LIBARCH)"; \ | |
195 echo "TARGET = $(TARGET)"; \ | |
196 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ | |
197 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ | |
198 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ | |
199 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ | |
200 echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ | |
201 echo; \ | |
1972 | 202 echo "# Used for platform dispatching"; \ |
203 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ | |
204 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ | |
205 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ | |
206 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ | |
207 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ | |
208 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ | |
209 echo "CFLAGS += \$$(TARGET_DEFINES)"; \ | |
210 echo; \ | |
211 echo "Src_Dirs_V = \\"; \ | |
0 | 212 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
213 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
214 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
215 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
|
216 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
|
217 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
218 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
219 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
220 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
1972 | 221 echo; \ |
222 echo "Src_Dirs_I = \\"; \ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
223 echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
224 echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
225 echo "$(call gamma-path,altsrc,share/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
226 echo "$(call gamma-path,commonsrc,share/vm) \\"; \ |
4033
95009f678859
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
3954
diff
changeset
|
227 echo "$(call gamma-path,altsrc,share/vm/precompiled) \\"; \ |
95009f678859
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
3954
diff
changeset
|
228 echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
229 echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
230 echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
231 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
|
232 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
|
233 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
234 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
235 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
236 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
0 | 237 [ -n "$(CFLAGS_BROWSE)" ] && \ |
238 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
239 [ -n "$(ENABLE_FULL_DEBUG_SYMBOLS)" ] && \ |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
240 echo && echo "ENABLE_FULL_DEBUG_SYMBOLS = $(ENABLE_FULL_DEBUG_SYMBOLS)"; \ |
3954 | 241 [ -n "$(OBJCOPY)" ] && \ |
242 echo && echo "OBJCOPY = $(OBJCOPY)"; \ | |
243 [ -n "$(STRIP_POLICY)" ] && \ | |
244 echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \ | |
6020
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
245 [ -n "$(ZIP_DEBUGINFO_FILES)" ] && \ |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
246 echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \ |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
247 [ -n "$(ZIPEXE)" ] && \ |
d652a62d6e03
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
4846
diff
changeset
|
248 echo && echo "ZIPEXE = $(ZIPEXE)"; \ |
0 | 249 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ |
250 echo && \ | |
251 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ | |
252 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ | |
253 echo; \ | |
5897
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
254 [ -n "$(SPEC)" ] && \ |
7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
4846
diff
changeset
|
255 echo "include $(SPEC)"; \ |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
256 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
|
257 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
0 | 258 ) > $@ |
259 | |
260 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst | |
261 @echo Creating $@ ... | |
262 $(QUIETLY) ( \ | |
263 $(BUILDTREE_COMMENT); \ | |
264 echo; \ | |
265 [ "$(TARGET)" = profiled ] && \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
266 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
|
267 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
0 | 268 ) > $@ |
269 | |
270 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm | |
271 @echo Creating directory list $@ | |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
272 $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
273 find $(HS_ALT_SRC)/share/vm/* -prune \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
274 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
275 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
276 fi; |
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
277 $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ |
0 | 278 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
2199
d8a72fbc4be7
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
2192
diff
changeset
|
279 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ |
0 | 280 |
281 Makefile: $(BUILDTREE_MAKE) | |
282 @echo Creating $@ ... | |
283 $(QUIETLY) ( \ | |
284 $(BUILDTREE_COMMENT); \ | |
285 echo; \ | |
286 echo include flags.make; \ | |
287 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
288 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
0 | 289 ) > $@ |
290 | |
291 vm.make: $(BUILDTREE_MAKE) | |
292 @echo Creating $@ ... | |
293 $(QUIETLY) ( \ | |
294 $(BUILDTREE_COMMENT); \ | |
295 echo; \ | |
296 echo include flags.make; \ | |
297 echo include flags_vm.make; \ | |
298 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
299 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 300 ) > $@ |
301 | |
302 adlc.make: $(BUILDTREE_MAKE) | |
303 @echo Creating $@ ... | |
304 $(QUIETLY) ( \ | |
305 $(BUILDTREE_COMMENT); \ | |
306 echo; \ | |
307 echo include flags.make; \ | |
308 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
309 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 310 ) > $@ |
311 | |
312 jvmti.make: $(BUILDTREE_MAKE) | |
313 @echo Creating $@ ... | |
314 $(QUIETLY) ( \ | |
315 $(BUILDTREE_COMMENT); \ | |
316 echo; \ | |
317 echo include flags.make; \ | |
318 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
319 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 320 ) > $@ |
321 | |
322 sa.make: $(BUILDTREE_MAKE) | |
323 @echo Creating $@ ... | |
324 $(QUIETLY) ( \ | |
325 $(BUILDTREE_COMMENT); \ | |
326 echo; \ | |
327 echo include flags.make; \ | |
328 echo; \ | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
50
diff
changeset
|
329 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
0 | 330 ) > $@ |
331 | |
332 env.sh: $(BUILDTREE_MAKE) | |
333 @echo Creating $@ ... | |
334 $(QUIETLY) ( \ | |
335 $(BUILDTREE_COMMENT); \ | |
336 [ -n "$$JAVA_HOME" ] && { echo ": \$${JAVA_HOME:=$${JAVA_HOME}}"; }; \ | |
337 { \ | |
338 echo "CLASSPATH=$${CLASSPATH:+$$CLASSPATH:}.:\$${JAVA_HOME}/jre/lib/rt.jar:\$${JAVA_HOME}/jre/lib/i18n.jar"; \ | |
339 } | sed s:$${JAVA_HOME:--------}:\$${JAVA_HOME}:g; \ | |
340 echo "HOTSPOT_BUILD_USER=\"$${LOGNAME:-$$USER} in `basename $(GAMMADIR)`\""; \ | |
4846 | 341 echo "export JAVA_HOME CLASSPATH HOTSPOT_BUILD_USER"; \ |
0 | 342 ) > $@ |
343 | |
344 env.csh: env.sh | |
345 @echo Creating $@ ... | |
346 $(QUIETLY) ( \ | |
347 $(BUILDTREE_COMMENT); \ | |
348 [ -n "$$JAVA_HOME" ] && \ | |
349 { echo "if (! \$$?JAVA_HOME) setenv JAVA_HOME \"$$JAVA_HOME\""; }; \ | |
350 sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=/setenv \1 /p' $?; \ | |
351 ) > $@ | |
352 | |
2027
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
353 jdkpath.sh: $(BUILDTREE_MAKE) |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
354 @echo Creating $@ ... |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
355 $(QUIETLY) ( \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
356 $(BUILDTREE_COMMENT); \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
357 echo "JDK=${JAVA_HOME}"; \ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
358 ) > $@ |
aa6e219afbf1
7006354: Updates to Visual Studio project creation and development launcher
sla
parents:
1978
diff
changeset
|
359 |
0 | 360 .dbxrc: $(BUILDTREE_MAKE) |
361 @echo Creating $@ ... | |
362 $(QUIETLY) ( \ | |
363 echo "echo '# Loading $(PLATFORM_DIR)/$(TARGET)/.dbxrc'"; \ | |
364 echo "if [ -f \"\$${HOTSPOT_DBXWARE}\" ]"; \ | |
365 echo "then"; \ | |
366 echo " source \"\$${HOTSPOT_DBXWARE}\""; \ | |
367 echo "elif [ -f \"\$$HOME/.dbxrc\" ]"; \ | |
368 echo "then"; \ | |
369 echo " source \"\$$HOME/.dbxrc\""; \ | |
370 echo "fi"; \ | |
371 ) > $@ | |
372 | |
373 # Skip the test for product builds (which only work when installed in a JDK), to | |
374 # avoid exiting with an error and causing make to halt. | |
375 NO_TEST_MSG = \ | |
376 echo "$@: skipping the test--this build must be tested in a JDK." | |
377 | |
378 NO_JAVA_HOME_MSG = \ | |
379 echo "JAVA_HOME must be set to run this test." | |
380 | |
381 DATA_MODE = $(DATA_MODE/$(BUILDARCH)) | |
382 JAVA_FLAG = $(JAVA_FLAG/$(DATA_MODE)) | |
383 | |
384 DATA_MODE/i486 = 32 | |
385 DATA_MODE/sparc = 32 | |
386 DATA_MODE/sparcv9 = 64 | |
387 DATA_MODE/amd64 = 64 | |
388 DATA_MODE/ia64 = 64 | |
1010 | 389 DATA_MODE/zero = $(ARCH_DATA_MODEL) |
0 | 390 |
391 JAVA_FLAG/32 = -d32 | |
392 JAVA_FLAG/64 = -d64 | |
393 | |
394 WRONG_DATA_MODE_MSG = \ | |
4846 | 395 echo "JAVA_HOME must point to a $(DATA_MODE)-bit OpenJDK." |
0 | 396 |
1681
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
397 CROSS_COMPILING_MSG = \ |
126ea7725993
6953477: Increase portability and flexibility of building Hotspot
bobv
parents:
1552
diff
changeset
|
398 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
|
399 |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
400 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java |
0 | 401 @echo Creating $@ ... |
402 $(QUIETLY) ( \ | |
4846 | 403 echo "#!/bin/sh"; \ |
404 echo ""; \ | |
0 | 405 $(BUILDTREE_COMMENT); \ |
4846 | 406 echo ""; \ |
407 echo "# Include environment settings for gamma run"; \ | |
408 echo ""; \ | |
409 echo ". ./env.sh"; \ | |
410 echo ""; \ | |
411 echo "# Do not run gamma test for cross compiles"; \ | |
412 echo ""; \ | |
413 echo "if [ -n \"$(CROSS_COMPILE_ARCH)\" ]; then "; \ | |
414 echo " $(CROSS_COMPILING_MSG)"; \ | |
415 echo " exit 0"; \ | |
416 echo "fi"; \ | |
417 echo ""; \ | |
418 echo "# Make sure JAVA_HOME is set as it is required for gamma"; \ | |
419 echo ""; \ | |
420 echo "if [ -z \"\$${JAVA_HOME}\" ]; then "; \ | |
421 echo " $(NO_JAVA_HOME_MSG)"; \ | |
422 echo " exit 0"; \ | |
423 echo "fi"; \ | |
424 echo ""; \ | |
425 echo "# Check JAVA_HOME version to be used for the test"; \ | |
426 echo ""; \ | |
427 echo "\$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion > /dev/null 2>&1"; \ | |
428 echo "if [ \$$? -ne 0 ]; then "; \ | |
429 echo " $(WRONG_DATA_MODE_MSG)"; \ | |
430 echo " exit 0"; \ | |
0 | 431 echo "fi"; \ |
4846 | 432 echo ""; \ |
433 echo "# Use gamma_g if it exists"; \ | |
434 echo ""; \ | |
435 echo "GAMMA_PROG=gamma"; \ | |
436 echo "if [ -f gamma_g ]; then "; \ | |
437 echo " GAMMA_PROG=gamma_g"; \ | |
438 echo "fi"; \ | |
439 echo ""; \ | |
440 echo "if [ \"$(OS_VENDOR)\" = \"Darwin\" ]; then "; \ | |
441 echo " # Ensure architecture for gamma and JAVA_HOME is the same."; \ | |
442 echo " # NOTE: gamma assumes the OpenJDK directory layout."; \ | |
443 echo ""; \ | |
444 echo " GAMMA_ARCH=\"\`file \$${GAMMA_PROG} | awk '{print \$$NF}'\`\""; \ | |
445 echo " JVM_LIB=\"\$${JAVA_HOME}/jre/lib/libjava.$(LIBRARY_SUFFIX)\""; \ | |
446 echo " if [ ! -f \$${JVM_LIB} ]; then"; \ | |
447 echo " JVM_LIB=\"\$${JAVA_HOME}/jre/lib/$${LIBARCH}/libjava.$(LIBRARY_SUFFIX)\""; \ | |
448 echo " fi"; \ | |
449 echo " if [ ! -f \$${JVM_LIB} ] || [ -z \"\`file \$${JVM_LIB} | grep \$${GAMMA_ARCH}\`\" ]; then "; \ | |
450 echo " $(WRONG_DATA_MODE_MSG)"; \ | |
451 echo " exit 0"; \ | |
452 echo " fi"; \ | |
453 echo "fi"; \ | |
454 echo ""; \ | |
455 echo "# Compile Queens program for test"; \ | |
456 echo ""; \ | |
232
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
457 echo "rm -f Queens.class"; \ |
551f4309f476
6695777: Queens.class should be built from source, not put in source repo
ohair
parents:
91
diff
changeset
|
458 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \ |
4846 | 459 echo ""; \ |
460 echo "# Set library path solely for gamma launcher test run"; \ | |
461 echo ""; \ | |
462 echo "LD_LIBRARY_PATH=.:$${LD_LIBRARY_PATH:+$$LD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \ | |
463 echo "export LD_LIBRARY_PATH"; \ | |
464 echo "unset LD_LIBRARY_PATH_32"; \ | |
465 echo "unset LD_LIBRARY_PATH_64"; \ | |
466 echo ""; \ | |
467 echo "if [ \"$(OS_VENDOR)\" = \"Darwin\" ]; then "; \ | |
468 echo " DYLD_LIBRARY_PATH=.:$${DYLD_LIBRARY_PATH:+$$DYLD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/native_threads:\$${JAVA_HOME}/jre/lib:$${DYLD_LIBRARY_PATH:+$$DYLD_LIBRARY_PATH:}\$${JAVA_HOME}/jre/lib/${LIBARCH}/native_threads:\$${JAVA_HOME}/jre/lib/${LIBARCH}:${GCC_LIB}"; \ | |
469 echo " export DYLD_LIBRARY_PATH"; \ | |
470 echo "fi"; \ | |
471 echo ""; \ | |
472 echo "# Use the gamma launcher and JAVA_HOME to run the test"; \ | |
473 echo ""; \ | |
474 echo "./\$${GAMMA_PROG} $(TESTFLAGS) Queens < /dev/null"; \ | |
0 | 475 ) > $@ |
476 $(QUIETLY) chmod +x $@ | |
477 | |
478 FORCE: | |
479 | |
480 .PHONY: all FORCE |