source: trunk/openjdk/make/jdk-rules.gmk@ 358

Last change on this file since 358 was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 3.8 KB
Line 
1#
2# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
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
7# published by the Free Software Foundation. Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
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#
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.
24#
25
26################################################################
27# JDK TARGETS
28################################################################
29
30JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX)
31
32# NO_IMAGES may be set in conjunction with DEV_ONLY
33ifdef NO_IMAGES
34 IMAGES_TARGET =
35else
36 IMAGES_TARGET = images
37endif
38
39DOCS_TARGET = docs
40
41# No DOCS build when JDK_UPDATE_VERSION set on non-OPENJDK builds
42ifndef OPENJDK
43 ifdef JDK_UPDATE_VERSION
44 DOCS_TARGET =
45 endif
46endif
47
48# NO_DOCS may be set in conjunction with DEV_ONLY
49ifdef NO_DOCS
50 DOCS_TARGET =
51endif
52
53# If langtools not being built, full jdk javadoc is not possible
54ifneq ($(BUILD_LANGTOOLS), true)
55 DOCS_TARGET =
56endif
57ifneq ($(BUILD_CORBA), true)
58 DOCS_TARGET =
59endif
60ifneq ($(BUILD_JAXP), true)
61 DOCS_TARGET =
62endif
63ifneq ($(BUILD_JAXWS), true)
64 DOCS_TARGET =
65endif
66
67ifndef DEV_ONLY
68 JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) images
69else
70 JDK_BUILD_TARGETS = sanity all $(IMAGES_TARGET)
71endif
72
73JDK_CLOBBER_TARGETS = clobber
74
75JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
76 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
77
78ifeq ($(BUILD_LANGTOOLS), true)
79 JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
80endif
81ifeq ($(BUILD_CORBA), true)
82 JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
83endif
84ifeq ($(BUILD_JAXP), true)
85 JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
86endif
87ifeq ($(BUILD_JAXWS), true)
88 JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
89endif
90
91ifeq ($(BUILD_HOTSPOT), true)
92 JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
93endif
94
95JDK_BUILD_ARGUMENTS += \
96 BUILD_HOTSPOT=$(BUILD_HOTSPOT) \
97 BUILD_MOTIF=$(BUILD_MOTIF)
98
99ifeq ($(BUILD_MOTIF), true)
100 JDK_BUILD_ARGUMENTS += ALT_MOTIF_DIR=$(ABS_MOTIF_DIR)
101endif
102
103$(JDK_JAVA_EXE):: jdk-build
104
105jdk: jdk-build
106jdk-build:
107 ( $(CD) $(JDK_TOPDIR)/make && \
108 $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
109
110jdk-clobber::
111 ( $(CD) $(JDK_TOPDIR)/make && \
112 $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
113
114jdk-sanity::
115 @( $(CD) $(JDK_TOPDIR)/make && \
116 $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
117
118compare-images: compare-image
119compare-image:
120 ( $(CD) $(JDK_TOPDIR)/make && \
121 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
122
123compare-images-clobber: compare-image-clobber
124compare-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
131j2se-build: jdk-build
132j2se-clobber:: jdk-clobber
133j2se-sanity:: jdk-sanity
134j2se: jdk
135
136.PHONY: j2se j2se-build j2se-clobber j2se-sanity
137
Note: See TracBrowser for help on using the repository browser.