author | alanb |
Fri, 09 Oct 2009 09:59:54 +0100 | |
changeset 4039 | afadb206ca44 |
parent 3789 | 2040d99c6f14 |
child 4309 | 39ca605f0647 |
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: |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
101 |
@$(call MakeStart, jdk, $(JDK_BUILD_TARGETS)) |
0 | 102 |
( $(CD) $(JDK_TOPDIR)/make && \ |
103 |
$(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
104 |
@$(call MakeFinish, jdk, $(JDK_BUILD_TARGETS)) |
0 | 105 |
|
106 |
jdk-clobber:: |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
107 |
@$(call MakeStart, jdk, $(JDK_CLOBBER_TARGETS)) |
0 | 108 |
( $(CD) $(JDK_TOPDIR)/make && \ |
109 |
$(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
110 |
@$(call MakeFinish, jdk, $(JDK_CLOBBER_TARGETS)) |
0 | 111 |
|
112 |
jdk-sanity:: |
|
2096
da51837a7368
6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents:
668
diff
changeset
|
113 |
( $(CD) $(JDK_TOPDIR)/make && \ |
0 | 114 |
$(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; ) |
115 |
||
116 |
compare-images: compare-image |
|
117 |
compare-image: |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
118 |
@$(call MakeStart, jdk, compare-image) |
0 | 119 |
( $(CD) $(JDK_TOPDIR)/make && \ |
120 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image ) |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
121 |
@$(call MakeFinish, jdk, compare-image) |
0 | 122 |
|
123 |
compare-images-clobber: compare-image-clobber |
|
124 |
compare-image-clobber: |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
125 |
@$(call MakeStart, jdk, compare-image-clobber) |
0 | 126 |
( $(CD) $(JDK_TOPDIR)/make && \ |
127 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber ) |
|
3789
2040d99c6f14
6855174: Improve log output when builds transition from one workspace to another
ohair
parents:
2099
diff
changeset
|
128 |
@$(call MakeFinish, jdk, compare-image-clobber) |
0 | 129 |
|
130 |
.PHONY: jdk jdk-build jdk-clobber jdk-sanity |
|
131 |