make/aix/Makefile

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

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

mercurial