author | xdono |
Thu, 02 Oct 2008 19:58:32 -0700 | |
changeset 1247 | b4c26443dee5 |
parent 916 | 867515b155b5 |
child 4665 | d14dc3d9e1fa |
permissions | -rw-r--r-- |
2 | 1 |
# |
1247 | 2 |
# Copyright 2001-2008 Sun Microsystems, Inc. All Rights Reserved. |
2 | 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. Sun designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
22 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
|
23 |
# have any questions. |
|
24 |
# |
|
25 |
||
26 |
# |
|
27 |
# Makefile for locale data. |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = ../.. |
|
31 |
||
32 |
PACKAGE = sun.text |
|
33 |
PRODUCT = sun |
|
34 |
||
35 |
include $(BUILDDIR)/common/Defs.gmk |
|
36 |
||
37 |
# Re-direct classes to another location (we are building localedata.jar) |
|
38 |
CLASSDESTDIR = $(TEMPDIR)/classes |
|
39 |
||
40 |
# |
|
41 |
# Files |
|
42 |
# |
|
43 |
include FILES_java.gmk |
|
44 |
include FILES_properties.gmk |
|
45 |
||
46 |
# |
|
47 |
# Compile the properties files |
|
48 |
# |
|
49 |
COMPILED_PROPERTIES_SUPERCLASS=LocaleNamesBundle |
|
50 |
||
51 |
# |
|
52 |
# Rules |
|
53 |
# |
|
54 |
include $(BUILDDIR)/common/Classes.gmk |
|
55 |
||
56 |
# |
|
57 |
# Rules to add data files BreakIterator (for th locale) |
|
58 |
# |
|
59 |
TEXT_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 |
# |
|
67 |
TEXT_SRCDIR = $(SHARE_SRC)/classes/sun/text/resources |
|
68 |
BIRULES = $(TEXT_SRCDIR)/BreakIteratorRules.java \ |
|
69 |
$(TEXT_SRCDIR)/BreakIteratorRules_th.java |
|
70 |
BIINFO = $(TEXT_SRCDIR)/BreakIteratorInfo_th.java |
|
71 |
UNICODEDATA = $(BUILDDIR)/tools/UnicodeData |
|
72 |
||
73 |
# output |
|
74 |
BIFILES = $(CLASSDESTDIR)/sun/text/resources/WordBreakIteratorData_th \ |
|
75 |
$(CLASSDESTDIR)/sun/text/resources/LineBreakIteratorData_th |
|
76 |
||
77 |
# builder |
|
78 |
GENERATEBREAKITERATORDATA_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 |
||
95 |
clean:: |
|
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 |
# |
|
105 |
LOCALEDATA_JAR = $(EXTDIR)/localedata.jar |
|
106 |
||
107 |
SPECIALFILES = $(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 \ |
|
916
867515b155b5
6728161: Add SKIP_BOOT_CYCLE feature to create boot jdk and use it during build
ohair
parents:
2
diff
changeset
|
115 |
$(BOOT_JAR_JFLAGS) |
2 | 116 |
@$(java-vm-cleanup) |
117 |
||
118 |
build: $(LOCALEDATA_JAR) |
|
119 |
||
120 |
clean clobber:: |
|
121 |
$(RM) -r $(CLASSDESTDIR) |
|
122 |
$(RM) $(LOCALEDATA_JAR) |
|
123 |