annotate make/bsd/Makefile @ 5791:12ad8db39f76

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