1 # Id: Makefile.in,v 1.2 2004/07/20 07:13:39 marka Exp
2 # Copyright (c) 2000, 2002 Japan Network Information Center.
5 # By using this file, you agree to the terms and conditions set forth bellow.
7 # LICENSE TERMS AND CONDITIONS
9 # The following License Terms and Conditions apply, unless a different
10 # license is obtained from Japan Network Information Center ("JPNIC"),
11 # a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
12 # Chiyoda-ku, Tokyo 101-0047, Japan.
14 # 1. Use, Modification and Redistribution (including distribution of any
15 # modified or derived work) in source and/or binary forms is permitted
16 # under this License Terms and Conditions.
18 # 2. Redistribution of source code must retain the copyright notices as they
19 # appear in each source code file, this License Terms and Conditions.
21 # 3. Redistribution in binary form must reproduce the Copyright Notice,
22 # this License Terms and Conditions, in the documentation and/or other
23 # materials provided with the distribution. For the purposes of binary
24 # distribution the "Copyright Notice" refers to the following language:
25 # "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
27 # 4. The name of JPNIC may not be used to endorse or promote products
28 # derived from this Software without specific prior written approval of
31 # 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
32 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
34 # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
35 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
36 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
37 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
38 # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
40 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
41 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
57 IDNLIB
= ..
/libidntest.la
58 IDNLITELIB
= ..
/libidntestlite.la
60 INCS
= -I.
-I
$(srcdir) -I
$(srcdir)/..
/..
/include -I..
/..
/include $(ICONVINC
)
63 CFLAGS
= $(INCS
) $(DEFS
) @CPPFLAGS@ @CFLAGS@
69 COMMONSRCS
= testsuite.c testutil.c setenv.c
70 COMMONOBJS
= testsuite.lo testutil.lo setenv.lo
71 BUILTSRCS
= api.c api-init1.c api-init2.c api-init3.c \
72 api-init4-1.c api-init4-2.c api-init4-3.c \
73 api-init5-1.c api-init5-2.c api-init5-3.c \
74 res.c resconf.c mapselector.c checker.c converter.c mapper.c \
75 normalizer.c delimitermap.c ucs4.c nameprep.c \
99 LITETESTS
= apilite-test \
106 $(PERL
) $(srcdir)/testygen
-o
$@
$(TSYFLAGS
) $<
107 $(PERL
) $(srcdir)/utffilter
$@
> $@.tmp
115 rm -f
*.o
*.lo
*.tmp core
*.core
*~
116 rm -f
$(TESTS
) $(LITETESTS
) $(BUILTSRCS
)
117 rm -f
test.conf testalias.conf
test.map
124 @LITEONLY_TRUE@
test check: test-lite
125 @LITEONLY_FALSE@
test check: test-nolite
127 test-lite
: $(LITETESTS
)
128 @for i in
$(LITETESTS
); do \
129 echo
"Run test program: $$i"; \
134 test-nolite
: $(TESTS
) $(LITETESTS
) iconvchk
136 @for i in
$(TESTS
) $(LITETESTS
); do \
137 echo
"Run test program: $$i"; \
142 api-test
: api.lo
$(IDNLIB
) $(COMMONOBJS
)
143 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
144 api.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
145 api.lo
: api.c testconfig.h
146 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api.c
148 apilite-test
: apilite.lo
$(IDNLITELIB
) $(COMMONOBJS
)
149 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
150 apilite.lo
$(COMMONOBJS
) $(IDNLITELIB
)
151 apilite.lo
: api.c testconfig.h
152 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -DWITHOUT_ICONV
-o
$@ \
155 api-init1-test
: api-init1.lo
$(IDNLIB
) $(COMMONOBJS
)
156 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
157 api-init1.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
158 api-init1.lo
: api-init1.c testconfig.h
159 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init1.c
161 api-init2-test
: api-init2.lo
$(IDNLIB
) $(COMMONOBJS
)
162 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
163 api-init2.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
164 api-init2.lo
: api-init2.c testconfig.h
165 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init2.c
167 api-init3-test
: api-init3.lo
$(IDNLIB
) $(COMMONOBJS
)
168 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
169 api-init3.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
170 api-init3.lo
: api-init3.c testconfig.h
171 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init3.c
173 api-init4-1-test
: api-init4-1.lo
$(IDNLIB
) $(COMMONOBJS
)
174 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
175 api-init4-1.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
176 api-init4-1.lo
: api-init4-1.c testconfig.h
177 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init4-1.c
179 api-init4-2-test
: api-init4-2.lo
$(IDNLIB
) $(COMMONOBJS
)
180 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
181 api-init4-2.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
182 api-init4-2.lo
: api-init4-2.c testconfig.h
183 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init4-2.c
185 api-init4-3-test
: api-init4-3.lo
$(IDNLIB
) $(COMMONOBJS
)
186 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
187 api-init4-3.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
188 api-init4-3.lo
: api-init4-3.c testconfig.h
189 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init4-3.c
191 api-init5-1-test
: api-init5-1.lo
$(IDNLIB
) $(COMMONOBJS
)
192 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
193 api-init5-1.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
194 api-init5-1.lo
: api-init5-1.c testconfig.h
195 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init5-1.c
197 api-init5-2-test
: api-init5-2.lo
$(IDNLIB
) $(COMMONOBJS
)
198 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
199 api-init5-2.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
200 api-init5-2.lo
: api-init5-2.c testconfig.h
201 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init5-2.c
203 api-init5-3-test
: api-init5-3.lo
$(IDNLIB
) $(COMMONOBJS
)
204 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
205 api-init5-3.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
206 api-init5-3.lo
: api-init5-3.c testconfig.h
207 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c api-init5-3.c
209 res-test
: res.lo
$(IDNLIB
) $(COMMONOBJS
)
210 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
211 res.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
212 res.lo
: res.c testconfig.h
213 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c res.c
215 reslite-test
: reslite.lo
$(IDNLITELIB
) $(COMMONOBJS
)
216 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
217 reslite.lo
$(COMMONOBJS
) $(IDNLITELIB
)
218 reslite.lo
: res.c testconfig.h
219 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -DWITHOUT_ICONV
-o
$@ \
222 resconf-test
: resconf.lo
$(IDNLIB
) $(COMMONOBJS
)
223 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
224 resconf.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
225 resconf.lo
: resconf.c testconfig.h
226 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c resconf.c
228 resconflite-test
: resconflite.lo
$(IDNLITELIB
) $(COMMONOBJS
)
229 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
230 resconflite.lo
$(COMMONOBJS
) $(IDNLITELIB
)
231 resconflite.lo
: resconf.c testconfig.h
232 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -DWITHOUT_ICONV
-o
$@ \
235 mapselector-test
: mapselector.lo
$(IDNLIB
) $(COMMONOBJS
)
236 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
237 mapselector.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
238 mapselector.lo
: mapselector.c
239 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c mapselector.c
241 converter-test
: converter.lo
$(IDNLIB
) $(COMMONOBJS
)
242 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
243 converter.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
244 converter.lo
: converter.c
245 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c converter.c
247 converterlite-test
: converterlite.lo
$(IDNLITELIB
) $(COMMONOBJS
)
248 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
249 converterlite.lo
$(COMMONOBJS
) $(IDNLITELIB
)
250 converterlite.lo
: converter.c
251 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -DWITHOUT_ICONV
-o
$@ \
254 checker-test
: checker.lo
$(IDNLIB
) $(COMMONOBJS
)
255 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
256 checker.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
257 checker.lo
: checker.c
258 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c checker.c
260 mapper-test
: mapper.lo
$(IDNLIB
) $(COMMONOBJS
)
261 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
262 mapper.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
264 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c mapper.c
266 normalizer-test
: normalizer.lo
$(IDNLIB
) $(COMMONOBJS
)
267 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
268 normalizer.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
269 normalizer.lo
: normalizer.c
270 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c normalizer.c
272 delimitermap-test
: delimitermap.lo
$(IDNLIB
) $(COMMONOBJS
)
273 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
274 delimitermap.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
275 delimitermap.lo
: delimitermap.c
276 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c delimitermap.c
278 ucs4-test
: ucs4.lo
$(IDNLIB
) $(COMMONOBJS
)
279 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
280 ucs4.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
282 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c ucs4.c
284 nameprep-test
: nameprep.lo
$(IDNLIB
) $(COMMONOBJS
)
285 $(LIBTOOL
) --mode
=link
$(CC
) $(LDFLAGS
) -o
$@ \
286 nameprep.lo
$(COMMONOBJS
) $(IDNLIB
) $(ICONVLIB
)
287 nameprep.lo
: nameprep.c
288 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c nameprep.c
290 testsuite.lo
: testsuite.c testsuite.h
291 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/testsuite.c
292 testutil.lo
: testutil.c testutil.h
293 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/testutil.c
295 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -o
$@
-c
$(srcdir)/setenv.c
297 testconfig.h
: ..
/..
/include/config.h
299 sed
-n
-e
'/HAVE_SETENV/p' -e
'/HAVE_UNSETENV/p' \
300 ..
/..
/include/config.h
> testconfig.h
302 iconvchk
: iconvchk.c codeset.h
303 $(LIBTOOL
) --mode
=link
$(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@ \
304 $(srcdir)/iconvchk.c
$(IDNLIB
) $(ICONVLIB
)