3909N/A# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 2362N/A# published by the Free Software Foundation. Oracle designates this 0N/A# particular file as subject to the "Classpath" exception as provided 2362N/A# by Oracle in the LICENSE file that accompanied this code. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A# Makefile for building and packaging all of the JDK and the JRE. See 0N/A# also included files. 0N/A# Make sure we are clear what the default target is 0N/AMakefile for the main JDK workspace. \n\ 0N/ADefault behavior is to use the BOOTDIR javac to bootstrap the build and \n\ 0N/Aimport in pre-built components like the VM from the JDK_IMPORT_PATH. \n\ 0N/A--- Common Targets --- \n\ 0N/Aall -- build the core JDK (default target) \n\ 0N/Ahelp -- Print out help information \n\ 0N/Acheck -- Check make variable values for correctness \n\ 0N/Asanity -- Perform detailed sanity checks on system and settings \n\ 0N/Aopenjdk -- synonym for 'OPENJDK=true all' \n\ 0N/Afastdebug -- build the core JDK in 'fastdebug' mode (-g -O) \n\ 0N/Adebug -- build the core JDK in 'debug' mode (-g) \n\ 0N/Aclean -- remove all built and imported files \n\ 0N/Aclobber -- same as clean \n\ 0N/Adocs -- run javadoc to generate the JDK documentation \n\ 0N/Aimages -- build the jdk and jre image directories \n\ 0N/Aimport -- copy in the pre-built components (e.g. VM) \n\ 0N/Aimport_product -- copy in the product components \n\ 0N/Aimport_fastdebug -- copy in the fastdebug components \n\ 0N/Aimport_debug -- copy in the debug components \n\ 0N/Acreate_links -- create softlinks in Solaris 32bit build to 64bit dirs \n\ 0N/A# Variable help (only common ones used by this workspace) 0N/A @
$(ECHO) "--- Common Variables ---" 0N/A# One line descriptions for the variables 0N/A# Make variables to print out (description and value) 0N/A# Make variables that should refer to directories that exist 0N/A# Make variables that should refer to files that exist 0N/A# Some are windows specific 0N/A# For pattern rules below, so all are treated the same 0N/A# Complete variable check 0N/A# Pattern rule for printing out a variable 0N/A# Pattern rule for checking to see if a variable with a directory exists 0N/A @
if [ ! -d
$($*) ] ;
then \
0N/A $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
0N/A# Pattern rule for checking to see if a variable with a file exists 0N/A @
if [ ! -f
$($*) ] ;
then \
0N/A $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
0N/A- All builds use same output directory unless overridden with \n\ 0N/A \t ALT_OUTPUTDIR=<dir>, changing from product to fastdebug you may want \n\ 0N/A \t to use the clean target first. \n\ 0N/A- LANGTOOLS_DIST must refer to a langtools dist area, used to build. \n\ 0N/A- CORBA_DIST must refer to a corba dist area. \n\ 0N/A- JAXP_DIST must refer to a jaxp dist area. \n\ 0N/A- JAXWS_DIST must refer to a jaxws dist area. \n\ 0N/A- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\ 0N/A \t builds or previous release JDK builds will work. \n\ 0N/A- The 'debug' target and 'import_debug' only works when a debug promoted \n\ 0N/A \t build is available, and they currently are not. \n\ 0N/A- The fastest builds have been when the workspace and the BOOTDIR are on \n\ 0N/A# Just in case anyone uses this old name, same as 'build' 0N/A# Special debug rules (You may also want to set ALT_OUTPUTDIR) 0N/A# Rules to re-import VM and other JDK files 3045N/A# Alternate classes implementation 0N/A# Release engineering targets. 0N/A# this should be the last rule in this file: 0N/A# Developer rule that links 32 and 64 bit builds on Solaris by creating 0N/A# softlinks in the 32bit outputdir to the 64bit outputdir. 0N/A echo "Creating link for $$sd"; \
0N/A $(ECHO) "Build both 32 and 64 bit versions first"; \
2812N/A @
$(ECHO) "#################################################" 2812N/A @
$(ECHO) "#################################################" 2812N/A# Get log file of all tests run 0N/A# Phonies to avoid accidents.