1EXTRA_DIST=Makefile.bcc32 mk_sb_tbl.awk
2noinst_LTLIBRARIES=libmbfl_filters.la
3INCLUDES=-I../mbfl
4PERL=perl
5libmbfl_filters_la_LDFLAGS=-version-info $(SHLIB_VERSION)
6libmbfl_filters_la_SOURCES=mbfilter_cp936.c \
7	mbfilter_hz.c \
8	mbfilter_euc_tw.c \
9	mbfilter_big5.c \
10	mbfilter_euc_jp.c \
11	mbfilter_jis.c \
12	mbfilter_iso8859_1.c \
13	mbfilter_iso8859_2.c \
14	mbfilter_cp1254.c \
15	mbfilter_cp1252.c \
16	mbfilter_cp1251.c \
17	mbfilter_ascii.c \
18	mbfilter_iso8859_3.c \
19	mbfilter_iso8859_4.c \
20	mbfilter_iso8859_5.c \
21	mbfilter_iso8859_6.c \
22	mbfilter_iso8859_7.c \
23	mbfilter_iso8859_8.c \
24	mbfilter_iso8859_9.c \
25	mbfilter_iso8859_10.c \
26	mbfilter_iso8859_13.c \
27	mbfilter_iso8859_14.c \
28	mbfilter_iso8859_15.c \
29	mbfilter_iso8859_16.c \
30	mbfilter_htmlent.c \
31	mbfilter_byte2.c \
32	mbfilter_byte4.c \
33	mbfilter_uuencode.c \
34	mbfilter_base64.c \
35	mbfilter_sjis.c \
36	mbfilter_sjis_2004.c \
37	mbfilter_sjis_open.c \
38	mbfilter_sjis_mobile.c \
39	mbfilter_sjis_mac.c \
40	mbfilter_7bit.c \
41	mbfilter_qprint.c \
42	mbfilter_ucs4.c \
43	mbfilter_ucs2.c \
44	mbfilter_utf32.c \
45	mbfilter_utf16.c \
46	mbfilter_utf8.c \
47	mbfilter_utf8_mobile.c \
48	mbfilter_utf7.c \
49	mbfilter_utf7imap.c \
50	mbfilter_euc_jp_win.c \
51	mbfilter_euc_jp_2004.c \
52	mbfilter_cp932.c \
53	mbfilter_cp51932.c \
54	mbfilter_euc_cn.c \
55	mbfilter_euc_kr.c \
56	mbfilter_uhc.c \
57	mbfilter_iso2022_jp_ms.c \
58	mbfilter_iso2022jp_2004.c \
59	mbfilter_iso2022jp_mobile.c \
60	mbfilter_gb18030.c \
61	mbfilter_iso2022_kr.c \
62	mbfilter_cp866.c \
63	mbfilter_koi8r.c \
64	mbfilter_koi8u.c \
65	mbfilter_armscii8.c \
66	mbfilter_cp850.c \
67	mbfilter_cp5022x.c \
68	mbfilter_tl_jisx0201_jisx0208.c \
69	html_entities.c \
70	cp932_table.h \
71	html_entities.h \
72	mbfilter_7bit.h \
73	mbfilter_ascii.h \
74	mbfilter_base64.h \
75	mbfilter_big5.h \
76	mbfilter_byte2.h \
77	mbfilter_byte4.h \
78	mbfilter_cp1251.h \
79	mbfilter_cp1252.h \
80	mbfilter_cp1254.h \
81	mbfilter_cp866.h \
82	mbfilter_cp932.h \
83	mbfilter_cp936.h \
84	mbfilter_gb18030.h \
85	mbfilter_euc_cn.h \
86	mbfilter_euc_jp.h \
87	mbfilter_euc_jp_2004.h \
88	mbfilter_euc_jp_win.h \
89	mbfilter_euc_kr.h \
90	mbfilter_euc_tw.h \
91	mbfilter_htmlent.h \
92	mbfilter_hz.h \
93	mbfilter_iso2022_jp_ms.h \
94	mbfilter_iso2022jp_2004.h \
95	mbfilter_iso2022jp_mobile.h \
96	mbfilter_iso2022_kr.h \
97	mbfilter_iso8859_1.h \
98	mbfilter_iso8859_10.h \
99	mbfilter_iso8859_13.h \
100	mbfilter_iso8859_14.h \
101	mbfilter_iso8859_15.h \
102	mbfilter_iso8859_16.h \
103	mbfilter_iso8859_2.h \
104	mbfilter_iso8859_3.h \
105	mbfilter_iso8859_4.h \
106	mbfilter_iso8859_5.h \
107	mbfilter_iso8859_6.h \
108	mbfilter_iso8859_7.h \
109	mbfilter_iso8859_8.h \
110	mbfilter_iso8859_9.h \
111	mbfilter_jis.h \
112	mbfilter_koi8r.h \
113	mbfilter_koi8u.h \
114	mbfilter_armscii8.h \
115	mbfilter_qprint.h \
116	mbfilter_sjis.h \
117	mbfilter_sjis_open.h \
118	mbfilter_sjis_mobile.h \
119	mbfilter_sjis_mac.h \
120	mbfilter_ucs2.h \
121	mbfilter_ucs4.h \
122	mbfilter_uhc.h \
123	mbfilter_utf16.h \
124	mbfilter_utf32.h \
125	mbfilter_utf7.h \
126	mbfilter_utf7imap.h \
127	mbfilter_utf8.h \
128	mbfilter_utf8_mobile.h \
129	mbfilter_uuencode.h \
130	mbfilter_cp5022x.h \
131	mbfilter_cp51932.h \
132	mbfilter_cp850.h \
133	mbfilter_tl_jisx0201_jisx0208.h \
134	unicode_prop.h \
135	unicode_table_big5.h \
136	unicode_table_cns11643.h \
137	unicode_table_cp1251.h \
138	unicode_table_cp1252.h \
139	unicode_table_cp1254.h \
140	unicode_table_cp866.h \
141	unicode_table_cp932_ext.h \
142	unicode_table_cp936.h \
143	unicode_table_iso8859_10.h \
144	unicode_table_iso8859_13.h \
145	unicode_table_iso8859_14.h \
146	unicode_table_iso8859_15.h \
147	unicode_table_iso8859_16.h \
148	unicode_table_iso8859_2.h \
149	unicode_table_iso8859_3.h \
150	unicode_table_iso8859_4.h \
151	unicode_table_iso8859_5.h \
152	unicode_table_iso8859_6.h \
153	unicode_table_iso8859_7.h \
154	unicode_table_iso8859_8.h \
155	unicode_table_iso8859_9.h \
156	unicode_table_jis.h \
157	unicode_table_koi8r.h \
158	unicode_table_koi8u.h \
159	unicode_table_armscii8.h \
160	unicode_table_cp850.h \
161	unicode_table_uhc.h \
162	unicode_table_gb18030.h \
163	translit_kana_jisx0201_jisx0208.h \
164	emoji2uni.h
165
166mbfilter_iso8859_2.c: unicode_table_iso8859_2.h
167
168mbfilter_iso8859_3.c: unicode_table_iso8859_3.h
169
170mbfilter_iso8859_4.c: unicode_table_iso8859_4.h
171
172mbfilter_iso8859_5.c: unicode_table_iso8859_5.h
173
174mbfilter_iso8859_6.c: unicode_table_iso8859_6.h
175
176mbfilter_iso8859_7.c: unicode_table_iso8859_7.h
177
178mbfilter_iso8859_8.c: unicode_table_iso8859_8.h
179
180mbfilter_iso8859_9.c: unicode_table_iso8859_9.h
181
182mbfilter_iso8859_10.c: unicode_table_iso8859_10.h
183
184mbfilter_iso8859_11.c: unicode_table_iso8859_11.h
185
186mbfilter_iso8859_13.c: unicode_table_iso8859_13.h
187
188mbfilter_iso8859_14.c: unicode_table_iso8859_13.h
189
190mbfilter_iso8859_15.c: unicode_table_iso8859_15.h
191
192mbfilter_iso8859_16.c: unicode_table_iso8859_16.h
193
1948859-1.TXT 8859-2.TXT 8859-3.TXT 8859-4.TXT 8859-5.TXT 8859-6.TXT \
1958859-7.TXT 8859-8.TXT 8859-9.TXT 8859-10.TXT 8859-11.TXT 8859-13.TXT \
1968859-14.TXT 8859-15.TXT 8859-16.TXT:
197	$(FETCH_VIA_FTP) ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/$@
198
199unicode_table_iso8859_1.h: mk_sb_tbl.awk
200	$(AWK) -v TABLE_NAME=iso8859_1_ucs_table \
201           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_1_H -f mk_sb_tbl.awk 8859-1.TXT > $@
202
203unicode_table_iso8859_2.h: mk_sb_tbl.awk
204	$(AWK) -v TABLE_NAME=iso8859_2_ucs_table \
205           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_2_H -f mk_sb_tbl.awk 8859-2.TXT > $@
206
207unicode_table_iso8859_3.h: mk_sb_tbl.awk
208	$(AWK) -v TABLE_NAME=iso8859_3_ucs_table \
209           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_3_H -f mk_sb_tbl.awk 8859-3.TXT > $@
210
211unicode_table_iso8859_4.h: mk_sb_tbl.awk
212	$(AWK) -v TABLE_NAME=iso8859_4_ucs_table \
213           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_4_H -f mk_sb_tbl.awk 8859-4.TXT > $@
214
215unicode_table_iso8859_5.h: mk_sb_tbl.awk
216	$(AWK) -v TABLE_NAME=iso8859_5_ucs_table \
217           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_5_H -f mk_sb_tbl.awk 8859-5.TXT > $@
218
219unicode_table_iso8859_6.h: mk_sb_tbl.awk
220	$(AWK) -v TABLE_NAME=iso8859_6_ucs_table \
221           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_6_H -f mk_sb_tbl.awk 8859-6.TXT > $@
222
223unicode_table_iso8859_7.h: mk_sb_tbl.awk
224	$(AWK) -v TABLE_NAME=iso8859_7_ucs_table \
225           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_7_H -f mk_sb_tbl.awk 8859-7.TXT > $@
226
227unicode_table_iso8859_8.h: mk_sb_tbl.awk
228	$(AWK) -v TABLE_NAME=iso8859_8_ucs_table \
229           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_8_H -f mk_sb_tbl.awk 8859-8.TXT > $@
230
231unicode_table_iso8859_9.h: mk_sb_tbl.awk
232	$(AWK) -v TABLE_NAME=iso8859_9_ucs_table \
233           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_9_H -f mk_sb_tbl.awk 8859-9.TXT > $@
234
235unicode_table_iso8859_10.h: mk_sb_tbl.awk
236	$(AWK) -v TABLE_NAME=iso8859_10_ucs_table \
237           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_10_H -f mk_sb_tbl.awk 8859-10.TXT > $@
238
239unicode_table_iso8859_11.h: mk_sb_tbl.awk
240	$(AWK) -v TABLE_NAME=iso8859_11_ucs_table \
241           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_11_H -f mk_sb_tbl.awk 8859-11.TXT > $@
242
243unicode_table_iso8859_13.h: mk_sb_tbl.awk
244	$(AWK) -v TABLE_NAME=iso8859_13_ucs_table \
245           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_13_H -f mk_sb_tbl.awk 8859-13.TXT > $@
246
247unicode_table_iso8859_14.h: mk_sb_tbl.awk
248	$(AWK) -v TABLE_NAME=iso8859_14_ucs_table \
249           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_14_H -f mk_sb_tbl.awk 8859-14.TXT > $@
250
251unicode_table_iso8859_15.h: mk_sb_tbl.awk
252	$(AWK) -v TABLE_NAME=iso8859_15_ucs_table \
253           -v IFNDEF_NAME=UNICODE_TABLE_ISO8859_15_H -f mk_sb_tbl.awk 8859-15.TXT > $@
254
255unicode_table_iso8859_16.h: mk_sb_tbl.awk
256	$(AWK) -v TABLE_NAME=iso8859_16_ucs_table \
257           -v IFNDEF_NAME=UNICODE_TABLEISO8859_16_H -f mk_sb_tbl.awk 8859-16.TXT > $@
258
259EmojiSources.txt :
260	$(FETCH_VIA_FTP) ftp://ftp.unicode.org/Public/UNIDATA/$@
261
262emoji2uni.h : mk_emoji_tbl.pl
263	$(PERL) mk_emoji_tbl.pl EmojiSources.txt
264
265unidata: 8859-1.TXT 8859-2.TXT 8859-3.TXT 8859-4.TXT 8859-5.TXT 8859-6.TXT \
2668859-7.TXT 8859-8.TXT 8859-9.TXT 8859-10.TXT 8859-11.TXT 8859-13.TXT \
2678859-14.TXT 8859-15.TXT 8859-16.TXT EmojiSources.txt
268
269.PHONY: unidata
270