author | duke |
Wed, 05 Jul 2017 17:56:44 +0200 | |
changeset 11078 | 736a63b854f3 |
parent 9035 | 1255eb81cc2f |
child 11361 | daa4d069c514 |
permissions | -rw-r--r-- |
2 | 1 |
# |
9035
1255eb81cc2f
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8583
diff
changeset
|
2 |
# Copyright (c) 2001, 2011, Oracle and/or its affiliates. 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 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 |