286N/A# Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
286N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
286N/A# This code is free software; you can redistribute it
and/or modify it
286N/A# under the terms of the GNU General Public License version 2 only, as
286N/A# published by the Free Software Foundation.
286N/A# This code is distributed in the hope that it will be useful, but WITHOUT
286N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
286N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
286N/A# version 2 for more details (a copy is included in the LICENSE file that
286N/A# accompanied this code).
286N/A# You should have received a copy of the GNU General Public License version
286N/A# 2 along with this work; if not, write to the Free Software Foundation,
286N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
286N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
286N/A# Tell make that .cpp is important
286N/A.SUFFIXES: .cpp $(SUFFIXES)
286N/A# For now. Other makefiles use CPP as the c++ compiler, but that should really
286N/A# name the preprocessor.
286N/ADEMANGLE = $(DEMANGLER) < $@ > .$@ && mv -f .$@ $@
286N/A# $(CC) is the c compiler (
cc/gcc), $(CCC) is the c++ compiler (CC/g++).
286N/AC_COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS)
286N/ACC_COMPILE = $(CCC) $(CPPFLAGS) $(CFLAGS)
286N/ALINK.c = $(CC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
286N/ALINK.CC = $(CCC) $(LFLAGS) $(AOUT_FLAGS) $(PROF_AOUT_FLAGS)
286N/A# Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
286N/AREMOVE_TARGET = rm -f $@
286N/A# Note use of ALT_BOOTDIR to explicitly specify location of java and
286N/A# javac; this is the same environment variable used in the J2SE build
286N/A# process for overriding the default spec, which is BOOTDIR.
286N/A# Note also that we fall back to using JAVA_HOME if neither of these is
286N/ABOOT_JAVA_HOME = $(ALT_BOOTDIR)
286N/ABOOT_JAVA_HOME = $(BOOTDIR)
286N/ABOOT_JAVA_HOME = $(JAVA_HOME)
286N/A# take from the PATH, if ALT_BOOTDIR, BOOTDIR and JAVA_HOME are not defined
286N/A# note that this is to support hotspot build without SA. To build
286N/A# SA along with hotspot, you need to define ALT_BOOTDIR, BOOTDIR or JAVA_HOME
286N/A# 'gmake MAKE_VERBOSE=y' gives all the gory details.
286N/AQUIETLY$(MAKE_VERBOSE) = @
286N/ABOOT_SOURCE_LANGUAGE_VERSION = 6
286N/ABOOT_TARGET_CLASS_VERSION = 6
286N/AJAVAC_FLAGS = -g -encoding ascii
286N/ABOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
286N/A# With parallel makes, print a message at the end of compilation.
286N/Aifeq ($(findstring j,$(MFLAGS)),j)
286N/ACOMPILE_DONE = && { echo Done with $<; }
286N/A# Include $(NONPIC_OBJ_FILES) definition
286N/A# The non-PIC object files are only generated for 32 bit platforms.
286N/A $(QUIETLY) $(REMOVE_TARGET)
286N/A $(QUIETLY) $(REMOVE_TARGET)
286N/A $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
286N/A $(QUIETLY) $(REMOVE_TARGET)
286N/A $(QUIETLY) $(
AS.S) -o $@ $< $(COMPILE_DONE)
286N/A @echo Generating assembly for $<
286N/A $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
286N/A# Intermediate files (for debugging macros)
286N/A @echo Preprocessing $< to $@
286N/A# Override gnumake built-in rules which do sccs get operations badly.
286N/A# (They put the checked out code in the current directory, not in the
286N/A# directory of the original file.) Since this is a symptom of a teamware
286N/A# failure, and since not all problems can be detected by gnumake due
286N/A# to incomplete dependency checking... just complain and stop.
286N/A @echo "========================================================="
286N/A @echo is out of date with respect to its SCCS file.
286N/A @echo This file may be from an unresolved Teamware conflict.
286N/A @echo in which SCCS files are updated but not checked out.
286N/A @echo Check for other out of date files in your workspace.
286N/A @echo "========================================================="
286N/A @echo "========================================================="
286N/A @echo is out of date with respect to its SCCS file.
286N/A @echo This file may be from an unresolved Teamware conflict.
286N/A @echo in which SCCS files are updated but not checked out.
286N/A @echo Check for other out of date files in your workspace.
286N/A @echo "========================================================="