600N/A#
1472N/A# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
600N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
600N/A#
600N/A# This code is free software; you can redistribute it and/or modify it
600N/A# under the terms of the GNU General Public License version 2 only, as
600N/A# published by the Free Software Foundation.
600N/A#
600N/A# This code is distributed in the hope that it will be useful, but WITHOUT
600N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
600N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
600N/A# version 2 for more details (a copy is included in the LICENSE file that
600N/A# accompanied this code).
600N/A#
600N/A# You should have received a copy of the GNU General Public License version
600N/A# 2 along with this work; if not, write to the Free Software Foundation,
600N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
600N/A#
1472N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A# or visit www.oracle.com if you need additional information or have any
1472N/A# questions.
600N/A#
600N/A#
600N/APKGLIST = \
600N/Acom.sun.hotspot.tools.compiler
600N/A#END PKGLIST
600N/A
600N/AFILELIST = com/sun/hotspot/tools/compiler/*.java
600N/A
600N/Aifneq "x$(ALT_BOOTDIR)" "x"
600N/A BOOTDIR := $(ALT_BOOTDIR)
600N/Aendif
600N/A
600N/Aifeq "x$(BOOTDIR)" "x"
600N/A JDK_HOME := $(shell dirname $(shell which java))/..
600N/Aelse
600N/A JDK_HOME := $(BOOTDIR)
600N/Aendif
600N/A
600N/AisUnix := $(shell test -r c:/; echo $$?)
600N/A
600N/Aifeq "$(isUnix)" "1"
600N/A CPS := :
600N/Aelse
600N/A CPS := ";"
600N/Aendif
600N/A
600N/ASRC_DIR = src
600N/ABUILD_DIR = build
600N/AOUTPUT_DIR = $(BUILD_DIR)/classes
600N/A
600N/A# gnumake 3.78.1 does not accept the *s,
600N/A# so use the shell to expand them
600N/AALLFILES := $(patsubst %,$(SRC_DIR)/%,$(FILELIST))
600N/AALLFILES := $(shell /bin/ls $(ALLFILES))
600N/A
600N/AJAVAC = $(JDK_HOME)/bin/javac
600N/AJAR = $(JDK_HOME)/bin/jar
600N/A
600N/A# Tagging it on because there's no reason not to run it
600N/Aall: logc.jar
600N/A
600N/Alogc.jar: filelist manifest.mf
600N/A @mkdir -p $(OUTPUT_DIR)
600N/A $(JAVAC) -source 1.5 -deprecation -sourcepath $(SRC_DIR) -d $(OUTPUT_DIR) @filelist
600N/A $(JAR) cvfm logc.jar manifest.mf -C $(OUTPUT_DIR) com
600N/A
600N/A.PHONY: filelist
600N/Afilelist: $(ALLFILES)
600N/A @rm -f $@
600N/A @echo $(ALLFILES) > $@
600N/A
600N/Aclean::
600N/A rm -rf filelist logc.jar
600N/A rm -rf $(BUILD_DIR)