author | xdono |
Thu, 13 Aug 2009 12:11:21 -0700 | |
changeset 3413 | d28c3c6955b7 |
parent 2099 | a9be2da8a8f2 |
child 3789 | 2040d99c6f14 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2099 | 2 |
# Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved. |
0 | 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. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
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 |
# No DOCS build when JDK_UPDATE_VERSION set |
|
40 |
ifdef JDK_UPDATE_VERSION |
|
41 |
DOCS_TARGET = |
|
42 |
else |
|
43 |
DOCS_TARGET = docs |
|
44 |
endif |
|
45 |
||
46 |
# NO_DOCS may be set in conjunction with DEV_ONLY |
|
47 |
ifdef NO_DOCS |
|
48 |
DOCS_TARGET = |
|
49 |
endif |
|
50 |
||
51 |
# If langtools not being built, full jdk javadoc is not possible |
|
52 |
ifneq ($(BUILD_LANGTOOLS), true) |
|
53 |
DOCS_TARGET = |
|
54 |
endif |
|
55 |
ifneq ($(BUILD_CORBA), true) |
|
56 |
DOCS_TARGET = |
|
57 |
endif |
|
58 |
ifneq ($(BUILD_JAXP), true) |
|
59 |
DOCS_TARGET = |
|
60 |
endif |
|
61 |
ifneq ($(BUILD_JAXWS), true) |
|
62 |
DOCS_TARGET = |
|
63 |
endif |
|
64 |
||
65 |
ifndef DEV_ONLY |
|
66 |
JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) images |
|
67 |
else |
|
68 |
JDK_BUILD_TARGETS = sanity all $(IMAGES_TARGET) |
|
69 |
endif |
|
70 |
||
71 |
JDK_CLOBBER_TARGETS = clobber |
|
72 |
||
73 |
JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
|
74 |
ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) |
|
75 |
||
76 |
ifeq ($(BUILD_LANGTOOLS), true) |
|
77 |
JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
|
78 |
endif |
|
79 |
ifeq ($(BUILD_CORBA), true) |
|
80 |
JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST) |
|
81 |
endif |
|
82 |
ifeq ($(BUILD_JAXP), true) |
|
83 |
JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST) |
|
84 |
endif |
|
85 |
ifeq ($(BUILD_JAXWS), true) |
|
86 |
JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST) |
|
87 |
endif |
|
88 |
||
89 |
ifeq ($(BUILD_HOTSPOT), true) |
|
90 |
JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import |
|
91 |
endif |
|
92 |
||
93 |
JDK_BUILD_ARGUMENTS += \ |
|
94 |
BUILD_HOTSPOT=$(BUILD_HOTSPOT) |
|
95 |
||
96 |
||
97 |
$(JDK_JAVA_EXE):: jdk-build |
|
98 |
||
99 |
jdk: jdk-build |
|
100 |
jdk-build: |
|
101 |
( $(CD) $(JDK_TOPDIR)/make && \ |
|
102 |
$(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
103 |
||
104 |
jdk-clobber:: |
|
105 |
( $(CD) $(JDK_TOPDIR)/make && \ |
|
106 |
$(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
107 |
||
108 |
jdk-sanity:: |
|
2096
da51837a7368
6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents:
668
diff
changeset
|
109 |
( $(CD) $(JDK_TOPDIR)/make && \ |
0 | 110 |
$(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; ) |
111 |
||
112 |
compare-images: compare-image |
|
113 |
compare-image: |
|
114 |
( $(CD) $(JDK_TOPDIR)/make && \ |
|
115 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image ) |
|
116 |
||
117 |
compare-images-clobber: compare-image-clobber |
|
118 |
compare-image-clobber: |
|
119 |
( $(CD) $(JDK_TOPDIR)/make && \ |
|
120 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber ) |
|
121 |
||
122 |
.PHONY: jdk jdk-build jdk-clobber jdk-sanity |
|
123 |