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