#
# Copyright 1999-2006 Sun Microsystems, Inc.  All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.  Sun designates this
# particular file as subject to the "Classpath" exception as provided
# by Sun in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
# CA 95054 USA or visit www.sun.com if you need additional information or
# have any questions.
#

#
# Makefile for building the new java compiler.
#

BUILDDIR = ../../..
PRODUCT = sun
PACKAGE = com.sun.tools.javac
PROGRAM = javac
include $(BUILDDIR)/common/Defs.gmk

#
# Files
#
include FILES_java.gmk

#
# Resources
#
LOCALE_SET_DEFINITION = j2sdk
RESOURCE_BUNDLES_COMPILED_PROPERTIES = \
        com/sun/tools/javac/resources/compiler.properties \
        com/sun/tools/javac/resources/javac.properties
NEW_RESOURCE_BUNDLES_COMPILED_PROPERTIES = \
        com/sun/tools/javac/resources/legacy.properties \
	com/sun/tools/javac/resources/version.properties

#
# Rules
#
FILES_java += com/sun/tools/javac/resources/version.java

JAVA_ARGS = "{ \"-J-ms8m\", \"-J-Xss4m\", \"-J-ea:com.sun.tools...\", \"com.sun.tools.javac.Main\" }"
# Use bootstrap compiler.
JAVAC_CMD = $(JAVAC_BOOT_CMD) 
OTHER_CPPFLAGS += -DEXPAND_CLASSPATH_WILDCARDS

include $(BUILDDIR)/common/Program.gmk

$(GENSRCDIR)/com/sun/tools/javac/resources/version.properties: \
    $(SHARE_SRC)/classes/com/sun/tools/javac/resources/version-template.properties
	$(SED) 	-e 's/$$(JDK_VERSION)/$(JDK_VERSION)/'  \
		-e 's/$$(FULL_VERSION)/$(FULL_VERSION)/' \
		-e 's/$$(RELEASE)/$(RELEASE)/' \
		< $< > $@


