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