1 #
2 # Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
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.
22 #
151 # This target list needs to be coordinated with the usage message
152 # in the build.sh script:
153 TARGETS = debug jvmg fastdebug optimized profiled product
154
155 SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs
156 SUBDIRS_C1 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler1/,$(TARGETS))
157 SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS))
158 SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS))
159 SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS))
160 SUBDIRS_KERNEL = $(addprefix $(OSNAME)_$(BUILDARCH)_kernel/,$(TARGETS))
161
162 TARGETS_C2 = $(TARGETS)
163 TARGETS_C1 = $(addsuffix 1,$(TARGETS))
164 TARGETS_TIERED = $(addsuffix tiered,$(TARGETS))
165 TARGETS_CORE = $(addsuffix core,$(TARGETS))
166 TARGETS_KERNEL = $(addsuffix kernel,$(TARGETS))
167
168 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make
169 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) ARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH)
170 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
171 BUILDTREE_VARS += OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY)
172
173 BUILDTREE = $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_VARS)
174
175 #-------------------------------------------------------------------------------
176
177 # Could make everything by default, but that would take a while.
178 all:
179 @echo "Try '$(MAKE) <target> ...' where <target> is one or more of"
180 @echo " $(TARGETS_C2)"
181 @echo " $(TARGETS_C1)"
182 @echo " $(TARGETS_CORE)"
183
184 checks: check_os_version check_j2se_version
185
186 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x,
187 # Solaris 2.5.1, 2.6).
188 # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok.
189
190 SUPPORTED_OS_VERSION = 5.7 5.8 5.9 5.10 5.11
191 OS_VERSION := $(shell uname -r)
|
1 #
2 # Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
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.
22 #
151 # This target list needs to be coordinated with the usage message
152 # in the build.sh script:
153 TARGETS = debug jvmg fastdebug optimized profiled product
154
155 SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs
156 SUBDIRS_C1 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler1/,$(TARGETS))
157 SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS))
158 SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS))
159 SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS))
160 SUBDIRS_KERNEL = $(addprefix $(OSNAME)_$(BUILDARCH)_kernel/,$(TARGETS))
161
162 TARGETS_C2 = $(TARGETS)
163 TARGETS_C1 = $(addsuffix 1,$(TARGETS))
164 TARGETS_TIERED = $(addsuffix tiered,$(TARGETS))
165 TARGETS_CORE = $(addsuffix core,$(TARGETS))
166 TARGETS_KERNEL = $(addsuffix kernel,$(TARGETS))
167
168 BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make
169 BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) ARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH)
170 BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION)
171 BUILDTREE_VARS += ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY) ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) ZIPEXE=$(ZIPEXE)
172
173 BUILDTREE = $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_VARS)
174
175 #-------------------------------------------------------------------------------
176
177 # Could make everything by default, but that would take a while.
178 all:
179 @echo "Try '$(MAKE) <target> ...' where <target> is one or more of"
180 @echo " $(TARGETS_C2)"
181 @echo " $(TARGETS_C1)"
182 @echo " $(TARGETS_CORE)"
183
184 checks: check_os_version check_j2se_version
185
186 # We do not want people accidentally building on old systems (e.g. Linux 2.2.x,
187 # Solaris 2.5.1, 2.6).
188 # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok.
189
190 SUPPORTED_OS_VERSION = 5.7 5.8 5.9 5.10 5.11
191 OS_VERSION := $(shell uname -r)
|