author | ohair |
Tue, 18 Sep 2012 11:29:16 -0700 | |
changeset 13697 | 5262b00bc10c |
parent 13132 | bd88bb8dd3af |
child 14111 | 2a82ecb35fc7 |
permissions | -rw-r--r-- |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
2 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
4 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
10 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
15 |
# accompanied this code). |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
16 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
20 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
23 |
# questions. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
24 |
# |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
25 |
|
12801 | 26 |
# This must be the first rule |
27 |
default: all |
|
28 |
||
13697 | 29 |
# Inclusion of this pseudo-target will cause make to execute this file |
30 |
# serially, regardless of -j. Recursively called makefiles will not be |
|
31 |
# affected, however. This is required for correct dependency management. |
|
32 |
.NOTPARALLEL: |
|
33 |
||
13132 | 34 |
# Locate this Makefile |
35 |
ifeq ($(filter /%,$(lastword $(MAKEFILE_LIST))),) |
|
36 |
makefile_path:=$(CURDIR)/$(lastword $(MAKEFILE_LIST)) |
|
12801 | 37 |
else |
13132 | 38 |
makefile_path:=$(lastword $(MAKEFILE_LIST)) |
12801 | 39 |
endif |
13132 | 40 |
root_dir:=$(patsubst %/common/makefiles/Makefile,%,$(makefile_path)) |
12801 | 41 |
|
13132 | 42 |
# ... and then we can include our helper functions |
43 |
include $(dir $(makefile_path))/MakeHelpers.gmk |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
44 |
|
13132 | 45 |
$(eval $(call ParseLogLevel)) |
46 |
$(eval $(call SetupLogging)) |
|
47 |
$(eval $(call ParseConfAndSpec)) |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
48 |
|
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
49 |
ifneq ($(words $(SPEC)),1) |
13132 | 50 |
### We have multiple configurations to build, call make repeatedly |
13697 | 51 |
all clean dist-clean: |
52 |
langtools corba jaxp jaxws hotspot jdk images overlay-images install: |
|
53 |
langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only images-only overlay-images-only install-only: |
|
54 |
clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images: |
|
55 |
@$(foreach spec,$(SPEC),($(MAKE) -f $(makefile_path) SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) $@) &&) true |
|
12801 | 56 |
|
13697 | 57 |
.PHONY: all clean dist-clean |
58 |
.PHONY: langtools corba jaxp jaxws hotspot jdk images overlay-images install |
|
59 |
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only images-only overlay-images-only install-only |
|
60 |
.PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images |
|
12801 | 61 |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
62 |
else |
13132 | 63 |
### This is the main part of the Makefile, for the normal case with SPEC specifying a single existing spec.gmk file. |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
64 |
|
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
65 |
# Now load the spec |
13132 | 66 |
include $(SPEC) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
67 |
|
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
68 |
# Load the vital tools for all the makefiles. |
13132 | 69 |
include $(SRC_ROOT)/common/makefiles/MakeBase.gmk |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
70 |
|
13132 | 71 |
### Clean up from previous run |
72 |
||
73 |
# Remove any build.log from a previous run, if they exist |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
74 |
ifneq (,$(BUILD_LOG)) |
13132 | 75 |
ifneq (,$(BUILD_LOG_PREVIOUS)) |
76 |
# Rotate old log |
|
77 |
$(shell $(RM) $(BUILD_LOG_PREVIOUS) 2> /dev/null) |
|
78 |
$(shell $(MV) $(BUILD_LOG) $(BUILD_LOG_PREVIOUS) 2> /dev/null) |
|
79 |
else |
|
80 |
$(shell $(RM) $(BUILD_LOG) 2> /dev/null) |
|
81 |
endif |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
82 |
endif |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
83 |
# Remove any javac server logs and port files. This |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
84 |
# prevents a new make run to reuse the previous servers. |
13697 | 85 |
ifneq (,$(SJAVAC_SERVER_DIR)) |
86 |
$(shell $(MKDIR) -p $(SJAVAC_SERVER_DIR) && $(RM) -rf $(SJAVAC_SERVER_DIR)/*) |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
87 |
endif |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
88 |
# Clean out any notifications from the previous build. |
13697 | 89 |
$(shell $(FIND) $(OUTPUT_ROOT) -name "_the.*.notify" $(FIND_DELETE)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
90 |
|
13132 | 91 |
# Reset the build timers. |
92 |
$(eval $(call ResetTimers)) |
|
12801 | 93 |
|
13697 | 94 |
# Setup number of jobs to use. -jN is unfortunately not available for us to parse from the command line, |
95 |
# hence this workaround. |
|
96 |
ifeq ($(JOBS),) |
|
97 |
JOBS=$(NUM_CORES) |
|
98 |
endif |
|
99 |
MAKE_ARGS:=$(MAKE_ARGS) -j$(JOBS) |
|
100 |
||
13132 | 101 |
### Main targets |
12801 | 102 |
|
103 |
all: jdk |
|
13697 | 104 |
@$(if $(SJAVAC_SERVER_DIR),$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
12801 | 105 |
@$(call AtRootMakeEnd) |
13697 | 106 |
.PHONY: all |
12801 | 107 |
|
13132 | 108 |
langtools: start-make langtools-only |
109 |
langtools-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
110 |
@$(call MakeStart,langtools,all) |
13697 | 111 |
@($(CD) $(LANGTOOLS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
112 |
@$(call MakeFinish,langtools,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
113 |
|
13132 | 114 |
corba: langtools corba-only |
115 |
corba-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
116 |
@$(call MakeStart,corba,all) |
13697 | 117 |
@($(CD) $(CORBA_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
118 |
@$(call MakeFinish,corba,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
119 |
|
13132 | 120 |
jaxp: langtools jaxp-only |
121 |
jaxp-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
122 |
@$(call MakeStart,jaxp,all) |
13697 | 123 |
@($(CD) $(JAXP_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
124 |
@$(call MakeFinish,jaxp,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
125 |
|
13132 | 126 |
jaxws: langtools jaxp jaxws-only |
127 |
jaxws-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
128 |
@$(call MakeStart,jaxws,all) |
13697 | 129 |
@($(CD) $(JAXWS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
130 |
@$(call MakeFinish,jaxws,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
131 |
|
13132 | 132 |
hotspot: langtools hotspot-only |
133 |
hotspot-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
134 |
@$(call MakeStart,hotspot,all) |
13697 | 135 |
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
136 |
@$(call MakeFinish,hotspot,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
137 |
|
13132 | 138 |
jdk: langtools corba jaxp jaxws hotspot jdk-only |
139 |
jdk-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
140 |
@$(call MakeStart,jdk,all) |
13697 | 141 |
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) $(JDK_TARGET)) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
142 |
@$(call MakeFinish,jdk,all) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
143 |
|
13132 | 144 |
images: source-tips start-make jdk langtools corba jaxp jaxws hotspot images-only |
145 |
images-only: |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
146 |
@$(call MakeStart,jdk-images,$@) |
13697 | 147 |
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) images) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
148 |
@$(call MakeFinish,jdk-images,$@) |
13697 | 149 |
@$(if $(SJAVAC_SERVER_DIR),$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
150 |
@$(call AtRootMakeEnd) |
|
151 |
||
152 |
overlay-images: source-tips start-make jdk langtools corba jaxp jaxws hotspot overlay-images-only |
|
153 |
overlay-images-only: |
|
154 |
@$(call MakeStart,jdk-overlay-images,$@) |
|
155 |
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) overlay-images) |
|
156 |
@$(call MakeFinish,jdk-overlay-images,$@) |
|
157 |
@$(if $(SJAVAC_SERVER_DIR),$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
|
12801 | 158 |
@$(call AtRootMakeEnd) |
159 |
||
13132 | 160 |
install: source-tips start-make jdk langtools corba jaxp jaxws hotspot install-only |
161 |
install-only: |
|
162 |
@$(call MakeStart,jdk-images,$@) |
|
13697 | 163 |
@($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) install) |
13132 | 164 |
@$(call MakeFinish,jdk-images,$@) |
13697 | 165 |
@$(if $(SJAVAC_SERVER_DIR),$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
12801 | 166 |
@$(call AtRootMakeEnd) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
167 |
|
13697 | 168 |
docs: start-make jdk docs-only |
169 |
docs-only: |
|
170 |
@$(call MakeStart,docs,$@) |
|
171 |
@($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs) |
|
172 |
@$(call MakeFinish,docs,$@) |
|
173 |
@$(if $(SJAVAC_SERVER_DIR),$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
|
174 |
@$(call AtRootMakeEnd) |
|
175 |
||
176 |
||
177 |
.PHONY: langtools corba jaxp jaxws hotspot jdk images install |
|
178 |
.PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only images-only install-only |
|
179 |
||
12801 | 180 |
start-make: |
181 |
@$(call AtRootMakeStart) |
|
13697 | 182 |
.PHONY: start-make |
12801 | 183 |
|
13697 | 184 |
bootcycle-images: |
185 |
@$(ECHO) Boot cycle build step 1: Building the JDK image normally |
|
186 |
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images) |
|
187 |
@$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image |
|
188 |
@($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images) |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
189 |
|
12801 | 190 |
test: start-make |
191 |
@$(call MakeStart,test,$(if $(TEST),$(TEST),all)) |
|
192 |
@($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) MAKEFLAGS= -j1 PRODUCT_HOME=$(OUTPUT_ROOT)/jdk JPRT_JAVA_HOME=$(OUTPUT_ROOT)/jdk ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true |
|
193 |
@$(call MakeFinish,test,$(if $(TEST),$(TEST),all)) |
|
194 |
@$(call AtRootMakeEnd) |
|
195 |
.PHONY: test |
|
196 |
||
197 |
||
198 |
# Stores the tips for each repository. This file is be used when constructing the jdk image and can be |
|
199 |
# used to track the exact sources used to build that image. |
|
200 |
source-tips: $(OUTPUT_ROOT)/source_tips |
|
201 |
$(OUTPUT_ROOT)/source_tips: FRC |
|
202 |
@$(MKDIR) -p $(@D) |
|
203 |
@$(RM) $@ |
|
204 |
@$(call GetSourceTips) |
|
205 |
||
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
206 |
|
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
207 |
# Remove everything, except the output from configure. |
13697 | 208 |
clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images clean-bootcycle-build |
209 |
@($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log*) |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
210 |
@$(ECHO) Cleaned everything except the build configuration. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
211 |
.PHONY: clean |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
212 |
|
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
213 |
# Remove everything, you have to rerun configure. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
214 |
dist-clean: |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
215 |
@$(RM) -r $(OUTPUT_ROOT) |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
216 |
@$(ECHO) Cleaned everything, you will have to re-run configure. |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
217 |
.PHONY: dist-clean |
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
218 |
|
13697 | 219 |
clean-langtools: |
220 |
$(call CleanComponent,langtools) |
|
221 |
clean-corba: |
|
222 |
$(call CleanComponent,corba) |
|
223 |
clean-jaxp: |
|
224 |
$(call CleanComponent,jaxp) |
|
225 |
clean-jaxws: |
|
226 |
$(call CleanComponent,jaxws) |
|
227 |
clean-hotspot: |
|
228 |
$(call CleanComponent,hotspot) |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
229 |
clean-jdk: |
13697 | 230 |
$(call CleanComponent,jdk) |
231 |
clean-images: |
|
232 |
$(call CleanComponent,images) |
|
233 |
clean-bootcycle-build: |
|
234 |
$(call CleanComponent,bootcycle-build) |
|
235 |
||
236 |
.PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images |
|
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
237 |
|
12801 | 238 |
endif |
239 |
||
240 |
# Here are "global" targets, i.e. targets that can be executed without specifying a single configuration. |
|
241 |
# If you addd more global targets, please update the fatal-error macro. |
|
242 |
||
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
243 |
help: |
12801 | 244 |
$(info ) |
245 |
$(info OpenJDK Makefile help) |
|
246 |
$(info =====================) |
|
247 |
$(info ) |
|
248 |
$(info Common make targets) |
|
13697 | 249 |
$(info . make [all] # Compile all code but do not create images) |
250 |
$(info . make images # Create complete j2sdk and j2re images) |
|
251 |
$(info . make overlay-images # Create limited images for sparc 64 bit platforms) |
|
252 |
$(info . make bootcycle-images # Build images twice, second time with newly build JDK) |
|
253 |
$(info . make install # Install the generated images locally) |
|
254 |
$(info . make clean # Remove all files generated by make, but not those) |
|
255 |
$(info . # generated by configure) |
|
256 |
$(info . make dist-clean # Remove all files, including configuration) |
|
257 |
$(info . make help # Give some help on using make) |
|
258 |
$(info . make test # Run tests, default is all tests (see TEST below)) |
|
259 |
$(info ) |
|
260 |
$(info Targets for specific components) |
|
261 |
$(info (Component is any of langtools, corba, jaxp, jaxws, hotspot, jdk or images)) |
|
262 |
$(info . make <component> # Build <component> and everything it depends on. ) |
|
263 |
$(info . make <component>-only # Build <component> only, without dependencies. This) |
|
264 |
$(info . # is faster but can result in incorrect build results!) |
|
265 |
$(info . make clean-<component> # Remove files generated by make for <component>) |
|
12801 | 266 |
$(info ) |
267 |
$(info Useful make variables) |
|
13697 | 268 |
$(info . make CONF= # Build all configurations (note, assignment is empty)) |
269 |
$(info . make CONF=<substring> # Build the configuration(s) with a name matching) |
|
270 |
$(info . # <substring>) |
|
12801 | 271 |
$(info ) |
13697 | 272 |
$(info . make LOG=<loglevel> # Change the log level from warn to <loglevel>) |
273 |
$(info . # Available log levels are:) |
|
274 |
$(info . # 'warn' (default), 'info', 'debug' and 'trace') |
|
275 |
$(info . # To see executed command lines, use LOG=info) |
|
12801 | 276 |
$(info ) |
13697 | 277 |
$(info . make JOBS=<n> # Run <n> parallel make jobs) |
278 |
$(info . # Note that -jN does not work as expected!) |
|
279 |
$(info ) |
|
280 |
$(info . make test TEST=<test> # Only run the given test or tests, e.g.) |
|
281 |
$(info . # make test TEST="jdk_lang jdk_net") |
|
12801 | 282 |
$(info ) |
12258
6ec26f6cc53e
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
283 |
.PHONY: help |
12801 | 284 |
FRC: # Force target |