make/bsd/Makefile

Tue, 08 Aug 2017 15:57:29 +0800

author
aoqi
date
Tue, 08 Aug 2017 15:57:29 +0800
changeset 6876
710a3c8b516e
parent 5898
f509b8f4699b
parent 0
f90c822e73f8
permissions
-rw-r--r--

merge

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

mercurial