author | ohair |
Thu, 05 Jul 2012 13:31:38 -0700 | |
changeset 13167 | efec101d7d87 |
parent 9618 | 83db8167c9f6 |
child 13697 | 5262b00bc10c |
permissions | -rw-r--r-- |
0 | 1 |
# |
8917
a3bac6e9ee79
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8445
diff
changeset
|
2 |
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. 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 |
|
5499 | 7 |
# published by the Free Software Foundation. Oracle designates this |
0 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5499 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
0 | 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 |
# |
|
5499 | 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. |
|
0 | 24 |
# |
25 |
||
17
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
26 |
BUILD_PARENT_DIRECTORY=. |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
27 |
|
9618 | 28 |
# Basename of any originally supplied ALT_OUTPUTDIR directory |
29 |
ifndef ORIG_OUTPUTDIR_BASENAME |
|
30 |
ifdef ALT_OUTPUTDIR |
|
31 |
ORIG_OUTPUTDIR_BASENAME := $(shell basename $(ALT_OUTPUTDIR)) |
|
32 |
else |
|
33 |
ORIG_OUTPUTDIR_BASENAME = $(PLATFORM)-$(ARCH) |
|
34 |
endif |
|
35 |
endif |
|
36 |
export ORIG_OUTPUTDIR_BASENAME |
|
37 |
||
38 |
# The three possible directories created for output (3 build flavors) |
|
39 |
OUTPUTDIR_BASENAME- = $(ORIG_OUTPUTDIR_BASENAME) |
|
40 |
OUTPUTDIR_BASENAME-debug = $(ORIG_OUTPUTDIR_BASENAME)-debug |
|
41 |
OUTPUTDIR_BASENAME-fastdebug = $(ORIG_OUTPUTDIR_BASENAME)-fastdebug |
|
42 |
||
43 |
# Relative path to a debug output area |
|
44 |
REL_JDK_OUTPUTDIR = ../$(OUTPUTDIR_BASENAME-$(DEBUG_NAME)) |
|
45 |
||
46 |
# The created jdk image directory |
|
47 |
JDK_IMAGE_DIRNAME = j2sdk-image |
|
48 |
JDK_IMAGE_DIR = $(OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) |
|
49 |
ABS_JDK_IMAGE_DIR = $(ABS_OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) |
|
50 |
||
51 |
# Relative path from an output directory to the image directory |
|
52 |
REL_JDK_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-$(DEBUG_NAME))/$(JDK_IMAGE_DIRNAME) |
|
53 |
REL_JDK_DEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-debug)/$(JDK_IMAGE_DIRNAME) |
|
54 |
REL_JDK_FASTDEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-fastdebug)/$(JDK_IMAGE_DIRNAME) |
|
55 |
||
0 | 56 |
ifndef TOPDIR |
20 | 57 |
TOPDIR:=. |
0 | 58 |
endif |
59 |
||
60 |
ifndef JDK_TOPDIR |
|
61 |
JDK_TOPDIR=$(TOPDIR)/jdk |
|
62 |
endif |
|
63 |
ifndef JDK_MAKE_SHARED_DIR |
|
64 |
JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared |
|
65 |
endif |
|
66 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
67 |
default: all |
0 | 68 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
69 |
include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
70 |
include ./make/Defs-internal.gmk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
71 |
include ./make/sanity-rules.gmk |
0 | 72 |
include ./make/hotspot-rules.gmk |
73 |
include ./make/langtools-rules.gmk |
|
74 |
include ./make/corba-rules.gmk |
|
75 |
include ./make/jaxp-rules.gmk |
|
76 |
include ./make/jaxws-rules.gmk |
|
77 |
include ./make/jdk-rules.gmk |
|
78 |
include ./make/install-rules.gmk |
|
79 |
include ./make/sponsors-rules.gmk |
|
80 |
include ./make/deploy-rules.gmk |
|
81 |
||
7873
4ff5acee11e8
7009969: Remove SKIP_OPENJDK_BUILD from top Makefile
ohair
parents:
7652
diff
changeset
|
82 |
all:: sanity |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
83 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
84 |
ifeq ($(SKIP_FASTDEBUG_BUILD), false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
85 |
all:: fastdebug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
86 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
87 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
88 |
ifeq ($(SKIP_DEBUG_BUILD), false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
89 |
all:: debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
90 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
91 |
|
948 | 92 |
all:: all_product_build |
93 |
||
8445 | 94 |
all_product_build:: |
95 |
||
8441 | 96 |
# Everything for a full product build |
97 |
ifeq ($(SKIP_PRODUCT_BUILD), false) |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
98 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
99 |
all_product_build:: product_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
100 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
101 |
ifeq ($(BUILD_INSTALL), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
102 |
all_product_build:: $(INSTALL) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
103 |
clobber:: install-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
104 |
endif |
8441 | 105 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
106 |
ifeq ($(BUILD_SPONSORS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
107 |
all_product_build:: $(SPONSORS) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
108 |
clobber:: sponsors-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
109 |
endif |
8441 | 110 |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
111 |
ifneq ($(SKIP_COMPARE_IMAGES), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
112 |
all_product_build:: compare-image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
113 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
114 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
115 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
116 |
|
8441 | 117 |
define StartTimer |
118 |
$(MKDIR) -p $(BUILDTIMESDIR) |
|
119 |
$(RM) $(BUILDTIMESDIR)/build_time_* |
|
120 |
$(call RecordStartTime,TOTAL) |
|
121 |
endef |
|
122 |
||
123 |
define StopTimer |
|
124 |
$(if $(REPORT_BUILD_TIMES),$(call RecordEndTime,TOTAL) && $(call ReportBuildTimes,$1),) |
|
125 |
endef |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
126 |
|
5743 | 127 |
# Generic build of basic repo series |
9309 | 128 |
generic_build_repo_series:: $(SOURCE_TIPS) |
9618 | 129 |
$(MKDIR) -p $(JDK_IMAGE_DIR) |
8441 | 130 |
@$(call StartTimer) |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
131 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
132 |
ifeq ($(BUILD_LANGTOOLS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
133 |
generic_build_repo_series:: langtools |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
134 |
clobber:: langtools-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
135 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
136 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
137 |
ifeq ($(BUILD_CORBA), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
138 |
generic_build_repo_series:: corba |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
139 |
clobber:: corba-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
140 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
141 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
142 |
ifeq ($(BUILD_JAXP), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
143 |
generic_build_repo_series:: jaxp |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
144 |
clobber:: jaxp-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
145 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
146 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
147 |
ifeq ($(BUILD_JAXWS), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
148 |
generic_build_repo_series:: jaxws |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
149 |
clobber:: jaxws-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
150 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
151 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
152 |
ifeq ($(BUILD_HOTSPOT), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
153 |
generic_build_repo_series:: $(HOTSPOT) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
154 |
clobber:: hotspot-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
155 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
156 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
157 |
ifeq ($(BUILD_JDK), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
158 |
generic_build_repo_series:: $(JDK_JAVA_EXE) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
159 |
clobber:: jdk-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
160 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
161 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
162 |
ifeq ($(BUILD_DEPLOY), true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
163 |
generic_build_repo_series:: $(DEPLOY) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
164 |
clobber:: deploy-clobber |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
165 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
166 |
|
8441 | 167 |
generic_build_repo_series:: |
168 |
@$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build)) |
|
169 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
170 |
# The debug build, fastdebug or debug. Needs special handling. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
171 |
# Note that debug builds do NOT do INSTALL steps, but must be done |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
172 |
# after the product build and before the INSTALL step of the product build. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
173 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
174 |
# DEBUG_NAME is fastdebug or debug |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
175 |
# ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix |
9618 | 176 |
# The resulting image directory (j2sdk-image) is used by the install makefiles |
177 |
# to create a debug install bundle jdk-*-debug-** bundle (tar or zip) |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
178 |
# which will install in the debug or fastdebug subdirectory of the |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
179 |
# normal product install area. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
180 |
# The install process needs to know what the DEBUG_NAME is, so |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
181 |
# look for INSTALL_DEBUG_NAME in the install rules. |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
182 |
# |
5743 | 183 |
# NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME). |
184 |
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may |
|
185 |
# not be the same location. |
|
186 |
# |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
187 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
188 |
# Location of fresh bootdir output |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
189 |
ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk |
9618 | 190 |
FRESH_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) |
191 |
FRESH_DEBUG_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/$(REL_JDK_IMAGE_DIR) |
|
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
192 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
193 |
create_fresh_product_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
194 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
195 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
196 |
BOOT_CYCLE_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
197 |
build_product_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
198 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
199 |
create_fresh_debug_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
200 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
201 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
202 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
203 |
build_debug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
204 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
205 |
create_fresh_fastdebug_bootdir: FRC |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
206 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
207 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
208 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
209 |
build_fastdebug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
210 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
211 |
# Create boot image? |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
212 |
ifeq ($(SKIP_BOOT_CYCLE),false) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
213 |
ifneq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
214 |
DO_BOOT_CYCLE=true |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
215 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
216 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
217 |
|
8441 | 218 |
|
219 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
220 |
ifeq ($(DO_BOOT_CYCLE),true) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
221 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
222 |
# Create the bootdir to use in the build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
223 |
product_build:: create_fresh_product_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
224 |
debug_build:: create_fresh_debug_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
225 |
fastdebug_build:: create_fresh_fastdebug_bootdir |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
226 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
227 |
# Define variables to be used now for the boot jdk |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
228 |
BOOT_CYCLE_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
229 |
ALT_BOOTDIR=$(FRESH_BOOTDIR) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
230 |
ALT_JDK_IMPORT_PATH=$(FRESH_BOOTDIR) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
231 |
BOOT_CYCLE_DEBUG_SETTINGS= \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
232 |
ALT_BOOTDIR=$(FRESH_DEBUG_BOOTDIR) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
233 |
ALT_JDK_IMPORT_PATH=$(FRESH_DEBUG_BOOTDIR) |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
234 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
235 |
else |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
236 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
237 |
# Use the supplied ALT_BOOTDIR as the boot |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
238 |
BOOT_CYCLE_SETTINGS= |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
239 |
BOOT_CYCLE_DEBUG_SETTINGS= |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
240 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
241 |
endif |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
242 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
243 |
build_product_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
244 |
$(MAKE) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
245 |
SKIP_FASTDEBUG_BUILD=true \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
246 |
SKIP_DEBUG_BUILD=true \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
247 |
$(BOOT_CYCLE_SETTINGS) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
248 |
generic_build_repo_series |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
249 |
|
5743 | 250 |
# NOTE: On windows, do not use $(ABS_OUTPUTDIR)-$(DEBUG_NAME). |
251 |
# Due to the use of short paths in $(ABS_OUTPUTDIR), this may |
|
252 |
# not be the same location. |
|
253 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
254 |
generic_debug_build: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
255 |
$(MAKE) \ |
9618 | 256 |
ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)/$(REL_JDK_OUTPUTDIR) \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
257 |
DEBUG_NAME=$(DEBUG_NAME) \ |
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
2099
diff
changeset
|
258 |
GENERATE_DOCS=false \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
259 |
$(BOOT_CYCLE_DEBUG_SETTINGS) \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
260 |
generic_build_repo_series |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
261 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
262 |
build_debug_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
263 |
$(MAKE) DEBUG_NAME=debug generic_debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
264 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
265 |
build_fastdebug_image: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
266 |
$(MAKE) DEBUG_NAME=fastdebug generic_debug_build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
267 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
268 |
# Build final image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
269 |
product_build:: build_product_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
270 |
debug_build:: build_debug_image |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
271 |
fastdebug_build:: build_fastdebug_image |
0 | 272 |
|
9309 | 273 |
# The source tips are stored with the relative path to the repo. |
274 |
# This file will be used when constructing the jdk image. |
|
275 |
source_tips: $(SOURCE_TIPS) |
|
276 |
$(CAT) $< |
|
277 |
$(SOURCE_TIPS): FRC |
|
278 |
@$(prep-target) |
|
279 |
@$(call GetSourceTips) |
|
280 |
||
8441 | 281 |
clobber:: REPORT_BUILD_TIMES= |
282 |
clobber:: |
|
0 | 283 |
$(RM) -r $(OUTPUTDIR)/* |
284 |
-($(RMDIR) -p $(OUTPUTDIR) > $(DEV_NULL) 2>&1; $(TRUE)) |
|
285 |
||
286 |
clean: clobber |
|
287 |
||
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
288 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
289 |
# Dev builds |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
290 |
# |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
291 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
292 |
dev : dev-build |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
293 |
|
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
294 |
dev-build: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
295 |
$(MAKE) DEV_ONLY=true all |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
296 |
dev-sanity: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
297 |
$(MAKE) DEV_ONLY=true sanity |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
298 |
dev-clobber: |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
299 |
$(MAKE) DEV_ONLY=true clobber |
0 | 300 |
|
301 |
# |
|
302 |
# Quick jdk verification build |
|
303 |
# |
|
304 |
jdk_only: |
|
305 |
$(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all |
|
306 |
||
307 |
||
308 |
# |
|
309 |
# Quick jdk verification fastdebug build |
|
310 |
# |
|
311 |
jdk_fastdebug_only: |
|
312 |
$(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \ |
|
313 |
BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build |
|
314 |
||
315 |
# |
|
316 |
# Quick deploy verification fastdebug build |
|
317 |
# |
|
318 |
deploy_fastdebug_only: |
|
319 |
$(MAKE) \ |
|
320 |
DEBUG_NAME=fastdebug \ |
|
321 |
BUILD_HOTSPOT=false \ |
|
322 |
BUILD_JDK=false \ |
|
323 |
BUILD_LANGTOOLS=false \ |
|
324 |
BUILD_CORBA=false \ |
|
325 |
BUILD_JAXP=false \ |
|
326 |
BUILD_JAXWS=false \ |
|
327 |
BUILD_INSTALL=false \ |
|
328 |
BUILD_SPONSORS=false \ |
|
329 |
generic_debug_build |
|
330 |
||
331 |
# |
|
332 |
# Product build (skip debug builds) |
|
333 |
# |
|
334 |
product_only: |
|
335 |
$(MAKE) SKIP_FASTDEBUG_BUILD=true all |
|
336 |
||
337 |
# |
|
338 |
# Check target |
|
339 |
# |
|
340 |
||
341 |
check: variable_check |
|
342 |
||
343 |
# |
|
344 |
# Help target |
|
345 |
# |
|
346 |
help: intro_help target_help variable_help notes_help examples_help |
|
347 |
||
348 |
# Intro help message |
|
349 |
intro_help: |
|
350 |
@$(ECHO) "\ |
|
351 |
Makefile for the JDK builds (all the JDK). \n\ |
|
352 |
" |
|
353 |
||
354 |
# Target help |
|
355 |
target_help: |
|
356 |
@$(ECHO) "\ |
|
357 |
--- Common Targets --- \n\ |
|
358 |
all -- build the core JDK (default target) \n\ |
|
359 |
help -- Print out help information \n\ |
|
360 |
check -- Check make variable values for correctness \n\ |
|
361 |
sanity -- Perform detailed sanity checks on system and settings \n\ |
|
362 |
fastdebug_build -- build the core JDK in 'fastdebug' mode (-g -O) \n\ |
|
363 |
debug_build -- build the core JDK in 'debug' mode (-g) \n\ |
|
364 |
clean -- remove all built and imported files \n\ |
|
365 |
clobber -- same as clean \n\ |
|
366 |
" |
|
367 |
||
368 |
# Variable help (only common ones used by this Makefile) |
|
369 |
variable_help: variable_help_intro variable_list variable_help_end |
|
370 |
variable_help_intro: |
|
371 |
@$(ECHO) "--- Common Variables ---" |
|
372 |
variable_help_end: |
|
373 |
@$(ECHO) " " |
|
374 |
||
375 |
# One line descriptions for the variables |
|
376 |
OUTPUTDIR.desc = Output directory |
|
377 |
PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count |
|
378 |
SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: |
|
379 |
BOOTDIR.desc = JDK used to boot the build |
|
380 |
JDK_IMPORT_PATH.desc = JDK used to import components of the build |
|
381 |
COMPILER_PATH.desc = Compiler install directory |
|
382 |
CACERTS_FILE.desc = Location of certificates file |
|
383 |
DEVTOOLS_PATH.desc = Directory containing zip and gnumake |
|
384 |
CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files |
|
385 |
DXSDK_PATH.desc = Root directory of DirectX SDK |
|
386 |
||
387 |
# Make variables to print out (description and value) |
|
388 |
VARIABLE_PRINTVAL_LIST += \ |
|
389 |
OUTPUTDIR \ |
|
390 |
PARALLEL_COMPILE_JOBS \ |
|
391 |
SLASH_JAVA \ |
|
392 |
BOOTDIR \ |
|
393 |
JDK_IMPORT_PATH \ |
|
394 |
COMPILER_PATH \ |
|
395 |
CACERTS_FILE \ |
|
396 |
DEVTOOLS_PATH |
|
397 |
||
398 |
# Make variables that should refer to directories that exist |
|
399 |
VARIABLE_CHECKDIR_LIST += \ |
|
400 |
SLASH_JAVA \ |
|
401 |
BOOTDIR \ |
|
402 |
JDK_IMPORT_PATH \ |
|
403 |
COMPILER_PATH \ |
|
404 |
DEVTOOLS_PATH |
|
405 |
||
406 |
# Make variables that should refer to files that exist |
|
407 |
VARIABLE_CHECKFIL_LIST += \ |
|
408 |
CACERTS_FILE |
|
409 |
||
410 |
# Some are windows specific |
|
411 |
ifeq ($(PLATFORM), windows) |
|
412 |
||
413 |
VARIABLE_PRINTVAL_LIST += \ |
|
7876
c2a288bdcca1
6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents:
7873
diff
changeset
|
414 |
DXSDK_PATH |
0 | 415 |
|
416 |
VARIABLE_CHECKDIR_LIST += \ |
|
7876
c2a288bdcca1
6950375: Remove msvcrt.dll from the Windows JRE bundles
ohair
parents:
7873
diff
changeset
|
417 |
DXSDK_PATH |
0 | 418 |
|
419 |
endif |
|
420 |
||
421 |
# For pattern rules below, so all are treated the same |
|
422 |
DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) |
|
423 |
DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) |
|
424 |
DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) |
|
425 |
||
426 |
# Complete variable check |
|
427 |
variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) |
|
428 |
variable_list: $(DO_PRINTVAL_LIST) variable_check |
|
429 |
||
430 |
# Pattern rule for printing out a variable |
|
431 |
%.printval: |
|
432 |
@$(ECHO) " ALT_$* - $($*.desc)" |
|
433 |
@$(ECHO) " \t $*=$($*)" |
|
434 |
||
435 |
# Pattern rule for checking to see if a variable with a directory exists |
|
436 |
%.checkdir: |
|
437 |
@if [ ! -d $($*) ] ; then \ |
|
438 |
$(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ |
|
439 |
fi |
|
440 |
||
441 |
# Pattern rule for checking to see if a variable with a file exists |
|
442 |
%.checkfil: |
|
443 |
@if [ ! -f $($*) ] ; then \ |
|
444 |
$(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ |
|
445 |
fi |
|
446 |
||
447 |
# Misc notes on help |
|
448 |
notes_help: |
|
449 |
@$(ECHO) "\ |
|
450 |
--- Notes --- \n\ |
|
451 |
- All builds use same output directory unless overridden with \n\ |
|
452 |
\t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\ |
|
453 |
\t to use the clean target first. \n\ |
|
454 |
- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\ |
|
455 |
\t builds or previous release JDK builds will work. \n\ |
|
456 |
- The fastest builds have been when the sources and the BOOTDIR are on \n\ |
|
457 |
\t local disk. \n\ |
|
458 |
" |
|
459 |
||
460 |
examples_help: |
|
461 |
@$(ECHO) "\ |
|
462 |
--- Examples --- \n\ |
|
463 |
$(MAKE) fastdebug_build \n\ |
|
464 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ |
|
465 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\ |
|
466 |
$(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ |
|
467 |
$(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\ |
|
468 |
$(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\ |
|
469 |
" |
|
470 |
||
471 |
################################################################ |
|
7652
803a0c91a1a2
7008723: Remove binary plugs creation and use from openjdk
ohair
parents:
7649
diff
changeset
|
472 |
# Source bundling |
0 | 473 |
################################################################ |
474 |
ifeq ($(BUNDLE_RULES_AVAILABLE), true) |
|
475 |
include $(BUNDLE_RULES) |
|
476 |
endif |
|
477 |
||
478 |
################################################################ |
|
5743 | 479 |
# rule to test |
480 |
################################################################ |
|
481 |
||
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
482 |
.NOTPARALLEL: test_run |
5743 | 483 |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
484 |
test: |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
485 |
$(MAKE) test_run |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
486 |
|
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
487 |
test_run: test_clean test_start test_summary |
5743 | 488 |
|
489 |
test_start: |
|
490 |
@$(ECHO) "Tests started at `$(DATE)`" |
|
491 |
||
492 |
test_clean: |
|
493 |
$(RM) $(OUTPUTDIR)/test_failures.txt $(OUTPUTDIR)/test_log.txt |
|
494 |
||
495 |
test_summary: $(OUTPUTDIR)/test_failures.txt |
|
496 |
@$(ECHO) "#################################################" |
|
497 |
@$(ECHO) "Tests completed at `$(DATE)`" |
|
498 |
@( $(EGREP) '^TEST STATS:' $(OUTPUTDIR)/test_log.txt \ |
|
499 |
|| $(ECHO) "No TEST STATS seen in log" ) |
|
500 |
@$(ECHO) "For complete details see: $(OUTPUTDIR)/test_log.txt" |
|
501 |
@$(ECHO) "#################################################" |
|
502 |
@if [ -s $< ] ; then \ |
|
503 |
$(ECHO) "ERROR: Test failure count: `$(CAT) $< | $(WC) -l`"; \ |
|
504 |
$(CAT) $<; \ |
|
505 |
exit 1; \ |
|
506 |
else \ |
|
507 |
$(ECHO) "Success! No failures detected"; \ |
|
508 |
fi |
|
509 |
||
510 |
# Get failure list from log |
|
511 |
$(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt |
|
512 |
@$(RM) $@ |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
513 |
@( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) | $(NAWK) 'length>0' > $@ |
5743 | 514 |
|
515 |
# Get log file of all tests run |
|
516 |
JDK_TO_TEST := $(shell \ |
|
9618 | 517 |
if [ -d "$(ABS_JDK_IMAGE_DIR)" ] ; then \ |
518 |
$(ECHO) "$(ABS_JDK_IMAGE_DIR)"; \ |
|
5743 | 519 |
elif [ -d "$(ABS_OUTPUTDIR)/bin" ] ; then \ |
520 |
$(ECHO) "$(ABS_OUTPUTDIR)"; \ |
|
521 |
elif [ "$(PRODUCT_HOME)" != "" -a -d "$(PRODUCT_HOME)/bin" ] ; then \ |
|
522 |
$(ECHO) "$(PRODUCT_HOME)"; \ |
|
523 |
fi \ |
|
524 |
) |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
525 |
TEST_TARGETS=all |
5743 | 526 |
$(OUTPUTDIR)/test_log.txt: |
527 |
$(RM) $@ |
|
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
528 |
( $(CD) test && \ |
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
529 |
$(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) $(TEST_TARGETS) \ |
5743 | 530 |
) | tee $@ |
531 |
||
532 |
################################################################ |
|
0 | 533 |
# JPRT rule to build |
534 |
################################################################ |
|
535 |
||
536 |
include ./make/jprt.gmk |
|
537 |
||
538 |
################################################################ |
|
539 |
# PHONY |
|
540 |
################################################################ |
|
541 |
||
6623
b2e02fea81b0
6987114: Fix top level "test" Makefile logic, add jdk/make/Makefile test target
ohair
parents:
5743
diff
changeset
|
542 |
.PHONY: all test test_run test_start test_summary test_clean \ |
874
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
543 |
generic_build_repo_series \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
544 |
what clobber insane \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
545 |
dev dev-build dev-sanity dev-clobber \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
546 |
product_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
547 |
fastdebug_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
548 |
debug_build \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
549 |
build_product_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
550 |
build_debug_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
551 |
build_fastdebug_image \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
552 |
create_fresh_product_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
553 |
create_fresh_debug_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
554 |
create_fresh_fastdebug_bootdir \ |
638ddad10e12
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
668
diff
changeset
|
555 |
generic_debug_build |
0 | 556 |
|
17
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
557 |
# Force target |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
558 |
FRC: |
bb9f330cd95a
6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
ohair
parents:
16
diff
changeset
|
559 |