author | iris |
Fri, 20 Nov 2015 12:22:41 -0800 | |
changeset 33980 | cbd63978deb5 |
parent 33583 | af842015bfaa |
parent 33957 | 39113ae98993 |
child 34319 | 9d6dd3c5ca23 |
permissions | -rw-r--r-- |
10565 | 1 |
# |
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
2 |
# Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
10565 | 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 |
# |
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
20 |
# or visit www.oracle.com if you need additional information or have any |
|
21 |
# questions. |
|
17006 | 22 |
# |
10565 | 23 |
# |
24 |
||
25 |
# Usage: |
|
26 |
# |
|
27 |
# $(MAKE) -f buildtree.make SRCARCH=srcarch 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 |
|
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
39 |
# VERSION_STRING - the JDK version string as specified by JEP-223 |
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
40 |
# HOTSPOT_VERSION_STRING - the same as VERSION_STRING, unless overridden by a standalone build |
10565 | 41 |
# |
42 |
# Builds the directory trees with makefiles plus some convenience files in |
|
43 |
# each directory: |
|
44 |
# |
|
45 |
# Makefile - for "make foo" |
|
46 |
# flags.make - with macro settings |
|
47 |
# vm.make - to support making "$(MAKE) -v vm.make" in makefiles |
|
17006 | 48 |
# adlc.make - |
18025 | 49 |
# trace.make - generate tracing event and type definitions |
10565 | 50 |
# jvmti.make - generate JVMTI bindings from the spec (JSR-163) |
51 |
# sa.make - generate SA jar file and natives |
|
17006 | 52 |
# |
10565 | 53 |
# The makefiles are split this way so that "make foo" will run faster by not |
54 |
# having to read the dependency files for the vm. |
|
55 |
||
11184
2e0f09640008
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
10830
diff
changeset
|
56 |
# needs to be set here since this Makefile doesn't include defs.make |
2e0f09640008
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
10830
diff
changeset
|
57 |
OS_VENDOR:=$(shell uname -s) |
2e0f09640008
7117748: SA_APPLE_BOOT_JAVA and ALWAYS_PASS_TEST_GAMMA settings should not be required on MacOS X
dcubed
parents:
10830
diff
changeset
|
58 |
|
11955
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
59 |
-include $(SPEC) |
10565 | 60 |
include $(GAMMADIR)/make/scm.make |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12156
diff
changeset
|
61 |
include $(GAMMADIR)/make/defs.make |
10565 | 62 |
include $(GAMMADIR)/make/altsrc.make |
63 |
||
64 |
||
65 |
# 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. |
|
66 |
QUIETLY$(MAKE_VERBOSE) = @ |
|
67 |
||
12156
fb31de03f649
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
11955
diff
changeset
|
68 |
ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
10565 | 69 |
PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero |
70 |
else |
|
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) |
|
82 |
endif |
|
83 |
||
84 |
ifdef FORCE_TIERED |
|
85 |
ifeq ($(VARIANT),tiered) |
|
86 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2 |
|
87 |
else |
|
88 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
|
89 |
endif |
|
90 |
else |
|
91 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
|
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 |
||
10739 | 117 |
# dtracefiles is used on BSD versions that implement Dtrace (like MacOS X) |
10565 | 118 |
SIMPLE_DIRS = \ |
119 |
$(PLATFORM_DIR)/generated/dependencies \ |
|
120 |
$(PLATFORM_DIR)/generated/adfiles \ |
|
10739 | 121 |
$(PLATFORM_DIR)/generated/jvmtifiles \ |
18025 | 122 |
$(PLATFORM_DIR)/generated/tracefiles \ |
10739 | 123 |
$(PLATFORM_DIR)/generated/dtracefiles |
10565 | 124 |
|
17006 | 125 |
TARGETS = debug fastdebug optimized product |
10565 | 126 |
SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) |
127 |
||
128 |
# For dependencies and recursive makes. |
|
129 |
BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
|
130 |
||
10739 | 131 |
# dtrace.make is used on BSD versions that implement Dtrace (like MacOS X) |
18025 | 132 |
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make sa.make dtrace.make |
10565 | 133 |
|
134 |
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ |
|
135 |
SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
|
136 |
||
137 |
# Define variables to be set in flags.make. |
|
138 |
# Default values are set in make/defs.make. |
|
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
139 |
|
10565 | 140 |
# Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami) |
141 |
ifndef HOTSPOT_BUILD_USER |
|
142 |
HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME) |
|
143 |
endif |
|
144 |
ifndef HOTSPOT_BUILD_USER |
|
145 |
HOTSPOT_BUILD_USER := $(shell whoami) |
|
146 |
endif |
|
147 |
# Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro |
|
148 |
# or make/hotspot_distro. |
|
149 |
ifndef HOTSPOT_VM_DISTRO |
|
150 |
ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
|
151 |
include $(GAMMADIR)/make/hotspot_distro |
|
152 |
else |
|
153 |
include $(GAMMADIR)/make/openjdk_distro |
|
154 |
endif |
|
155 |
endif |
|
156 |
||
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
157 |
# if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
158 |
ifndef OPENJDK |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
159 |
ifneq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
160 |
OPENJDK=true |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
161 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
162 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
163 |
|
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
164 |
BUILDTREE_VARS += HOTSPOT_VERSION_STRING=$(HOTSPOT_VERSION_STRING) VERSION_STRING=$(VERSION_STRING) |
10565 | 165 |
|
166 |
BUILDTREE = \ |
|
167 |
$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) |
|
168 |
||
169 |
BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" |
|
170 |
||
171 |
all: $(SUBMAKE_DIRS) |
|
172 |
||
173 |
# Run make in each subdirectory recursively. |
|
174 |
$(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE |
|
175 |
$(QUIETLY) [ -d $@ ] || { mkdir -p $@; } |
|
26565
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
176 |
+$(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) |
10565 | 177 |
$(QUIETLY) touch $@ |
178 |
||
179 |
$(SIMPLE_DIRS): |
|
180 |
$(QUIETLY) mkdir -p $@ |
|
181 |
||
182 |
# Convenience macro which takes a source relative path, applies $(1) to the |
|
17006 | 183 |
# absolute path, and then replaces $(GAMMADIR) in the result with a |
184 |
# literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. |
|
10565 | 185 |
gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) |
186 |
||
16630
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
187 |
# This bit is needed to enable local rebuilds. |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
188 |
# Unless the makefile itself sets LP64, any environmental |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
189 |
# setting of LP64 will interfere with the build. |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
190 |
LP64_SETTING/32 = LP64 = \#empty |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
191 |
LP64_SETTING/64 = LP64 = 1 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
192 |
|
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
193 |
DATA_MODE/i486 = 32 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
194 |
DATA_MODE/amd64 = 64 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
195 |
|
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
196 |
DATA_MODE = $(DATA_MODE/$(BUILDARCH)) |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
197 |
|
10565 | 198 |
flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
199 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 200 |
$(QUIETLY) ( \ |
201 |
$(BUILDTREE_COMMENT); \ |
|
202 |
echo; \ |
|
203 |
echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ |
|
204 |
sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ |
|
205 |
echo; \ |
|
206 |
echo "GAMMADIR = $(GAMMADIR)"; \ |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12156
diff
changeset
|
207 |
echo "HS_ALT_MAKE = $(HS_ALT_MAKE)"; \ |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12156
diff
changeset
|
208 |
echo "OSNAME = $(OSNAME)"; \ |
10565 | 209 |
echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
210 |
echo "SRCARCH = $(SRCARCH)"; \ |
|
211 |
echo "BUILDARCH = $(BUILDARCH)"; \ |
|
212 |
echo "LIBARCH = $(LIBARCH)"; \ |
|
213 |
echo "TARGET = $(TARGET)"; \ |
|
33957
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
214 |
echo "HOTSPOT_VERSION_STRING = $(HOTSPOT_VERSION_STRING)"; \ |
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
215 |
echo "VERSION_STRING = $(VERSION_STRING)"; \ |
39113ae98993
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
26691
diff
changeset
|
216 |
echo "SA_BUILD_VERSION = $(HOTSPOT_VERSION_STRING)"; \ |
10565 | 217 |
echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ |
218 |
echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ |
|
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12156
diff
changeset
|
219 |
echo "OPENJDK = $(OPENJDK)"; \ |
16630
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
220 |
echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
10565 | 221 |
echo; \ |
33583
af842015bfaa
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
26691
diff
changeset
|
222 |
echo "STATIC_BUILD = $(STATIC_BUILD)"; \ |
af842015bfaa
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
26691
diff
changeset
|
223 |
echo "COMPILER_WARNINGS_FATAL = $(COMPILER_WARNINGS_FATAL)"; \ |
af842015bfaa
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
26691
diff
changeset
|
224 |
echo "EXTRA_LDFLAGS = $(EXTRA_LDFLAGS)"; \ |
af842015bfaa
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
26691
diff
changeset
|
225 |
echo "LIBRARY_SUFFIX = $(LIBRARY_SUFFIX)"; \ |
af842015bfaa
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
26691
diff
changeset
|
226 |
echo; \ |
10565 | 227 |
echo "# Used for platform dispatching"; \ |
228 |
echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \ |
|
229 |
echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \ |
|
230 |
echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \ |
|
231 |
echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \ |
|
232 |
echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \ |
|
233 |
echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \ |
|
234 |
echo "CFLAGS += \$$(TARGET_DEFINES)"; \ |
|
235 |
echo; \ |
|
236 |
echo "Src_Dirs_V = \\"; \ |
|
237 |
sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
|
238 |
echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
|
239 |
echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
|
240 |
echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
|
241 |
echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
|
242 |
echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
|
243 |
echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
|
244 |
echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
|
245 |
echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
|
246 |
echo; \ |
|
247 |
echo "Src_Dirs_I = \\"; \ |
|
248 |
echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ |
|
249 |
echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ |
|
250 |
echo "$(call gamma-path,altsrc,share/vm) \\"; \ |
|
251 |
echo "$(call gamma-path,commonsrc,share/vm) \\"; \ |
|
10830
f3fedfa29811
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
10739
diff
changeset
|
252 |
echo "$(call gamma-path,altsrc,share/vm/precompiled) \\"; \ |
f3fedfa29811
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
10739
diff
changeset
|
253 |
echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \ |
10565 | 254 |
echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
255 |
echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
|
256 |
echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
|
257 |
echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
|
258 |
echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
|
259 |
echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
|
260 |
echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
|
261 |
echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
|
262 |
[ -n "$(CFLAGS_BROWSE)" ] && \ |
|
263 |
echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ |
|
20686
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
264 |
[ -n "$(ENABLE_FULL_DEBUG_SYMBOLS)" ] && \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
265 |
echo && echo "ENABLE_FULL_DEBUG_SYMBOLS = $(ENABLE_FULL_DEBUG_SYMBOLS)"; \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
266 |
[ -n "$(OBJCOPY)" ] && \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
267 |
echo && echo "OBJCOPY = $(OBJCOPY)"; \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
268 |
[ -n "$(STRIP_POLICY)" ] && \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
269 |
echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
270 |
[ -n "$(ZIP_DEBUGINFO_FILES)" ] && \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
271 |
echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
272 |
[ -n "$(ZIPEXE)" ] && \ |
1fa9a75192c3
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
18025
diff
changeset
|
273 |
echo && echo "ZIPEXE = $(ZIPEXE)"; \ |
10565 | 274 |
[ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ |
275 |
echo && \ |
|
276 |
echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ |
|
277 |
echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ |
|
278 |
echo; \ |
|
11955
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
279 |
[ -n "$(SPEC)" ] && \ |
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
280 |
echo "include $(SPEC)"; \ |
25639
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
24238
diff
changeset
|
281 |
echo "CP ?= cp"; \ |
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
24238
diff
changeset
|
282 |
echo "MV ?= mv"; \ |
10565 | 283 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12156
diff
changeset
|
284 |
echo "include \$$(GAMMADIR)/make/excludeSrc.make"; \ |
10565 | 285 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
286 |
) > $@ |
|
287 |
||
288 |
flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
289 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 290 |
$(QUIETLY) ( \ |
291 |
$(BUILDTREE_COMMENT); \ |
|
292 |
echo; \ |
|
293 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
|
294 |
) > $@ |
|
295 |
||
296 |
../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
297 |
@echo $(LOG_INFO) Creating directory list $@ |
10565 | 298 |
$(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ |
299 |
find $(HS_ALT_SRC)/share/vm/* -prune \ |
|
300 |
-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
|
301 |
\( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ |
|
302 |
fi; |
|
303 |
$(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ |
|
304 |
-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
|
305 |
\( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ |
|
306 |
||
307 |
Makefile: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
308 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 309 |
$(QUIETLY) ( \ |
310 |
$(BUILDTREE_COMMENT); \ |
|
311 |
echo; \ |
|
312 |
echo include flags.make; \ |
|
313 |
echo; \ |
|
314 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
|
315 |
) > $@ |
|
316 |
||
317 |
vm.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
318 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 319 |
$(QUIETLY) ( \ |
320 |
$(BUILDTREE_COMMENT); \ |
|
321 |
echo; \ |
|
322 |
echo include flags.make; \ |
|
323 |
echo include flags_vm.make; \ |
|
324 |
echo; \ |
|
325 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
326 |
) > $@ |
|
327 |
||
328 |
adlc.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
329 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 330 |
$(QUIETLY) ( \ |
331 |
$(BUILDTREE_COMMENT); \ |
|
332 |
echo; \ |
|
333 |
echo include flags.make; \ |
|
334 |
echo; \ |
|
335 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
336 |
) > $@ |
|
337 |
||
338 |
jvmti.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
339 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 340 |
$(QUIETLY) ( \ |
341 |
$(BUILDTREE_COMMENT); \ |
|
342 |
echo; \ |
|
343 |
echo include flags.make; \ |
|
344 |
echo; \ |
|
345 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
346 |
) > $@ |
|
347 |
||
18025 | 348 |
trace.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
349 |
@echo $(LOG_INFO) Creating $@ ... |
18025 | 350 |
$(QUIETLY) ( \ |
351 |
$(BUILDTREE_COMMENT); \ |
|
352 |
echo; \ |
|
353 |
echo include flags.make; \ |
|
354 |
echo; \ |
|
355 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
356 |
) > $@ |
|
357 |
||
10565 | 358 |
sa.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
359 |
@echo $(LOG_INFO) Creating $@ ... |
10565 | 360 |
$(QUIETLY) ( \ |
361 |
$(BUILDTREE_COMMENT); \ |
|
362 |
echo; \ |
|
363 |
echo include flags.make; \ |
|
364 |
echo; \ |
|
365 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
366 |
) > $@ |
|
367 |
||
10739 | 368 |
dtrace.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
369 |
@echo $(LOG_INFO) Creating $@ ... |
10739 | 370 |
$(QUIETLY) ( \ |
371 |
$(BUILDTREE_COMMENT); \ |
|
372 |
echo; \ |
|
373 |
echo include flags.make; \ |
|
374 |
echo; \ |
|
375 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
376 |
) > $@ |
|
377 |
||
10565 | 378 |
FORCE: |
379 |
||
380 |
.PHONY: all FORCE |
|
26565
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
381 |
|
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
382 |
.NOTPARALLEL: |