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