Tue, 29 Jul 2014 13:56:29 +0200
8049043: Load variable through a pointer of an incompatible type in hotspot/src/share/vm/runtime/sharedRuntimeMath.hpp
Summary: Fixed parfait warnings caused by __HI and __LO macros in sharedRuntimeMath.hpp by using a union.
Reviewed-by: kvn
simonis@6464 | 1 | # |
simonis@6464 | 2 | # Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
simonis@6464 | 3 | # Copyright 2012, 2013 SAP AG. All rights reserved. |
simonis@6464 | 4 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
simonis@6464 | 5 | # |
simonis@6464 | 6 | # This code is free software; you can redistribute it and/or modify it |
simonis@6464 | 7 | # under the terms of the GNU General Public License version 2 only, as |
simonis@6464 | 8 | # published by the Free Software Foundation. |
simonis@6464 | 9 | # |
simonis@6464 | 10 | # This code is distributed in the hope that it will be useful, but WITHOUT |
simonis@6464 | 11 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
simonis@6464 | 12 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
simonis@6464 | 13 | # version 2 for more details (a copy is included in the LICENSE file that |
simonis@6464 | 14 | # accompanied this code). |
simonis@6464 | 15 | # |
simonis@6464 | 16 | # You should have received a copy of the GNU General Public License version |
simonis@6464 | 17 | # 2 along with this work; if not, write to the Free Software Foundation, |
simonis@6464 | 18 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
simonis@6464 | 19 | # |
simonis@6464 | 20 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
simonis@6464 | 21 | # or visit www.oracle.com if you need additional information or have any |
simonis@6464 | 22 | # questions. |
simonis@6464 | 23 | # |
simonis@6464 | 24 | # |
simonis@6464 | 25 | |
simonis@6464 | 26 | # This makefile creates a build tree and lights off a build. |
simonis@6464 | 27 | # You can go back into the build tree and perform rebuilds or |
simonis@6464 | 28 | # incremental builds as desired. Be sure to reestablish |
simonis@6464 | 29 | # environment variable settings for LD_LIBRARY_PATH and JAVA_HOME. |
simonis@6464 | 30 | |
simonis@6464 | 31 | # The make process now relies on java and javac. These can be |
simonis@6464 | 32 | # specified either implicitly on the PATH, by setting the |
simonis@6464 | 33 | # (JDK-inherited) ALT_BOOTDIR environment variable to full path to a |
simonis@6464 | 34 | # JDK in which bin/java and bin/javac are present and working (e.g., |
simonis@6464 | 35 | # /usr/local/java/jdk1.3/solaris), or via the (JDK-inherited) |
simonis@6464 | 36 | # default BOOTDIR path value. Note that one of ALT_BOOTDIR |
simonis@6464 | 37 | # or BOOTDIR has to be set. We do *not* search javac, javah, rmic etc. |
simonis@6464 | 38 | # from the PATH. |
simonis@6464 | 39 | # |
simonis@6464 | 40 | # One can set ALT_BOOTDIR or BOOTDIR to point to a jdk that runs on |
simonis@6464 | 41 | # an architecture that differs from the target architecture, as long |
simonis@6464 | 42 | # as the bootstrap jdk runs under the same flavor of OS as the target |
simonis@6464 | 43 | # (i.e., if the target is linux, point to a jdk that runs on a linux |
simonis@6464 | 44 | # box). In order to use such a bootstrap jdk, set the make variable |
simonis@6464 | 45 | # REMOTE to the desired remote command mechanism, e.g., |
simonis@6464 | 46 | # |
simonis@6464 | 47 | # make REMOTE="rsh -l me myotherlinuxbox" |
simonis@6464 | 48 | |
simonis@6464 | 49 | # Along with VM, Serviceability Agent (SA) is built for SA/JDI binding. |
simonis@6464 | 50 | # JDI binding on SA produces two binaries: |
simonis@6464 | 51 | # 1. sa-jdi.jar - This is built before building libjvm.so |
simonis@6464 | 52 | # Please refer to ./makefiles/sa.make |
simonis@6464 | 53 | # 2. libsa.so - Native library for SA - This is built after |
simonis@6464 | 54 | # libjsig.so (signal interposition library) |
simonis@6464 | 55 | # Please refer to ./makefiles/vm.make |
simonis@6464 | 56 | # If $(GAMMADIR)/agent dir is not present, SA components are not built. |
simonis@6464 | 57 | |
simonis@6464 | 58 | # No tests on Aix. |
simonis@6464 | 59 | TEST_IN_BUILD=false |
simonis@6464 | 60 | |
simonis@6464 | 61 | ifeq ($(GAMMADIR),) |
simonis@6464 | 62 | include ../../make/defs.make |
simonis@6464 | 63 | else |
simonis@6464 | 64 | include $(GAMMADIR)/make/defs.make |
simonis@6464 | 65 | endif |
simonis@6464 | 66 | include $(GAMMADIR)/make/$(OSNAME)/makefiles/rules.make |
simonis@6464 | 67 | |
simonis@6464 | 68 | ifndef CC_INTERP |
simonis@6464 | 69 | ifndef FORCE_TIERED |
simonis@6464 | 70 | FORCE_TIERED=1 |
simonis@6464 | 71 | endif |
simonis@6464 | 72 | endif |
goetz@6512 | 73 | # C1 is not ported on ppc64(le), so we cannot build a tiered VM: |
goetz@6512 | 74 | ifneq (,$(filter $(ARCH),ppc64 pp64le)) |
goetz@6512 | 75 | FORCE_TIERED=0 |
goetz@6512 | 76 | endif |
simonis@6464 | 77 | |
simonis@6464 | 78 | ifdef LP64 |
simonis@6464 | 79 | ifeq ("$(filter $(LP64_ARCH),$(BUILDARCH))","") |
simonis@6464 | 80 | _JUNK_ := $(shell echo >&2 \ |
simonis@6464 | 81 | $(OSNAME) $(ARCH) "*** ERROR: this platform does not support 64-bit compilers!") |
simonis@6464 | 82 | @exit 1 |
simonis@6464 | 83 | endif |
simonis@6464 | 84 | endif |
simonis@6464 | 85 | |
simonis@6464 | 86 | # we need to set up LP64 correctly to satisfy sanity checks in adlc |
simonis@6464 | 87 | ifneq ("$(filter $(LP64_ARCH),$(BUILDARCH))","") |
simonis@6464 | 88 | MFLAGS += " LP64=1 " |
simonis@6464 | 89 | endif |
simonis@6464 | 90 | |
simonis@6464 | 91 | # pass USE_SUNCC further, through MFLAGS |
simonis@6464 | 92 | ifdef USE_SUNCC |
simonis@6464 | 93 | MFLAGS += " USE_SUNCC=1 " |
simonis@6464 | 94 | endif |
simonis@6464 | 95 | |
simonis@6464 | 96 | # The following renders pathnames in generated Makefiles valid on |
simonis@6464 | 97 | # machines other than the machine containing the build tree. |
simonis@6464 | 98 | # |
simonis@6464 | 99 | # For example, let's say my build tree lives on /files12 on |
simonis@6464 | 100 | # exact.east.sun.com. This logic will cause GAMMADIR to begin with |
simonis@6464 | 101 | # /net/exact/files12/... |
simonis@6464 | 102 | # |
simonis@6464 | 103 | # We only do this on SunOS variants, for a couple of reasons: |
simonis@6464 | 104 | # * It is extremely rare that source trees exist on other systems |
simonis@6464 | 105 | # * It has been claimed that the Linux automounter is flakey, so |
simonis@6464 | 106 | # changing GAMMADIR in a way that exercises the automounter could |
simonis@6464 | 107 | # prove to be a source of unreliability in the build process. |
simonis@6464 | 108 | # Obviously, this Makefile is only relevant on SunOS boxes to begin |
simonis@6464 | 109 | # with, but the SunOS conditionalization will make it easier to |
simonis@6464 | 110 | # combine Makefiles in the future (assuming we ever do that). |
simonis@6464 | 111 | |
simonis@6464 | 112 | ifeq ($(OSNAME),solaris) |
simonis@6464 | 113 | |
simonis@6464 | 114 | # prepend current directory to relative pathnames. |
simonis@6464 | 115 | NEW_GAMMADIR := \ |
simonis@6464 | 116 | $(shell echo $(GAMMADIR) | \ |
simonis@6464 | 117 | sed -e "s=^\([^/].*\)=$(shell pwd)/\1=" \ |
simonis@6464 | 118 | ) |
simonis@6464 | 119 | unexport NEW_GAMMADIR |
simonis@6464 | 120 | |
simonis@6464 | 121 | # If NEW_GAMMADIR doesn't already start with "/net/": |
simonis@6464 | 122 | ifeq ($(strip $(filter /net/%,$(NEW_GAMMADIR))),) |
simonis@6464 | 123 | # prepend /net/$(HOST) |
simonis@6464 | 124 | # remove /net/$(HOST) if name already began with /home/ |
simonis@6464 | 125 | # remove /net/$(HOST) if name already began with /java/ |
simonis@6464 | 126 | # remove /net/$(HOST) if name already began with /lab/ |
simonis@6464 | 127 | NEW_GAMMADIR := \ |
simonis@6464 | 128 | $(shell echo $(NEW_GAMMADIR) | \ |
simonis@6464 | 129 | sed -e "s=^\(.*\)=/net/$(HOST)\1=" \ |
simonis@6464 | 130 | -e "s=^/net/$(HOST)/home/=/home/=" \ |
simonis@6464 | 131 | -e "s=^/net/$(HOST)/java/=/java/=" \ |
simonis@6464 | 132 | -e "s=^/net/$(HOST)/lab/=/lab/=" \ |
simonis@6464 | 133 | ) |
simonis@6464 | 134 | # Don't use the new value for GAMMADIR unless a file with the new |
simonis@6464 | 135 | # name actually exists. |
simonis@6464 | 136 | ifneq ($(wildcard $(NEW_GAMMADIR)),) |
simonis@6464 | 137 | GAMMADIR := $(NEW_GAMMADIR) |
simonis@6464 | 138 | endif |
simonis@6464 | 139 | endif |
simonis@6464 | 140 | |
simonis@6464 | 141 | endif |
simonis@6464 | 142 | |
simonis@6464 | 143 | # BUILDARCH is set to "zero" for Zero builds. VARIANTARCH |
simonis@6464 | 144 | # is used to give the build directories meaningful names. |
simonis@6464 | 145 | VARIANTARCH = $(subst i386,i486,$(ZERO_LIBARCH)) |
simonis@6464 | 146 | |
simonis@6464 | 147 | # There is a (semi-) regular correspondence between make targets and actions: |
simonis@6464 | 148 | # |
simonis@6464 | 149 | # Target Tree Type Build Dir |
simonis@6464 | 150 | # |
simonis@6464 | 151 | # debug compiler2 <os>_<arch>_compiler2/debug |
simonis@6464 | 152 | # fastdebug compiler2 <os>_<arch>_compiler2/fastdebug |
simonis@6464 | 153 | # optimized compiler2 <os>_<arch>_compiler2/optimized |
simonis@6464 | 154 | # product compiler2 <os>_<arch>_compiler2/product |
simonis@6464 | 155 | # |
simonis@6464 | 156 | # debug1 compiler1 <os>_<arch>_compiler1/debug |
simonis@6464 | 157 | # fastdebug1 compiler1 <os>_<arch>_compiler1/fastdebug |
simonis@6464 | 158 | # optimized1 compiler1 <os>_<arch>_compiler1/optimized |
simonis@6464 | 159 | # product1 compiler1 <os>_<arch>_compiler1/product |
simonis@6464 | 160 | # |
simonis@6464 | 161 | # debugcore core <os>_<arch>_core/debug |
simonis@6464 | 162 | # fastdebugcore core <os>_<arch>_core/fastdebug |
simonis@6464 | 163 | # optimizedcore core <os>_<arch>_core/optimized |
simonis@6464 | 164 | # productcore core <os>_<arch>_core/product |
simonis@6464 | 165 | # |
simonis@6464 | 166 | # debugzero zero <os>_<arch>_zero/debug |
simonis@6464 | 167 | # fastdebugzero zero <os>_<arch>_zero/fastdebug |
simonis@6464 | 168 | # optimizedzero zero <os>_<arch>_zero/optimized |
simonis@6464 | 169 | # productzero zero <os>_<arch>_zero/product |
simonis@6464 | 170 | # |
simonis@6464 | 171 | # debugshark shark <os>_<arch>_shark/debug |
simonis@6464 | 172 | # fastdebugshark shark <os>_<arch>_shark/fastdebug |
simonis@6464 | 173 | # optimizedshark shark <os>_<arch>_shark/optimized |
simonis@6464 | 174 | # productshark shark <os>_<arch>_shark/product |
simonis@6464 | 175 | # |
simonis@6464 | 176 | # fastdebugminimal1 minimal1 <os>_<arch>_minimal1/fastdebug |
simonis@6464 | 177 | # productminimal1 minimal1 <os>_<arch>_minimal1/product |
simonis@6464 | 178 | # |
simonis@6464 | 179 | # What you get with each target: |
simonis@6464 | 180 | # |
simonis@6464 | 181 | # debug* - debug compile with asserts enabled |
simonis@6464 | 182 | # fastdebug* - optimized compile, but with asserts enabled |
simonis@6464 | 183 | # optimized* - optimized compile, no asserts |
simonis@6464 | 184 | # product* - the shippable thing: optimized compile, no asserts, -DPRODUCT |
simonis@6464 | 185 | |
simonis@6464 | 186 | # This target list needs to be coordinated with the usage message |
simonis@6464 | 187 | # in the build.sh script: |
simonis@6464 | 188 | TARGETS = debug fastdebug optimized product |
simonis@6464 | 189 | |
simonis@6464 | 190 | ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true) |
simonis@6464 | 191 | SUBDIR_DOCS = $(OSNAME)_$(VARIANTARCH)_docs |
simonis@6464 | 192 | else |
simonis@6464 | 193 | SUBDIR_DOCS = $(OSNAME)_$(BUILDARCH)_docs |
simonis@6464 | 194 | endif |
simonis@6464 | 195 | SUBDIRS_C1 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler1/,$(TARGETS)) |
simonis@6464 | 196 | SUBDIRS_C2 = $(addprefix $(OSNAME)_$(BUILDARCH)_compiler2/,$(TARGETS)) |
simonis@6464 | 197 | SUBDIRS_TIERED = $(addprefix $(OSNAME)_$(BUILDARCH)_tiered/,$(TARGETS)) |
simonis@6464 | 198 | SUBDIRS_CORE = $(addprefix $(OSNAME)_$(BUILDARCH)_core/,$(TARGETS)) |
simonis@6464 | 199 | SUBDIRS_ZERO = $(addprefix $(OSNAME)_$(VARIANTARCH)_zero/,$(TARGETS)) |
simonis@6464 | 200 | SUBDIRS_SHARK = $(addprefix $(OSNAME)_$(VARIANTARCH)_shark/,$(TARGETS)) |
simonis@6464 | 201 | SUBDIRS_MINIMAL1 = $(addprefix $(OSNAME)_$(BUILDARCH)_minimal1/,$(TARGETS)) |
simonis@6464 | 202 | |
simonis@6464 | 203 | TARGETS_C2 = $(TARGETS) |
simonis@6464 | 204 | TARGETS_C1 = $(addsuffix 1,$(TARGETS)) |
simonis@6464 | 205 | TARGETS_TIERED = $(addsuffix tiered,$(TARGETS)) |
simonis@6464 | 206 | TARGETS_CORE = $(addsuffix core,$(TARGETS)) |
simonis@6464 | 207 | TARGETS_ZERO = $(addsuffix zero,$(TARGETS)) |
simonis@6464 | 208 | TARGETS_SHARK = $(addsuffix shark,$(TARGETS)) |
simonis@6464 | 209 | TARGETS_MINIMAL1 = $(addsuffix minimal1,$(TARGETS)) |
simonis@6464 | 210 | |
simonis@6464 | 211 | BUILDTREE_MAKE = $(GAMMADIR)/make/$(OSNAME)/makefiles/buildtree.make |
simonis@6464 | 212 | BUILDTREE_VARS = GAMMADIR=$(GAMMADIR) OS_FAMILY=$(OSNAME) SRCARCH=$(SRCARCH) BUILDARCH=$(BUILDARCH) LIBARCH=$(LIBARCH) |
simonis@6464 | 213 | BUILDTREE_VARS += HOTSPOT_RELEASE_VERSION=$(HOTSPOT_RELEASE_VERSION) HOTSPOT_BUILD_VERSION=$(HOTSPOT_BUILD_VERSION) JRE_RELEASE_VERSION=$(JRE_RELEASE_VERSION) |
simonis@6464 | 214 | BUILDTREE_VARS += ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) OBJCOPY=$(OBJCOPY) STRIP_POLICY=$(STRIP_POLICY) ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) ZIPEXE=$(ZIPEXE) |
simonis@6464 | 215 | |
simonis@6464 | 216 | BUILDTREE = $(MAKE) -f $(BUILDTREE_MAKE) $(BUILDTREE_VARS) |
simonis@6464 | 217 | |
simonis@6464 | 218 | #------------------------------------------------------------------------------- |
simonis@6464 | 219 | |
simonis@6464 | 220 | # Could make everything by default, but that would take a while. |
simonis@6464 | 221 | all: |
simonis@6464 | 222 | @echo "Try '$(MAKE) <target> ...' where <target> is one or more of" |
simonis@6464 | 223 | @echo " $(TARGETS_C2)" |
simonis@6464 | 224 | @echo " $(TARGETS_C1)" |
simonis@6464 | 225 | @echo " $(TARGETS_CORE)" |
simonis@6464 | 226 | @echo " $(TARGETS_ZERO)" |
simonis@6464 | 227 | @echo " $(TARGETS_SHARK)" |
simonis@6464 | 228 | @echo " $(TARGETS_MINIMAL1)" |
simonis@6464 | 229 | |
simonis@6464 | 230 | checks: check_os_version check_j2se_version |
simonis@6464 | 231 | |
simonis@6464 | 232 | # We do not want people accidentally building on old systems (e.g. Linux 2.2.x, |
simonis@6464 | 233 | # Solaris 2.5.1, 2.6). |
simonis@6464 | 234 | # Disable this check by setting DISABLE_HOTSPOT_OS_VERSION_CHECK=ok. |
simonis@6464 | 235 | |
simonis@6464 | 236 | SUPPORTED_OS_VERSION = AIX |
simonis@6464 | 237 | OS_VERSION := $(shell uname -a) |
simonis@6464 | 238 | EMPTY_IF_NOT_SUPPORTED = $(filter $(SUPPORTED_OS_VERSION),$(OS_VERSION)) |
simonis@6464 | 239 | |
simonis@6464 | 240 | check_os_version: |
simonis@6464 | 241 | ifeq ($(DISABLE_HOTSPOT_OS_VERSION_CHECK)$(EMPTY_IF_NOT_SUPPORTED),) |
simonis@6464 | 242 | $(QUIETLY) >&2 echo "*** This OS is not supported:" `uname -a`; exit 1; |
simonis@6464 | 243 | endif |
simonis@6464 | 244 | |
simonis@6464 | 245 | # jvmti.make requires XSLT (J2SE 1.4.x or newer): |
simonis@6464 | 246 | XSLT_CHECK = $(REMOTE) $(RUN.JAVAP) javax.xml.transform.TransformerFactory |
simonis@6464 | 247 | # If not found then fail fast. |
simonis@6464 | 248 | check_j2se_version: |
simonis@6464 | 249 | $(QUIETLY) $(XSLT_CHECK) > /dev/null 2>&1; \ |
simonis@6464 | 250 | if [ $$? -ne 0 ]; then \ |
simonis@6464 | 251 | $(REMOTE) $(RUN.JAVA) -version; \ |
simonis@6464 | 252 | echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \ |
simonis@6464 | 253 | "to bootstrap this build" 1>&2; \ |
simonis@6464 | 254 | exit 1; \ |
simonis@6464 | 255 | fi |
simonis@6464 | 256 | |
simonis@6464 | 257 | $(SUBDIRS_TIERED): $(BUILDTREE_MAKE) |
simonis@6464 | 258 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 259 | $(BUILDTREE) VARIANT=tiered |
simonis@6464 | 260 | |
simonis@6464 | 261 | $(SUBDIRS_C2): $(BUILDTREE_MAKE) |
simonis@6464 | 262 | ifeq ($(FORCE_TIERED),1) |
simonis@6464 | 263 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 264 | $(BUILDTREE) VARIANT=tiered FORCE_TIERED=1 |
simonis@6464 | 265 | else |
simonis@6464 | 266 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 267 | $(BUILDTREE) VARIANT=compiler2 |
simonis@6464 | 268 | endif |
simonis@6464 | 269 | |
simonis@6464 | 270 | $(SUBDIRS_C1): $(BUILDTREE_MAKE) |
simonis@6464 | 271 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 272 | $(BUILDTREE) VARIANT=compiler1 |
simonis@6464 | 273 | |
simonis@6464 | 274 | $(SUBDIRS_CORE): $(BUILDTREE_MAKE) |
simonis@6464 | 275 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 276 | $(BUILDTREE) VARIANT=core |
simonis@6464 | 277 | |
simonis@6464 | 278 | $(SUBDIRS_ZERO): $(BUILDTREE_MAKE) platform_zero |
simonis@6464 | 279 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 280 | $(BUILDTREE) VARIANT=zero VARIANTARCH=$(VARIANTARCH) |
simonis@6464 | 281 | |
simonis@6464 | 282 | $(SUBDIRS_SHARK): $(BUILDTREE_MAKE) platform_zero |
simonis@6464 | 283 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 284 | $(BUILDTREE) VARIANT=shark VARIANTARCH=$(VARIANTARCH) |
simonis@6464 | 285 | |
simonis@6464 | 286 | $(SUBDIRS_MINIMAL1): $(BUILDTREE_MAKE) |
simonis@6464 | 287 | $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks |
simonis@6464 | 288 | $(BUILDTREE) VARIANT=minimal1 |
simonis@6464 | 289 | |
simonis@6464 | 290 | |
simonis@6464 | 291 | platform_zero: $(GAMMADIR)/make/$(OSNAME)/platform_zero.in |
simonis@6464 | 292 | $(SED) 's/@ZERO_ARCHDEF@/$(ZERO_ARCHDEF)/g;s/@ZERO_LIBARCH@/$(ZERO_LIBARCH)/g;' < $< > $@ |
simonis@6464 | 293 | |
simonis@6464 | 294 | # Define INSTALL=y at command line to automatically copy JVM into JAVA_HOME |
simonis@6464 | 295 | |
simonis@6464 | 296 | $(TARGETS_C2): $(SUBDIRS_C2) |
simonis@6464 | 297 | cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) |
simonis@6464 | 298 | ifdef INSTALL |
simonis@6464 | 299 | cd $(OSNAME)_$(BUILDARCH)_compiler2/$@ && $(MAKE) $(MFLAGS) install |
simonis@6464 | 300 | endif |
simonis@6464 | 301 | |
simonis@6464 | 302 | $(TARGETS_TIERED): $(SUBDIRS_TIERED) |
simonis@6464 | 303 | cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 304 | ifdef INSTALL |
simonis@6464 | 305 | cd $(OSNAME)_$(BUILDARCH)_tiered/$(patsubst %tiered,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 306 | endif |
simonis@6464 | 307 | |
simonis@6464 | 308 | $(TARGETS_C1): $(SUBDIRS_C1) |
simonis@6464 | 309 | cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 310 | ifdef INSTALL |
simonis@6464 | 311 | cd $(OSNAME)_$(BUILDARCH)_compiler1/$(patsubst %1,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 312 | endif |
simonis@6464 | 313 | |
simonis@6464 | 314 | $(TARGETS_CORE): $(SUBDIRS_CORE) |
simonis@6464 | 315 | cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 316 | ifdef INSTALL |
simonis@6464 | 317 | cd $(OSNAME)_$(BUILDARCH)_core/$(patsubst %core,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 318 | endif |
simonis@6464 | 319 | |
simonis@6464 | 320 | $(TARGETS_ZERO): $(SUBDIRS_ZERO) |
simonis@6464 | 321 | cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 322 | ifdef INSTALL |
simonis@6464 | 323 | cd $(OSNAME)_$(VARIANTARCH)_zero/$(patsubst %zero,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 324 | endif |
simonis@6464 | 325 | |
simonis@6464 | 326 | $(TARGETS_SHARK): $(SUBDIRS_SHARK) |
simonis@6464 | 327 | cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 328 | ifdef INSTALL |
simonis@6464 | 329 | cd $(OSNAME)_$(VARIANTARCH)_shark/$(patsubst %shark,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 330 | endif |
simonis@6464 | 331 | |
simonis@6464 | 332 | $(TARGETS_MINIMAL1): $(SUBDIRS_MINIMAL1) |
simonis@6464 | 333 | cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) |
simonis@6464 | 334 | ifdef INSTALL |
simonis@6464 | 335 | cd $(OSNAME)_$(BUILDARCH)_minimal1/$(patsubst %minimal1,%,$@) && $(MAKE) $(MFLAGS) install |
simonis@6464 | 336 | endif |
simonis@6464 | 337 | |
simonis@6464 | 338 | # Just build the tree, and nothing else: |
simonis@6464 | 339 | tree: $(SUBDIRS_C2) |
simonis@6464 | 340 | tree1: $(SUBDIRS_C1) |
simonis@6464 | 341 | treecore: $(SUBDIRS_CORE) |
simonis@6464 | 342 | treezero: $(SUBDIRS_ZERO) |
simonis@6464 | 343 | treeshark: $(SUBDIRS_SHARK) |
simonis@6464 | 344 | treeminimal1: $(SUBDIRS_MINIMAL1) |
simonis@6464 | 345 | |
simonis@6464 | 346 | # Doc target. This is the same for all build options. |
simonis@6464 | 347 | # Hence create a docs directory beside ...$(ARCH)_[...] |
simonis@6464 | 348 | # We specify 'BUILD_FLAVOR=product' so that the proper |
simonis@6464 | 349 | # ENABLE_FULL_DEBUG_SYMBOLS value is used. |
simonis@6464 | 350 | docs: checks |
simonis@6464 | 351 | $(QUIETLY) mkdir -p $(SUBDIR_DOCS) |
simonis@6464 | 352 | $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/makefiles/jvmti.make $(MFLAGS) $(BUILDTREE_VARS) JvmtiOutDir=$(SUBDIR_DOCS) BUILD_FLAVOR=product jvmtidocs |
simonis@6464 | 353 | |
simonis@6464 | 354 | # Synonyms for win32-like targets. |
simonis@6464 | 355 | compiler2: debug product |
simonis@6464 | 356 | |
simonis@6464 | 357 | compiler1: debug1 product1 |
simonis@6464 | 358 | |
simonis@6464 | 359 | core: debugcore productcore |
simonis@6464 | 360 | |
simonis@6464 | 361 | zero: debugzero productzero |
simonis@6464 | 362 | |
simonis@6464 | 363 | shark: debugshark productshark |
simonis@6464 | 364 | |
simonis@6464 | 365 | clean_docs: |
simonis@6464 | 366 | rm -rf $(SUBDIR_DOCS) |
simonis@6464 | 367 | |
simonis@6464 | 368 | clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark clean_minimal1: |
simonis@6464 | 369 | rm -rf $(OSNAME)_$(BUILDARCH)_$(subst clean_,,$@) |
simonis@6464 | 370 | |
simonis@6464 | 371 | clean: clean_compiler2 clean_compiler1 clean_core clean_zero clean_shark clean_minimal1 clean_docs |
simonis@6464 | 372 | |
simonis@6464 | 373 | include $(GAMMADIR)/make/cscope.make |
simonis@6464 | 374 | |
simonis@6464 | 375 | #------------------------------------------------------------------------------- |
simonis@6464 | 376 | |
simonis@6464 | 377 | .PHONY: $(TARGETS_C2) $(TARGETS_C1) $(TARGETS_CORE) $(TARGETS_ZERO) $(TARGETS_SHARK) $(TARGETS_MINIMAL1) |
simonis@6464 | 378 | .PHONY: tree tree1 treecore treezero treeshark |
simonis@6464 | 379 | .PHONY: all compiler1 compiler2 core zero shark |
simonis@6464 | 380 | .PHONY: clean clean_compiler1 clean_compiler2 clean_core clean_zero clean_shark docs clean_docs |
simonis@6464 | 381 | .PHONY: checks check_os_version check_j2se_version |