xref: /illumos-gate/usr/src/lib/iconv_modules/euro/utils/test/Makefile (revision 36589d6bb0cdae89e166b57b0d64ae56d53247d9)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include $(SRC)/Makefile.master
27
28MODULES = \
29	646%8859.c \
30	646da%8859.c \
31	646de%8859.c \
32	646en%8859.c \
33	646es%8859.c \
34	646fr%8859.c \
35	646it%8859.c \
36	646sv%8859.c \
37	8859%646.c \
38	8859%646da.c \
39	8859%646de.c \
40	8859%646en.c \
41	8859%646es.c \
42	8859%646fr.c \
43	8859%646it.c \
44	8859%646sv.c \
45	8859-1%IBM-037.c \
46	8859-1%IBM-850.c \
47	IBM-037%8859-1.c \
48	IBM-850%8859-1.c \
49	alt%iso5.c \
50	alt%koi8.c \
51	alt%mac.c \
52	alt%win5.c \
53	dhn%dos2.c \
54	dhn%iso2.c \
55	dhn%maz.c \
56	dhn%win2.c \
57	dos2%dhn.c \
58	dos2%iso2.c \
59	dos2%maz.c \
60	dos2%win2.c \
61	iso2%dhn.c \
62	iso2%dos2.c \
63	iso2%maz.c \
64	iso2%win2.c \
65	iso5%alt.c \
66	iso5%koi8.c \
67	iso5%mac.c \
68	iso5%win5.c \
69	koi8%alt.c \
70	koi8%iso5.c \
71	koi8%mac.c \
72	koi8%win5.c \
73	mac%alt.c \
74	mac%iso5.c \
75	mac%koi8.c \
76	mac%win5.c \
77	maz%dhn.c \
78	maz%dos2.c \
79	maz%iso2.c \
80	maz%win2.c \
81	win2%dhn.c \
82	win2%dos2.c \
83	win2%iso2.c \
84	win2%maz.c \
85	win5%alt.c \
86	win5%iso5.c \
87	win5%koi8.c \
88	win5%mac.c
89
90#
91# These fail and appear not to be delivered with the system at all
92#
93FAILED = \
94	8859-1%IBM-500.c \
95	IBM-500%8859-1.c \
96	alt%iso.c \
97	alt%koi.c \
98	alt%win.c \
99	dhn%ib2.c \
100	dhn%is2.c \
101	dhn%wi2.c \
102	ib2%dhn.c \
103	ib2%is2.c \
104	ib2%maz.c \
105	ib2%wi2.c \
106	is2%dhn.c \
107	is2%ib2.c \
108	is2%maz.c \
109	is2%wi2.c \
110	iso%alt.c \
111	iso%koi.c \
112	iso%mac.c \
113	iso%win.c \
114	koi%alt.c \
115	koi%iso.c \
116	koi%mac.c \
117	koi%win.c \
118	mac%iso.c \
119	mac%koi.c \
120	mac%win.c \
121	maz%ib2.c \
122	maz%is2.c \
123	maz%wi2.c \
124	wi2%dhn.c \
125	wi2%ib2.c \
126	wi2%is2.c \
127	wi2%maz.c \
128	win%alt.c \
129	win%iso.c \
130	win%koi.c \
131	win%mac.c
132
133OUT = $(MODULES:%.c=%.out)
134
135all: $(OUT)
136
137%.out: input
138	FROM=`echo $@ | perl -pe 's:%.*::'` ; \
139	TO=`echo $@ | perl -pe 's:.*%:: ; s:\.out::'` ; \
140	/usr/bin/iconv -f $$FROM -t $$TO input > $@
141
142input: geninput
143	./geninput > $@
144
145geninput: ../gentbl/geninput.c
146	$(CC) -o $@ ../gentbl/$@.c
147
148clean:
149	$(RM) -r *out input geninput
150
151clobber:
152