annotate make/solaris/makefiles/buildtree.make @ 10277:aabf54ccedb1

8008772: remove gamma launcher Reviewed-by: kvn, neliasso, ctornqvi
author twisti
date Mon, 06 May 2013 19:49:23 -0700
parents f36e073d56a4
children f2110083203d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
8879
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
2 # Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 235
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 235
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: 235
diff changeset
21 # questions.
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
22 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 # Usage:
a61af66fc99e Initial load
duke
parents:
diff changeset
26 #
a61af66fc99e Initial load
duke
parents:
diff changeset
27 # $(MAKE) -f buildtree.make ARCH=arch BUILDARCH=buildarch LIBARCH=libarch
a61af66fc99e Initial load
duke
parents:
diff changeset
28 # GAMMADIR=dir OS_FAMILY=os VARIANT=variant
a61af66fc99e Initial load
duke
parents:
diff changeset
29 #
a61af66fc99e Initial load
duke
parents:
diff changeset
30 # The macros ARCH, GAMMADIR, OS_FAMILY and VARIANT must be defined in the
a61af66fc99e Initial load
duke
parents:
diff changeset
31 # environment or on the command-line:
a61af66fc99e Initial load
duke
parents:
diff changeset
32 #
a61af66fc99e Initial load
duke
parents:
diff changeset
33 # ARCH - sparc, i486, ... HotSpot cpu and os_cpu source directory
a61af66fc99e Initial load
duke
parents:
diff changeset
34 # BUILDARCH - build directory
a61af66fc99e Initial load
duke
parents:
diff changeset
35 # LIBARCH - the corresponding directory in JDK/JRE
a61af66fc99e Initial load
duke
parents:
diff changeset
36 # GAMMADIR - top of workspace
a61af66fc99e Initial load
duke
parents:
diff changeset
37 # OS_FAMILY - operating system
a61af66fc99e Initial load
duke
parents:
diff changeset
38 # VARIANT - core, compiler1, compiler2, or tiered
a61af66fc99e Initial load
duke
parents:
diff changeset
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: 1552
diff changeset
40 # HOTSPOT_BUILD_VERSION - internal, internal-$(USER_RELEASE_SUFFIX) or empty
0
a61af66fc99e Initial load
duke
parents:
diff changeset
41 # JRE_RELEASE_VERSION - <major>.<minor>.<micro> (1.7.0)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 #
a61af66fc99e Initial load
duke
parents:
diff changeset
43 # Builds the directory trees with makefiles plus some convenience files in
a61af66fc99e Initial load
duke
parents:
diff changeset
44 # each directory:
a61af66fc99e Initial load
duke
parents:
diff changeset
45 #
a61af66fc99e Initial load
duke
parents:
diff changeset
46 # Makefile - for "make foo"
a61af66fc99e Initial load
duke
parents:
diff changeset
47 # flags.make - with macro settings
a61af66fc99e Initial load
duke
parents:
diff changeset
48 # vm.make - to support making "$(MAKE) -v vm.make" in makefiles
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
49 # adlc.make -
0
a61af66fc99e Initial load
duke
parents:
diff changeset
50 # jvmti.make - generate JVMTI bindings from the spec (JSR-163)
a61af66fc99e Initial load
duke
parents:
diff changeset
51 # sa.make - generate SA jar file and natives
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
52 #
0
a61af66fc99e Initial load
duke
parents:
diff changeset
53 # The makefiles are split this way so that "make foo" will run faster by not
a61af66fc99e Initial load
duke
parents:
diff changeset
54 # having to read the dependency files for the vm.
a61af66fc99e Initial load
duke
parents:
diff changeset
55
5897
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 4846
diff changeset
56 -include $(SPEC)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
57 include $(GAMMADIR)/make/scm.make
8780
98f3af397705 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 7408
diff changeset
58 include $(GAMMADIR)/make/defs.make
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
59 include $(GAMMADIR)/make/altsrc.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
60
8780
98f3af397705 8006965: remove test_gamma and add dedicated test_* targets instead
twisti
parents: 7408
diff changeset
61
0
a61af66fc99e Initial load
duke
parents:
diff changeset
62 # 'gmake MAKE_VERBOSE=y' or 'gmake QUIETLY=' gives all the gory details.
a61af66fc99e Initial load
duke
parents:
diff changeset
63 QUIETLY$(MAKE_VERBOSE) = @
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 ### maye ARCH_XXX instead?
a61af66fc99e Initial load
duke
parents:
diff changeset
66 ifdef USE_GCC
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
67 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH).gcc
0
a61af66fc99e Initial load
duke
parents:
diff changeset
68 GCC_LIB = /usr/local/lib
a61af66fc99e Initial load
duke
parents:
diff changeset
69 else
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
70 PLATFORM_FILE = $(GAMMADIR)/make/$(OS_FAMILY)/platform_$(BUILDARCH)
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
71 GCC_LIB =
0
a61af66fc99e Initial load
duke
parents:
diff changeset
72 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
73
a61af66fc99e Initial load
duke
parents:
diff changeset
74 ifdef FORCE_TIERED
a61af66fc99e Initial load
duke
parents:
diff changeset
75 ifeq ($(VARIANT),tiered)
a61af66fc99e Initial load
duke
parents:
diff changeset
76 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_compiler2
a61af66fc99e Initial load
duke
parents:
diff changeset
77 else
a61af66fc99e Initial load
duke
parents:
diff changeset
78 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT)
a61af66fc99e Initial load
duke
parents:
diff changeset
79 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
80 else
a61af66fc99e Initial load
duke
parents:
diff changeset
81 PLATFORM_DIR = $(OS_FAMILY)_$(BUILDARCH)_$(VARIANT)
a61af66fc99e Initial load
duke
parents:
diff changeset
82 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
83
a61af66fc99e Initial load
duke
parents:
diff changeset
84 #
a61af66fc99e Initial load
duke
parents:
diff changeset
85 # We do two levels of exclusion in the shared directory.
a61af66fc99e Initial load
duke
parents:
diff changeset
86 # TOPLEVEL excludes are pruned, they are not recursively searched,
a61af66fc99e Initial load
duke
parents:
diff changeset
87 # but lower level directories can be named without fear of collision.
a61af66fc99e Initial load
duke
parents:
diff changeset
88 # ALWAYS excludes are excluded at any level in the directory tree.
a61af66fc99e Initial load
duke
parents:
diff changeset
89 #
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 ALWAYS_EXCLUDE_DIRS = $(SCM_DIRS)
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 ifeq ($(VARIANT),tiered)
a61af66fc99e Initial load
duke
parents:
diff changeset
94 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name agent
a61af66fc99e Initial load
duke
parents:
diff changeset
95 else
a61af66fc99e Initial load
duke
parents:
diff changeset
96 ifeq ($(VARIANT),compiler2)
a61af66fc99e Initial load
duke
parents:
diff changeset
97 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name c1 -o -name agent
a61af66fc99e Initial load
duke
parents:
diff changeset
98 else
a61af66fc99e Initial load
duke
parents:
diff changeset
99 # compiler1 and core use the same exclude list
a61af66fc99e Initial load
duke
parents:
diff changeset
100 TOPLEVEL_EXCLUDE_DIRS = $(ALWAYS_EXCLUDE_DIRS) -o -name adlc -o -name opto -o -name libadt -o -name agent
a61af66fc99e Initial load
duke
parents:
diff changeset
101 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
102 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 # Get things from the platform file.
a61af66fc99e Initial load
duke
parents:
diff changeset
105 COMPILER = $(shell sed -n 's/^compiler[ ]*=[ ]*//p' $(PLATFORM_FILE))
a61af66fc99e Initial load
duke
parents:
diff changeset
106
a61af66fc99e Initial load
duke
parents:
diff changeset
107 SIMPLE_DIRS = \
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
108 $(PLATFORM_DIR)/generated/dependencies \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
109 $(PLATFORM_DIR)/generated/adfiles \
a61af66fc99e Initial load
duke
parents:
diff changeset
110 $(PLATFORM_DIR)/generated/jvmtifiles
a61af66fc99e Initial load
duke
parents:
diff changeset
111
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
112 TARGETS = debug fastdebug optimized product
0
a61af66fc99e Initial load
duke
parents:
diff changeset
113 SUBMAKE_DIRS = $(addprefix $(PLATFORM_DIR)/,$(TARGETS))
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 # For dependencies and recursive makes.
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
116 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OS_FAMILY)/makefiles/buildtree.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
117
10277
aabf54ccedb1 8008772: remove gamma launcher
twisti
parents: 9152
diff changeset
118 BUILDTREE_TARGETS = Makefile flags.make flags_vm.make vm.make adlc.make jvmti.make sa.make
0
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OS_FAMILY) \
a61af66fc99e Initial load
duke
parents:
diff changeset
121 ARCH=$(ARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) VARIANT=$(VARIANT)
a61af66fc99e Initial load
duke
parents:
diff changeset
122
a61af66fc99e Initial load
duke
parents:
diff changeset
123 # Define variables to be set in flags.make.
a61af66fc99e Initial load
duke
parents:
diff changeset
124 # Default values are set in make/defs.make.
a61af66fc99e Initial load
duke
parents:
diff changeset
125 ifeq ($(HOTSPOT_BUILD_VERSION),)
a61af66fc99e Initial load
duke
parents:
diff changeset
126 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
127 else
a61af66fc99e Initial load
duke
parents:
diff changeset
128 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
a61af66fc99e Initial load
duke
parents:
diff changeset
129 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
130 # Set BUILD_USER from system-dependent hints: $LOGNAME, $(whoami)
a61af66fc99e Initial load
duke
parents:
diff changeset
131 ifndef HOTSPOT_BUILD_USER
a61af66fc99e Initial load
duke
parents:
diff changeset
132 HOTSPOT_BUILD_USER := $(shell echo $$LOGNAME)
a61af66fc99e Initial load
duke
parents:
diff changeset
133 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
134 ifndef HOTSPOT_BUILD_USER
a61af66fc99e Initial load
duke
parents:
diff changeset
135 HOTSPOT_BUILD_USER := $(shell whoami)
a61af66fc99e Initial load
duke
parents:
diff changeset
136 endif
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
137 # 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: 0
diff changeset
138 # or make/hotspot_distro.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
139 ifndef HOTSPOT_VM_DISTRO
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
140 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: 0
diff changeset
141 include $(GAMMADIR)/make/hotspot_distro
0
a61af66fc99e Initial load
duke
parents:
diff changeset
142 else
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
143 include $(GAMMADIR)/make/openjdk_distro
0
a61af66fc99e Initial load
duke
parents:
diff changeset
144 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
145 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
146
6837
75982791ddb6 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 6022
diff changeset
147 # 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
148 ifndef OPENJDK
75982791ddb6 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 6022
diff changeset
149 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
150 OPENJDK=true
75982791ddb6 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 6022
diff changeset
151 endif
75982791ddb6 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 6022
diff changeset
152 endif
75982791ddb6 7170638: Use DTRACE_PROBE[N] in JNI Set and SetStatic Field.
coleenp
parents: 6022
diff changeset
153
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
154 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HS_BUILD_VER) HOTSPOT_BUILD_VERSION= JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
155
a61af66fc99e Initial load
duke
parents:
diff changeset
156 BUILDTREE = \
a61af66fc99e Initial load
duke
parents:
diff changeset
157 $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_TARGETS) $(BUILDTREE_VARS)
a61af66fc99e Initial load
duke
parents:
diff changeset
158
a61af66fc99e Initial load
duke
parents:
diff changeset
159 BUILDTREE_COMMENT = echo "\# Generated by $(BUILDTREE_MAKE)"
a61af66fc99e Initial load
duke
parents:
diff changeset
160
a61af66fc99e Initial load
duke
parents:
diff changeset
161 all: $(SUBMAKE_DIRS)
a61af66fc99e Initial load
duke
parents:
diff changeset
162
a61af66fc99e Initial load
duke
parents:
diff changeset
163 # Run make in each subdirectory recursively.
a61af66fc99e Initial load
duke
parents:
diff changeset
164 $(SUBMAKE_DIRS): $(SIMPLE_DIRS) FORCE
a61af66fc99e Initial load
duke
parents:
diff changeset
165 $(QUIETLY) [ -d $@ ] || { mkdir -p $@; }
a61af66fc99e Initial load
duke
parents:
diff changeset
166 $(QUIETLY) cd $@ && $(BUILDTREE) TARGET=$(@F)
a61af66fc99e Initial load
duke
parents:
diff changeset
167 $(QUIETLY) touch $@
a61af66fc99e Initial load
duke
parents:
diff changeset
168
a61af66fc99e Initial load
duke
parents:
diff changeset
169 $(SIMPLE_DIRS):
a61af66fc99e Initial load
duke
parents:
diff changeset
170 $(QUIETLY) mkdir -p $@
a61af66fc99e Initial load
duke
parents:
diff changeset
171
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
172 # Convenience macro which takes a source relative path, applies $(1) to the
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
173 # absolute path, and then replaces $(GAMMADIR) in the result with a
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8879
diff changeset
174 # literal "$(GAMMADIR)/" suitable for inclusion in a Makefile.
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
175 gamma-path=$(subst $(GAMMADIR),\$$(GAMMADIR),$(call $(1),$(HS_COMMON_SRC)/$(2)))
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
176
8879
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
177 # This bit is needed to enable local rebuilds.
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
178 # Unless the makefile itself sets LP64, any environmental
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
179 # setting of LP64 will interfere with the build.
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
180 LP64_SETTING/32 = LP64 = \#empty
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
181 LP64_SETTING/64 = LP64 = 1
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
182
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
183 DATA_MODE/i486 = 32
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
184 DATA_MODE/sparc = 32
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
185 DATA_MODE/sparcv9 = 64
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
186 DATA_MODE/amd64 = 64
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
187
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
188 DATA_MODE = $(DATA_MODE/$(BUILDARCH))
bab5cbf74b5f 8011198: LP64 setting is not preserved on Solaris after 8006965
kvn
parents: 8780
diff changeset
189
0
a61af66fc99e Initial load
duke
parents:
diff changeset
190 flags.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
a61af66fc99e Initial load
duke
parents:
diff changeset
191 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
192 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
193 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
194 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
195 echo "Platform_file = $(PLATFORM_FILE)" | sed 's|$(GAMMADIR)|$$(GAMMADIR)|'; \
a61af66fc99e Initial load
duke
parents:
diff changeset
196 sed -n '/=/s/^ */Platform_/p' < $(PLATFORM_FILE); \
a61af66fc99e Initial load
duke
parents:
diff changeset
197 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
198 echo "GAMMADIR = $(GAMMADIR)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
199 echo "SYSDEFS = \$$(Platform_sysdefs)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
200 echo "SRCARCH = $(ARCH)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
201 echo "BUILDARCH = $(BUILDARCH)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
202 echo "LIBARCH = $(LIBARCH)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
203 echo "TARGET = $(TARGET)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
204 echo "HS_BUILD_VER = $(HS_BUILD_VER)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
205 echo "JRE_RELEASE_VER = $(JRE_RELEASE_VERSION)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
206 echo "SA_BUILD_VERSION = $(HS_BUILD_VER)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
207 echo "HOTSPOT_BUILD_USER = $(HOTSPOT_BUILD_USER)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
208 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
209 echo "OPENJDK = $(OPENJDK)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
210 echo "$(LP64_SETTING/$(DATA_MODE))"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
211 echo; \
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
212 echo "# Used for platform dispatching"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
213 echo "TARGET_DEFINES = -DTARGET_OS_FAMILY_\$$(Platform_os_family)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
214 echo "TARGET_DEFINES += -DTARGET_ARCH_\$$(Platform_arch)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
215 echo "TARGET_DEFINES += -DTARGET_ARCH_MODEL_\$$(Platform_arch_model)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
216 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_\$$(Platform_os_arch)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
217 echo "TARGET_DEFINES += -DTARGET_OS_ARCH_MODEL_\$$(Platform_os_arch_model)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
218 echo "TARGET_DEFINES += -DTARGET_COMPILER_\$$(Platform_compiler)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
219 echo "CFLAGS += \$$(TARGET_DEFINES)"; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
220 echo; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
221 echo "Src_Dirs_V = \\"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
222 sed 's/$$/ \\/;s|$(GAMMADIR)|$$(GAMMADIR)|' ../shared_dirs.lst; \
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
223 echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
224 echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
225 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
226 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
227 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
228 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
229 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
230 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
231 echo; \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
232 echo "Src_Dirs_I = \\"; \
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
233 echo "$(call gamma-path,altsrc,share/vm/prims) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
234 echo "$(call gamma-path,commonsrc,share/vm/prims) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
235 echo "$(call gamma-path,altsrc,share/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
236 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
237 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
238 echo "$(call gamma-path,commonsrc,share/vm/precompiled) \\"; \
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
239 echo "$(call gamma-path,altsrc,cpu/$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
240 echo "$(call gamma-path,commonsrc,cpu/$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
241 echo "$(call gamma-path,altsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
242 echo "$(call gamma-path,commonsrc,os_cpu/$(OS_FAMILY)_$(ARCH)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
243 echo "$(call gamma-path,altsrc,os/$(OS_FAMILY)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
244 echo "$(call gamma-path,commonsrc,os/$(OS_FAMILY)/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
245 echo "$(call gamma-path,altsrc,os/posix/vm) \\"; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
246 echo "$(call gamma-path,commonsrc,os/posix/vm)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
247 [ -n "$(CFLAGS_BROWSE)" ] && \
a61af66fc99e Initial load
duke
parents:
diff changeset
248 echo && echo "CFLAGS_BROWSE = $(CFLAGS_BROWSE)"; \
6020
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
249 [ -n "$(ENABLE_FULL_DEBUG_SYMBOLS)" ] && \
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
250 echo && echo "ENABLE_FULL_DEBUG_SYMBOLS = $(ENABLE_FULL_DEBUG_SYMBOLS)"; \
3954
da0999c4b733 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 2426
diff changeset
251 [ -n "$(OBJCOPY)" ] && \
da0999c4b733 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 2426
diff changeset
252 echo && echo "OBJCOPY = $(OBJCOPY)"; \
da0999c4b733 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 2426
diff changeset
253 [ -n "$(STRIP_POLICY)" ] && \
da0999c4b733 7071904: 4/4 HotSpot: Full Debug Symbols
dcubed
parents: 2426
diff changeset
254 echo && echo "STRIP_POLICY = $(STRIP_POLICY)"; \
6020
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
255 [ -n "$(ZIP_DEBUGINFO_FILES)" ] && \
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
256 echo && echo "ZIP_DEBUGINFO_FILES = $(ZIP_DEBUGINFO_FILES)"; \
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
257 [ -n "$(ZIPEXE)" ] && \
d652a62d6e03 7102323: RFE: enable Full Debug Symbols Phase 1 on Solaris
dcubed
parents: 4846
diff changeset
258 echo && echo "ZIPEXE = $(ZIPEXE)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
259 [ -n "$(HOTSPOT_EXTRA_SYSDEFS)" ] && \
a61af66fc99e Initial load
duke
parents:
diff changeset
260 echo && \
a61af66fc99e Initial load
duke
parents:
diff changeset
261 echo "HOTSPOT_EXTRA_SYSDEFS\$$(HOTSPOT_EXTRA_SYSDEFS) = $(HOTSPOT_EXTRA_SYSDEFS)" && \
a61af66fc99e Initial load
duke
parents:
diff changeset
262 echo "SYSDEFS += \$$(HOTSPOT_EXTRA_SYSDEFS)"; \
a61af66fc99e Initial load
duke
parents:
diff changeset
263 echo; \
5897
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 4846
diff changeset
264 [ -n "$(SPEC)" ] && \
7292cff45988 7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
erikj
parents: 4846
diff changeset
265 echo "include $(SPEC)"; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
266 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(VARIANT).make"; \
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
267 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(COMPILER).make"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
268 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
269
a61af66fc99e Initial load
duke
parents:
diff changeset
270 flags_vm.make: $(BUILDTREE_MAKE) ../shared_dirs.lst
a61af66fc99e Initial load
duke
parents:
diff changeset
271 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
272 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
273 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
274 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
275 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(TARGET).make"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
276 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
277
a61af66fc99e Initial load
duke
parents:
diff changeset
278 ../shared_dirs.lst: $(BUILDTREE_MAKE) $(GAMMADIR)/src/share/vm
a61af66fc99e Initial load
duke
parents:
diff changeset
279 @echo Creating directory list $@
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
280 $(QUIETLY) if [ -d $(HS_ALT_SRC)/share/vm ]; then \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
281 find $(HS_ALT_SRC)/share/vm/* -prune \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
282 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
283 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; > $@; \
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
284 fi;
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
285 $(QUIETLY) find $(HS_COMMON_SRC)/share/vm/* -prune \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
286 -type d \! \( $(TOPLEVEL_EXCLUDE_DIRS) \) -exec find {} \
2199
d8a72fbc4be7 7003401: Implement VM error-reporting functionality on erroneous termination
kamg
parents: 2094
diff changeset
287 \( $(ALWAYS_EXCLUDE_DIRS) \) -prune -o -type d -print \; >> $@
0
a61af66fc99e Initial load
duke
parents:
diff changeset
288
a61af66fc99e Initial load
duke
parents:
diff changeset
289 Makefile: $(BUILDTREE_MAKE)
a61af66fc99e Initial load
duke
parents:
diff changeset
290 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
291 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
292 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
293 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
294 echo include flags.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
295 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
296 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/top.make"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
297 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
298
a61af66fc99e Initial load
duke
parents:
diff changeset
299 vm.make: $(BUILDTREE_MAKE)
a61af66fc99e Initial load
duke
parents:
diff changeset
300 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
301 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
302 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
303 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
304 echo include flags.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
305 echo include flags_vm.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
306 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
307 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
308 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
309
a61af66fc99e Initial load
duke
parents:
diff changeset
310 adlc.make: $(BUILDTREE_MAKE)
a61af66fc99e Initial load
duke
parents:
diff changeset
311 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
312 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
313 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
314 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
315 echo include flags.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
316 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
317 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
318 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
319
a61af66fc99e Initial load
duke
parents:
diff changeset
320 jvmti.make: $(BUILDTREE_MAKE)
a61af66fc99e Initial load
duke
parents:
diff changeset
321 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
322 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
323 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
324 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
325 echo include flags.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
326 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
327 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
328 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
329
a61af66fc99e Initial load
duke
parents:
diff changeset
330 sa.make: $(BUILDTREE_MAKE)
a61af66fc99e Initial load
duke
parents:
diff changeset
331 @echo Creating $@ ...
a61af66fc99e Initial load
duke
parents:
diff changeset
332 $(QUIETLY) ( \
a61af66fc99e Initial load
duke
parents:
diff changeset
333 $(BUILDTREE_COMMENT); \
a61af66fc99e Initial load
duke
parents:
diff changeset
334 echo; \
a61af66fc99e Initial load
duke
parents:
diff changeset
335 echo include flags.make; \
a61af66fc99e Initial load
duke
parents:
diff changeset
336 echo; \
91
a294fd0c4b38 6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents: 0
diff changeset
337 echo "include \$$(GAMMADIR)/make/$(OS_FAMILY)/makefiles/$(@F)"; \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
338 ) > $@
a61af66fc99e Initial load
duke
parents:
diff changeset
339
a61af66fc99e Initial load
duke
parents:
diff changeset
340 FORCE:
a61af66fc99e Initial load
duke
parents:
diff changeset
341
a61af66fc99e Initial load
duke
parents:
diff changeset
342 .PHONY: all FORCE