jdk/make/java/text/Makefile
changeset 4917 c98da2209f8c
parent 4665 d14dc3d9e1fa
child 5506 202f599c92aa
equal deleted inserted replaced
4916:de44744708a2 4917:c98da2209f8c
     1 #
     1 #
     2 # Copyright 1996-2006 Sun Microsystems, Inc.  All Rights Reserved.
     2 # Copyright 2010 Sun Microsystems, Inc.  All Rights Reserved.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     5 # This code is free software; you can redistribute it and/or modify it
     6 # under the terms of the GNU General Public License version 2 only, as
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Sun designates this
     7 # published by the Free Software Foundation.  Sun designates this
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
    23 # have any questions.
    24 #
    24 #
    25 
    25 
       
    26 #
       
    27 # Makefile for building all of java.text
       
    28 #
       
    29 
    26 BUILDDIR = ../..
    30 BUILDDIR = ../..
    27 MODULE  = base
       
    28 PACKAGE = java.text
       
    29 PRODUCT = sun
    31 PRODUCT = sun
    30 
       
    31 include $(BUILDDIR)/common/Defs.gmk
    32 include $(BUILDDIR)/common/Defs.gmk
    32 
    33 
    33 #
    34 SUBDIRS         = base
    34 # Files
    35 SUBDIRS_desktop = bidi
    35 #
       
    36 include FILES_java.gmk
       
    37 
    36 
    38 #
    37 include $(BUILDDIR)/common/Subdirs.gmk
    39 # Include
       
    40 #
       
    41 include $(BUILDDIR)/common/Classes.gmk
       
    42 
    38 
    43 #
    39 all build clean clobber::
    44 # Rules to add data files BreakIterator
    40 	$(SUBDIRS-loop)
    45 #
       
    46 TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/java.text/classes
       
    47 
    41 
    48 # input
       
    49 #
       
    50 #   Notes: sun.text.resources.BreakIteratorRules no longer goes to runtime.
       
    51 #     They are used at JDK build phase in order to create $(BIFILES) which
       
    52 #     are used on runtime instead.
       
    53 #
       
    54 TEXT_SRCDIR  = $(SHARE_SRC)/classes/sun/text/resources
       
    55 TEXT_SOURCES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
       
    56                $(TEXT_SRCDIR)/BreakIteratorInfo.java
       
    57 UNICODEDATA  = $(BUILDDIR)/tools/UnicodeData
       
    58 
       
    59 # output
       
    60 TEXT_CLASSDIR  = $(CLASSBINDIR)/sun/text/resources
       
    61 BIFILES = $(TEXT_CLASSDIR)/CharacterBreakIteratorData \
       
    62           $(TEXT_CLASSDIR)/WordBreakIteratorData \
       
    63           $(TEXT_CLASSDIR)/LineBreakIteratorData \
       
    64           $(TEXT_CLASSDIR)/SentenceBreakIteratorData
       
    65 
       
    66 ICU_FILES = $(TEXT_CLASSDIR)/unorm.icu \
       
    67             $(TEXT_CLASSDIR)/uprops.icu \
       
    68             $(TEXT_CLASSDIR)/ubidi.icu
       
    69 
       
    70 # builder
       
    71 GENERATEBREAKITERATORDATA_JARFILE = \
       
    72     $(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
       
    73 
       
    74 $(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) \
       
    75     $(UNICODEDATA)/UnicodeData.txt \
       
    76     $(TEXT_SOURCES)
       
    77 	$(prep-target)
       
    78 	$(RM) -r $(TEXT_CLASSES)
       
    79 	$(MKDIR) -p $(TEXT_CLASSES)
       
    80 	$(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
       
    81 		-sourcepath $(TEXT_SRCDIR) \
       
    82 		$(TEXT_SOURCES)
       
    83 	$(MKDIR) -p  $(TEXT_CLASSDIR)
       
    84 	$(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
       
    85 		-jar $(GENERATEBREAKITERATORDATA_JARFILE) \
       
    86 		-o $(TEXT_CLASSDIR) \
       
    87 		-spec $(UNICODEDATA)/UnicodeData.txt
       
    88 	@$(java-vm-cleanup)
       
    89 
       
    90 build: $(BIFILES) $(ICU_FILES)
       
    91 
       
    92 #
       
    93 # Extra rules to copy unorm.icu, uprops.icu, and ubidi.icu
       
    94 #
       
    95 $(TEXT_CLASSDIR)/unorm.icu: $(TEXT_SRCDIR)/unorm.icu
       
    96 	$(install-file)
       
    97 
       
    98 $(TEXT_CLASSDIR)/uprops.icu: $(TEXT_SRCDIR)/uprops.icu
       
    99 	$(install-file)
       
   100 
       
   101 $(TEXT_CLASSDIR)/ubidi.icu: $(TEXT_SRCDIR)/ubidi.icu
       
   102 	$(install-file)
       
   103 
       
   104 clean clobber::
       
   105 	$(RM) -r $(TEXT_CLASSES)
       
   106 	$(RM) -r $(BIFILES)
       
   107 	$(RM) $(ICU_FILES)
       
   108