438N/A# Copyright (c) 1995, 2012, 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 180N/A# published by the Free Software Foundation. Oracle designates this 0N/A# particular file as subject to the "Classpath" exception as provided 180N/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. 180N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A# Common variables used by all the Java makefiles. This file should 311N/A# The build times report is turned off by setting REPORT_BUILD_TIMES to nothing. 311N/A# directories where the buildtimes are stored. 311N/A# Store the build times in this directory. 311N/A# Record starting time for build of a sub repository. 311N/A# Indicate that we started to build a sub repository and record starting time. 311N/A$(PRINTF) "\n\n%s\n%s\n##### %-60.60s #####\n%s\n\n" \
126N/A"########################################################################" \
126N/A"########################################################################" \
311N/A"Entering $1 for target(s) $2" \
126N/A"########################################################################" 311N/A# Record ending time and calculate the difference and store it in a 311N/A# easy to read format. Handles builds that cross midnight. Expects 311N/A# that a build will never take 24 hours or more. 311N/A $(NAWK) '{ F=$$7; T=$$14; if (F > T) { T+=3600*24 }; D=T-F; H=int(D/3600); \ 311N/A M=int((D-H*3600)/60); S=D-H*3600-M*60; printf("%02d:%02d:%02d %s\n",H,M,S,$$15); }' \
311N/A# Indicate that we are done. 311N/A# Record ending time and print out the total time it took to build. 311N/A$(PRINTF) "%s\n##### %-60.60s #####\n%s\n##### %-60.60s #####\n%s\n\n" \
126N/A"########################################################################" \
311N/A"Leaving $1 for target(s) $2" \
126N/A"########################################################################" \
311N/A"########################################################################" 311N/A# Find all build_time_* files and print their contents in a list sorted 311N/A# on the name of the sub repository. 400N/A$(PRINTF) "#-- Build times ----------\nTarget %s\nStart %s\nEnd %s\n%s\n%s\n-------------------------\n" \
7N/A x:=
$(error "OPENJDK (if defined) can only be set to true") 0N/A# Define absolute paths to TOPDIRs 0N/A# Macro to return true or false if a file exists and is readable 286N/A# Do we build the source bundles? 0N/A# Current things we do NOT build for OPENJDK 0N/A # These could be over-ridden on the command line or in environment 100N/A # Various non-OPENJDK reasons to NOT build the deploy repository 0N/A# Many reasons why we would want to skip the comparison to previous jdk 0N/A# Select defaults if these are not set to true or false 142N/A# Select javadoc setting GENERATE_DOCS 142N/A # Default value (we want javadoc run) 142N/A # If langtools, corba, jaxp, and jaxws are not being built, 142N/A # a full jdk javadoc is not possible 0N/A# Output directory for hotspot build 0N/A# If we are building components 0N/A# Common make arguments (supplied to all component builds) 438N/A# When all repos support FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES, 438N/A# then these can be set here: 438N/A#ifdef FULL_DEBUG_SYMBOLS 438N/A# COMMON_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS) 438N/A#ifdef ZIP_DEBUGINFO_FILES 438N/A# COMMON_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)"