]>
Commit | Line | Data |
---|---|---|
a44d2393 | 1 | # Copyright (C) 1997, 1998 Free Software Foundation, Inc. |
f4017d20 UD |
2 | # This file is part of the GNU C Library. |
3 | ||
4 | # The GNU C Library is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU Library General Public License as | |
6 | # published by the Free Software Foundation; either version 2 of the | |
7 | # License, or (at your option) any later version. | |
8 | ||
9 | # The GNU C Library is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 | # Library General Public License for more details. | |
13 | ||
14 | # You should have received a copy of the GNU Library General Public | |
15 | # License along with the GNU C Library; see the file COPYING.LIB. If | |
16 | # not, write to the Free Software Foundation, Inc., | |
17 | # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18 | ||
19 | # | |
20 | # Makefile for iconv data and code. | |
21 | # | |
22 | subdir := iconvdata | |
23 | ||
24 | # Names of all the shared objects which implement the transformations. | |
9b26f5c4 UD |
25 | modules := ISO8859-1 ISO8859-2 ISO8859-3 ISO8859-4 ISO8859-5 \ |
26 | ISO8859-6 ISO8859-7 ISO8859-8 ISO8859-9 ISO8859-10 \ | |
27 | T.61 ISO_6937 SJIS KOI-8 KOI8-R LATIN-GREEK LATIN-GREEK-1 \ | |
28 | HP-ROMAN8 EBCDIC-AT-DE EBCDIC-AT-DE-A EBCDIC-CA-FR \ | |
29 | EUC-KR UHC JOHAB libJIS libKSC BIG5 EUC-JP libGB \ | |
30 | EUC-CN libCNS EUC-TW ISO646 EBCDIC-DK-NO EBCDIC-DK-NO-A \ | |
31 | EBCDIC-ES EBCDIC-ES-A EBCDIC-ES-S EBCDIC-FI-SE EBCDIC-FI-SE-A \ | |
32 | EBCDIC-FR EBCDIC-IS-FRISS EBCDIC-IT EBCDIC-PT EBCDIC-UK \ | |
33 | EBCDIC-US IBM037 IBM038 IBM256 IBM273 IBM274 IBM275 IBM277 \ | |
34 | IBM278 IBM280 IBM281 IBM284 IBM285 IBM290 IBM297 IBM420 \ | |
35 | IBM423 IBM424 IBM437 IBM500 IBM850 IBM851 IBM852 IBM855 \ | |
36 | IBM857 IBM860 IBM861 IBM862 IBM863 IBM864 IBM865 IBM868 \ | |
37 | IBM869 IBM870 IBM871 IBM875 IBM880 IBM891 IBM903 IBM904 \ | |
38 | IBM905 IBM918 IBM1004 IBM1026 IBM1047 CP1250 CP1251 CP1252 \ | |
39 | CP1253 CP1254 CP1255 CP1256 CP1257 | |
f4017d20 UD |
40 | modules.so := $(addsuffix .so, $(modules)) |
41 | ||
42 | ||
04be94a8 UD |
43 | include ../Makeconfig |
44 | ||
f4017d20 UD |
45 | ISO8859-1-routines := iso8859-1 |
46 | ISO8859-2-routines := iso8859-2 | |
47 | ISO8859-3-routines := iso8859-3 | |
48 | ISO8859-4-routines := iso8859-4 | |
49 | ISO8859-5-routines := iso8859-5 | |
50 | ISO8859-6-routines := iso8859-6 | |
51 | ISO8859-7-routines := iso8859-7 | |
52 | ISO8859-8-routines := iso8859-8 | |
53 | ISO8859-9-routines := iso8859-9 | |
54 | ISO8859-10-routines := iso8859-10 | |
d2374599 | 55 | ISO646-routines := iso646 |
f4017d20 UD |
56 | T.61-routines := t61 |
57 | ISO_6937-routines := iso6937 | |
04be94a8 UD |
58 | SJIS-routines := sjis |
59 | KOI-8-routines := koi-8 | |
60 | KOI8-R-routines := koi8-r | |
61 | LATIN-GREEK-routines := latin-greek | |
62 | LATIN-GREEK-1-routines := latin-greek-1 | |
63 | HP-ROMAN8-routines := hp-roman8 | |
64 | EBCDIC-AT-DE-routines := ebcdic-at-de | |
65 | EBCDIC-AT-DE-A-routines := ebcdic-at-de-a | |
66 | EBCDIC-CA-FR-routines := ebcdic-ca-fr | |
9b26f5c4 UD |
67 | EBCDIC-DK-NO-routines := ebcdic-dk-no |
68 | EBCDIC-DK-NO-A_routines := ebcdic-dk-no-a | |
69 | EBCDIC-ES-routines := ebcdic-es | |
70 | EBCDIC-ES-A-routines := ebcdic-es-a | |
71 | EBCDIC-ES-S-routines := ebcdic-es-s | |
72 | EBCDIC-FI-SE-routines := ebcdic-fi-se | |
73 | EBCDIC-FI-SE-A-routines := ebcdic-fi-se-a | |
74 | EBCDIC-FR-routines := ebcdic-fr | |
75 | EBCDIC-IS-FRISS-routines := ebcdic-is-friss | |
76 | EBCDIC-IT-routines := ebcdic-it | |
77 | EBCDIC-PT-routines := ebcdic-pt | |
78 | EBCDIC-UK-routines := ebcdic-uk | |
79 | EBCDIC-US-routines := ebcdic-us | |
80 | IBM037-routines := ibm037 | |
81 | IBM038-routines := ibm038 | |
82 | IBM256-routines := ibm256 | |
83 | IBM273-routines := ibm273 | |
84 | IBM274-routines := ibm274 | |
85 | IBM275-routines := ibm275 | |
86 | IBM277-routines := ibm277 | |
87 | IBM278-routines := ibm278 | |
88 | IBM280-routines := ibm280 | |
89 | IBM281-routines := ibm281 | |
90 | IBM284-routines := ibm284 | |
91 | IBM285-routines := ibm285 | |
92 | IBM290-routines := ibm290 | |
93 | IBM297-routines := ibm297 | |
94 | IBM420-routines := ibm420 | |
95 | IBM423-routines := ibm423 | |
96 | IBM424-routines := ibm424 | |
97 | IBM437-routines := ibm437 | |
98 | IBM500-routines := ibm500 | |
99 | IBM850-routines := ibm850 | |
100 | IBM851-routines := ibm851 | |
101 | IBM852-routines := ibm852 | |
102 | IBM855-routines := ibm855 | |
103 | IBM857-routines := ibm857 | |
104 | IBM860-routines := ibm860 | |
105 | IBM861-routines := ibm861 | |
106 | IBM862-routines := ibm862 | |
107 | IBM863-routines := ibm863 | |
108 | IBM864-routines := ibm864 | |
109 | IBM865-routines := ibm865 | |
110 | IBM868-routines := ibm868 | |
111 | IBM869-routines := ibm869 | |
112 | IBM870-routines := ibm870 | |
113 | IBM871-routines := ibm871 | |
114 | IBM875-routines := ibm875 | |
115 | IBM880-routines := ibm880 | |
116 | IBM891-routines := ibm891 | |
117 | IBM903-routines := ibm903 | |
118 | IBM904-routines := ibm904 | |
119 | IBM905-routines := ibm905 | |
120 | IBM918-routines := ibm918 | |
121 | IBM1004-routines := ibm1004 | |
122 | IBM1026-routines := ibm1026 | |
123 | IBM1047-routines := ibm1047 | |
124 | CP1250-routines := cp1250 | |
125 | CP1251-routines := cp1251 | |
126 | CP1252-routines := cp1252 | |
127 | CP1253-routines := cp1253 | |
128 | CP1254-routines := cp1254 | |
129 | CP1255-routines := cp1255 | |
130 | CP1256-routines := cp1256 | |
131 | CP1257-routines := cp1257 | |
71bedb76 UD |
132 | EUC-KR-routines := euckr |
133 | JOHAB-routines := johab | |
cab24c37 | 134 | UHC-routines := uhc |
8d5c30bd | 135 | BIG5-routines := big5 |
40b4c81d UD |
136 | EUC-JP-routines := eucjp |
137 | EUC-CN-routines := euccn | |
2b474353 | 138 | EUC-TW-routines := euctw |
04be94a8 | 139 | libJIS-routines := jis0201 jis0208 jis0212 |
a44d2393 | 140 | libKSC-routines := ksc5601 |
40b4c81d | 141 | libGB-routines := gb2312 |
2b474353 | 142 | libCNS-routines := cns11643l1 cns11643 |
04be94a8 | 143 | |
e784ad6a UD |
144 | LDFLAGS-EUC-KR.so = -Wl,-rpath,$(gconvdir) |
145 | $(objpfx)EUC-KR.so: $(objpfx)libKSC.so | |
146 | LDFLAGS-JOHAB.so = -Wl,-rpath,$(gconvdir) | |
147 | $(objpfx)JOHAB.so: $(objpfx)libKSC.so | |
cab24c37 UD |
148 | LDFLAGS-UHC.so = -Wl,-rpath,$(gconvdir) |
149 | $(objpfx)UHC.so: $(objpfx)libKSC.so | |
40b4c81d UD |
150 | LDFLAGS-EUC-JP.so = -Wl,-rpath,$(gconvdir) |
151 | $(objpfx)EUC-JP.so: $(objpfx)libJIS.so | |
152 | LDFLAGS-EUC-CN.so = -Wl,-rpath,$(gconvdir) | |
153 | $(objpfx)EUC-CN.so: $(objpfx)libGB.so | |
2b474353 UD |
154 | LDFLAGS-EUC-TW.so = -Wl,-rpath,$(gconvdir) |
155 | $(objpfx)EUC-TW.so: $(objpfx)libCNS.so | |
e784ad6a | 156 | |
cab24c37 UD |
157 | LDFLAGS-libJIS.so = -Wl,-soname,$(@F) |
158 | LDFLAGS-libKSC.so = -Wl,-soname,$(@F) | |
40b4c81d | 159 | LDFLAGS-libGB.so = -Wl,-soname,$(@F) |
2b474353 | 160 | LDFLAGS-libCNS.so = -Wl,-soname,$(@F) |
71bedb76 | 161 | |
b9b49b44 UD |
162 | distribute := 8bit-generic.c 8bit-gap.c gap.pl gaptab.pl gconv-modules \ |
163 | iso8859-1.c iso8859-2.c iso8859-3.c iso8859-4.c iso8859-5.c \ | |
164 | iso8859-6.c iso8859-7.c iso8859-8.c iso8859-9.c iso8859-10.c \ | |
165 | t61.c iso6937.c sjis.c jis0201.h jis0208.h jis0212.h \ | |
166 | koi-8.c koi8-r.c koi8-r.h hp-roman8.c latin-greek.c \ | |
167 | latin-greek.h latin-greek-1.c latin-greek-1.h ebcdic-at-de.c \ | |
168 | ebcdic-at-de-a.c ebcdic-ca-fr.c jis0201.c jis0208.c jis0212.c \ | |
d2374599 | 169 | extra-module.mk euckr.c johab.c uhc.c ksc5601.c ksc5601.h \ |
2b474353 | 170 | iso646.c big5.c eucjp.c gb2312.c gb2312.h euccn.c euctw.c \ |
f1fa8b68 | 171 | cns11643l1.c cns11643l1.h cns11643.h cns11643.c \ |
9b26f5c4 UD |
172 | run-iconv-test.sh $(wildcard testdata/*) ebcdic-dk-no.c \ |
173 | ebcdic-dk-no-a.c ebcdic-es.c ebcdic-es-a.c ebcdic-es-s.c \ | |
174 | ebcdic-fi-se.c ebcdic-fi-se-a.c ebcdic-fr.c ebcdic-is-friss.c \ | |
175 | ebcdic-it.c ebcdic-pt.c ebcdic-uk.c ebcdic-us.c ibm037.c \ | |
176 | ibm038.c ibm256.c ibm273.c ibm274.c ibm275.c ibm277.c \ | |
177 | ibm278.c ibm280.c ibm281.c ibm284.c ibm285.c ibm290.c \ | |
178 | ibm297.c ibm420.c ibm423.c ibm424.c ibm437.c ibm500.c \ | |
179 | ibm850.c ibm851.c ibm852.c ibm855.c ibm857.c ibm860.c \ | |
180 | ibm861.c ibm862.c ibm863.c ibm864.c ibm865.c ibm868.c \ | |
181 | ibm869.c ibm870.c ibm871.c ibm875.c ibm880.c ibm891.c \ | |
182 | ibm903.c ibm904.c ibm905.c ibm918.c ibm1004.c ibm1026.c \ | |
183 | ibm1047.c cp1250.c cp1251.c cp1252.c cp1253.c cp1254.c \ | |
184 | cp1255.c cp1256.c cp1257.c | |
f4017d20 UD |
185 | |
186 | # We build the transformation modules only when we build shared libs. | |
187 | ifeq (yes,$(build-shared)) | |
188 | ||
189 | # This macro is similar to build-shlib but it does not define a soname | |
190 | # and it does not depend on the destination name to start with `lib'. | |
191 | define build-module | |
192 | $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \ | |
193 | -B$(csu-objpfx) $(load-map-file:%=-Wl,--version-script=%) \ | |
194 | $(LDFLAGS.so) $(LDFLAGS-$(@F:%.so=%).so) \ | |
195 | -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \ | |
196 | -Wl,--whole-archive \ | |
197 | $(filter-out $($(@F:.so=)-map) $(+preinit) $(+postinit),$^) \ | |
198 | $(no-whole-archive) $(LDLIBS-$(@F:%.so=%).so) | |
199 | endef | |
200 | ||
201 | # Rule to generate the shared objects. | |
202 | extra-modules-left := $(modules) | |
203 | include extra-module.mk | |
204 | ||
205 | ||
206 | extra-objs += $(modules.so) | |
207 | install-others = $(addprefix $(inst_gconvdir)/, $(modules.so)) \ | |
208 | $(inst_gconvdir)/gconv-modules | |
209 | ||
210 | # If we have the localedata add-on available we can build the conversion | |
211 | # tables for numerous charsets. | |
f4017d20 | 212 | define generate-8bit-table |
9b26f5c4 | 213 | ( echo "static const uint32_t to_ucs4[256] = {"; \ |
04be94a8 UD |
214 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\1] = 0x\2,/p' -e d $^ | sort -u; \ |
215 | echo "};"; \ | |
216 | echo "static const char from_ucs4[] = {"; \ | |
217 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\2] = 0x\1,/p' -e d $^ | sort -u; \ | |
218 | echo "};" ) > $@.new && rm -f $@ && mv $@.new $@ | |
219 | endef | |
220 | ||
221 | sed-generated-headers := iso8859-2.h iso8859-3.h iso8859-4.h iso8859-5.h \ | |
222 | iso8859-6.h iso8859-7.h iso8859-8.h iso8859-9.h \ | |
223 | iso8859-10.h koi-8.h hp-roman8.h ebcdic-at-de.h \ | |
9b26f5c4 UD |
224 | ebcdic-at-de-a.h ebcdic-ca-fr.h ebcdic-dk-no.h \ |
225 | ebcdic-dk-no-a.h ebcdic-es.h ebcdic-es-a.h \ | |
226 | ebcdic-es-s.h ebcdic-fi-se.h ebcdic-fi-se-a.h \ | |
227 | ebcdic-fr.h ebcdic-is-friss.h ebcdic-it.h \ | |
228 | ebcdic-pt.h ebcdic-uk.h ebcdic-us.h ibm037.h \ | |
229 | ibm038.h ibm274.h ibm275.h ibm423.h ibm424.h \ | |
230 | ibm500.h ibm870.h ibm871.h ibm891.h ibm903.h \ | |
231 | ibm904.h ibm905.h ibm1047.h | |
04be94a8 UD |
232 | |
233 | define generate-8bit-gap-table | |
9b26f5c4 | 234 | ( echo "static const uint32_t to_ucs4[256] = {"; \ |
04be94a8 UD |
235 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/ [0x\1] = 0x\2,/p' -e d $^ | sort -u; \ |
236 | echo "};"; \ | |
237 | echo "static struct gap from_idx[] = {"; \ | |
238 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' -e d $^ | sort -u | $(PERL) gap.pl; \ | |
239 | echo " { start: 0xffff, end: 0xffff, idx: 0 }"; \ | |
f4017d20 UD |
240 | echo "};"; \ |
241 | echo "static const char from_ucs4[] = {"; \ | |
04be94a8 | 242 | sed -e '/^[^[:space:]]*[[:space:]]*.x00/d' -e 's/^[^[:space:]]*[[:space:]]*.x\(..\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' -e d $^ | sort -u | $(PERL) gaptab.pl; \ |
f4017d20 UD |
243 | echo "};" ) > $@.new && rm -f $@ && mv $@.new $@ |
244 | endef | |
245 | ||
9b26f5c4 UD |
246 | perl-generated-headers := koi8-r.h latin-greek.h latin-greek-1.h \ |
247 | ibm256.h ibm273.h ibm277.h ibm278.h ibm280.h \ | |
248 | ibm281.h ibm284.h ibm285.h ibm290.h ibm297.h \ | |
249 | ibm420.h ibm437.h ibm850.h ibm851.h ibm852.h \ | |
250 | ibm855.h ibm857.h ibm860.h ibm861.h ibm862.h \ | |
251 | ibm863.h ibm864.h ibm865.h ibm868.h ibm869.h \ | |
252 | ibm875.h ibm880.h ibm918.h ibm1004.h ibm1026.h \ | |
253 | cp1250.h cp1251.h cp1252.h cp1253.h cp1254.h \ | |
254 | cp1255.h cp1256.h cp1257.h | |
04be94a8 UD |
255 | |
256 | # The headers must be generated before the compilation. | |
257 | before-compile = $(sed-generated-headers) $(perl-generated-headers) | |
258 | ||
259 | ||
260 | # Rules to generate the headers. | |
261 | iso8859-2.h: ../localedata/charmaps/ISO-8859-2 Makefile | |
262 | $(generate-8bit-table) | |
263 | iso8859-3.h: ../localedata/charmaps/ISO-8859-3 Makefile | |
264 | $(generate-8bit-table) | |
265 | iso8859-4.h: ../localedata/charmaps/ISO-8859-4 Makefile | |
266 | $(generate-8bit-table) | |
267 | iso8859-5.h: ../localedata/charmaps/ISO-8859-5 Makefile | |
f4017d20 | 268 | $(generate-8bit-table) |
04be94a8 | 269 | iso8859-6.h: ../localedata/charmaps/ISO-8859-6 Makefile |
f4017d20 | 270 | $(generate-8bit-table) |
04be94a8 | 271 | iso8859-7.h: ../localedata/charmaps/ISO-8859-7 Makefile |
f4017d20 | 272 | $(generate-8bit-table) |
04be94a8 | 273 | iso8859-8.h: ../localedata/charmaps/ISO-8859-8 Makefile |
f4017d20 | 274 | $(generate-8bit-table) |
04be94a8 | 275 | iso8859-9.h: ../localedata/charmaps/ISO-8859-9 Makefile |
f4017d20 | 276 | $(generate-8bit-table) |
04be94a8 | 277 | iso8859-10.h: ../localedata/charmaps/ISO-8859-10 Makefile |
f4017d20 | 278 | $(generate-8bit-table) |
04be94a8 UD |
279 | |
280 | koi-8.h: ../localedata/charmaps/KOI-8 Makefile | |
281 | $(generate-8bit-table) | |
282 | ||
283 | hp-roman8.h: ../localedata/charmaps/HP-ROMAN8 Makefile | |
f4017d20 | 284 | $(generate-8bit-table) |
04be94a8 UD |
285 | |
286 | ebcdic-at-de.h: ../localedata/charmaps/EBCDIC-AT-DE Makefile | |
287 | $(generate-8bit-table) | |
288 | ebcdic-at-de-a.h: ../localedata/charmaps/EBCDIC-AT-DE-A Makefile | |
f4017d20 | 289 | $(generate-8bit-table) |
04be94a8 | 290 | ebcdic-ca-fr.h: ../localedata/charmaps/EBCDIC-CA-FR Makefile |
f4017d20 | 291 | $(generate-8bit-table) |
9b26f5c4 UD |
292 | ebcdic-dk-no.h: ../localedata/charmaps/EBCDIC-DK-NO Makefile |
293 | $(generate-8bit-table) | |
294 | ebcdic-dk-no-a.h: ../localedata/charmaps/EBCDIC-DK-NO-A Makefile | |
295 | $(generate-8bit-table) | |
296 | ebcdic-es.h: ../localedata/charmaps/EBCDIC-ES Makefile | |
297 | $(generate-8bit-table) | |
298 | ebcdic-es-a.h: ../localedata/charmaps/EBCDIC-ES-A Makefile | |
299 | $(generate-8bit-table) | |
300 | ebcdic-es-s.h: ../localedata/charmaps/EBCDIC-ES-S Makefile | |
301 | $(generate-8bit-table) | |
302 | ebcdic-fi-se.h: ../localedata/charmaps/EBCDIC-FI-SE Makefile | |
303 | $(generate-8bit-table) | |
304 | ebcdic-fi-se-a.h: ../localedata/charmaps/EBCDIC-FI-SE-A Makefile | |
305 | $(generate-8bit-table) | |
306 | ebcdic-fr.h: ../localedata/charmaps/EBCDIC-FR Makefile | |
307 | $(generate-8bit-table) | |
308 | ebcdic-is-friss.h: ../localedata/charmaps/EBCDIC-IS-FRISS Makefile | |
309 | $(generate-8bit-table) | |
310 | ebcdic-it.h: ../localedata/charmaps/EBCDIC-IT Makefile | |
311 | $(generate-8bit-table) | |
312 | ebcdic-pt.h: ../localedata/charmaps/EBCDIC-PT Makefile | |
313 | $(generate-8bit-table) | |
314 | ebcdic-uk.h: ../localedata/charmaps/EBCDIC-UK Makefile | |
315 | $(generate-8bit-table) | |
316 | ebcdic-us.h: ../localedata/charmaps/EBCDIC-US Makefile | |
317 | $(generate-8bit-table) | |
318 | ibm037.h: ../localedata/charmaps/IBM037 Makefile | |
319 | $(generate-8bit-table) | |
320 | ibm038.h: ../localedata/charmaps/IBM038 Makefile | |
321 | $(generate-8bit-table) | |
322 | ibm274.h: ../localedata/charmaps/IBM274 Makefile | |
323 | $(generate-8bit-table) | |
324 | ibm275.h: ../localedata/charmaps/IBM275 Makefile | |
325 | $(generate-8bit-table) | |
326 | ibm423.h: ../localedata/charmaps/IBM423 Makefile | |
327 | $(generate-8bit-table) | |
328 | ibm500.h: ../localedata/charmaps/IBM500 Makefile | |
329 | $(generate-8bit-table) | |
330 | ibm870.h: ../localedata/charmaps/IBM870 Makefile | |
331 | $(generate-8bit-table) | |
332 | ibm871.h: ../localedata/charmaps/IBM871 Makefile | |
333 | $(generate-8bit-table) | |
334 | ibm891.h: ../localedata/charmaps/IBM891 Makefile | |
335 | $(generate-8bit-table) | |
336 | ibm903.h: ../localedata/charmaps/IBM903 Makefile | |
337 | $(generate-8bit-table) | |
338 | ibm904.h: ../localedata/charmaps/IBM904 Makefile | |
339 | $(generate-8bit-table) | |
340 | ibm905.h: ../localedata/charmaps/IBM905 Makefile | |
341 | $(generate-8bit-table) | |
342 | ibm1047.h: ../localedata/charmaps/IBM1047 Makefile | |
343 | $(generate-8bit-table) | |
f4017d20 | 344 | |
04be94a8 UD |
345 | ifneq ($(PERL),no) |
346 | koi8-r.h: ../localedata/charmaps/KOI8-R Makefile | |
347 | $(generate-8bit-gap-table) | |
348 | latin-greek.h: ../localedata/charmaps/LATIN-GREEK Makefile | |
349 | $(generate-8bit-gap-table) | |
350 | latin-greek-1.h: ../localedata/charmaps/LATIN-GREEK-1 Makefile | |
351 | $(generate-8bit-gap-table) | |
9b26f5c4 UD |
352 | ibm256.h: ../localedata/charmaps/IBM256 Makefile |
353 | $(generate-8bit-gap-table) | |
354 | ibm273.h: ../localedata/charmaps/IBM273 Makefile | |
355 | $(generate-8bit-gap-table) | |
356 | ibm277.h: ../localedata/charmaps/IBM277 Makefile | |
357 | $(generate-8bit-gap-table) | |
358 | ibm278.h: ../localedata/charmaps/IBM278 Makefile | |
359 | $(generate-8bit-gap-table) | |
360 | ibm280.h: ../localedata/charmaps/IBM280 Makefile | |
361 | $(generate-8bit-gap-table) | |
362 | ibm281.h: ../localedata/charmaps/IBM281 Makefile | |
363 | $(generate-8bit-gap-table) | |
364 | ibm284.h: ../localedata/charmaps/IBM284 Makefile | |
365 | $(generate-8bit-gap-table) | |
366 | ibm285.h: ../localedata/charmaps/IBM285 Makefile | |
367 | $(generate-8bit-gap-table) | |
368 | ibm290.h: ../localedata/charmaps/IBM290 Makefile | |
369 | $(generate-8bit-gap-table) | |
370 | ibm297.h: ../localedata/charmaps/IBM297 Makefile | |
371 | $(generate-8bit-gap-table) | |
372 | ibm420.h: ../localedata/charmaps/IBM420 Makefile | |
373 | $(generate-8bit-gap-table) | |
374 | ibm424.h: ../localedata/charmaps/IBM424 Makefile | |
375 | $(generate-8bit-gap-table) | |
376 | ibm437.h: ../localedata/charmaps/IBM437 Makefile | |
377 | $(generate-8bit-gap-table) | |
378 | ibm850.h: ../localedata/charmaps/IBM850 Makefile | |
379 | $(generate-8bit-gap-table) | |
380 | ibm851.h: ../localedata/charmaps/IBM851 Makefile | |
381 | $(generate-8bit-gap-table) | |
382 | ibm852.h: ../localedata/charmaps/IBM852 Makefile | |
383 | $(generate-8bit-gap-table) | |
384 | ibm855.h: ../localedata/charmaps/IBM855 Makefile | |
385 | $(generate-8bit-gap-table) | |
386 | ibm857.h: ../localedata/charmaps/IBM857 Makefile | |
387 | $(generate-8bit-gap-table) | |
388 | ibm860.h: ../localedata/charmaps/IBM860 Makefile | |
389 | $(generate-8bit-gap-table) | |
390 | ibm861.h: ../localedata/charmaps/IBM861 Makefile | |
391 | $(generate-8bit-gap-table) | |
392 | ibm862.h: ../localedata/charmaps/IBM862 Makefile | |
393 | $(generate-8bit-gap-table) | |
394 | ibm863.h: ../localedata/charmaps/IBM863 Makefile | |
395 | $(generate-8bit-gap-table) | |
396 | ibm864.h: ../localedata/charmaps/IBM864 Makefile | |
397 | $(generate-8bit-gap-table) | |
398 | ibm865.h: ../localedata/charmaps/IBM865 Makefile | |
399 | $(generate-8bit-gap-table) | |
400 | ibm868.h: ../localedata/charmaps/IBM868 Makefile | |
401 | $(generate-8bit-gap-table) | |
402 | ibm869.h: ../localedata/charmaps/IBM869 Makefile | |
403 | $(generate-8bit-gap-table) | |
404 | ibm875.h: ../localedata/charmaps/IBM875 Makefile | |
405 | $(generate-8bit-gap-table) | |
406 | ibm880.h: ../localedata/charmaps/IBM880 Makefile | |
407 | $(generate-8bit-gap-table) | |
408 | ibm918.h: ../localedata/charmaps/IBM918 Makefile | |
409 | $(generate-8bit-gap-table) | |
410 | ibm1004.h: ../localedata/charmaps/IBM1004 Makefile | |
411 | $(generate-8bit-gap-table) | |
412 | ibm1026.h: ../localedata/charmaps/IBM1026 Makefile | |
413 | $(generate-8bit-gap-table) | |
414 | cp1250.h: ../localedata/charmaps/CP1250 Makefile | |
415 | $(generate-8bit-gap-table) | |
416 | cp1251.h: ../localedata/charmaps/CP1251 Makefile | |
417 | $(generate-8bit-gap-table) | |
418 | cp1252.h: ../localedata/charmaps/CP1252 Makefile | |
419 | $(generate-8bit-gap-table) | |
420 | cp1253.h: ../localedata/charmaps/CP1253 Makefile | |
421 | $(generate-8bit-gap-table) | |
422 | cp1254.h: ../localedata/charmaps/CP1254 Makefile | |
423 | $(generate-8bit-gap-table) | |
424 | cp1255.h: ../localedata/charmaps/CP1255 Makefile | |
425 | $(generate-8bit-gap-table) | |
426 | cp1256.h: ../localedata/charmaps/CP1256 Makefile | |
427 | $(generate-8bit-gap-table) | |
428 | cp1257.h: ../localedata/charmaps/CP1257 Makefile | |
429 | $(generate-8bit-gap-table) | |
f4017d20 UD |
430 | endif |
431 | ||
04be94a8 UD |
432 | headers: $(sed-generated-headers) $(perl-generated-headers) |
433 | ||
f4017d20 | 434 | |
73237de3 UD |
435 | $(addprefix $(inst_gconvdir)/, $(modules.so)): \ |
436 | $(inst_gconvdir)/%: $(objpfx)% $(+force) | |
f4017d20 | 437 | $(do-install-program) |
73237de3 | 438 | $(inst_gconvdir)/gconv-modules: gconv-modules $(+force) |
f4017d20 UD |
439 | $(do-install) |
440 | endif | |
441 | ||
442 | include ../Rules | |
f1fa8b68 UD |
443 | |
444 | .PHONY: do-iconv-test | |
5aa8ff62 | 445 | tests: do-iconv-test |
f1fa8b68 UD |
446 | |
447 | do-iconv-test: run-iconv-test.sh $(objpfx)gconv-modules \ | |
448 | $(addprefix $(objpfx),$(modules.so)) \ | |
449 | $(common-objdir)/iconv/iconv_prog | |
450 | $(SHELL) -e $< $(common-objdir) > $(objpfx)iconv-test.out | |
451 | ||
452 | $(objpfx)gconv-modules: gconv-modules | |
453 | cp $^ $@ |