jdk/make/sun/nio/cs/Makefile
changeset 17470 b65cf2b5983b
parent 10137 d92637d3d673
equal deleted inserted replaced
17469:e00a02431a8b 17470:b65cf2b5983b
    85 build: $(FILES_genout_extcs) $(CHARSETS_JAR)
    85 build: $(FILES_genout_extcs) $(CHARSETS_JAR)
    86 
    86 
    87 #
    87 #
    88 # Extra rules to build character converters.
    88 # Extra rules to build character converters.
    89 
    89 
    90 SERVICE_DESCRIPTION = java.nio.charset.spi.CharsetProvider
       
    91 SERVICE_DESCRIPTION_PATH = META-INF/services/$(SERVICE_DESCRIPTION)
       
    92 
       
    93 GENCSDATASRC = $(BUILDDIR)/tools/CharsetMapping
    90 GENCSDATASRC = $(BUILDDIR)/tools/CharsetMapping
    94 GENCSSRCDIR = $(BUILDDIR)/tools/src/build/tools/charsetmapping
    91 GENCSSRCDIR = $(BUILDDIR)/tools/src/build/tools/charsetmapping
    95 GENCSEXT = $(GENSRCDIR)/sun/nio/cs/ext
    92 GENCSEXT = $(GENSRCDIR)/sun/nio/cs/ext
    96 
    93 
    97 FILES_MAP = $(GENCSDATASRC)/sjis0213.map
    94 FILES_MAP = $(GENCSDATASRC)/sjis0213.map
   116 		$(GENCSSRCDIR)/EUC_TW.java
   113 		$(GENCSSRCDIR)/EUC_TW.java
   117 	$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) hkscs \
   114 	$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) hkscs \
   118 		$(GENCSSRCDIR)/HKSCS.java
   115 		$(GENCSSRCDIR)/HKSCS.java
   119 	$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) dbcs
   116 	$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSDATASRC) $(GENCSEXT) dbcs
   120 
   117 
   121 $(CLASSDESTDIR)/$(SERVICE_DESCRIPTION_PATH): \
       
   122   $(SHARE_SRC)/classes/sun/nio/cs/ext/$(SERVICE_DESCRIPTION_PATH)
       
   123 	$(install-file)
       
   124 
       
   125 # no compression unless requested
   118 # no compression unless requested
   126 ifndef COMPRESS_JARS
   119 ifndef COMPRESS_JARS
   127   CREATE_JAR_OPTS_NOMANIFEST = cf0
   120   CREATE_JAR_OPTS_NOMANIFEST = cf0
   128 else
   121 else
   129   CREATE_JAR_OPTS_NOMANIFEST = cf
   122   CREATE_JAR_OPTS_NOMANIFEST = cf
   130 endif
   123 endif
   131 
   124 
   132 $(CHARSETS_JAR): $(FILES_class) $(CLASSDESTDIR)/$(SERVICE_DESCRIPTION_PATH) $(FILES_DAT)
   125 $(CHARSETS_JAR): $(FILES_class) $(FILES_DAT)
   133 	$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS_NOMANIFEST) $(CHARSETS_JAR) \
   126 	$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS_NOMANIFEST) $(CHARSETS_JAR) \
   134 	      -C $(CLASSDESTDIR) sun \
   127 	      -C $(CLASSDESTDIR) sun \
   135 	      -C $(CLASSDESTDIR) $(SERVICE_DESCRIPTION_PATH)  \
       
   136 	      $(BOOT_JAR_JFLAGS)
   128 	      $(BOOT_JAR_JFLAGS)
   137 	@$(java-vm-cleanup)
   129 	@$(java-vm-cleanup)
   138 
   130 
   139 clean::
   131 clean::
   140 	$(RM) -r $(CLASSDESTDIR)
   132 	$(RM) -r $(CLASSDESTDIR)