1 # Id: make.wnt,v 1.1 2003/06/04 00:25:54 marka Exp
2 # Makefile for MDN library, manually configured for WIN-NT (VC5.0)
4 # Copyright (c) 2000,2002 Japan Network Information Center. All rights reserved.
6 # By using this file, you agree to the terms and conditions set forth bellow.
8 # LICENSE TERMS AND CONDITIONS
10 # The following License Terms and Conditions apply, unless a different
11 # license is obtained from Japan Network Information Center ("JPNIC"),
12 # a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
13 # Chiyoda-ku, Tokyo 101-0047, Japan.
15 # 1. Use, Modification and Redistribution (including distribution of any
16 # modified or derived work) in source and/or binary forms is permitted
17 # under this License Terms and Conditions.
19 # 2. Redistribution of source code must retain the copyright notices as they
20 # appear in each source code file, this License Terms and Conditions.
22 # 3. Redistribution in binary form must reproduce the Copyright Notice,
23 # this License Terms and Conditions, in the documentation and/or other
24 # materials provided with the distribution. For the purposes of binary
25 # distribution the "Copyright Notice" refers to the following language:
26 # "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
28 # 4. The name of JPNIC may not be used to endorse or promote products
29 # derived from this Software without specific prior written approval of
32 # 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
33 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
34 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
35 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
36 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
37 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
38 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
39 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
41 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
42 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
44 !include <ntwin32.mak>
48 LIBS = $(ICONVDIR)\iconv.lib
50 SYSLIBS = $(conlibsdll)
53 # Files to build MDN library
58 $(INCDIR)\idn\aliaslist.h \
60 $(INCDIR)\idn\assert.h \
61 $(INCDIR)\idn\checker.h \
62 $(INCDIR)\idn\converter.h \
63 $(INCDIR)\idn\debug.h \
64 $(INCDIR)\idn\delimitermap.h \
65 $(INCDIR)\idn\export.h \
66 $(INCDIR)\idn\filechecker.h \
67 $(INCDIR)\idn\filemapper.h \
68 $(INCDIR)\idn\localencoding.h \
70 $(INCDIR)\idn\logmacro.h \
71 $(INCDIR)\idn\mapper.h \
72 $(INCDIR)\idn\mapselector.h \
73 $(INCDIR)\idn\nameprep.h \
74 $(INCDIR)\idn\normalizer.h \
75 $(INCDIR)\idn\punycode.h \
76 $(INCDIR)\idn\race.h \
78 $(INCDIR)\idn\resconf.h \
79 $(INCDIR)\idn\result.h \
80 $(INCDIR)\idn\strhash.h \
81 $(INCDIR)\idn\ucs4.h \
82 $(INCDIR)\idn\ucsmap.h \
83 $(INCDIR)\idn\ucsset.h \
84 $(INCDIR)\idn\unicode.h \
85 $(INCDIR)\idn\unormalize.h \
86 $(INCDIR)\idn\utf8.h \
87 $(INCDIR)\idn\util.h \
88 $(INCDIR)\idn\version.h
90 HDRS = $(ICONVDIR)\iconv.h \
93 SRCS = aliaslist.c api.c checker.c \
94 converter.c debug.c delimitermap.c \
95 filechecker.c filemapper.c \
96 localencoding.c log.c mapper.c \
97 mapselector.c nameprep.c nameprep_template.c \
98 nameprepdata.c normalizer.c punycode.c race.c \
99 res.c resconf.c result.c \
100 strhash.c ucs4.c ucsmap.c \
101 ucsset.c unicode.c unicode_template.c \
102 unicodedata_320.c unormalize.c \
103 utf8.c util.c version.c
105 OBJS = aliaslist.obj api.obj checker.obj \
106 converter.obj debug.obj delimitermap.obj \
107 filechecker.obj filemapper.obj \
108 localencoding.obj log.obj mapper.obj \
109 mapselector.obj nameprep.obj \
110 normalizer.obj punycode.obj race.obj \
111 res.obj resconf.obj result.obj \
112 strhash.obj ucs4.obj ucsmap.obj \
113 ucsset.obj unicode.obj \
115 utf8.obj util.obj version.obj
118 aliaslist_l.obj api_l.obj checker_l.obj \
119 converter_l.obj debug_l.obj delimitermap_l.obj \
120 filechecker_l.obj filemapper_l.obj \
121 localencoding_l.obj log_l.obj mapper_l.obj \
122 mapselector_l.obj nameprep_l.obj \
123 normalizer_l.obj punycode_l.obj race_l.obj \
124 res_l.obj resconf_l.obj result_l.obj \
125 strhash_l.obj ucs4_l.obj ucsmap_l.obj \
126 ucsset_l.obj unicode_l.obj \
128 utf8_l.obj util_l.obj version_l.obj
137 TARGETS = idnkit.dll idnkitlite.dll
143 $(link) /out:"idnkit.dll" /implib:"idnkit.lib" $(dlllflags) $(OBJS) $(LIBS) $(SYSLIBS)
145 idnkitlite.dll: $(OBJS_LITE)
147 $(link) /out:"idnkitlite.dll" /implib:"idnkitlite.lib" $(dlllflags) $(OBJS_LITE) $(LIBS_LITE) $(SYSLIBS)
161 EXP = -DIDN_EXPORT="extern __declspec(dllexport)"
162 CCARGS = $(cflags) $(cvarsdll) -I$(INCDIR) -I$(ICONVDIR) $(EXP) $(DBG)
163 CCARGS_LITE = $(cflags) $(cvarsdll) -I$(INCDIR) -DWITHOUT_ICONV $(EXP) $(DBG)
165 aliaslist.obj: aliaslist.c $(HDRS)
166 $(cc) $(CCARGS) /Foaliaslist.obj aliaslist.c
167 api.obj: api.c $(HDRS)
168 $(cc) $(CCARGS) /Foapi.obj api.c
169 checker.obj: checker.c $(HDRS)
170 $(cc) $(CCARGS) /Fochecker.obj checker.c
171 converter.obj: converter.c $(HDRS)
172 $(cc) $(CCARGS) /Foconverter.obj converter.c
173 debug.obj: debug.c $(HDRS)
174 $(cc) $(CCARGS) /Fodebug.obj debug.c
175 delimitermap.obj: delimitermap.c $(HDRS)
176 $(cc) $(CCARGS) /Fodelimitermap.obj delimitermap.c
177 filechecker.obj: filechecker.c $(HDRS)
178 $(cc) $(CCARGS) /Fofilechecker.obj filechecker.c
179 filemapper.obj: filemapper.c $(HDRS)
180 $(cc) $(CCARGS) /Fofilemapper.obj filemapper.c
181 localencoding.obj: localencoding.c $(HDRS)
182 $(cc) $(CCARGS) /Folocalencoding.obj localencoding.c
183 log.obj: log.c $(HDRS)
184 $(cc) $(CCARGS) /Folog.obj log.c
185 mapper.obj: mapper.c $(HDRS)
186 $(cc) $(CCARGS) /Fomapper.obj mapper.c
187 mapselector.obj: mapselector.c $(HDRS)
188 $(cc) $(CCARGS) /Fomapselector.obj mapselector.c
189 nameprep.obj: nameprep.c nameprepdata.c nameprep_template.c $(HDRS)
190 $(cc) $(CCARGS) /Fonameprep.obj nameprep.c
191 normalizer.obj: normalizer.c $(HDRS)
192 $(cc) $(CCARGS) /Fonormalizer.obj normalizer.c
193 punycode.obj: punycode.c $(HDRS)
194 $(cc) $(CCARGS) /Fopunycode.obj punycode.c
195 race.obj: race.c $(HDRS)
196 $(cc) $(CCARGS) /Forace.obj race.c
197 res.obj: res.c $(HDRS)
198 $(cc) $(CCARGS) /Fores.obj res.c
199 resconf.obj: resconf.c $(HDRS)
200 $(cc) $(CCARGS) /Foresconf.obj resconf.c
201 result.obj: result.c $(HDRS)
202 $(cc) $(CCARGS) /Foresult.obj result.c
203 strhash.obj: strhash.c $(HDRS)
204 $(cc) $(CCARGS) /Fostrhash.obj strhash.c
205 ucs4.obj: ucs4.c $(HDRS)
206 $(cc) $(CCARGS) /Foucs4.obj ucs4.c
207 ucsmap.obj: ucsmap.c $(HDRS)
208 $(cc) $(CCARGS) /Foucsmap.obj ucsmap.c
209 ucsset.obj: ucsset.c $(HDRS)
210 $(cc) $(CCARGS) /Foucsset.obj ucsset.c
211 unicode.obj: unicode.c unicodedata_320.c unicode_template.c $(HDRS)
212 $(cc) $(CCARGS) /Founicode.obj unicode.c
213 unormalize.obj: unormalize.c $(HDRS)
214 $(cc) $(CCARGS) /Founormalize.obj unormalize.c
215 utf8.obj: utf8.c $(HDRS)
216 $(cc) $(CCARGS) /Foutf8.obj utf8.c
217 util.obj: util.c $(HDRS)
218 $(cc) $(CCARGS) /Foutil.obj util.c
219 version.obj: version.c $(HDRS)
220 $(cc) $(CCARGS) /Foversion.obj version.c
222 aliaslist_l.obj: aliaslist.c $(HDRS_LITE)
223 $(cc) $(CCARGS_LITE) /Foaliaslist_l.obj aliaslist.c
224 api_l.obj: api.c $(HDRS_LITE)
225 $(cc) $(CCARGS_LITE) /Foapi_l.obj api.c
226 checker_l.obj: checker.c $(HDRS_LITE)
227 $(cc) $(CCARGS_LITE) /Fochecker_l.obj checker.c
228 converter_l.obj: converter.c $(HDRS_LITE)
229 $(cc) $(CCARGS_LITE) /Foconverter_l.obj converter.c
230 debug_l.obj: debug.c $(HDRS_LITE)
231 $(cc) $(CCARGS_LITE) /Fodebug_l.obj debug.c
232 delimitermap_l.obj: delimitermap.c $(HDRS_LITE)
233 $(cc) $(CCARGS_LITE) /Fodelimitermap_l.obj delimitermap.c
234 dude_l.obj: dude.c $(HDRS_LITE)
235 $(cc) $(CCARGS_LITE) /Fodude_l.obj dude.c
236 filechecker_l.obj: filechecker.c $(HDRS_LITE)
237 $(cc) $(CCARGS_LITE) /Fofilechecker_l.obj filechecker.c
238 filemapper_l.obj: filemapper.c $(HDRS_LITE)
239 $(cc) $(CCARGS_LITE) /Fofilemapper_l.obj filemapper.c
240 localencoding_l.obj: localencoding.c $(HDRS_LITE)
241 $(cc) $(CCARGS_LITE) /Folocalencoding_l.obj localencoding.c
242 log_l.obj: log.c $(HDRS_LITE)
243 $(cc) $(CCARGS_LITE) /Folog_l.obj log.c
244 mapper_l.obj: mapper.c $(HDRS_LITE)
245 $(cc) $(CCARGS_LITE) /Fomapper_l.obj mapper.c
246 mapselector_l.obj: mapselector.c $(HDRS_LITE)
247 $(cc) $(CCARGS_LITE) /Fomapselector_l.obj mapselector.c
248 nameprep_l.obj: nameprep.c nameprepdata.c nameprep_template.c $(HDRS_LITE)
249 $(cc) $(CCARGS_LITE) /Fonameprep_l.obj nameprep.c
250 normalizer_l.obj: normalizer.c $(HDRS_LITE)
251 $(cc) $(CCARGS_LITE) /Fonormalizer_l.obj normalizer.c
252 punycode_l.obj: punycode.c $(HDRS_LITE)
253 $(cc) $(CCARGS_LITE) /Fopunycode_l.obj punycode.c
254 race_l.obj: race.c $(HDRS_LITE)
255 $(cc) $(CCARGS_LITE) /Forace_l.obj race.c
256 res_l.obj: res.c $(HDRS_LITE)
257 $(cc) $(CCARGS_LITE) /Fores_l.obj res.c
258 resconf_l.obj: resconf.c $(HDRS_LITE)
259 $(cc) $(CCARGS_LITE) /Foresconf_l.obj resconf.c
260 result_l.obj: result.c $(HDRS_LITE)
261 $(cc) $(CCARGS_LITE) /Foresult_l.obj result.c
262 strhash_l.obj: strhash.c $(HDRS_LITE)
263 $(cc) $(CCARGS_LITE) /Fostrhash_l.obj strhash.c
264 ucs4_l.obj: ucs4.c $(HDRS_LITE)
265 $(cc) $(CCARGS_LITE) /Foucs4_l.obj ucs4.c
266 ucsmap_l.obj: ucsmap.c $(HDRS_LITE)
267 $(cc) $(CCARGS_LITE) /Foucsmap_l.obj ucsmap.c
268 ucsset_l.obj: ucsset.c $(HDRS_LITE)
269 $(cc) $(CCARGS_LITE) /Foucsset_l.obj ucsset.c
270 unicode_l.obj: unicode.c unicodedata_320.c unicode_template.c $(HDRS_LITE)
271 $(cc) $(CCARGS_LITE) /Founicode_l.obj unicode.c
272 unormalize_l.obj: unormalize.c $(HDRS_LITE)
273 $(cc) $(CCARGS_LITE) /Founormalize_l.obj unormalize.c
274 utf8_l.obj: utf8.c $(HDRS_LITE)
275 $(cc) $(CCARGS_LITE) /Foutf8_l.obj utf8.c
276 util_l.obj: util.c $(HDRS_LITE)
277 $(cc) $(CCARGS_LITE) /Foutil_l.obj util.c
278 version_l.obj: version.c $(HDRS_LITE)
279 $(cc) $(CCARGS_LITE) /Foversion_l.obj version.c