1# $Id: make.wnt,v 1.25 2003/02/13 01:46:30 ishisone Exp $
2# Makefile for MDN library, manually configured for WIN-NT (VC5.0)
3#
4# Copyright (c) 2000,2002 Japan Network Information Center.  All rights reserved.
5#
6# By using this file, you agree to the terms and conditions set forth bellow.
7#
8# 			LICENSE TERMS AND CONDITIONS
9#
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.
14#
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.
18#
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.
21#
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."
27#
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
30#    JPNIC.
31#
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.
43
44!include <ntwin32.mak>
45
46INCDIR = ..\include
47ICONVDIR = ..\win
48LIBS = $(ICONVDIR)\iconv.lib
49LIBS_LITE =
50SYSLIBS = $(conlibsdll)
51
52#
53# Files to build MDN library
54#
55
56HDRS_LITE = \
57	$(INCDIR)\config.h \
58	$(INCDIR)\idn\aliaslist.h \
59	$(INCDIR)\idn\api.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 \
69	$(INCDIR)\idn\log.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 \
77	$(INCDIR)\idn\res.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
89
90HDRS =  $(ICONVDIR)\iconv.h \
91	$(HDRS_LITE)
92
93SRCS =	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
104
105OBJS =	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 \
114	unormalize.obj \
115	utf8.obj util.obj version.obj
116
117OBJS_LITE = \
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 \
127	unormalize_l.obj \
128	utf8_l.obj util_l.obj version_l.obj
129
130
131#DBG = -DDEBUG
132
133#
134# Target to build
135#
136
137TARGETS = idnkit.dll idnkitlite.dll
138
139all: $(TARGETS)
140
141idnkit.dll: $(OBJS)
142	-del idnkit.dll
143	$(link) /out:"idnkit.dll" /implib:"idnkit.lib" $(dlllflags) $(OBJS) $(LIBS) $(SYSLIBS)
144
145idnkitlite.dll: $(OBJS_LITE)
146	-del idnkitlite.dll
147	$(link) /out:"idnkitlite.dll" /implib:"idnkitlite.lib" $(dlllflags) $(OBJS_LITE) $(LIBS_LITE) $(SYSLIBS)
148
149install:
150
151clean:
152	-del *.obj
153	-del *.lib
154	-del *.dll
155	-del *.exp
156
157#
158# Dependencies
159#
160
161EXP = -DIDN_EXPORT="extern __declspec(dllexport)"
162CCARGS = $(cflags) $(cvarsdll) -I$(INCDIR) -I$(ICONVDIR) $(EXP) $(DBG)
163CCARGS_LITE = $(cflags) $(cvarsdll) -I$(INCDIR) -DWITHOUT_ICONV $(EXP) $(DBG)
164
165aliaslist.obj: aliaslist.c  $(HDRS)
166	$(cc) $(CCARGS) /Foaliaslist.obj aliaslist.c
167api.obj: api.c  $(HDRS)
168	$(cc) $(CCARGS) /Foapi.obj api.c
169checker.obj: checker.c  $(HDRS)
170	$(cc) $(CCARGS) /Fochecker.obj checker.c
171converter.obj: converter.c  $(HDRS)
172	$(cc) $(CCARGS) /Foconverter.obj converter.c
173debug.obj: debug.c  $(HDRS)
174	$(cc) $(CCARGS) /Fodebug.obj debug.c
175delimitermap.obj: delimitermap.c  $(HDRS)
176	$(cc) $(CCARGS) /Fodelimitermap.obj delimitermap.c
177filechecker.obj: filechecker.c  $(HDRS)
178	$(cc) $(CCARGS) /Fofilechecker.obj filechecker.c
179filemapper.obj: filemapper.c  $(HDRS)
180	$(cc) $(CCARGS) /Fofilemapper.obj filemapper.c
181localencoding.obj: localencoding.c  $(HDRS)
182	$(cc) $(CCARGS) /Folocalencoding.obj localencoding.c
183log.obj: log.c  $(HDRS)
184	$(cc) $(CCARGS) /Folog.obj log.c
185mapper.obj: mapper.c  $(HDRS)
186	$(cc) $(CCARGS) /Fomapper.obj mapper.c
187mapselector.obj: mapselector.c  $(HDRS)
188	$(cc) $(CCARGS) /Fomapselector.obj mapselector.c
189nameprep.obj: nameprep.c nameprepdata.c nameprep_template.c $(HDRS)
190	$(cc) $(CCARGS) /Fonameprep.obj nameprep.c
191normalizer.obj: normalizer.c  $(HDRS)
192	$(cc) $(CCARGS) /Fonormalizer.obj normalizer.c
193punycode.obj: punycode.c  $(HDRS)
194	$(cc) $(CCARGS) /Fopunycode.obj punycode.c
195race.obj: race.c  $(HDRS)
196	$(cc) $(CCARGS) /Forace.obj race.c
197res.obj: res.c  $(HDRS)
198	$(cc) $(CCARGS) /Fores.obj res.c
199resconf.obj: resconf.c  $(HDRS)
200	$(cc) $(CCARGS) /Foresconf.obj resconf.c
201result.obj: result.c  $(HDRS)
202	$(cc) $(CCARGS) /Foresult.obj result.c
203strhash.obj: strhash.c  $(HDRS)
204	$(cc) $(CCARGS) /Fostrhash.obj strhash.c
205ucs4.obj: ucs4.c  $(HDRS)
206	$(cc) $(CCARGS) /Foucs4.obj ucs4.c
207ucsmap.obj: ucsmap.c  $(HDRS)
208	$(cc) $(CCARGS) /Foucsmap.obj ucsmap.c
209ucsset.obj: ucsset.c  $(HDRS)
210	$(cc) $(CCARGS) /Foucsset.obj ucsset.c
211unicode.obj: unicode.c unicodedata_320.c unicode_template.c $(HDRS)
212	$(cc) $(CCARGS) /Founicode.obj unicode.c
213unormalize.obj: unormalize.c  $(HDRS)
214	$(cc) $(CCARGS) /Founormalize.obj unormalize.c
215utf8.obj: utf8.c  $(HDRS)
216	$(cc) $(CCARGS) /Foutf8.obj utf8.c
217util.obj: util.c  $(HDRS)
218	$(cc) $(CCARGS) /Foutil.obj util.c
219version.obj: version.c  $(HDRS)
220	$(cc) $(CCARGS) /Foversion.obj version.c
221
222aliaslist_l.obj: aliaslist.c  $(HDRS_LITE)
223	$(cc) $(CCARGS_LITE) /Foaliaslist_l.obj aliaslist.c
224api_l.obj: api.c  $(HDRS_LITE)
225	$(cc) $(CCARGS_LITE) /Foapi_l.obj api.c
226checker_l.obj: checker.c  $(HDRS_LITE)
227	$(cc) $(CCARGS_LITE) /Fochecker_l.obj checker.c
228converter_l.obj: converter.c  $(HDRS_LITE)
229	$(cc) $(CCARGS_LITE) /Foconverter_l.obj converter.c
230debug_l.obj: debug.c  $(HDRS_LITE)
231	$(cc) $(CCARGS_LITE) /Fodebug_l.obj debug.c
232delimitermap_l.obj: delimitermap.c  $(HDRS_LITE)
233	$(cc) $(CCARGS_LITE) /Fodelimitermap_l.obj delimitermap.c
234dude_l.obj: dude.c  $(HDRS_LITE)
235	$(cc) $(CCARGS_LITE) /Fodude_l.obj dude.c
236filechecker_l.obj: filechecker.c  $(HDRS_LITE)
237	$(cc) $(CCARGS_LITE) /Fofilechecker_l.obj filechecker.c
238filemapper_l.obj: filemapper.c  $(HDRS_LITE)
239	$(cc) $(CCARGS_LITE) /Fofilemapper_l.obj filemapper.c
240localencoding_l.obj: localencoding.c  $(HDRS_LITE)
241	$(cc) $(CCARGS_LITE) /Folocalencoding_l.obj localencoding.c
242log_l.obj: log.c  $(HDRS_LITE)
243	$(cc) $(CCARGS_LITE) /Folog_l.obj log.c
244mapper_l.obj: mapper.c  $(HDRS_LITE)
245	$(cc) $(CCARGS_LITE) /Fomapper_l.obj mapper.c
246mapselector_l.obj: mapselector.c  $(HDRS_LITE)
247	$(cc) $(CCARGS_LITE) /Fomapselector_l.obj mapselector.c
248nameprep_l.obj: nameprep.c nameprepdata.c nameprep_template.c $(HDRS_LITE)
249	$(cc) $(CCARGS_LITE) /Fonameprep_l.obj nameprep.c
250normalizer_l.obj: normalizer.c  $(HDRS_LITE)
251	$(cc) $(CCARGS_LITE) /Fonormalizer_l.obj normalizer.c
252punycode_l.obj: punycode.c  $(HDRS_LITE)
253	$(cc) $(CCARGS_LITE) /Fopunycode_l.obj punycode.c
254race_l.obj: race.c  $(HDRS_LITE)
255	$(cc) $(CCARGS_LITE) /Forace_l.obj race.c
256res_l.obj: res.c  $(HDRS_LITE)
257	$(cc) $(CCARGS_LITE) /Fores_l.obj res.c
258resconf_l.obj: resconf.c  $(HDRS_LITE)
259	$(cc) $(CCARGS_LITE) /Foresconf_l.obj resconf.c
260result_l.obj: result.c  $(HDRS_LITE)
261	$(cc) $(CCARGS_LITE) /Foresult_l.obj result.c
262strhash_l.obj: strhash.c  $(HDRS_LITE)
263	$(cc) $(CCARGS_LITE) /Fostrhash_l.obj strhash.c
264ucs4_l.obj: ucs4.c  $(HDRS_LITE)
265	$(cc) $(CCARGS_LITE) /Foucs4_l.obj ucs4.c
266ucsmap_l.obj: ucsmap.c  $(HDRS_LITE)
267	$(cc) $(CCARGS_LITE) /Foucsmap_l.obj ucsmap.c
268ucsset_l.obj: ucsset.c  $(HDRS_LITE)
269	$(cc) $(CCARGS_LITE) /Foucsset_l.obj ucsset.c
270unicode_l.obj: unicode.c unicodedata_320.c unicode_template.c $(HDRS_LITE)
271	$(cc) $(CCARGS_LITE) /Founicode_l.obj unicode.c
272unormalize_l.obj: unormalize.c  $(HDRS_LITE)
273	$(cc) $(CCARGS_LITE) /Founormalize_l.obj unormalize.c
274utf8_l.obj: utf8.c  $(HDRS_LITE)
275	$(cc) $(CCARGS_LITE) /Foutf8_l.obj utf8.c
276util_l.obj: util.c  $(HDRS_LITE)
277	$(cc) $(CCARGS_LITE) /Foutil_l.obj util.c
278version_l.obj: version.c  $(HDRS_LITE)
279	$(cc) $(CCARGS_LITE) /Foversion_l.obj version.c
280