1 # Makefile for libiconv/tests
3 #### Start of system configuration section. ####
5 # Flags that can be set on the nmake command line:
6 # DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
7 # Note that this works only with MFLAGS=-MD.
8 # MFLAGS={-ML|-MT|-MD} for defining the compilation model
9 # MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
10 # MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
11 # MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
12 # DEBUG=1 for compiling with debugging information
30 # Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
31 OPTIMFLAGS = -D_NDEBUG -O1
34 # Directories used by "make":
37 # Programs used by "make":
39 CFLAGS = $(MFLAGS) -W1 $(OPTIMFLAGS)
40 INCLUDES = -I. -I$(srcdir) -I..\include -I$(srcdir)\..\include -I..\lib
43 #### End of system configuration section. ####
49 check : all table-from.exe table-to.exe ../src/iconv.exe uniq-u.exe
50 $(srcdir)\check-stateless.bat $(srcdir) ASCII
51 # /* General multi-byte encodings */
52 $(CC) $(CFLAGS) $(srcdir)\genutf8.c -Fegenutf8.exe
55 $(srcdir)\check-stateless.bat . UTF-8
58 $(srcdir)\check-stateful.bat $(srcdir) UCS-2BE
59 $(srcdir)\check-stateful.bat $(srcdir) UCS-2LE
60 $(srcdir)\check-stateful.bat $(srcdir) UCS-4BE
61 $(srcdir)\check-stateful.bat $(srcdir) UCS-4LE
62 $(srcdir)\check-stateful.bat $(srcdir) UTF-16
63 $(srcdir)\check-stateful.bat $(srcdir) UTF-16BE
64 $(srcdir)\check-stateful.bat $(srcdir) UTF-16LE
65 $(srcdir)\check-stateful.bat $(srcdir) UTF-32
66 $(srcdir)\check-stateful.bat $(srcdir) UTF-32BE
67 $(srcdir)\check-stateful.bat $(srcdir) UTF-32LE
68 $(srcdir)\check-stateful.bat $(srcdir) UTF-7
69 # /* 8-bit encodings */
70 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-1
71 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-2
72 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-3
73 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-4
74 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-5
75 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-6
76 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-7
77 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-8
78 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-9
79 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-10
80 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-13
81 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-14
82 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-15
83 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-16
84 $(srcdir)\check-stateless.bat $(srcdir) KOI8-R
85 $(srcdir)\check-stateless.bat $(srcdir) KOI8-U
86 $(srcdir)\check-stateless.bat $(srcdir) KOI8-RU
87 $(srcdir)\check-stateless.bat $(srcdir) CP1250
88 $(srcdir)\check-stateless.bat $(srcdir) CP1251
89 $(srcdir)\check-stateless.bat $(srcdir) CP1252
90 $(srcdir)\check-stateless.bat $(srcdir) CP1253
91 $(srcdir)\check-stateless.bat $(srcdir) CP1254
92 $(srcdir)\check-stateless.bat $(srcdir) CP1255
93 $(srcdir)\check-stateful.bat $(srcdir) CP1255
94 $(srcdir)\check-stateless.bat $(srcdir) CP1256
95 $(srcdir)\check-stateless.bat $(srcdir) CP1257
96 $(srcdir)\check-stateless.bat $(srcdir) CP1258
97 $(srcdir)\check-stateful.bat $(srcdir) CP1258
98 $(srcdir)\check-stateless.bat $(srcdir) CP850
99 $(srcdir)\check-stateless.bat $(srcdir) CP862
100 $(srcdir)\check-stateless.bat $(srcdir) CP866
101 $(srcdir)\check-stateless.bat $(srcdir) MacRoman
102 $(srcdir)\check-stateless.bat $(srcdir) MacCentralEurope
103 $(srcdir)\check-stateless.bat $(srcdir) MacIceland
104 $(srcdir)\check-stateless.bat $(srcdir) MacCroatian
105 $(srcdir)\check-stateless.bat $(srcdir) MacRomania
106 $(srcdir)\check-stateless.bat $(srcdir) MacCyrillic
107 $(srcdir)\check-stateless.bat $(srcdir) MacUkraine
108 $(srcdir)\check-stateless.bat $(srcdir) MacGreek
109 $(srcdir)\check-stateless.bat $(srcdir) MacTurkish
110 $(srcdir)\check-stateless.bat $(srcdir) MacHebrew
111 $(srcdir)\check-stateless.bat $(srcdir) MacArabic
112 $(srcdir)\check-stateless.bat $(srcdir) MacThai
113 $(srcdir)\check-stateless.bat $(srcdir) HP-ROMAN8
114 $(srcdir)\check-stateless.bat $(srcdir) NEXTSTEP
115 $(srcdir)\check-stateless.bat $(srcdir) ARMSCII-8
116 $(srcdir)\check-stateless.bat $(srcdir) Georgian-Academy
117 $(srcdir)\check-stateless.bat $(srcdir) Georgian-PS
118 $(srcdir)\check-stateless.bat $(srcdir) MuleLao-1
119 $(srcdir)\check-stateless.bat $(srcdir) CP1133
120 $(srcdir)\check-stateless.bat $(srcdir) TIS-620
121 $(srcdir)\check-stateless.bat $(srcdir) CP874
122 $(srcdir)\check-stateless.bat $(srcdir) VISCII
123 $(srcdir)\check-stateless.bat $(srcdir) TCVN
124 $(srcdir)\check-stateful.bat $(srcdir) TCVN
125 # /* CJK character sets */
126 $(srcdir)\check-stateless.bat $(srcdir) ISO646-JP
127 $(srcdir)\check-stateless.bat $(srcdir) JIS_X0201
128 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0208 # redundant, see EUC-JP
129 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0212 # redundant, see EUC-JP
130 $(srcdir)\check-stateless.bat $(srcdir) ISO646-CN
131 # $(srcdir)\check-stateless.bat $(srcdir) GB_2312-80 # redundant, see EUC-CN
132 $(srcdir)\check-stateless.bat $(srcdir) ISO-IR-165
133 # $(srcdir)\check-stateless.bat $(srcdir) KSC_5601 # redundant, see EUC-KR
134 # /* CJK encodings */
135 $(srcdir)\check-stateless.bat $(srcdir) EUC-JP
136 $(srcdir)\check-stateless.bat $(srcdir) SHIFT-JIS
137 $(srcdir)\check-stateless.bat $(srcdir) CP932
138 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP
139 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-2
140 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-1
141 $(srcdir)\check-stateless.bat $(srcdir) EUC-CN
142 $(srcdir)\check-stateless.bat $(srcdir) GBK
143 $(srcdir)\check-stateless.bat $(srcdir) GB18030
144 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN
145 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN-EXT
146 $(srcdir)\check-stateful.bat $(srcdir) HZ
147 $(srcdir)\check-stateless.bat $(srcdir) EUC-TW
148 $(srcdir)\check-stateless.bat $(srcdir) BIG5
149 $(srcdir)\check-stateless.bat $(srcdir) CP950
150 $(srcdir)\check-stateless.bat $(srcdir) BIG5-HKSCS
151 $(srcdir)\check-stateless.bat $(srcdir) EUC-KR
152 $(srcdir)\check-stateless.bat $(srcdir) CP949
153 $(srcdir)\check-stateless.bat $(srcdir) JOHAB
154 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-KR
155 # /* transliteration */
156 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ISO-8859-1
157 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ASCII
159 table-from.exe : $(srcdir)/table-from.c ../lib/iconv.lib
160 $(CC) $(INCLUDES) $(CFLAGS) $(srcdir)/table-from.c ../lib/iconv.lib -Fetable-from.exe
163 copy ..\lib\iconv.dll iconv.dll
166 table-to.exe : $(srcdir)/table-to.c ../lib/iconv.lib
167 $(CC) $(INCLUDES) $(CFLAGS) $(srcdir)/table-to.c ../lib/iconv.lib -Fetable-to.exe
170 copy ..\lib\iconv.dll iconv.dll
173 uniq-u.exe : $(srcdir)/uniq-u.c
174 $(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
190 maintainer-clean : distclean