(distribute): Remove generated .h files.
[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 $(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 # The headers must be generated before the compilation.
274 before-compile = $(addprefix $(objpfx),$(sed-generated-headers)) \
275                  $(addprefix $(objpfx),$(perl-generated-headers))
276
277
278 # Rules to generate the headers.
279 $(objpfx)iso8859-2.h: ../localedata/charmaps/ISO-8859-2 Makefile
280         $(generate-8bit-table)
281 $(objpfx)iso8859-3.h: ../localedata/charmaps/ISO-8859-3 Makefile
282         $(generate-8bit-table)
283 $(objpfx)iso8859-4.h: ../localedata/charmaps/ISO-8859-4 Makefile
284         $(generate-8bit-table)
285 $(objpfx)iso8859-6.h: ../localedata/charmaps/ISO-8859-6 Makefile
286         $(generate-8bit-table)
287 $(objpfx)iso8859-9.h: ../localedata/charmaps/ISO-8859-9 Makefile
288         $(generate-8bit-table)
289
290 $(objpfx)koi-8.h: ../localedata/charmaps/KOI-8 Makefile
291         $(generate-8bit-table)
292
293 $(objpfx)hp-roman8.h: ../localedata/charmaps/HP-ROMAN8 Makefile
294         $(generate-8bit-table)
295
296 $(objpfx)ebcdic-at-de.h: ../localedata/charmaps/EBCDIC-AT-DE Makefile
297         $(generate-8bit-table)
298 $(objpfx)ebcdic-at-de-a.h: ../localedata/charmaps/EBCDIC-AT-DE-A Makefile
299         $(generate-8bit-table)
300 $(objpfx)ebcdic-ca-fr.h: ../localedata/charmaps/EBCDIC-CA-FR Makefile
301         $(generate-8bit-table)
302 $(objpfx)ebcdic-dk-no.h: ../localedata/charmaps/EBCDIC-DK-NO Makefile
303         $(generate-8bit-table)
304 $(objpfx)ebcdic-dk-no-a.h: ../localedata/charmaps/EBCDIC-DK-NO-A Makefile
305         $(generate-8bit-table)
306 $(objpfx)ebcdic-es.h: ../localedata/charmaps/EBCDIC-ES Makefile
307         $(generate-8bit-table)
308 $(objpfx)ebcdic-es-a.h: ../localedata/charmaps/EBCDIC-ES-A Makefile
309         $(generate-8bit-table)
310 $(objpfx)ebcdic-es-s.h: ../localedata/charmaps/EBCDIC-ES-S Makefile
311         $(generate-8bit-table)
312 $(objpfx)ebcdic-fi-se.h: ../localedata/charmaps/EBCDIC-FI-SE Makefile
313         $(generate-8bit-table)
314 $(objpfx)ebcdic-fi-se-a.h: ../localedata/charmaps/EBCDIC-FI-SE-A Makefile
315         $(generate-8bit-table)
316 $(objpfx)ebcdic-fr.h: ../localedata/charmaps/EBCDIC-FR Makefile
317         $(generate-8bit-table)
318 $(objpfx)ebcdic-is-friss.h: ../localedata/charmaps/EBCDIC-IS-FRISS Makefile
319         $(generate-8bit-table)
320 $(objpfx)ebcdic-it.h: ../localedata/charmaps/EBCDIC-IT Makefile
321         $(generate-8bit-table)
322 $(objpfx)ebcdic-pt.h: ../localedata/charmaps/EBCDIC-PT Makefile
323         $(generate-8bit-table)
324 $(objpfx)ebcdic-uk.h: ../localedata/charmaps/EBCDIC-UK Makefile
325         $(generate-8bit-table)
326 $(objpfx)ebcdic-us.h: ../localedata/charmaps/EBCDIC-US Makefile
327         $(generate-8bit-table)
328 $(objpfx)ibm037.h: ../localedata/charmaps/IBM037 Makefile
329         $(generate-8bit-table)
330 $(objpfx)ibm038.h: ../localedata/charmaps/IBM038 Makefile
331         $(generate-8bit-table)
332 $(objpfx)ibm274.h: ../localedata/charmaps/IBM274 Makefile
333         $(generate-8bit-table)
334 $(objpfx)ibm275.h: ../localedata/charmaps/IBM275 Makefile
335         $(generate-8bit-table)
336 $(objpfx)ibm423.h: ../localedata/charmaps/IBM423 Makefile
337         $(generate-8bit-table)
338 $(objpfx)ibm500.h: ../localedata/charmaps/IBM500 Makefile
339         $(generate-8bit-table)
340 $(objpfx)ibm870.h: ../localedata/charmaps/IBM870 Makefile
341         $(generate-8bit-table)
342 $(objpfx)ibm871.h: ../localedata/charmaps/IBM871 Makefile
343         $(generate-8bit-table)
344 $(objpfx)ibm891.h: ../localedata/charmaps/IBM891 Makefile
345         $(generate-8bit-table)
346 $(objpfx)ibm903.h: ../localedata/charmaps/IBM903 Makefile
347         $(generate-8bit-table)
348 $(objpfx)ibm904.h: ../localedata/charmaps/IBM904 Makefile
349         $(generate-8bit-table)
350 $(objpfx)ibm905.h: ../localedata/charmaps/IBM905 Makefile
351         $(generate-8bit-table)
352 $(objpfx)ibm1047.h: ../localedata/charmaps/IBM1047 Makefile
353         $(generate-8bit-table)
354
355 $(objpfx)iso8859-7jp.h: ../localedata/charmaps/ISO-8859-7 Makefile
356         $(make-target-directory)
357         ( echo "static const uint32_t iso88597_to_ucs4[96] = {"; \
358           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; \
359           echo "};"; \
360           echo "static const struct gap from_idx[] = {"; \
361           sed -e 's/^[^[:space:]]*[[:space:]]*.x\([A-F].\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' -e d $^ | sort -u | $(PERL) gap.pl; \
362           echo "  { start: 0xffff, end: 0xffff, idx:     0 }"; \
363           echo "};"; \
364           echo "static const char iso88597_from_ucs4[] = {"; \
365           sed -e 's/^[^[:space:]]*[[:space:]]*.x\([A-F].\)[[:space:]]*<U\(....\)>.*/0x\2 0x\1/p' -e d $^ | sort -u | $(PERL) gaptab.pl; \
366           echo "};" ) > $@.new && rm -f $@ && mv $@.new $@
367
368
369 ifneq ($(PERL),no)
370 $(objpfx)iso8859-5.h: ../localedata/charmaps/ISO-8859-5 Makefile
371         $(generate-8bit-gap-table)
372 $(objpfx)iso8859-7.h: ../localedata/charmaps/ISO-8859-7 Makefile
373         $(generate-8bit-gap-table)
374 $(objpfx)iso8859-8.h: ../localedata/charmaps/ISO-8859-8 Makefile
375         $(generate-8bit-gap-table)
376 $(objpfx)iso8859-10.h: ../localedata/charmaps/ISO-8859-10 Makefile
377         $(generate-8bit-gap-table)
378
379 $(objpfx)koi8-r.h: ../localedata/charmaps/KOI8-R Makefile
380         $(generate-8bit-gap-table)
381 $(objpfx)latin-greek.h: ../localedata/charmaps/LATIN-GREEK Makefile
382         $(generate-8bit-gap-table)
383 $(objpfx)latin-greek-1.h: ../localedata/charmaps/LATIN-GREEK-1 Makefile
384         $(generate-8bit-gap-table)
385 $(objpfx)ibm256.h: ../localedata/charmaps/IBM256 Makefile
386         $(generate-8bit-gap-table)
387 $(objpfx)ibm273.h: ../localedata/charmaps/IBM273 Makefile
388         $(generate-8bit-gap-table)
389 $(objpfx)ibm277.h: ../localedata/charmaps/IBM277 Makefile
390         $(generate-8bit-gap-table)
391 $(objpfx)ibm278.h: ../localedata/charmaps/IBM278 Makefile
392         $(generate-8bit-gap-table)
393 $(objpfx)ibm280.h: ../localedata/charmaps/IBM280 Makefile
394         $(generate-8bit-gap-table)
395 $(objpfx)ibm281.h: ../localedata/charmaps/IBM281 Makefile
396         $(generate-8bit-gap-table)
397 $(objpfx)ibm284.h: ../localedata/charmaps/IBM284 Makefile
398         $(generate-8bit-gap-table)
399 $(objpfx)ibm285.h: ../localedata/charmaps/IBM285 Makefile
400         $(generate-8bit-gap-table)
401 $(objpfx)ibm290.h: ../localedata/charmaps/IBM290 Makefile
402         $(generate-8bit-gap-table)
403 $(objpfx)ibm297.h: ../localedata/charmaps/IBM297 Makefile
404         $(generate-8bit-gap-table)
405 $(objpfx)ibm420.h: ../localedata/charmaps/IBM420 Makefile
406         $(generate-8bit-gap-table)
407 $(objpfx)ibm424.h: ../localedata/charmaps/IBM424 Makefile
408         $(generate-8bit-gap-table)
409 $(objpfx)ibm437.h: ../localedata/charmaps/IBM437 Makefile
410         $(generate-8bit-gap-table)
411 $(objpfx)ibm850.h: ../localedata/charmaps/IBM850 Makefile
412         $(generate-8bit-gap-table)
413 $(objpfx)ibm851.h: ../localedata/charmaps/IBM851 Makefile
414         $(generate-8bit-gap-table)
415 $(objpfx)ibm852.h: ../localedata/charmaps/IBM852 Makefile
416         $(generate-8bit-gap-table)
417 $(objpfx)ibm855.h: ../localedata/charmaps/IBM855 Makefile
418         $(generate-8bit-gap-table)
419 $(objpfx)ibm857.h: ../localedata/charmaps/IBM857 Makefile
420         $(generate-8bit-gap-table)
421 $(objpfx)ibm860.h: ../localedata/charmaps/IBM860 Makefile
422         $(generate-8bit-gap-table)
423 $(objpfx)ibm861.h: ../localedata/charmaps/IBM861 Makefile
424         $(generate-8bit-gap-table)
425 $(objpfx)ibm862.h: ../localedata/charmaps/IBM862 Makefile
426         $(generate-8bit-gap-table)
427 $(objpfx)ibm863.h: ../localedata/charmaps/IBM863 Makefile
428         $(generate-8bit-gap-table)
429 $(objpfx)ibm864.h: ../localedata/charmaps/IBM864 Makefile
430         $(generate-8bit-gap-table)
431 $(objpfx)ibm865.h: ../localedata/charmaps/IBM865 Makefile
432         $(generate-8bit-gap-table)
433 $(objpfx)ibm868.h: ../localedata/charmaps/IBM868 Makefile
434         $(generate-8bit-gap-table)
435 $(objpfx)ibm869.h: ../localedata/charmaps/IBM869 Makefile
436         $(generate-8bit-gap-table)
437 $(objpfx)ibm875.h: ../localedata/charmaps/IBM875 Makefile
438         $(generate-8bit-gap-table)
439 $(objpfx)ibm880.h: ../localedata/charmaps/IBM880 Makefile
440         $(generate-8bit-gap-table)
441 $(objpfx)ibm918.h: ../localedata/charmaps/IBM918 Makefile
442         $(generate-8bit-gap-table)
443 $(objpfx)ibm1004.h: ../localedata/charmaps/IBM1004 Makefile
444         $(generate-8bit-gap-table)
445 $(objpfx)ibm1026.h: ../localedata/charmaps/IBM1026 Makefile
446         $(generate-8bit-gap-table)
447 $(objpfx)cp1250.h: ../localedata/charmaps/CP1250 Makefile
448         $(generate-8bit-gap-table)
449 $(objpfx)cp1251.h: ../localedata/charmaps/CP1251 Makefile
450         $(generate-8bit-gap-table)
451 $(objpfx)cp1252.h: ../localedata/charmaps/CP1252 Makefile
452         $(generate-8bit-gap-table)
453 $(objpfx)cp1253.h: ../localedata/charmaps/CP1253 Makefile
454         $(generate-8bit-gap-table)
455 $(objpfx)cp1254.h: ../localedata/charmaps/CP1254 Makefile
456         $(generate-8bit-gap-table)
457 $(objpfx)cp1255.h: ../localedata/charmaps/CP1255 Makefile
458         $(generate-8bit-gap-table)
459 $(objpfx)cp1256.h: ../localedata/charmaps/CP1256 Makefile
460         $(generate-8bit-gap-table)
461 $(objpfx)cp1257.h: ../localedata/charmaps/CP1257 Makefile
462         $(generate-8bit-gap-table)
463 endif
464
465 headers: $(addprefix $(objpfx),$(sed-generated-headers)) \
466          $(addprefix $(objpfx),$(perl-generated-headers))
467
468
469 $(addprefix $(inst_gconvdir)/, $(modules.so)): \
470     $(inst_gconvdir)/%: $(objpfx)% $(+force)
471         $(do-install-program)
472 $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
473         $(do-install)
474 endif
475
476 include ../Rules
477
478 .PHONY: do-iconv-test
479 tests: do-iconv-test
480
481 do-iconv-test: run-iconv-test.sh $(objpfx)gconv-modules \
482                $(addprefix $(objpfx),$(modules.so)) \
483                $(common-objdir)/iconv/iconv_prog
484         $(SHELL) -e $< $(common-objdir) > $(objpfx)iconv-test.out
485
486 $(objpfx)gconv-modules: gconv-modules
487         cp $^ $@