author | dlong |
Tue, 24 Feb 2015 17:23:53 -0500 | |
changeset 29474 | 81a5c5330d08 |
parent 29180 | 50369728b00e |
child 31620 | 53be635ad49c |
child 33957 | 39113ae98993 |
permissions | -rw-r--r-- |
1 | 1 |
# |
29474
81a5c5330d08
8072383: resolve conflicts between open and closed ports
dlong
parents:
29180
diff
changeset
|
2 |
# Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. |
1 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4013
diff
changeset
|
21 |
# questions. |
17006 | 22 |
# |
1 | 23 |
# |
24 |
||
25 |
# Usage: |
|
26 |
# |
|
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7452
diff
changeset
|
27 |
# $(MAKE) -f buildtree.make SRCARCH=srcarch BUILDARCH=buildarch LIBARCH=libarch |
1 | 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 |
|
24238 | 39 |
# HOTSPOT_RELEASE_VERSION - <major_ver>.<minor_ver>.<micro_ver>[-<identifier>][-<debug_target>][-b<nn>] |
7402
554c8ae9c3e0
6987107: Add variable to add to but not modify non-fcs version string
ohair
parents:
6176
diff
changeset
|
40 |
# HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty |
1 | 41 |
# JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0) |
42 |
# |
|
43 |
# Builds the directory trees with makefiles plus some convenience files in |
|
44 |
# each directory: |
|
45 |
# |
|
46 |
# Makefile - for "make foo" |
|
47 |
# flags.make - with macro settings |
|
48 |
# vm.make - to support making "$(MAKE) -v vm.make" in makefiles |
|
17006 | 49 |
# adlc.make - |
18025 | 50 |
# trace.make - generate tracing event and type definitions |
1 | 51 |
# jvmti.make - generate JVMTI bindings from the spec (JSR-163) |
52 |
# sa.make - generate SA jar file and natives |
|
17006 | 53 |
# |
1 | 54 |
# The makefiles are split this way so that "make foo" will run faster by not |
55 |
# having to read the dependency files for the vm. |
|
56 |
||
11955
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
57 |
-include $(SPEC) |
1 | 58 |
include $(GAMMADIR)/make/scm.make |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12503
diff
changeset
|
59 |
include $(GAMMADIR)/make/defs.make |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
60 |
include $(GAMMADIR)/make/altsrc.make |
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7452
diff
changeset
|
61 |
|
1 | 62 |
|
63 |
# 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details. |
|
64 |
QUIETLY$(MAKE_VERBOSE) = @ |
|
65 |
||
12156
fb31de03f649
7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents:
11955
diff
changeset
|
66 |
ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
4013 | 67 |
PLATFORM_FILE = $(shell dirname $(shell dirname $(shell pwd)))/platform_zero |
223
5c3b023117d9
6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers
dcubed
parents:
1
diff
changeset
|
68 |
else |
4013 | 69 |
ifdef USE_SUNCC |
70 |
PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).suncc |
|
71 |
else |
|
72 |
PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH) |
|
29474
81a5c5330d08
8072383: resolve conflicts between open and closed ports
dlong
parents:
29180
diff
changeset
|
73 |
ALT_PLATFORM_FILE = $(HS_ALT_MAKE)/$(OS_FAMILY)/platform_$(BUILDARCH) |
81a5c5330d08
8072383: resolve conflicts between open and closed ports
dlong
parents:
29180
diff
changeset
|
74 |
PLATFORM_FILE := $(if $(wildcard $(ALT_PLATFORM_FILE)),$(ALT_PLATFORM_FILE),$(PLATFORM_FILE)) |
4013 | 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) |
|
223
5c3b023117d9
6452081: 3/4 Allow for Linux builds with Sun Studio Linux compilers
dcubed
parents:
1
diff
changeset
|
82 |
endif |
1 | 83 |
|
84 |
ifdef FORCE_TIERED |
|
85 |
ifeq ($(VARIANT),tiered) |
|
4013 | 86 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_compiler2 |
1 | 87 |
else |
4013 | 88 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
1 | 89 |
endif |
90 |
else |
|
4013 | 91 |
PLATFORM_DIR = $(OS_FAMILY)_$(VARIANTARCH)_$(VARIANT) |
1 | 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 = \ |
|
7397 | 118 |
$(PLATFORM_DIR)/generated/dependencies \ |
1 | 119 |
$(PLATFORM_DIR)/generated/adfiles \ |
18025 | 120 |
$(PLATFORM_DIR)/generated/jvmtifiles \ |
121 |
$(PLATFORM_DIR)/generated/tracefiles |
|
1 | 122 |
|
17006 | 123 |
TARGETS = debug fastdebug optimized product |
1 | 124 |
SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS)) |
125 |
||
126 |
# For dependencies and recursive makes. |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
127 |
BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make |
1 | 128 |
|
22736
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
129 |
BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make trace.make sa.make dtrace.make |
1 | 130 |
|
131 |
BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \ |
|
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7452
diff
changeset
|
132 |
SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT) |
1 | 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 |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
148 |
# Define HOTSPOT_VM_DISTRO based on settings in make/openjdk_distro |
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
149 |
# or make/hotspot_distro. |
1 | 150 |
ifndef HOTSPOT_VM_DISTRO |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
151 |
ifeq ($(call if-has-altsrc,$(HS_COMMON_SRC)/,true,false),true) |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
152 |
include $(GAMMADIR)/make/hotspot_distro |
1 | 153 |
else |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
154 |
include $(GAMMADIR)/make/openjdk_distro |
1 | 155 |
endif |
156 |
endif |
|
157 |
||
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
158 |
# 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:
12503
diff
changeset
|
159 |
ifndef OPENJDK |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
160 |
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:
12503
diff
changeset
|
161 |
OPENJDK=true |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
162 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
163 |
endif |
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
164 |
|
1 | 165 |
BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
166 |
||
167 |
BUILDTREE = \ |
|
168 |
$(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS) |
|
169 |
||
170 |
BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)" |
|
171 |
||
172 |
all: $(SUBMAKE_DIRS) |
|
173 |
||
174 |
# Run make in each subdirectory recursively. |
|
175 |
$(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE |
|
176 |
$(QUIETLY) [ -d $@ ] || { mkdir -p $@; } |
|
26565
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
177 |
+$(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F) |
1 | 178 |
$(QUIETLY) touch $@ |
179 |
||
180 |
$(SIMPLE_DIRS): |
|
181 |
$(QUIETLY) mkdir -p $@ |
|
182 |
||
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
183 |
# Convenience macro which takes a source relative path, applies $(1) to the |
17006 | 184 |
# absolute path, and then replaces $(GAMMADIR) in the result with a |
185 |
# literal "$(GAMMADIR)/" suitable for inclusion in a Makefile. |
|
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
186 |
gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2))) |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
187 |
|
16630
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
188 |
# This bit is needed to enable local rebuilds. |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
189 |
# Unless the makefile itself sets LP64, any environmental |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
190 |
# setting of LP64 will interfere with the build. |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
191 |
LP64_SETTING/32 = LP64 = \#empty |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
192 |
LP64_SETTING/64 = LP64 = 1 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
193 |
|
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
194 |
DATA_MODE/i486 = 32 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
195 |
DATA_MODE/sparc = 32 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
196 |
DATA_MODE/sparcv9 = 64 |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
197 |
DATA_MODE/amd64 = 64 |
22818
34cd99df9940
8019922: PPC64 (part 8): Implement Linux/PPC64 support in HotSpot makefiles
simonis
parents:
18025
diff
changeset
|
198 |
DATA_MODE/ppc64 = 64 |
29180 | 199 |
DATA_MODE/aarch64 = 64 |
16630
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
200 |
|
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
201 |
DATA_MODE = $(DATA_MODE/$(BUILDARCH)) |
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
202 |
|
1 | 203 |
flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
204 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 205 |
$(QUIETLY) ( \ |
206 |
$(BUILDTREE_COMMENT); \ |
|
207 |
echo; \ |
|
29474
81a5c5330d08
8072383: resolve conflicts between open and closed ports
dlong
parents:
29180
diff
changeset
|
208 |
echo "Platform_file = $(PLATFORM_FILE)" | sed -e 's|$(HS_ALT_MAKE)|$$(HS_ALT_MAKE)|' -e 's|$(GAMMADIR)|$$(GAMMADIR)|'; \ |
1 | 209 |
sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \ |
210 |
echo; \ |
|
211 |
echo "GAMMADIR = $(GAMMADIR)"; \ |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12503
diff
changeset
|
212 |
echo "HS_ALT_MAKE = $(HS_ALT_MAKE)"; \ |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12503
diff
changeset
|
213 |
echo "OSNAME = $(OSNAME)"; \ |
1 | 214 |
echo "SYSDEFS = \$$(Platform_sysdefs)"; \ |
8107
78e5bd944384
7016023: Enable building ARM and PPC from src/closed repository
bobv
parents:
7452
diff
changeset
|
215 |
echo "SRCARCH = $(SRCARCH)"; \ |
1 | 216 |
echo "BUILDARCH = $(BUILDARCH)"; \ |
217 |
echo "LIBARCH = $(LIBARCH)"; \ |
|
218 |
echo "TARGET = $(TARGET)"; \ |
|
219 |
echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \ |
|
220 |
echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \ |
|
221 |
echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \ |
|
222 |
echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \ |
|
223 |
echo "HOTSPOT_VM_DISTRO = $(HOTSPOT_VM_DISTRO)"; \ |
|
13958
f5598a86c223
7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents:
12503
diff
changeset
|
224 |
echo "OPENJDK = $(OPENJDK)"; \ |
16630
3dea566541da
8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents:
16381
diff
changeset
|
225 |
echo "$(LP64_SETTING/$(DATA_MODE))"; \ |
1 | 226 |
echo; \ |
7397 | 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 = \\"; \ |
|
1 | 237 |
sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \ |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
238 |
echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
239 |
echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
240 |
echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
241 |
echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
242 |
echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
243 |
echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
244 |
echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
245 |
echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
7397 | 246 |
echo; \ |
247 |
echo "Src_Dirs_I = \\"; \ |
|
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
248 |
echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
249 |
echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
250 |
echo "$(call gamma-path,altsrc,share/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
251 |
echo "$(call gamma-path,commonsrc,share/vm) \\"; \ |
10830
f3fedfa29811
7106766: Move the precompiled header from the src/share/vm directory
brutisso
parents:
10559
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:
10559
diff
changeset
|
253 |
echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \ |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
254 |
echo "$(call gamma-path,altsrc,cpu/$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
255 |
echo "$(call gamma-path,commonsrc,cpu/$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
256 |
echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
257 |
echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(SRCARCH)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
258 |
echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
259 |
echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
260 |
echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
261 |
echo "$(call gamma-path,commonsrc,os/posix/vm)"; \ |
1 | 262 |
[ -n "$(CFLAGS_BROWSE)" ] && \ |
263 |
echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \ |
|
12501
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
264 |
[ -n "$(ENABLE_FULL_DEBUG_SYMBOLS)" ] && \ |
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
265 |
echo && echo "ENABLE_FULL_DEBUG_SYMBOLS = $(ENABLE_FULL_DEBUG_SYMBOLS)"; \ |
10559 | 266 |
[ -n "$(OBJCOPY)" ] && \ |
267 |
echo && echo "OBJCOPY = $(OBJCOPY)"; \ |
|
268 |
[ -n "$(STRIP_POLICY)" ] && \ |
|
269 |
echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \ |
|
12501
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
270 |
[ -n "$(ZIP_DEBUGINFO_FILES)" ] && \ |
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
271 |
echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \ |
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
272 |
[ -n "$(ZIPEXE)" ] && \ |
ea7feae692ae
7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents:
11593
diff
changeset
|
273 |
echo && echo "ZIPEXE = $(ZIPEXE)"; \ |
1 | 274 |
[ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \ |
275 |
echo && \ |
|
276 |
echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \ |
|
277 |
echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \ |
|
18025 | 278 |
[ -n "$(INCLUDE_TRACE)" ] && \ |
279 |
echo && echo "INCLUDE_TRACE = $(INCLUDE_TRACE)"; \ |
|
1 | 280 |
echo; \ |
11955
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
281 |
[ -n "$(SPEC)" ] && \ |
aeca8151886e
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents:
11593
diff
changeset
|
282 |
echo "include $(SPEC)"; \ |
25639
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
24238
diff
changeset
|
283 |
echo "CP ?= cp"; \ |
61be16de0fd5
8046765: makefiles should use parameterized $(CP) and $(MV) rather than explicit commands
mduigou
parents:
24238
diff
changeset
|
284 |
echo "MV ?= mv"; \ |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
285 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \ |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
12503
diff
changeset
|
286 |
echo "include \$$(GAMMADIR)/make/excludeSrc.make"; \ |
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
287 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \ |
1 | 288 |
) > $@ |
289 |
||
290 |
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
|
291 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 292 |
$(QUIETLY) ( \ |
293 |
$(BUILDTREE_COMMENT); \ |
|
294 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
295 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \ |
1 | 296 |
) > $@ |
297 |
||
298 |
../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
|
299 |
@echo $(LOG_INFO) Creating directory list $@ |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
300 |
$(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
301 |
find $(HS_ALT_SRC)/share/vm/* -prune \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
302 |
-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
303 |
\( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \ |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
304 |
fi; |
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
305 |
$(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \ |
1 | 306 |
-type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \ |
8114
340b5b8b544b
7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents:
8107
diff
changeset
|
307 |
\( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@ |
1 | 308 |
|
309 |
Makefile: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
310 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 311 |
$(QUIETLY) ( \ |
312 |
$(BUILDTREE_COMMENT); \ |
|
313 |
echo; \ |
|
314 |
echo include flags.make; \ |
|
315 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
316 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \ |
1 | 317 |
) > $@ |
318 |
||
319 |
vm.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
320 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 321 |
$(QUIETLY) ( \ |
322 |
$(BUILDTREE_COMMENT); \ |
|
323 |
echo; \ |
|
324 |
echo include flags.make; \ |
|
325 |
echo include flags_vm.make; \ |
|
326 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
327 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 328 |
) > $@ |
329 |
||
330 |
adlc.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
331 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 332 |
$(QUIETLY) ( \ |
333 |
$(BUILDTREE_COMMENT); \ |
|
334 |
echo; \ |
|
335 |
echo include flags.make; \ |
|
336 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
337 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 338 |
) > $@ |
339 |
||
340 |
jvmti.make: $(BUILDTREE_MAKE) |
|
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
341 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 342 |
$(QUIETLY) ( \ |
343 |
$(BUILDTREE_COMMENT); \ |
|
344 |
echo; \ |
|
345 |
echo include flags.make; \ |
|
346 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
347 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 348 |
) > $@ |
349 |
||
18025 | 350 |
trace.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
351 |
@echo $(LOG_INFO) Creating $@ ... |
18025 | 352 |
$(QUIETLY) ( \ |
353 |
$(BUILDTREE_COMMENT); \ |
|
354 |
echo; \ |
|
355 |
echo include flags.make; \ |
|
356 |
echo; \ |
|
357 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
|
358 |
) > $@ |
|
359 |
||
1 | 360 |
sa.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
361 |
@echo $(LOG_INFO) Creating $@ ... |
1 | 362 |
$(QUIETLY) ( \ |
363 |
$(BUILDTREE_COMMENT); \ |
|
364 |
echo; \ |
|
365 |
echo include flags.make; \ |
|
366 |
echo; \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
223
diff
changeset
|
367 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
1 | 368 |
) > $@ |
369 |
||
22736
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
370 |
dtrace.make: $(BUILDTREE_MAKE) |
26691
40ea2c41f53b
8056999: Make hotspot builds less verbose on default log level
ihse
parents:
26565
diff
changeset
|
371 |
@echo $(LOG_INFO) Creating $@ ... |
22736
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
372 |
$(QUIETLY) ( \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
373 |
$(BUILDTREE_COMMENT); \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
374 |
echo; \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
375 |
echo include flags.make; \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
376 |
echo; \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
377 |
echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
378 |
) > $@ |
6c317cced072
8032462: Change the linux SDT implementation to use USDT2 instead of USDT1
sla
parents:
18025
diff
changeset
|
379 |
|
1 | 380 |
FORCE: |
381 |
||
382 |
.PHONY: all FORCE |
|
26565
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
383 |
|
32d2efad175d
8056053: Disable HOTSPOT_BUILD_JOBS when building with configure
erikj
parents:
25639
diff
changeset
|
384 |
.NOTPARALLEL: |