make/jdk-rules.gmk

Mon, 28 Feb 2011 10:56:10 +0100

author
ohrstrom
date
Mon, 28 Feb 2011 10:56:10 +0100
changeset 313
a1c8b847b753
parent 182
412712f77af6
child 330
7e13dbf7e8af
permissions
-rw-r--r--

7021753: Add a build times report
Summary: Report the build times at end of a jdkroot build.
Reviewed-by: ohair

duke@2 1 #
ohair@182 2 # Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved.
duke@2 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@2 4 #
duke@2 5 # This code is free software; you can redistribute it and/or modify it
duke@2 6 # under the terms of the GNU General Public License version 2 only, as
ohair@182 7 # published by the Free Software Foundation. Oracle designates this
duke@2 8 # particular file as subject to the "Classpath" exception as provided
ohair@182 9 # by Oracle in the LICENSE file that accompanied this code.
duke@2 10 #
duke@2 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@2 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@2 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@2 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@2 15 # accompanied this code).
duke@2 16 #
duke@2 17 # You should have received a copy of the GNU General Public License version
duke@2 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@2 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@2 20 #
ohair@182 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@182 22 # or visit www.oracle.com if you need additional information or have any
ohair@182 23 # questions.
duke@2 24 #
duke@2 25
duke@2 26 ################################################################
duke@2 27 # JDK TARGETS
duke@2 28 ################################################################
duke@2 29
duke@2 30 JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX)
duke@2 31
duke@2 32 # NO_IMAGES may be set in conjunction with DEV_ONLY
ohair@144 33 IMAGES_TARGET = images
ohair@144 34 ifdef DEV_ONLY
ohair@144 35 ifdef NO_IMAGES
ohair@144 36 IMAGES_TARGET =
ohair@144 37 endif
duke@2 38 endif
duke@2 39
ohair@144 40 # GENERATE_DOCS determines if we ask for the docs target
ohair@144 41 DOCS_TARGET = docs
ohair@144 42 ifeq ($(GENERATE_DOCS),false)
duke@2 43 DOCS_TARGET =
duke@2 44 endif
ohair@144 45
ohair@144 46 JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET)
duke@2 47
duke@2 48 JDK_CLOBBER_TARGETS = clobber
duke@2 49
duke@2 50 JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 51 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
duke@2 52
duke@2 53 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 54 JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 55 endif
duke@2 56 ifeq ($(BUILD_CORBA), true)
duke@2 57 JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
duke@2 58 endif
duke@2 59 ifeq ($(BUILD_JAXP), true)
duke@2 60 JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
duke@2 61 endif
duke@2 62 ifeq ($(BUILD_JAXWS), true)
duke@2 63 JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
duke@2 64 endif
duke@2 65
duke@2 66 ifeq ($(BUILD_HOTSPOT), true)
duke@2 67 JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
duke@2 68 endif
duke@2 69
duke@2 70 JDK_BUILD_ARGUMENTS += \
duke@2 71 BUILD_HOTSPOT=$(BUILD_HOTSPOT)
duke@2 72
duke@2 73
duke@2 74 $(JDK_JAVA_EXE):: jdk-build
duke@2 75
duke@2 76 jdk: jdk-build
duke@2 77 jdk-build:
ohrstrom@313 78 @$(call MakeStart,jdk,$(JDK_BUILD_TARGETS))
duke@2 79 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 80 $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
ohrstrom@313 81 @$(call MakeFinish,jdk,$(JDK_BUILD_TARGETS))
duke@2 82
duke@2 83 jdk-clobber::
ohrstrom@313 84 @$(call MakeStart,jdk,$(JDK_CLOBBER_TARGETS))
duke@2 85 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 86 $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
ohrstrom@313 87 @$(call MakeFinish,jdk,$(JDK_CLOBBER_TARGETS))
duke@2 88
duke@2 89 jdk-sanity::
ohair@62 90 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 91 $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
duke@2 92
duke@2 93 compare-images: compare-image
duke@2 94 compare-image:
ohrstrom@313 95 @$(call MakeStart,jdk,compare-image)
duke@2 96 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 97 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
ohrstrom@313 98 @$(call MakeFinish,jdk,compare-image)
duke@2 99
duke@2 100 compare-images-clobber: compare-image-clobber
duke@2 101 compare-image-clobber:
ohrstrom@313 102 @$(call MakeStart,jdk,compare-image-clobber)
duke@2 103 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 104 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
ohrstrom@313 105 @$(call MakeFinish,jdk,compare-image-clobber)
duke@2 106
duke@2 107 .PHONY: jdk jdk-build jdk-clobber jdk-sanity
duke@2 108

mercurial