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