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