source: trunk/openjdk/jdk/make/sun/text/Makefile

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 3.4 KB
Line 
1#
2# Copyright (c) 2001, 2006, Oracle and/or its affiliates. All rights reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
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
7# published by the Free Software Foundation. Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22# or visit www.oracle.com if you need additional information or have any
23# questions.
24#
25
26#
27# Makefile for locale data.
28#
29
30BUILDDIR = ../..
31
32PACKAGE = sun.text
33PRODUCT = sun
34
35include $(BUILDDIR)/common/Defs.gmk
36
37# Re-direct classes to another location (we are building localedata.jar)
38CLASSDESTDIR = $(TEMPDIR)/classes
39
40#
41# Files
42#
43include FILES_java.gmk
44include FILES_properties.gmk
45
46#
47# Compile the properties files
48#
49COMPILED_PROPERTIES_SUPERCLASS=LocaleNamesBundle
50
51#
52# Rules
53#
54include $(BUILDDIR)/common/Classes.gmk
55
56#
57# Rules to add data files BreakIterator (for th locale)
58#
59TEXT_CLASSES = $(BUILDTOOLCLASSDIR)/sun.text/classes
60
61# input
62#
63# Notes: sun.text.resources.BreakIteratorRules_th no longer goes to runtime.
64# They are used at JDK build phase in order to create $(BIFILES) which
65# are used on runtime instead.
66#
67TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources
68BIRULES = $(TEXT_SRCDIR)/BreakIteratorRules.java \
69 $(TEXT_SRCDIR)/BreakIteratorRules_th.java
70BIINFO = $(TEXT_SRCDIR)/BreakIteratorInfo_th.java
71UNICODEDATA = $(BUILDDIR)/tools/UnicodeData
72
73# output
74BIFILES = $(CLASSDESTDIR)/sun/text/resources/WordBreakIteratorData_th \
75 $(CLASSDESTDIR)/sun/text/resources/LineBreakIteratorData_th
76
77# builder
78GENERATEBREAKITERATORDATA_JARFILE = \
79 $(BUILDTOOLJARDIR)/generatebreakiteratordata.jar
80
81$(BIFILES): $(GENERATEBREAKITERATORDATA_JARFILE) $(BIRULES) $(BIINFO) \
82 $(UNICODEDATA)/UnicodeData.txt
83 $(prep-target)
84 $(MKDIR) -p $(TEXT_CLASSES)
85 $(BOOT_JAVAC_CMD) -d $(TEXT_CLASSES) \
86 -sourcepath $(TEXT_SRCDIR) \
87 $(BIRULES) $(BIINFO)
88 $(BOOT_JAVA_CMD) -Xbootclasspath/p:$(TEXT_CLASSES) \
89 -jar $(GENERATEBREAKITERATORDATA_JARFILE) \
90 -o $(CLASSDESTDIR)/sun/text/resources \
91 -spec $(UNICODEDATA)/UnicodeData.txt \
92 -language th
93 @$(java-vm-cleanup)
94
95clean::
96 $(RM) -r $(TEXT_CLASSES)
97 $(RM) -r $(BIFILES)
98#
99# End of rules to add data files for BreakIterator
100#
101
102#
103# Extra rules to build locale data.
104#
105LOCALEDATA_JAR = $(EXTDIR)/localedata.jar
106
107SPECIALFILES = $(CLASSDESTDIR)/sun/text/resources/thai_dict
108
109$(CLASSDESTDIR)/sun/text/resources/% : $(TEXT_SRCDIR)/%
110 $(install-file)
111
112$(LOCALEDATA_JAR): $(EXTDIR) $(FILES_class) $(BIFILES) $(SPECIALFILES)
113 $(prep-target)
114 $(BOOT_JAR_CMD) -cf $@ -C $(CLASSDESTDIR) sun \
115 $(JAR_JFLAGS)
116 @$(java-vm-cleanup)
117
118build: $(LOCALEDATA_JAR)
119
120clean clobber::
121 $(RM) -r $(CLASSDESTDIR)
122 $(RM) $(LOCALEDATA_JAR)
123
Note: See TracBrowser for help on using the repository browser.