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)
41 INCLUDES = -I. -I$(srcdir) -I..\include -I$(srcdir)\..\include -I..\lib
44 #### End of system configuration section. ####
50 check : all table-from.exe table-to.exe ../src/iconv.exe uniq-u.exe
51 $(srcdir)\check-stateless.bat $(srcdir) ASCII
52 # /* General multi-byte encodings */
53 $(CC) $(CFLAGS) $(srcdir)\genutf8.c -Fegenutf8.exe
56 $(srcdir)\check-stateless.bat . UTF-8
59 $(srcdir)\check-stateful.bat $(srcdir) UCS-2BE
60 $(srcdir)\check-stateful.bat $(srcdir) UCS-2LE
61 $(srcdir)\check-stateful.bat $(srcdir) UCS-4BE
62 $(srcdir)\check-stateful.bat $(srcdir) UCS-4LE
63 $(srcdir)\check-stateful.bat $(srcdir) UTF-16
64 $(srcdir)\check-stateful.bat $(srcdir) UTF-16BE
65 $(srcdir)\check-stateful.bat $(srcdir) UTF-16LE
66 $(srcdir)\check-stateful.bat $(srcdir) UTF-32
67 $(srcdir)\check-stateful.bat $(srcdir) UTF-32BE
68 $(srcdir)\check-stateful.bat $(srcdir) UTF-32LE
69 $(srcdir)\check-stateful.bat $(srcdir) UTF-7
70 # /* 8-bit encodings */
71 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-1
72 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-2
73 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-3
74 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-4
75 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-5
76 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-6
77 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-7
78 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-8
79 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-9
80 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-10
81 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-13
82 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-14
83 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-15
84 $(srcdir)\check-stateless.bat $(srcdir) ISO-8859-16
85 $(srcdir)\check-stateless.bat $(srcdir) KOI8-R
86 $(srcdir)\check-stateless.bat $(srcdir) KOI8-U
87 $(srcdir)\check-stateless.bat $(srcdir) KOI8-RU
88 $(srcdir)\check-stateless.bat $(srcdir) CP1250
89 $(srcdir)\check-stateless.bat $(srcdir) CP1251
90 $(srcdir)\check-stateless.bat $(srcdir) CP1252
91 $(srcdir)\check-stateless.bat $(srcdir) CP1253
92 $(srcdir)\check-stateless.bat $(srcdir) CP1254
93 $(srcdir)\check-stateless.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-stateless.bat $(srcdir) CP850
98 $(srcdir)\check-stateless.bat $(srcdir) CP862
99 $(srcdir)\check-stateless.bat $(srcdir) CP866
100 $(srcdir)\check-stateless.bat $(srcdir) MacRoman
101 $(srcdir)\check-stateless.bat $(srcdir) MacCentralEurope
102 $(srcdir)\check-stateless.bat $(srcdir) MacIceland
103 $(srcdir)\check-stateless.bat $(srcdir) MacCroatian
104 $(srcdir)\check-stateless.bat $(srcdir) MacRomania
105 $(srcdir)\check-stateless.bat $(srcdir) MacCyrillic
106 $(srcdir)\check-stateless.bat $(srcdir) MacUkraine
107 $(srcdir)\check-stateless.bat $(srcdir) MacGreek
108 $(srcdir)\check-stateless.bat $(srcdir) MacTurkish
109 $(srcdir)\check-stateless.bat $(srcdir) MacHebrew
110 $(srcdir)\check-stateless.bat $(srcdir) MacArabic
111 $(srcdir)\check-stateless.bat $(srcdir) MacThai
112 $(srcdir)\check-stateless.bat $(srcdir) HP-ROMAN8
113 $(srcdir)\check-stateless.bat $(srcdir) NEXTSTEP
114 $(srcdir)\check-stateless.bat $(srcdir) ARMSCII-8
115 $(srcdir)\check-stateless.bat $(srcdir) Georgian-Academy
116 $(srcdir)\check-stateless.bat $(srcdir) Georgian-PS
117 $(srcdir)\check-stateless.bat $(srcdir) MuleLao-1
118 $(srcdir)\check-stateless.bat $(srcdir) CP1133
119 $(srcdir)\check-stateless.bat $(srcdir) TIS-620
120 $(srcdir)\check-stateless.bat $(srcdir) CP874
121 $(srcdir)\check-stateless.bat $(srcdir) VISCII
122 $(srcdir)\check-stateless.bat $(srcdir) TCVN
123 # /* CJK character sets */
124 $(srcdir)\check-stateless.bat $(srcdir) ISO646-JP
125 $(srcdir)\check-stateless.bat $(srcdir) JIS_X0201
126 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0208 # redundant, see EUC-JP
127 # $(srcdir)\check-stateless.bat $(srcdir) JIS_X0212 # redundant, see EUC-JP
128 $(srcdir)\check-stateless.bat $(srcdir) ISO646-CN
129 # $(srcdir)\check-stateless.bat $(srcdir) GB_2312-80 # redundant, see EUC-CN
130 $(srcdir)\check-stateless.bat $(srcdir) ISO-IR-165
131 # $(srcdir)\check-stateless.bat $(srcdir) KSC_5601 # redundant, see EUC-KR
132 # /* CJK encodings */
133 $(srcdir)\check-stateless.bat $(srcdir) EUC-JP
134 $(srcdir)\check-stateless.bat $(srcdir) SHIFT-JIS
135 $(srcdir)\check-stateless.bat $(srcdir) CP932
136 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP
137 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-2
138 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-1
139 $(srcdir)\check-stateless.bat $(srcdir) EUC-CN
140 $(srcdir)\check-stateless.bat $(srcdir) GBK
141 $(srcdir)\check-stateless.bat $(srcdir) GB18030
142 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN
143 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN-EXT
144 $(srcdir)\check-stateful.bat $(srcdir) HZ
145 $(srcdir)\check-stateless.bat $(srcdir) EUC-TW
146 $(srcdir)\check-stateless.bat $(srcdir) BIG5
147 $(srcdir)\check-stateless.bat $(srcdir) CP950
148 $(srcdir)\check-stateless.bat $(srcdir) BIG5HKSCS
149 $(srcdir)\check-stateless.bat $(srcdir) EUC-KR
150 $(srcdir)\check-stateless.bat $(srcdir) CP949
151 $(srcdir)\check-stateless.bat $(srcdir) JOHAB
152 $(srcdir)\check-stateful.bat $(srcdir) ISO-2022-KR
153 # /* transliteration */
154 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ISO-8859-1
155 $(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ASCII
157 table-from.exe : $(srcdir)/table-from.c ../lib/iconv.lib
158 $(CC) $(CFLAGS) $(INCLUDES) $(srcdir)/table-from.c ../lib/iconv.lib -Fetable-from.exe
161 copy ..\lib\iconv.dll iconv.dll
164 table-to.exe : $(srcdir)/table-to.c ../lib/iconv.lib
165 $(CC) $(CFLAGS) $(INCLUDES) $(srcdir)/table-to.c ../lib/iconv.lib -Fetable-to.exe
168 copy ..\lib\iconv.dll iconv.dll
171 uniq-u.exe : $(srcdir)/uniq-u.c
172 $(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
188 maintainer-clean : distclean