Makefile

Wed, 02 Jul 2008 12:55:04 -0700

author
xdono
date
Wed, 02 Jul 2008 12:55:04 -0700
changeset 20
2dab2f712e18
parent 10
cbc8ad9dd0e0
child 29
55b2666e52e1
permissions
-rw-r--r--

6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell

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

mercurial