2080N/A# Copyright (c) 2003, 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
0N/A# published by the Free Software Foundation.
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.
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A# Tell make that .cpp is important
0N/A.SUFFIXES: .cpp $(SUFFIXES)
0N/ADEMANGLE = $(DEMANGLER) < $@ > .$@ && mv -f .$@ $@
3178N/A# $(CC) is the c compiler (
cc/gcc), $(CXX) is the c++ compiler (CC/g++).
3178N/ACC_COMPILE = $(CC) $(CXXFLAGS) $(CFLAGS)
3178N/ACXX_COMPILE = $(CXX) $(CXXFLAGS) $(CFLAGS)
2248N/A# cross compiling the jvm with c2 requires host compilers to build
0N/A# Effect of REMOVE_TARGET is to delete out-of-date files during "gnumake -k".
0N/AREMOVE_TARGET = rm -f $@
0N/A# Note use of ALT_BOOTDIR to explicitly specify location of java and
0N/A# javac; this is the same environment variable used in the J2SE build
0N/A# process for overriding the default spec, which is BOOTDIR.
0N/A# Note also that we fall back to using JAVA_HOME if neither of these is
0N/ABOOT_JAVA_HOME = $(ALT_BOOTDIR)
0N/ABOOT_JAVA_HOME = $(BOOTDIR)
0N/ABOOT_JAVA_HOME = $(JAVA_HOME)
0N/A# take from the PATH, if ALT_BOOTDIR, BOOTDIR and JAVA_HOME are not defined
0N/A# note that this is to support hotspot build without SA. To build
0N/A# SA along with hotspot, you need to define ALT_BOOTDIR, BOOTDIR or JAVA_HOME
0N/A# 'gmake MAKE_VERBOSE=y' gives all the gory details.
0N/AQUIETLY$(MAKE_VERBOSE) = @
971N/ABOOT_SOURCE_LANGUAGE_VERSION = 6
971N/ABOOT_TARGET_CLASS_VERSION = 6
971N/AJAVAC_FLAGS = -g -encoding ascii
971N/ABOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
0N/A# With parallel makes, print a message at the end of compilation.
0N/Aifeq ($(findstring j,$(MFLAGS)),j)
0N/ACOMPILE_DONE = && { echo Done with $<; }
228N/A# Include $(NONPIC_OBJ_FILES) definition
198N/A# The non-PIC object files are only generated for 32 bit platforms.
0N/A $(QUIETLY) $(REMOVE_TARGET)
198N/A $(QUIETLY) $(REMOVE_TARGET)
198N/A $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
0N/A $(QUIETLY) $(REMOVE_TARGET)
1879N/A $(QUIETLY) $(
AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
0N/A @echo Generating assembly for $<
0N/A $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
0N/A# Intermediate files (for debugging macros)
0N/A @echo Preprocessing $< to $@
0N/A# Override gnumake built-in rules which do sccs get operations badly.
0N/A# (They put the checked out code in the current directory, not in the
0N/A# directory of the original file.) Since this is a symptom of a teamware
0N/A# failure, and since not all problems can be detected by gnumake due
0N/A# to incomplete dependency checking... just complain and stop.
0N/A @echo "========================================================="
0N/A @echo is out of date with respect to its SCCS file.
0N/A @echo This file may be from an unresolved Teamware conflict.
0N/A @echo in which SCCS files are updated but not checked out.
0N/A @echo Check for other out of date files in your workspace.
0N/A @echo "========================================================="
0N/A @echo "========================================================="
0N/A @echo is out of date with respect to its SCCS file.
0N/A @echo This file may be from an unresolved Teamware conflict.
0N/A @echo in which SCCS files are updated but not checked out.
0N/A @echo Check for other out of date files in your workspace.
0N/A @echo "========================================================="