blob: 42ba6adf627f20e6c297c7d68f92431e78e8bc1e [file] [log] [blame]
J. Duke686d76f2007-12-01 00:00:00 +00001#
Daniel D. Daugherty62756e92012-04-03 10:17:06 -07002# Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
J. Duke686d76f2007-12-01 00:00:00 +00003# 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
Kelly O'Hair136614e2010-05-25 15:51:26 -07007# published by the Free Software Foundation. Oracle designates this
J. Duke686d76f2007-12-01 00:00:00 +00008# particular file as subject to the "Classpath" exception as provided
Kelly O'Hair136614e2010-05-25 15:51:26 -07009# by Oracle in the LICENSE file that accompanied this code.
J. Duke686d76f2007-12-01 00:00:00 +000010#
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#
Kelly O'Hair136614e2010-05-25 15:51:26 -070021# 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.
J. Duke686d76f2007-12-01 00:00:00 +000024#
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
Kelly O'Haird0c9ba32009-11-18 16:41:09 -080033IMAGES_TARGET = images
34ifdef DEV_ONLY
35 ifdef NO_IMAGES
36 IMAGES_TARGET =
37 endif
J. Duke686d76f2007-12-01 00:00:00 +000038endif
39
Kelly O'Haird0c9ba32009-11-18 16:41:09 -080040# GENERATE_DOCS determines if we ask for the docs target
41DOCS_TARGET = docs
42ifeq ($(GENERATE_DOCS),false)
J. Duke686d76f2007-12-01 00:00:00 +000043 DOCS_TARGET =
44endif
Kelly O'Haird0c9ba32009-11-18 16:41:09 -080045
46JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET)
J. Duke686d76f2007-12-01 00:00:00 +000047
48JDK_CLOBBER_TARGETS = clobber
49
50JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
51 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
52
53ifeq ($(BUILD_LANGTOOLS), true)
54 JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
55endif
56ifeq ($(BUILD_CORBA), true)
57 JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
58endif
59ifeq ($(BUILD_JAXP), true)
60 JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
61endif
62ifeq ($(BUILD_JAXWS), true)
63 JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
64endif
65
66ifeq ($(BUILD_HOTSPOT), true)
67 JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
68endif
69
70JDK_BUILD_ARGUMENTS += \
71 BUILD_HOTSPOT=$(BUILD_HOTSPOT)
72
Daniel D. Daugherty62756e92012-04-03 10:17:06 -070073# Move to COMMON_BUILD_ARGUMENTS when all repos support
74# FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES:
75ifdef FULL_DEBUG_SYMBOLS
76 JDK_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS)
77endif
78
79ifdef ZIP_DEBUGINFO_FILES
80 JDK_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)"
81endif
82
J. Duke686d76f2007-12-01 00:00:00 +000083
84$(JDK_JAVA_EXE):: jdk-build
85
86jdk: jdk-build
87jdk-build:
Fredrik Öhrström4eb68762011-02-28 10:56:10 +010088 @$(call MakeStart,jdk,$(JDK_BUILD_TARGETS))
J. Duke686d76f2007-12-01 00:00:00 +000089 ( $(CD) $(JDK_TOPDIR)/make && \
90 $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
Fredrik Öhrström4eb68762011-02-28 10:56:10 +010091 @$(call MakeFinish,jdk,$(JDK_BUILD_TARGETS))
J. Duke686d76f2007-12-01 00:00:00 +000092
93jdk-clobber::
Fredrik Öhrström4eb68762011-02-28 10:56:10 +010094 @$(call MakeStart,jdk,$(JDK_CLOBBER_TARGETS))
J. Duke686d76f2007-12-01 00:00:00 +000095 ( $(CD) $(JDK_TOPDIR)/make && \
96 $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
Fredrik Öhrström4eb68762011-02-28 10:56:10 +010097 @$(call MakeFinish,jdk,$(JDK_CLOBBER_TARGETS))
J. Duke686d76f2007-12-01 00:00:00 +000098
99jdk-sanity::
Kelly O'Hair614df192009-01-31 15:26:34 -0800100 ( $(CD) $(JDK_TOPDIR)/make && \
J. Duke686d76f2007-12-01 00:00:00 +0000101 $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
102
103compare-images: compare-image
104compare-image:
Fredrik Öhrström4eb68762011-02-28 10:56:10 +0100105 @$(call MakeStart,jdk,compare-image)
J. Duke686d76f2007-12-01 00:00:00 +0000106 ( $(CD) $(JDK_TOPDIR)/make && \
107 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
Fredrik Öhrström4eb68762011-02-28 10:56:10 +0100108 @$(call MakeFinish,jdk,compare-image)
J. Duke686d76f2007-12-01 00:00:00 +0000109
110compare-images-clobber: compare-image-clobber
111compare-image-clobber:
Fredrik Öhrström4eb68762011-02-28 10:56:10 +0100112 @$(call MakeStart,jdk,compare-image-clobber)
J. Duke686d76f2007-12-01 00:00:00 +0000113 ( $(CD) $(JDK_TOPDIR)/make && \
114 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
Fredrik Öhrström4eb68762011-02-28 10:56:10 +0100115 @$(call MakeFinish,jdk,compare-image-clobber)
J. Duke686d76f2007-12-01 00:00:00 +0000116
117.PHONY: jdk jdk-build jdk-clobber jdk-sanity
118