]> git.ipfire.org Git - thirdparty/glibc.git/blame - iconvdata/Makefile
Update.
[thirdparty/glibc.git] / iconvdata / Makefile
CommitLineData
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#
22subdir := iconvdata
23
24# Names of all the shared objects which implement the transformations.
9b26f5c4
UD
25modules := 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
40modules.so := $(addsuffix .so, $(modules))
41
42
04be94a8
UD
43include ../Makeconfig
44
f4017d20
UD
45ISO8859-1-routines := iso8859-1
46ISO8859-2-routines := iso8859-2
47ISO8859-3-routines := iso8859-3
48ISO8859-4-routines := iso8859-4
49ISO8859-5-routines := iso8859-5
50ISO8859-6-routines := iso8859-6
51ISO8859-7-routines := iso8859-7
52ISO8859-8-routines := iso8859-8
53ISO8859-9-routines := iso8859-9
54ISO8859-10-routines := iso8859-10
d2374599 55ISO646-routines := iso646
f4017d20
UD
56T.61-routines := t61
57ISO_6937-routines := iso6937
04be94a8
UD
58SJIS-routines := sjis
59KOI-8-routines := koi-8
60KOI8-R-routines := koi8-r
61LATIN-GREEK-routines := latin-greek
62LATIN-GREEK-1-routines := latin-greek-1
63HP-ROMAN8-routines := hp-roman8
64EBCDIC-AT-DE-routines := ebcdic-at-de
65EBCDIC-AT-DE-A-routines := ebcdic-at-de-a
66EBCDIC-CA-FR-routines := ebcdic-ca-fr
9b26f5c4
UD
67EBCDIC-DK-NO-routines := ebcdic-dk-no
68EBCDIC-DK-NO-A_routines := ebcdic-dk-no-a
69EBCDIC-ES-routines := ebcdic-es
70EBCDIC-ES-A-routines := ebcdic-es-a
71EBCDIC-ES-S-routines := ebcdic-es-s
72EBCDIC-FI-SE-routines := ebcdic-fi-se
73EBCDIC-FI-SE-A-routines := ebcdic-fi-se-a
74EBCDIC-FR-routines := ebcdic-fr
75EBCDIC-IS-FRISS-routines := ebcdic-is-friss
76EBCDIC-IT-routines := ebcdic-it
77EBCDIC-PT-routines := ebcdic-pt
78EBCDIC-UK-routines := ebcdic-uk
79EBCDIC-US-routines := ebcdic-us
80IBM037-routines := ibm037
81IBM038-routines := ibm038
82IBM256-routines := ibm256
83IBM273-routines := ibm273
84IBM274-routines := ibm274
85IBM275-routines := ibm275
86IBM277-routines := ibm277
87IBM278-routines := ibm278
88IBM280-routines := ibm280
89IBM281-routines := ibm281
90IBM284-routines := ibm284
91IBM285-routines := ibm285
92IBM290-routines := ibm290
93IBM297-routines := ibm297
94IBM420-routines := ibm420
95IBM423-routines := ibm423
96IBM424-routines := ibm424
97IBM437-routines := ibm437
98IBM500-routines := ibm500
99IBM850-routines := ibm850
100IBM851-routines := ibm851
101IBM852-routines := ibm852
102IBM855-routines := ibm855
103IBM857-routines := ibm857
104IBM860-routines := ibm860
105IBM861-routines := ibm861
106IBM862-routines := ibm862
107IBM863-routines := ibm863
108IBM864-routines := ibm864
109IBM865-routines := ibm865
110IBM868-routines := ibm868
111IBM869-routines := ibm869
112IBM870-routines := ibm870
113IBM871-routines := ibm871
114IBM875-routines := ibm875
115IBM880-routines := ibm880
116IBM891-routines := ibm891
117IBM903-routines := ibm903
118IBM904-routines := ibm904
119IBM905-routines := ibm905
120IBM918-routines := ibm918
121IBM1004-routines := ibm1004
122IBM1026-routines := ibm1026
123IBM1047-routines := ibm1047
124CP1250-routines := cp1250
125CP1251-routines := cp1251
126CP1252-routines := cp1252
127CP1253-routines := cp1253
128CP1254-routines := cp1254
129CP1255-routines := cp1255
130CP1256-routines := cp1256
131CP1257-routines := cp1257
71bedb76
UD
132EUC-KR-routines := euckr
133JOHAB-routines := johab
cab24c37 134UHC-routines := uhc
8d5c30bd 135BIG5-routines := big5
40b4c81d
UD
136EUC-JP-routines := eucjp
137EUC-CN-routines := euccn
2b474353 138EUC-TW-routines := euctw
04be94a8 139libJIS-routines := jis0201 jis0208 jis0212
a44d2393 140libKSC-routines := ksc5601
40b4c81d 141libGB-routines := gb2312
2b474353 142libCNS-routines := cns11643l1 cns11643
04be94a8 143
e784ad6a
UD
144LDFLAGS-EUC-KR.so = -Wl,-rpath,$(gconvdir)
145$(objpfx)EUC-KR.so: $(objpfx)libKSC.so
146LDFLAGS-JOHAB.so = -Wl,-rpath,$(gconvdir)
147$(objpfx)JOHAB.so: $(objpfx)libKSC.so
cab24c37
UD
148LDFLAGS-UHC.so = -Wl,-rpath,$(gconvdir)
149$(objpfx)UHC.so: $(objpfx)libKSC.so
40b4c81d
UD
150LDFLAGS-EUC-JP.so = -Wl,-rpath,$(gconvdir)
151$(objpfx)EUC-JP.so: $(objpfx)libJIS.so
152LDFLAGS-EUC-CN.so = -Wl,-rpath,$(gconvdir)
153$(objpfx)EUC-CN.so: $(objpfx)libGB.so
2b474353
UD
154LDFLAGS-EUC-TW.so = -Wl,-rpath,$(gconvdir)
155$(objpfx)EUC-TW.so: $(objpfx)libCNS.so
e784ad6a 156
cab24c37
UD
157LDFLAGS-libJIS.so = -Wl,-soname,$(@F)
158LDFLAGS-libKSC.so = -Wl,-soname,$(@F)
40b4c81d 159LDFLAGS-libGB.so = -Wl,-soname,$(@F)
2b474353 160LDFLAGS-libCNS.so = -Wl,-soname,$(@F)
71bedb76 161
b9b49b44
UD
162distribute := 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.
187ifeq (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'.
191define 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)
199endef
200
201# Rule to generate the shared objects.
202extra-modules-left := $(modules)
203include extra-module.mk
204
205
206extra-objs += $(modules.so)
207install-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 212define 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 $@
219endef
220
221sed-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
233define 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 $@
244endef
245
9b26f5c4
UD
246perl-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.
257before-compile = $(sed-generated-headers) $(perl-generated-headers)
258
259
260# Rules to generate the headers.
261iso8859-2.h: ../localedata/charmaps/ISO-8859-2 Makefile
262 $(generate-8bit-table)
263iso8859-3.h: ../localedata/charmaps/ISO-8859-3 Makefile
264 $(generate-8bit-table)
265iso8859-4.h: ../localedata/charmaps/ISO-8859-4 Makefile
266 $(generate-8bit-table)
267iso8859-5.h: ../localedata/charmaps/ISO-8859-5 Makefile
f4017d20 268 $(generate-8bit-table)
04be94a8 269iso8859-6.h: ../localedata/charmaps/ISO-8859-6 Makefile
f4017d20 270 $(generate-8bit-table)
04be94a8 271iso8859-7.h: ../localedata/charmaps/ISO-8859-7 Makefile
f4017d20 272 $(generate-8bit-table)
04be94a8 273iso8859-8.h: ../localedata/charmaps/ISO-8859-8 Makefile
f4017d20 274 $(generate-8bit-table)
04be94a8 275iso8859-9.h: ../localedata/charmaps/ISO-8859-9 Makefile
f4017d20 276 $(generate-8bit-table)
04be94a8 277iso8859-10.h: ../localedata/charmaps/ISO-8859-10 Makefile
f4017d20 278 $(generate-8bit-table)
04be94a8
UD
279
280koi-8.h: ../localedata/charmaps/KOI-8 Makefile
281 $(generate-8bit-table)
282
283hp-roman8.h: ../localedata/charmaps/HP-ROMAN8 Makefile
f4017d20 284 $(generate-8bit-table)
04be94a8
UD
285
286ebcdic-at-de.h: ../localedata/charmaps/EBCDIC-AT-DE Makefile
287 $(generate-8bit-table)
288ebcdic-at-de-a.h: ../localedata/charmaps/EBCDIC-AT-DE-A Makefile
f4017d20 289 $(generate-8bit-table)
04be94a8 290ebcdic-ca-fr.h: ../localedata/charmaps/EBCDIC-CA-FR Makefile
f4017d20 291 $(generate-8bit-table)
9b26f5c4
UD
292ebcdic-dk-no.h: ../localedata/charmaps/EBCDIC-DK-NO Makefile
293 $(generate-8bit-table)
294ebcdic-dk-no-a.h: ../localedata/charmaps/EBCDIC-DK-NO-A Makefile
295 $(generate-8bit-table)
296ebcdic-es.h: ../localedata/charmaps/EBCDIC-ES Makefile
297 $(generate-8bit-table)
298ebcdic-es-a.h: ../localedata/charmaps/EBCDIC-ES-A Makefile
299 $(generate-8bit-table)
300ebcdic-es-s.h: ../localedata/charmaps/EBCDIC-ES-S Makefile
301 $(generate-8bit-table)
302ebcdic-fi-se.h: ../localedata/charmaps/EBCDIC-FI-SE Makefile
303 $(generate-8bit-table)
304ebcdic-fi-se-a.h: ../localedata/charmaps/EBCDIC-FI-SE-A Makefile
305 $(generate-8bit-table)
306ebcdic-fr.h: ../localedata/charmaps/EBCDIC-FR Makefile
307 $(generate-8bit-table)
308ebcdic-is-friss.h: ../localedata/charmaps/EBCDIC-IS-FRISS Makefile
309 $(generate-8bit-table)
310ebcdic-it.h: ../localedata/charmaps/EBCDIC-IT Makefile
311 $(generate-8bit-table)
312ebcdic-pt.h: ../localedata/charmaps/EBCDIC-PT Makefile
313 $(generate-8bit-table)
314ebcdic-uk.h: ../localedata/charmaps/EBCDIC-UK Makefile
315 $(generate-8bit-table)
316ebcdic-us.h: ../localedata/charmaps/EBCDIC-US Makefile
317 $(generate-8bit-table)
318ibm037.h: ../localedata/charmaps/IBM037 Makefile
319 $(generate-8bit-table)
320ibm038.h: ../localedata/charmaps/IBM038 Makefile
321 $(generate-8bit-table)
322ibm274.h: ../localedata/charmaps/IBM274 Makefile
323 $(generate-8bit-table)
324ibm275.h: ../localedata/charmaps/IBM275 Makefile
325 $(generate-8bit-table)
326ibm423.h: ../localedata/charmaps/IBM423 Makefile
327 $(generate-8bit-table)
328ibm500.h: ../localedata/charmaps/IBM500 Makefile
329 $(generate-8bit-table)
330ibm870.h: ../localedata/charmaps/IBM870 Makefile
331 $(generate-8bit-table)
332ibm871.h: ../localedata/charmaps/IBM871 Makefile
333 $(generate-8bit-table)
334ibm891.h: ../localedata/charmaps/IBM891 Makefile
335 $(generate-8bit-table)
336ibm903.h: ../localedata/charmaps/IBM903 Makefile
337 $(generate-8bit-table)
338ibm904.h: ../localedata/charmaps/IBM904 Makefile
339 $(generate-8bit-table)
340ibm905.h: ../localedata/charmaps/IBM905 Makefile
341 $(generate-8bit-table)
342ibm1047.h: ../localedata/charmaps/IBM1047 Makefile
343 $(generate-8bit-table)
f4017d20 344
04be94a8
UD
345ifneq ($(PERL),no)
346koi8-r.h: ../localedata/charmaps/KOI8-R Makefile
347 $(generate-8bit-gap-table)
348latin-greek.h: ../localedata/charmaps/LATIN-GREEK Makefile
349 $(generate-8bit-gap-table)
350latin-greek-1.h: ../localedata/charmaps/LATIN-GREEK-1 Makefile
351 $(generate-8bit-gap-table)
9b26f5c4
UD
352ibm256.h: ../localedata/charmaps/IBM256 Makefile
353 $(generate-8bit-gap-table)
354ibm273.h: ../localedata/charmaps/IBM273 Makefile
355 $(generate-8bit-gap-table)
356ibm277.h: ../localedata/charmaps/IBM277 Makefile
357 $(generate-8bit-gap-table)
358ibm278.h: ../localedata/charmaps/IBM278 Makefile
359 $(generate-8bit-gap-table)
360ibm280.h: ../localedata/charmaps/IBM280 Makefile
361 $(generate-8bit-gap-table)
362ibm281.h: ../localedata/charmaps/IBM281 Makefile
363 $(generate-8bit-gap-table)
364ibm284.h: ../localedata/charmaps/IBM284 Makefile
365 $(generate-8bit-gap-table)
366ibm285.h: ../localedata/charmaps/IBM285 Makefile
367 $(generate-8bit-gap-table)
368ibm290.h: ../localedata/charmaps/IBM290 Makefile
369 $(generate-8bit-gap-table)
370ibm297.h: ../localedata/charmaps/IBM297 Makefile
371 $(generate-8bit-gap-table)
372ibm420.h: ../localedata/charmaps/IBM420 Makefile
373 $(generate-8bit-gap-table)
374ibm424.h: ../localedata/charmaps/IBM424 Makefile
375 $(generate-8bit-gap-table)
376ibm437.h: ../localedata/charmaps/IBM437 Makefile
377 $(generate-8bit-gap-table)
378ibm850.h: ../localedata/charmaps/IBM850 Makefile
379 $(generate-8bit-gap-table)
380ibm851.h: ../localedata/charmaps/IBM851 Makefile
381 $(generate-8bit-gap-table)
382ibm852.h: ../localedata/charmaps/IBM852 Makefile
383 $(generate-8bit-gap-table)
384ibm855.h: ../localedata/charmaps/IBM855 Makefile
385 $(generate-8bit-gap-table)
386ibm857.h: ../localedata/charmaps/IBM857 Makefile
387 $(generate-8bit-gap-table)
388ibm860.h: ../localedata/charmaps/IBM860 Makefile
389 $(generate-8bit-gap-table)
390ibm861.h: ../localedata/charmaps/IBM861 Makefile
391 $(generate-8bit-gap-table)
392ibm862.h: ../localedata/charmaps/IBM862 Makefile
393 $(generate-8bit-gap-table)
394ibm863.h: ../localedata/charmaps/IBM863 Makefile
395 $(generate-8bit-gap-table)
396ibm864.h: ../localedata/charmaps/IBM864 Makefile
397 $(generate-8bit-gap-table)
398ibm865.h: ../localedata/charmaps/IBM865 Makefile
399 $(generate-8bit-gap-table)
400ibm868.h: ../localedata/charmaps/IBM868 Makefile
401 $(generate-8bit-gap-table)
402ibm869.h: ../localedata/charmaps/IBM869 Makefile
403 $(generate-8bit-gap-table)
404ibm875.h: ../localedata/charmaps/IBM875 Makefile
405 $(generate-8bit-gap-table)
406ibm880.h: ../localedata/charmaps/IBM880 Makefile
407 $(generate-8bit-gap-table)
408ibm918.h: ../localedata/charmaps/IBM918 Makefile
409 $(generate-8bit-gap-table)
410ibm1004.h: ../localedata/charmaps/IBM1004 Makefile
411 $(generate-8bit-gap-table)
412ibm1026.h: ../localedata/charmaps/IBM1026 Makefile
413 $(generate-8bit-gap-table)
414cp1250.h: ../localedata/charmaps/CP1250 Makefile
415 $(generate-8bit-gap-table)
416cp1251.h: ../localedata/charmaps/CP1251 Makefile
417 $(generate-8bit-gap-table)
418cp1252.h: ../localedata/charmaps/CP1252 Makefile
419 $(generate-8bit-gap-table)
420cp1253.h: ../localedata/charmaps/CP1253 Makefile
421 $(generate-8bit-gap-table)
422cp1254.h: ../localedata/charmaps/CP1254 Makefile
423 $(generate-8bit-gap-table)
424cp1255.h: ../localedata/charmaps/CP1255 Makefile
425 $(generate-8bit-gap-table)
426cp1256.h: ../localedata/charmaps/CP1256 Makefile
427 $(generate-8bit-gap-table)
428cp1257.h: ../localedata/charmaps/CP1257 Makefile
429 $(generate-8bit-gap-table)
f4017d20
UD
430endif
431
04be94a8
UD
432headers: $(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)
440endif
441
442include ../Rules
f1fa8b68
UD
443
444.PHONY: do-iconv-test
5aa8ff62 445tests: do-iconv-test
f1fa8b68
UD
446
447do-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 $^ $@