make/jdk-rules.gmk

Wed, 02 Jul 2008 12:55:04 -0700

author
xdono
date
Wed, 02 Jul 2008 12:55:04 -0700
changeset 20
2dab2f712e18
parent 10
cbc8ad9dd0e0
child 62
3398ae556a2a
permissions
-rw-r--r--

6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell

duke@2 1 #
xdono@20 2 # Copyright 2001-2008 Sun Microsystems, Inc. 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
duke@2 7 # published by the Free Software Foundation. Sun designates this
duke@2 8 # particular file as subject to the "Classpath" exception as provided
duke@2 9 # by Sun 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 #
duke@2 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@2 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@2 23 # have any 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
duke@2 33 ifdef NO_IMAGES
duke@2 34 IMAGES_TARGET =
duke@2 35 else
duke@2 36 IMAGES_TARGET = images
duke@2 37 endif
duke@2 38
duke@2 39 # No DOCS build when JDK_UPDATE_VERSION set
duke@2 40 ifdef JDK_UPDATE_VERSION
duke@2 41 DOCS_TARGET =
duke@2 42 else
duke@2 43 DOCS_TARGET = docs
duke@2 44 endif
duke@2 45
duke@2 46 # NO_DOCS may be set in conjunction with DEV_ONLY
duke@2 47 ifdef NO_DOCS
duke@2 48 DOCS_TARGET =
duke@2 49 endif
duke@2 50
duke@2 51 # If langtools not being built, full jdk javadoc is not possible
duke@2 52 ifneq ($(BUILD_LANGTOOLS), true)
duke@2 53 DOCS_TARGET =
duke@2 54 endif
duke@2 55 ifneq ($(BUILD_CORBA), true)
duke@2 56 DOCS_TARGET =
duke@2 57 endif
duke@2 58 ifneq ($(BUILD_JAXP), true)
duke@2 59 DOCS_TARGET =
duke@2 60 endif
duke@2 61 ifneq ($(BUILD_JAXWS), true)
duke@2 62 DOCS_TARGET =
duke@2 63 endif
duke@2 64
duke@2 65 ifndef DEV_ONLY
duke@2 66 JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) images
duke@2 67 else
duke@2 68 JDK_BUILD_TARGETS = sanity all $(IMAGES_TARGET)
duke@2 69 endif
duke@2 70
duke@2 71 JDK_CLOBBER_TARGETS = clobber
duke@2 72
duke@2 73 JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
duke@2 74 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
duke@2 75
duke@2 76 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 77 JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
duke@2 78 endif
duke@2 79 ifeq ($(BUILD_CORBA), true)
duke@2 80 JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
duke@2 81 endif
duke@2 82 ifeq ($(BUILD_JAXP), true)
duke@2 83 JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
duke@2 84 endif
duke@2 85 ifeq ($(BUILD_JAXWS), true)
duke@2 86 JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
duke@2 87 endif
duke@2 88
duke@2 89 ifeq ($(BUILD_HOTSPOT), true)
duke@2 90 JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
duke@2 91 endif
duke@2 92
duke@2 93 JDK_BUILD_ARGUMENTS += \
duke@2 94 BUILD_HOTSPOT=$(BUILD_HOTSPOT)
duke@2 95
duke@2 96
duke@2 97 $(JDK_JAVA_EXE):: jdk-build
duke@2 98
duke@2 99 jdk: jdk-build
duke@2 100 jdk-build:
duke@2 101 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 102 $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
duke@2 103
duke@2 104 jdk-clobber::
duke@2 105 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 106 $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
duke@2 107
duke@2 108 jdk-sanity::
duke@2 109 @( $(CD) $(JDK_TOPDIR)/make && \
duke@2 110 $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
duke@2 111
duke@2 112 compare-images: compare-image
duke@2 113 compare-image:
duke@2 114 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 115 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
duke@2 116
duke@2 117 compare-images-clobber: compare-image-clobber
duke@2 118 compare-image-clobber:
duke@2 119 ( $(CD) $(JDK_TOPDIR)/make && \
duke@2 120 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
duke@2 121
duke@2 122 .PHONY: jdk jdk-build jdk-clobber jdk-sanity
duke@2 123

mercurial