Makefile

Sun, 09 Mar 2008 15:47:58 -0700

author
ohair
date
Sun, 09 Mar 2008 15:47:58 -0700
changeset 7
d6b08bdb9a54
parent 6
d83470fdf495
child 10
cbc8ad9dd0e0
permissions
-rw-r--r--

6649672: Adjustments to OUTPUTDIR default and mkdirs to avoid empty directory clutter
Summary: Cleanup of OUTPUTDIR handling
Reviewed-by: xdono

duke@2 1 #
duke@2 2 # Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
duke@2 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@2 4 #
duke@2 5 # This code is free software; you can redistribute it and/or modify it
duke@2 6 # under the terms of the GNU General Public License version 2 only, as
duke@2 7 # published by the Free Software Foundation. Sun designates this
duke@2 8 # particular file as subject to the "Classpath" exception as provided
duke@2 9 # by Sun in the LICENSE file that accompanied this code.
duke@2 10 #
duke@2 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@2 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@2 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@2 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@2 15 # accompanied this code).
duke@2 16 #
duke@2 17 # You should have received a copy of the GNU General Public License version
duke@2 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@2 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@2 20 #
duke@2 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@2 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@2 23 # have any questions.
duke@2 24 #
duke@2 25
ohair@7 26 BUILD_PARENT_DIRECTORY=.
ohair@7 27
duke@2 28 ifndef TOPDIR
duke@2 29 TOPDIR:=$(shell \
duke@2 30 if [ -r ./j2se/make/Makefile -o -r ./jdk/make/Makefile ]; then \
duke@2 31 echo "."; \
duke@2 32 else \
duke@2 33 echo "../.."; \
duke@2 34 fi)
duke@2 35 endif
duke@2 36
duke@2 37 ifndef CONTROL_TOPDIR
duke@2 38 CONTROL_TOPDIR=$(TOPDIR)/control
duke@2 39 CONTROL_TOPDIR:=$(shell \
duke@2 40 if [ -r $(TOPDIR)/control/make/Makefile ]; then \
duke@2 41 echo "$(TOPDIR)/control"; \
duke@2 42 else \
duke@2 43 echo "$(TOPDIR)"; \
duke@2 44 fi)
duke@2 45 endif
duke@2 46
ohair@6 47 # Openjdk sources (only used if SKIP_OPENJDK_BUILD!=true)
ohair@6 48 OPENJDK_SOURCETREE=$(TOPDIR)/openjdk
ohair@6 49 OPENJDK_BUILDDIR:=$(shell \
ohair@6 50 if [ -r $(OPENJDK_SOURCETREE)/control/make/Makefile ]; then \
ohair@6 51 echo "$(OPENJDK_SOURCETREE)/control/make"; \
ohair@6 52 elif [ -r $(OPENJDK_SOURCETREE)/Makefile ]; then \
ohair@6 53 echo "$(OPENJDK_SOURCETREE)"; \
ohair@6 54 else \
ohair@6 55 echo "."; \
ohair@6 56 fi)
ohair@6 57
duke@2 58 ifndef JDK_TOPDIR
duke@2 59 JDK_TOPDIR=$(TOPDIR)/jdk
duke@2 60 endif
duke@2 61 ifndef JDK_MAKE_SHARED_DIR
duke@2 62 JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared
duke@2 63 endif
duke@2 64
duke@2 65 include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk
duke@2 66
duke@2 67 include ./make/Defs-internal.gmk
duke@2 68
duke@2 69 all::
duke@2 70 @$(ECHO) $(PLATFORM) $(ARCH) $(RELEASE) build started: `$(DATE) '+%y-%m-%d %H:%M'`
ohair@7 71 $(MKDIR) -p $(OUTPUTDIR)
duke@2 72
duke@2 73 # Rules for sanity checks
duke@2 74 include ./make/sanity-rules.gmk
duke@2 75
duke@2 76 dev : dev-build
duke@2 77
duke@2 78 dev-build:
duke@2 79 $(MAKE) DEV_ONLY=true all
duke@2 80 dev-sanity:
duke@2 81 $(MAKE) DEV_ONLY=true sanity
duke@2 82 dev-clobber:
duke@2 83 $(MAKE) DEV_ONLY=true clobber
duke@2 84
duke@2 85 # Rules for various components
duke@2 86 include ./make/hotspot-rules.gmk
duke@2 87 include ./make/langtools-rules.gmk
duke@2 88 include ./make/corba-rules.gmk
duke@2 89 include ./make/jaxp-rules.gmk
duke@2 90 include ./make/jaxws-rules.gmk
duke@2 91 include ./make/jdk-rules.gmk
duke@2 92 include ./make/install-rules.gmk
duke@2 93 include ./make/sponsors-rules.gmk
duke@2 94 include ./make/deploy-rules.gmk
duke@2 95
duke@2 96 all:: setup build
duke@2 97
ohair@6 98 setup: openjdk_check
duke@2 99 $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image
duke@2 100
ohair@6 101 # Check on whether we really can build the openjdk, need source etc.
ohair@7 102 openjdk_check: FRC
ohair@6 103 ifneq ($(SKIP_OPENJDK_BUILD), true)
ohair@6 104 @$(ECHO) " "
ohair@6 105 @$(ECHO) "================================================="
ohair@6 106 @if [ ! -r $(OPENJDK_BUILDDIR)/Makefile ] ; then \
ohair@6 107 $(ECHO) "ERROR: No openjdk source tree available at: $(OPENJDK_BUILDDIR)"; \
ohair@6 108 exit 1; \
ohair@6 109 else \
ohair@6 110 $(ECHO) "OpenJDK will be built after JDK is built"; \
ohair@6 111 $(ECHO) " OPENJDK_BUILDDIR=$(OPENJDK_BUILDDIR)"; \
ohair@6 112 fi
ohair@6 113 @$(ECHO) "================================================="
ohair@6 114 @$(ECHO) " "
ohair@6 115 endif
ohair@6 116
duke@2 117 build:: sanity
duke@2 118
duke@2 119 clobber::
duke@2 120
duke@2 121 ifeq ($(BUILD_LANGTOOLS), true)
duke@2 122 build:: langtools
duke@2 123 clobber:: langtools-clobber
duke@2 124 endif
duke@2 125
duke@2 126 ifeq ($(BUILD_CORBA), true)
duke@2 127 build:: corba
duke@2 128 clobber:: corba-clobber
duke@2 129 endif
duke@2 130
duke@2 131 ifeq ($(BUILD_JAXP), true)
duke@2 132 build:: jaxp
duke@2 133 clobber:: jaxp-clobber
duke@2 134 endif
duke@2 135
duke@2 136 ifeq ($(BUILD_JAXWS), true)
duke@2 137 build:: jaxws
duke@2 138 clobber:: jaxws-clobber
duke@2 139 endif
duke@2 140
duke@2 141 ifeq ($(BUILD_HOTSPOT), true)
duke@2 142 build:: $(HOTSPOT)
duke@2 143 clobber:: hotspot-clobber
duke@2 144 endif
duke@2 145
duke@2 146 ifeq ($(BUILD_JDK), true)
duke@2 147 build:: $(JDK_JAVA_EXE)
duke@2 148 clobber:: jdk-clobber
duke@2 149 endif
duke@2 150
duke@2 151 ifeq ($(BUILD_DEPLOY), true)
duke@2 152 build:: $(DEPLOY)
duke@2 153 clobber:: deploy-clobber
duke@2 154 endif
duke@2 155
duke@2 156 #
duke@2 157 # Generic debug build, fastdebug or debug. Needs special handling.
duke@2 158 # Note that debug builds do NOT do INSTALL steps, but must be done
duke@2 159 # after the product build and before the INSTALL step of the product build.
duke@2 160 #
duke@2 161 # DEBUG_NAME is fastdebug or debug
duke@2 162 # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix
duke@2 163 # The resulting j2sdk-image is used by the install makefiles to create a
duke@2 164 # debug install bundle jdk-*-debug-** bundle (tar or zip)
duke@2 165 # which will install in the debug or fastdebug subdirectory of the
duke@2 166 # normal product install area.
duke@2 167 # The install process needs to know what the DEBUG_NAME is, so
duke@2 168 # look for INSTALL_DEBUG_NAME in the install rules.
duke@2 169 #
duke@2 170
duke@2 171 COMMON_DEBUG_FLAGS= \
duke@2 172 DEBUG_NAME=$(DEBUG_NAME) \
ohair@7 173 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)-$(DEBUG_NAME) \
duke@2 174 NO_DOCS=true
duke@2 175
duke@2 176 product_build: setup
duke@2 177 @$(ECHO) $@ build started: `$(DATE) '+%y-%m-%d %H:%M'`
duke@2 178 $(MAKE) SKIP_FASTDEBUG_BUILD=true SKIP_DEBUG_BUILD=true all
duke@2 179 @$(ECHO) $@ build finished: `$(DATE) '+%y-%m-%d %H:%M'`
duke@2 180
duke@2 181 generic_debug_build:
duke@2 182 @$(ECHO) $@ build started: `$(DATE) '+%y-%m-%d %H:%M'`
duke@2 183 $(MAKE) $(COMMON_DEBUG_FLAGS) setup build
duke@2 184 @$(ECHO) $@ build finished: `$(DATE) '+%y-%m-%d %H:%M'`
duke@2 185
duke@2 186 debug_build: setup
duke@2 187 $(MAKE) DEBUG_NAME=debug generic_debug_build
duke@2 188
duke@2 189 fastdebug_build: setup
duke@2 190 $(MAKE) DEBUG_NAME=fastdebug generic_debug_build
duke@2 191
duke@2 192 ifeq ($(SKIP_FASTDEBUG_BUILD), false)
duke@2 193 all:: fastdebug_build
duke@2 194 endif
duke@2 195
duke@2 196 ifeq ($(SKIP_DEBUG_BUILD), false)
duke@2 197 all:: debug_build
duke@2 198 endif
duke@2 199
duke@2 200 ifeq ($(BUILD_JDK), true)
duke@2 201 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
duke@2 202 all:: openjdk-binary-plugs-bundles
duke@2 203 endif
duke@2 204 endif
duke@2 205
duke@2 206 ifeq ($(BUILD_INSTALL), true)
duke@2 207 all :: $(INSTALL)
duke@2 208 clobber:: install-clobber
duke@2 209 endif
duke@2 210
duke@2 211 ifeq ($(BUILD_SPONSORS), true)
duke@2 212 all :: $(SPONSORS)
duke@2 213 clobber:: sponsors-clobber
duke@2 214 endif
duke@2 215
duke@2 216 ifneq ($(SKIP_COMPARE_IMAGES), true)
duke@2 217 all :: compare-image
duke@2 218 endif
duke@2 219
ohair@6 220 ifneq ($(SKIP_OPENJDK_BUILD), true)
ohair@6 221 all :: openjdk_build
ohair@6 222 endif
ohair@6 223
ohair@6 224 # If we have bundle rules, we have a chance here to do a complete cycle
ohair@6 225 # build, of production and open build.
ohair@6 226 # FIXUP: We should create the openjdk source bundle and build that?
ohair@6 227 # But how do we reliable create or get at a formal openjdk source tree?
ohair@6 228 # The one we have needs to be trimmed of built bits and closed dirs.
ohair@6 229 # The repositories might not be available.
ohair@6 230 # The openjdk source bundle is probably not available.
ohair@6 231
ohair@6 232 ifneq ($(SKIP_OPENJDK_BUILD), true)
duke@2 233 ifeq ($(BUILD_JDK), true)
duke@2 234 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
ohair@6 235
ohair@6 236 OPENJDK_PLUGS=$(ABS_OUTPUTDIR)/$(OPENJDK_BINARY_PLUGS_INAME)
ohair@6 237 OPENJDK_OUTPUTDIR=$(ABS_OUTPUTDIR)/open-output
ohair@6 238 OPENJDK_BUILD_NAME \
ohair@6 239 = openjdk-$(JDK_MINOR_VERSION)-$(BUILD_NUMBER)-$(PLATFORM)-$(ARCH)-$(BUNDLE_DATE)
ohair@6 240 OPENJDK_BUILD_BINARY_ZIP=$(ABS_BIN_BUNDLEDIR)/$(OPENJDK_BUILD_NAME).zip
ohair@6 241 BUILT_IMAGE=$(ABS_OUTPUTDIR)/j2sdk-image
ohair@6 242 ifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64)
ohair@6 243 OPENJDK_BOOTDIR=$(BOOTDIR)
ohair@6 244 OPENJDK_IMPORTJDK=$(JDK_IMPORT_PATH)
ohair@6 245 else
ohair@6 246 OPENJDK_BOOTDIR=$(BUILT_IMAGE)
ohair@6 247 OPENJDK_IMPORTJDK=$(BUILT_IMAGE)
ohair@6 248 endif
ohair@6 249
ohair@6 250 openjdk_build:
duke@2 251 @$(ECHO) " "
duke@2 252 @$(ECHO) "================================================="
duke@2 253 @$(ECHO) "Starting openjdk build"
ohair@6 254 @$(ECHO) " Using: ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR)"
duke@2 255 @$(ECHO) "================================================="
duke@2 256 @$(ECHO) " "
ohair@6 257 $(RM) -r $(OPENJDK_OUTPUTDIR)
ohair@6 258 $(MKDIR) -p $(OPENJDK_OUTPUTDIR)
ohair@6 259 ($(CD) $(OPENJDK_BUILDDIR) && $(MAKE) \
ohair@6 260 OPENJDK=true \
ohair@6 261 ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR) \
ohair@6 262 ALT_OUTPUTDIR=$(OPENJDK_OUTPUTDIR) \
ohair@6 263 ALT_BINARY_PLUGS_PATH=$(OPENJDK_PLUGS) \
ohair@6 264 ALT_BOOTDIR=$(OPENJDK_BOOTDIR) \
ohair@6 265 ALT_JDK_IMPORT_PATH=$(OPENJDK_IMPORTJDK) \
ohair@6 266 product_build )
duke@2 267 $(RM) $(OPENJDK_BUILD_BINARY_ZIP)
ohair@6 268 ( $(CD) $(OPENJDK_OUTPUTDIR)/j2sdk-image && \
duke@2 269 $(ZIPEXE) -q -r $(OPENJDK_BUILD_BINARY_ZIP) .)
ohair@6 270 $(RM) -r $(OPENJDK_OUTPUTDIR)
ohair@6 271 @$(ECHO) " "
ohair@6 272 @$(ECHO) "================================================="
ohair@6 273 @$(ECHO) "Finished openjdk build"
ohair@6 274 @$(ECHO) " Binary Bundle: $(OPENJDK_BUILD_BINARY_ZIP)"
ohair@6 275 @$(ECHO) "================================================="
ohair@6 276 @$(ECHO) " "
ohair@6 277
duke@2 278 endif
duke@2 279 endif
duke@2 280 endif
duke@2 281
duke@2 282 clobber::
duke@2 283 $(RM) -r $(OUTPUTDIR)/*
duke@2 284 $(RM) -r $(OUTPUTDIR)-debug/*
duke@2 285 $(RM) -r $(OUTPUTDIR)-fastdebug/*
duke@2 286 -($(RMDIR) -p $(OUTPUTDIR) > $(DEV_NULL) 2>&1; $(TRUE))
duke@2 287
duke@2 288 clean: clobber
duke@2 289
duke@2 290 all::
duke@2 291 @$(ECHO) Control build finished: `$(DATE) '+%y-%m-%d %H:%M'`
duke@2 292
duke@2 293 #
duke@2 294 # Quick jdk verification build
duke@2 295 #
duke@2 296 jdk_only:
duke@2 297 $(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all
duke@2 298
duke@2 299
duke@2 300 #
duke@2 301 # Quick jdk verification fastdebug build
duke@2 302 #
duke@2 303 jdk_fastdebug_only:
duke@2 304 $(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \
duke@2 305 BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build
duke@2 306
duke@2 307 #
duke@2 308 # Quick deploy verification fastdebug build
duke@2 309 #
duke@2 310 deploy_fastdebug_only:
duke@2 311 $(MAKE) \
duke@2 312 DEBUG_NAME=fastdebug \
duke@2 313 BUILD_HOTSPOT=false \
duke@2 314 BUILD_JDK=false \
duke@2 315 BUILD_LANGTOOLS=false \
duke@2 316 BUILD_CORBA=false \
duke@2 317 BUILD_JAXP=false \
duke@2 318 BUILD_JAXWS=false \
duke@2 319 BUILD_INSTALL=false \
duke@2 320 BUILD_SPONSORS=false \
duke@2 321 generic_debug_build
duke@2 322
duke@2 323 #
duke@2 324 # Product build (skip debug builds)
duke@2 325 #
duke@2 326 product_only:
duke@2 327 $(MAKE) SKIP_FASTDEBUG_BUILD=true all
duke@2 328
duke@2 329 #
duke@2 330 # Check target
duke@2 331 #
duke@2 332
duke@2 333 check: variable_check
duke@2 334
duke@2 335 #
duke@2 336 # Help target
duke@2 337 #
duke@2 338 help: intro_help target_help variable_help notes_help examples_help
duke@2 339
duke@2 340 # Intro help message
duke@2 341 intro_help:
duke@2 342 @$(ECHO) "\
duke@2 343 Makefile for the JDK builds (all the JDK). \n\
duke@2 344 "
duke@2 345
duke@2 346 # Target help
duke@2 347 target_help:
duke@2 348 @$(ECHO) "\
duke@2 349 --- Common Targets --- \n\
duke@2 350 all -- build the core JDK (default target) \n\
duke@2 351 help -- Print out help information \n\
duke@2 352 check -- Check make variable values for correctness \n\
duke@2 353 sanity -- Perform detailed sanity checks on system and settings \n\
duke@2 354 fastdebug_build -- build the core JDK in 'fastdebug' mode (-g -O) \n\
duke@2 355 debug_build -- build the core JDK in 'debug' mode (-g) \n\
duke@2 356 clean -- remove all built and imported files \n\
duke@2 357 clobber -- same as clean \n\
duke@2 358 "
duke@2 359
duke@2 360 # Variable help (only common ones used by this Makefile)
duke@2 361 variable_help: variable_help_intro variable_list variable_help_end
duke@2 362 variable_help_intro:
duke@2 363 @$(ECHO) "--- Common Variables ---"
duke@2 364 variable_help_end:
duke@2 365 @$(ECHO) " "
duke@2 366
duke@2 367 # One line descriptions for the variables
duke@2 368 OUTPUTDIR.desc = Output directory
duke@2 369 PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count
duke@2 370 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J:
duke@2 371 BOOTDIR.desc = JDK used to boot the build
duke@2 372 JDK_IMPORT_PATH.desc = JDK used to import components of the build
duke@2 373 COMPILER_PATH.desc = Compiler install directory
duke@2 374 CACERTS_FILE.desc = Location of certificates file
duke@2 375 DEVTOOLS_PATH.desc = Directory containing zip and gnumake
duke@2 376 CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files
duke@2 377 DXSDK_PATH.desc = Root directory of DirectX SDK
duke@2 378 MSDEVTOOLS_PATH.desc = Root directory of VC++ tools (e.g. rc.exe)
duke@2 379 MSVCRT_DLL_PATH.desc = Directory containing mscvrt.dll
duke@2 380
duke@2 381 # Make variables to print out (description and value)
duke@2 382 VARIABLE_PRINTVAL_LIST += \
duke@2 383 OUTPUTDIR \
duke@2 384 PARALLEL_COMPILE_JOBS \
duke@2 385 SLASH_JAVA \
duke@2 386 BOOTDIR \
duke@2 387 JDK_IMPORT_PATH \
duke@2 388 COMPILER_PATH \
duke@2 389 CACERTS_FILE \
duke@2 390 DEVTOOLS_PATH
duke@2 391
duke@2 392 # Make variables that should refer to directories that exist
duke@2 393 VARIABLE_CHECKDIR_LIST += \
duke@2 394 SLASH_JAVA \
duke@2 395 BOOTDIR \
duke@2 396 JDK_IMPORT_PATH \
duke@2 397 COMPILER_PATH \
duke@2 398 DEVTOOLS_PATH
duke@2 399
duke@2 400 # Make variables that should refer to files that exist
duke@2 401 VARIABLE_CHECKFIL_LIST += \
duke@2 402 CACERTS_FILE
duke@2 403
duke@2 404 # Some are windows specific
duke@2 405 ifeq ($(PLATFORM), windows)
duke@2 406
duke@2 407 VARIABLE_PRINTVAL_LIST += \
duke@2 408 DXSDK_PATH \
duke@2 409 MSDEVTOOLS_PATH \
duke@2 410 MSVCRT_DLL_PATH
duke@2 411
duke@2 412 VARIABLE_CHECKDIR_LIST += \
duke@2 413 DXSDK_PATH \
duke@2 414 MSDEVTOOLS_PATH \
duke@2 415 MSVCRT_DLL_PATH
duke@2 416
duke@2 417 endif
duke@2 418
duke@2 419 # For pattern rules below, so all are treated the same
duke@2 420 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval)
duke@2 421 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir)
duke@2 422 DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil)
duke@2 423
duke@2 424 # Complete variable check
duke@2 425 variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST)
duke@2 426 variable_list: $(DO_PRINTVAL_LIST) variable_check
duke@2 427
duke@2 428 # Pattern rule for printing out a variable
duke@2 429 %.printval:
duke@2 430 @$(ECHO) " ALT_$* - $($*.desc)"
duke@2 431 @$(ECHO) " \t $*=$($*)"
duke@2 432
duke@2 433 # Pattern rule for checking to see if a variable with a directory exists
duke@2 434 %.checkdir:
duke@2 435 @if [ ! -d $($*) ] ; then \
duke@2 436 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@2 437 fi
duke@2 438
duke@2 439 # Pattern rule for checking to see if a variable with a file exists
duke@2 440 %.checkfil:
duke@2 441 @if [ ! -f $($*) ] ; then \
duke@2 442 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@2 443 fi
duke@2 444
duke@2 445 # Misc notes on help
duke@2 446 notes_help:
duke@2 447 @$(ECHO) "\
duke@2 448 --- Notes --- \n\
duke@2 449 - All builds use same output directory unless overridden with \n\
duke@2 450 \t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\
duke@2 451 \t to use the clean target first. \n\
duke@2 452 - JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\
duke@2 453 \t builds or previous release JDK builds will work. \n\
duke@2 454 - The fastest builds have been when the sources and the BOOTDIR are on \n\
duke@2 455 \t local disk. \n\
duke@2 456 "
duke@2 457
duke@2 458 examples_help:
duke@2 459 @$(ECHO) "\
duke@2 460 --- Examples --- \n\
duke@2 461 $(MAKE) fastdebug_build \n\
duke@2 462 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
duke@2 463 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\
duke@2 464 $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\
duke@2 465 $(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\
duke@2 466 $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\
duke@2 467 "
duke@2 468
duke@2 469 ################################################################
duke@2 470 # Source and binary plug bundling
duke@2 471 ################################################################
duke@2 472 ifeq ($(BUNDLE_RULES_AVAILABLE), true)
duke@2 473 include $(BUNDLE_RULES)
duke@2 474 endif
duke@2 475
duke@2 476 ################################################################
duke@2 477 # Cycle build. Build the jdk, use it to build the jdk again.
duke@2 478 ################################################################
duke@2 479
ohair@6 480 ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk
duke@2 481
duke@2 482 boot_cycle:
ohair@6 483 $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) product_build
ohair@6 484 $(MAKE) ALT_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/j2sdk-image product_build
duke@2 485
duke@2 486 ################################################################
duke@2 487 # JPRT rule to build
duke@2 488 ################################################################
duke@2 489
duke@2 490 include ./make/jprt.gmk
duke@2 491
duke@2 492 ################################################################
duke@2 493 # PHONY
duke@2 494 ################################################################
duke@2 495
duke@2 496 .PHONY: all build what clobber insane \
duke@2 497 fastdebug_build debug_build product_build setup \
duke@2 498 dev dev-build dev-sanity dev-clobber
duke@2 499
duke@2 500 # FIXUP: Old j2se targets
duke@2 501 j2se_fastdebug_only: jdk_fastdebug_only
duke@2 502 j2se_only: jdk_only
duke@2 503
ohair@7 504 # Force target
ohair@7 505 FRC:
ohair@7 506

mercurial