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-stateless.bat $(srcdir) CP1256
94 $(srcdir)\check-stateless.bat $(srcdir) CP1257
95 $(srcdir)\check-stateless.bat $(srcdir) CP1258
96 $(srcdir)\check-stateless.bat $(srcdir) CP850
97 $(srcdir)\check-stateless.bat $(srcdir) CP862
98 $(srcdir)\check-stateless.bat $(srcdir) CP866
99 $(srcdir)\check-stateless.bat $(srcdir) MacRoman
100 $(srcdir)\check-stateless.bat $(srcdir) MacCentralEurope
101 $(srcdir)\check-stateless.bat $(srcdir) MacIceland
102 $(srcdir)\check-stateless.bat $(srcdir) MacCroatian
103 $(srcdir)\check-stateless.bat $(srcdir) MacRomania
104 $(srcdir)\check-stateless.bat $(srcdir) MacCyrillic
105 $(srcdir)\check-stateless.bat $(srcdir) MacUkraine
106 $(srcdir)\check-stateless.bat $(srcdir) MacGreek
107 $(srcdir)\check-stateless.bat $(srcdir) MacTurkish
108 $(srcdir)\check-stateless.bat $(srcdir) MacHebrew
109 $(srcdir)\check-stateless.bat $(srcdir) MacArabic
110 $(srcdir)\check-stateless.bat $(srcdir) MacThai
111 $(srcdir)\check-stateless.bat $(srcdir) HP-ROMAN8
112 $(srcdir)\check-stateless.bat $(srcdir) NEXTSTEP
113 $(srcdir)\check-stateless.bat $(srcdir) ARMSCII-8
114 $(srcdir)\check-stateless.bat $(srcdir) Georgian-Academy
115 $(srcdir)\check-stateless.bat $(srcdir) Georgian-PS
116 $(srcdir)\check-stateless.bat $(srcdir) MuleLao-1
117 $(srcdir)\check-stateless.bat $(srcdir) CP1133
118 $(srcdir)\check-stateless.bat $(srcdir) TIS-620
119 $(srcdir)\check-stateless.bat $(srcdir) CP874
120 $(srcdir)\check-stateless.bat $(srcdir) VISCII
121 $(srcdir)\check-stateless.bat $(srcdir) TCVN
122 # /* CJK character sets */
123 $(srcdir)\check-stateless.bat $(srcdir) ISO646-JP
124 $(srcdir)\check-stateless.bat $(srcdir) JIS_X0201
125 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0208 # redundant, see EUC-JP
126 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0212 # redundant, see EUC-JP
127 $(srcdir)\check-stateless.bat $(srcdir) ISO646-CN
128 # $(srcdir)\check-stateless.bat $(srcdir) GB_2312-80 # redundant, see EUC-CN
129 $(srcdir)\check-stateless.bat $(srcdir) ISO-IR-165
130 # $(srcdir)\check-stateless.bat $(srcdir) KSC_5601 # redundant, see EUC-KR
131 # /* CJK encodings */
132 $(srcdir)\check-stateless.bat $(srcdir) EUC-JP
133 $(srcdir)\check-stateless.bat $(srcdir) SHIFT-JIS
134 $(srcdir)\check-stateless.bat $(srcdir) CP932
135 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP
136 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-2
137 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-1
138 $(srcdir)\check-stateless.bat $(srcdir) EUC-CN
139 $(srcdir)\check-stateless.bat $(srcdir) GBK
140 $(srcdir)\check-stateless.bat $(srcdir) GB18030
141 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN
142 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN-EXT
143 $(srcdir)\check-stateful.bat $(srcdir) HZ
144 $(srcdir)\check-stateless.bat $(srcdir) EUC-TW
145 $(srcdir)\check-stateless.bat $(srcdir) BIG5
146 $(srcdir)\check-stateless.bat $(srcdir) CP950
147 $(srcdir)\check-stateless.bat $(srcdir) BIG5HKSCS
148 $(srcdir)\check-stateless.bat $(srcdir) EUC-KR
149 $(srcdir)\check-stateless.bat $(srcdir) CP949
150 $(srcdir)\check-stateless.bat $(srcdir) JOHAB
151 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-KR
152 # /* transliteration */
153 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ISO-8859-1
154 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ASCII
156 table-from.exe : $(srcdir)/table-from.c ../lib/iconv.lib
157 $(CC) $(CFLAGS) $(INCLUDES) $(srcdir)/table-from.c ../lib/iconv.lib -Fetable-from.exe
160 copy ..\lib\iconv.dll iconv.dll
163 table-to.exe : $(srcdir)/table-to.c ../lib/iconv.lib
164 $(CC) $(CFLAGS) $(INCLUDES) $(srcdir)/table-to.c ../lib/iconv.lib -Fetable-to.exe
167 copy ..\lib\iconv.dll iconv.dll
170 uniq-u.exe : $(srcdir)/uniq-u.c
171 $(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
187 maintainer-clean : distclean