7025631: Remove the modules build support from jdk 7
Reviewed-by: alanb, ohair
## Copyright (c) 1996, 2010, Oracle and/or its affiliates. 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. Oracle designates this# particular file as subject to the "Classpath" exception as provided# by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA# or visit www.oracle.com if you need additional information or have any# questions.### Makefile for character converters.#BUILDDIR = ../../..# charsets should be separated from nio module PACKAGE = sun.nioPRODUCT = sun# This re-directs all the class files to a separate locationCLASSDESTDIR = $(TEMPDIR)/classesOTHER_JAVACFLAGS += -Xlint:serial,-deprecation -Werrorinclude $(BUILDDIR)/common/Defs.gmk## Files#include FILES_java.gmkAUTO_FILES_JAVA_DIRS = sun/nio/cs/ext# For Cygwin, command line arguments that are paths must be converted to# windows style paths. These paths cannot be used as targets, however, because # the ":" in them will interfere with GNU Make rules, generating "multiple# target pattern" errors.# this define is for the rule:CHARSETS_JAR = $(LIBDIR)/charsets.jar# extcsFILES_genout_extcs = $(FILES_gen_extcs:%.java=$(GENSRCDIR)/%.java)## These sun.awt charsets use sun/nio/cs/ext charsets that only exist# in JDK7 charsets.jar, which causes problem when build the symbol# table for rt.jar in Release.gmk. They are now removed from the# rt.jar when building jdk/jre image (in Release.gmk), so add them# into charsets.jar here#ifeq ($(PLATFORM), windows)FILES_src += \ sun/awt/HKSCS.javaelse# Solaris/LinuxFILES_src += \ sun/awt/HKSCS.java \ sun/awt/motif/X11GB2312.java \ sun/awt/motif/X11GBK.java \ sun/awt/motif/X11KSC5601.javaendif # PLATFORM## Rules#include $(BUILDDIR)/common/Classes.gmkbuild: $(FILES_genout_extcs) $(CHARSETS_JAR)## Extra rules to build character converters.SERVICE_DESCRIPTION = java.nio.charset.spi.CharsetProviderSERVICE_DESCRIPTION_PATH = META-INF/services/$(SERVICE_DESCRIPTION)GENCSDATASRC = $(BUILDDIR)/tools/CharsetMappingGENCSSRCDIR = $(BUILDDIR)/tools/src/build/tools/charsetmappingGENCSEXT = $(GENSRCDIR)/sun/nio/cs/extFILES_MAP = $(GENCSDATASRC)/sjis0213.mapFILES_DAT = $(CLASSDESTDIR)/sun/nio/cs/ext/sjis0213.datCHARSETMAPPING_JARFILE = $(BUILDTOOLJARDIR)/charsetmapping.jar$(FILES_DAT): $(FILES_MAP) @$(prep-target) $(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) \ $(FILES_MAP) $(FILES_DAT) sjis0213$(FILES_genout_extcs): \ $(GENCSDATASRC)/SingleByte-X.java.template \ $(GENCSDATASRC)/DoubleByte-X.java.template \ $(GENCSDATASRC)/extsbcs $(GENCSDATASRC)/dbcs @$(prep-target) $(RM) -r $(GENCSEXT) $(MKDIR) -p $(GENCSEXT) $(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) extsbcs $(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) euctw \ $(GENCSSRCDIR)/EUC_TW.java $(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) hkscs \ $(GENCSSRCDIR)/HKSCS.java $(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) dbcs$(CLASSDESTDIR)/$(SERVICE_DESCRIPTION_PATH): \ $(SHARE_SRC)/classes/sun/nio/cs/ext/$(SERVICE_DESCRIPTION_PATH) $(install-file)$(CHARSETS_JAR): $(FILES_class) $(CLASSDESTDIR)/$(SERVICE_DESCRIPTION_PATH) $(FILES_DAT) $(BOOT_JAR_CMD) cf0 $(CHARSETS_JAR) \ -C $(CLASSDESTDIR) sun \ -C $(CLASSDESTDIR) $(SERVICE_DESCRIPTION_PATH) \ $(BOOT_JAR_JFLAGS) @$(java-vm-cleanup)clean:: $(RM) -r $(CLASSDESTDIR) $(RM) $(CHARSETS_JAR)