3045N/A#
5658N/A# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3045N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3045N/A#
3045N/A# This code is free software; you can redistribute it and/or modify it
3045N/A# under the terms of the GNU General Public License version 2 only, as
3045N/A# published by the Free Software Foundation. Oracle designates this
3045N/A# particular file as subject to the "Classpath" exception as provided
3045N/A# by Oracle in the LICENSE file that accompanied this code.
3045N/A#
3045N/A# This code is distributed in the hope that it will be useful, but WITHOUT
3045N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3045N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3045N/A# version 2 for more details (a copy is included in the LICENSE file that
3045N/A# accompanied this code).
3045N/A#
3045N/A# You should have received a copy of the GNU General Public License version
3045N/A# 2 along with this work; if not, write to the Free Software Foundation,
3045N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3045N/A#
3045N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3045N/A# or visit www.oracle.com if you need additional information or have any
3045N/A# questions.
3045N/A#
3045N/A
3045N/A#
3045N/A# Makefile for building alternate runtime classes (not used by default)
3045N/A#
3045N/A
3045N/ABUILDDIR = ..
3045N/A
3045N/APRODUCT = altclasses
3045N/A
3045N/Ainclude $(BUILDDIR)/common/Defs.gmk
3045N/A
3045N/A# Root of alternate class sources
3045N/A
3045N/AALTCLASSES_SRCDIR = $(CLOSED_SRC)/share/altclasses
3045N/A
3045N/A# Alternate runtime classes
3045N/A
3045N/AALTRT_JAR_FILE = $(LIBDIR)/alt-rt.jar
3045N/AALTRT_JAR_SOURCE_FILE = $(TEMPDIR)/alt-rt.jarsrclist
3045N/AALTRT_JAR_SOURCES = $(wildcard $(ALTCLASSES_SRCDIR)/java/*/*.java)
5658N/AALTRT_JAR_SOURCES += $(wildcard $(ALTCLASSES_SRCDIR)/sun/misc/*.java)
3045N/A
3045N/A# Use a special file suffix for the file that holds the source list
3045N/A
3045N/A.SUFFIXES: .jarsrclist
3045N/A
3045N/A# Build rules
3045N/A
3045N/Aall build:
3045N/A @if [ -d $(ALTCLASSES_SRCDIR) ] ; then \
3045N/A $(MAKE) $(ALTRT_JAR_FILE); \
3045N/A fi
3045N/A
3045N/A# Source list file creation
3045N/A
3045N/A$(ALTRT_JAR_SOURCE_FILE): $(ALTRT_JAR_SOURCES) FRC
3045N/A $(prep-target)
3045N/A $(ECHO) $(ALTRT_JAR_SOURCES) > $@
3045N/A
3045N/Aclean clobber::
3045N/A $(RM) $(ALTRT_JAR_FILE) $(ALTRT_JAR_SOURCE_FILE)
3045N/A $(RM) -r $(ALTRT_JAR_SOURCE_FILE).classes
3045N/A
3045N/Ainclude $(BUILDDIR)/common/Classes.gmk
3045N/A
3045N/A# Pattern rule to turn a source list file into a jar file
3045N/A$(LIBDIR)/%.jar : $(TEMPDIR)/%.jarsrclist
3045N/A $(prep-target)
3045N/A $(RM) -r $(<).classes
3045N/A $(MKDIR) -p $(<).classes
3045N/A $(JAVAC_CMD) -implicit:none -d $(<).classes @$<
3045N/A $(BOOT_JAR_CMD) cf $@ -C $(<).classes . $(BOOT_JAR_JFLAGS)
3045N/A
3045N/A# Force target
3045N/A
3045N/AFRC:
3045N/A
3045N/A# Non file targets
3045N/A
3045N/A.PHONY: all build clean clobber
3045N/A