Tag
Hash :
9b958b9f
Author :
Date :
2003-05-18T11:28:29
Make it possible to create DLLs with debug information.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
# -*- Makefile -*- for libiconv/tests
#### Start of system configuration section. ####
# Flags that can be set on the nmake command line:
# DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
# Note that this works only with MFLAGS=-MD.
# MFLAGS={-ML|-MT|-MD} for defining the compilation model
# MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
# MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
# DEBUG=1 for compiling with debugging information
!if !defined(DLL)
DLL=0
!endif
!if !defined(DEBUG)
DEBUG=0
!endif
!if !defined(MFLAGS)
!if !$(DLL)
MFLAGS=
!else
MFLAGS=-MD
!endif
!endif
!if $(DEBUG)
OPTIMFLAGS = -Od -Z7
DEBUGFLAGS = -Z7
!else
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
OPTIMFLAGS = -D_NDEBUG -O1
DEBUGFLAGS =
!endif
# Directories used by "make":
srcdir = .
# Programs used by "make":
CC = cl
CFLAGS = $(MFLAGS) -W1 $(OPTIMFLAGS)
INCLUDES = -I. -I..\include -I..\lib
RM = -del
#### End of system configuration section. ####
SHELL = /bin/sh
all :
install : all
installdirs :
uninstall :
check : all table-from.exe table-to.exe ../src/iconv.exe uniq-u.exe
$(srcdir)\check-stateless.bat $(srcdir) ASCII
# /* General multi-byte encodings */
$(CC) $(CFLAGS) $(srcdir)\genutf8.c -Fegenutf8.exe
$(RM) genutf8.obj
.\genutf8 > UTF-8.TXT
$(srcdir)\check-stateless.bat . UTF-8
$(RM) genutf8.exe
$(RM) UTF-8.TXT
$(srcdir)\check-stateful.bat $(srcdir) UCS-2BE
$(srcdir)\check-stateful.bat $(srcdir) UCS-2LE
$(srcdir)\check-stateful.bat $(srcdir) UCS-4BE
$(srcdir)\check-stateful.bat $(srcdir) UCS-4LE
$(srcdir)\check-stateful.bat $(srcdir) UTF-16
$(srcdir)\check-stateful.bat $(srcdir) UTF-16BE
$(srcdir)\check-stateful.bat $(srcdir) UTF-16LE
$(srcdir)\check-stateful.bat $(srcdir) UTF-32
$(srcdir)\check-stateful.bat $(srcdir) UTF-32BE
$(srcdir)\check-stateful.bat $(srcdir) UTF-32LE
$(srcdir)\check-stateful.bat $(srcdir) UTF-7
# /* 8-bit encodings */
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-1
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-2
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-3
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-4
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-5
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-6
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-7
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-8
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-9
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-10
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-13
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-14
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-15
$(srcdir)\check-stateless.bat $(srcdir) ISO-8859-16
$(srcdir)\check-stateless.bat $(srcdir) KOI8-R
$(srcdir)\check-stateless.bat $(srcdir) KOI8-U
$(srcdir)\check-stateless.bat $(srcdir) KOI8-RU
$(srcdir)\check-stateless.bat $(srcdir) CP1250
$(srcdir)\check-stateless.bat $(srcdir) CP1251
$(srcdir)\check-stateless.bat $(srcdir) CP1252
$(srcdir)\check-stateless.bat $(srcdir) CP1253
$(srcdir)\check-stateless.bat $(srcdir) CP1254
$(srcdir)\check-stateless.bat $(srcdir) CP1255
$(srcdir)\check-stateful.bat $(srcdir) CP1255
$(srcdir)\check-stateless.bat $(srcdir) CP1256
$(srcdir)\check-stateless.bat $(srcdir) CP1257
$(srcdir)\check-stateless.bat $(srcdir) CP1258
$(srcdir)\check-stateful.bat $(srcdir) CP1258
$(srcdir)\check-stateless.bat $(srcdir) CP850
$(srcdir)\check-stateless.bat $(srcdir) CP862
$(srcdir)\check-stateless.bat $(srcdir) CP866
$(srcdir)\check-stateless.bat $(srcdir) MacRoman
$(srcdir)\check-stateless.bat $(srcdir) MacCentralEurope
$(srcdir)\check-stateless.bat $(srcdir) MacIceland
$(srcdir)\check-stateless.bat $(srcdir) MacCroatian
$(srcdir)\check-stateless.bat $(srcdir) MacRomania
$(srcdir)\check-stateless.bat $(srcdir) MacCyrillic
$(srcdir)\check-stateless.bat $(srcdir) MacUkraine
$(srcdir)\check-stateless.bat $(srcdir) MacGreek
$(srcdir)\check-stateless.bat $(srcdir) MacTurkish
$(srcdir)\check-stateless.bat $(srcdir) MacHebrew
$(srcdir)\check-stateless.bat $(srcdir) MacArabic
$(srcdir)\check-stateless.bat $(srcdir) MacThai
$(srcdir)\check-stateless.bat $(srcdir) HP-ROMAN8
$(srcdir)\check-stateless.bat $(srcdir) NEXTSTEP
$(srcdir)\check-stateless.bat $(srcdir) ARMSCII-8
$(srcdir)\check-stateless.bat $(srcdir) Georgian-Academy
$(srcdir)\check-stateless.bat $(srcdir) Georgian-PS
$(srcdir)\check-stateless.bat $(srcdir) KOI8-T
$(srcdir)\check-stateless.bat $(srcdir) MuleLao-1
$(srcdir)\check-stateless.bat $(srcdir) CP1133
$(srcdir)\check-stateless.bat $(srcdir) TIS-620
$(srcdir)\check-stateless.bat $(srcdir) CP874
$(srcdir)\check-stateless.bat $(srcdir) VISCII
$(srcdir)\check-stateless.bat $(srcdir) TCVN
$(srcdir)\check-stateful.bat $(srcdir) TCVN
# /* CJK character sets */
$(srcdir)\check-stateless.bat $(srcdir) ISO646-JP
$(srcdir)\check-stateless.bat $(srcdir) JIS_X0201
# $(srcdir)\check-stateless.bat $(srcdir) JIS_X0208 # redundant, see EUC-JP
# $(srcdir)\check-stateless.bat $(srcdir) JIS_X0212 # redundant, see EUC-JP
$(srcdir)\check-stateless.bat $(srcdir) ISO646-CN
# $(srcdir)\check-stateless.bat $(srcdir) GB_2312-80 # redundant, see EUC-CN
$(srcdir)\check-stateless.bat $(srcdir) ISO-IR-165
# $(srcdir)\check-stateless.bat $(srcdir) KSC_5601 # redundant, see EUC-KR
# /* CJK encodings */
$(srcdir)\check-stateless.bat $(srcdir) EUC-JP
$(srcdir)\check-stateless.bat $(srcdir) SHIFT_JIS
$(srcdir)\check-stateless.bat $(srcdir) CP932
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-2
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-JP-1
$(srcdir)\check-stateless.bat $(srcdir) EUC-CN
$(srcdir)\check-stateless.bat $(srcdir) GBK
$(srcdir)\check-stateless.bat $(srcdir) GB18030
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-CN-EXT
$(srcdir)\check-stateful.bat $(srcdir) HZ
$(srcdir)\check-stateless.bat $(srcdir) EUC-TW
$(srcdir)\check-stateless.bat $(srcdir) BIG5
$(srcdir)\check-stateless.bat $(srcdir) CP950
$(srcdir)\check-stateless.bat $(srcdir) BIG5-HKSCS
$(srcdir)\check-stateless.bat $(srcdir) EUC-KR
$(srcdir)\check-stateless.bat $(srcdir) CP949
$(srcdir)\check-stateless.bat $(srcdir) JOHAB
$(srcdir)\check-stateful.bat $(srcdir) ISO-2022-KR
# /* DOS encodings */
$(srcdir)\check-stateless.bat $(srcdir) CP437
$(srcdir)\check-stateless.bat $(srcdir) CP737
$(srcdir)\check-stateless.bat $(srcdir) CP775
$(srcdir)\check-stateless.bat $(srcdir) CP852
$(srcdir)\check-stateless.bat $(srcdir) CP853
$(srcdir)\check-stateless.bat $(srcdir) CP855
$(srcdir)\check-stateless.bat $(srcdir) CP857
$(srcdir)\check-stateless.bat $(srcdir) CP858
$(srcdir)\check-stateless.bat $(srcdir) CP860
$(srcdir)\check-stateless.bat $(srcdir) CP861
$(srcdir)\check-stateless.bat $(srcdir) CP863
$(srcdir)\check-stateless.bat $(srcdir) CP864
$(srcdir)\check-stateless.bat $(srcdir) CP865
$(srcdir)\check-stateless.bat $(srcdir) CP869
$(srcdir)\check-stateless.bat $(srcdir) CP1125
# /* transliteration */
$(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ISO-8859-1
$(srcdir)\check-translit.bat $(srcdir) Quotes UTF-8 ASCII
$(srcdir)\check-translit.bat $(srcdir) Translit1 ISO-8859-1 ASCII
table-from.exe : $(srcdir)/table-from.c ../lib/iconv.lib
$(CC) $(INCLUDES) $(CFLAGS) $(srcdir)/table-from.c ../lib/iconv.lib -Fetable-from.exe
$(RM) table-from.obj
!if $(DLL)
copy ..\lib\iconv.dll iconv.dll
!endif
table-to.exe : $(srcdir)/table-to.c ../lib/iconv.lib
$(CC) $(INCLUDES) $(CFLAGS) $(srcdir)/table-to.c ../lib/iconv.lib -Fetable-to.exe
$(RM) table-to.obj
!if $(DLL)
copy ..\lib\iconv.dll iconv.dll
!endif
uniq-u.exe : $(srcdir)/uniq-u.c
$(CC) $(CFLAGS) $(srcdir)/uniq-u.c -Feuniq-u.exe
$(RM) uniq-u.obj
mostlyclean : clean
clean : force
$(RM) *.obj
$(RM) *.dll
$(RM) *.exe
$(RM) tmp*
$(RM) UTF-8.TXT
distclean : clean
maintainer-clean : distclean
force :