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 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
|
# $Id: Makefile.in,v 1.2 2004/07/20 07:13:39 marka Exp $
# Copyright (c) 2000, 2002 Japan Network Information Center.
# All rights reserved.
#
# By using this file, you agree to the terms and conditions set forth bellow.
#
# LICENSE TERMS AND CONDITIONS
#
# The following License Terms and Conditions apply, unless a different
# license is obtained from Japan Network Information Center ("JPNIC"),
# a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda,
# Chiyoda-ku, Tokyo 101-0047, Japan.
#
# 1. Use, Modification and Redistribution (including distribution of any
# modified or derived work) in source and/or binary forms is permitted
# under this License Terms and Conditions.
#
# 2. Redistribution of source code must retain the copyright notices as they
# appear in each source code file, this License Terms and Conditions.
#
# 3. Redistribution in binary form must reproduce the Copyright Notice,
# this License Terms and Conditions, in the documentation and/or other
# materials provided with the distribution. For the purposes of binary
# distribution the "Copyright Notice" refers to the following language:
# "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved."
#
# 4. The name of JPNIC may not be used to endorse or promote products
# derived from this Software without specific prior written approval of
# JPNIC.
#
# 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
build = @build@
LIB_CURRENT = 1
LIB_REVISION = 2
LIB_AGE = 0
.SUFFIXES:
.SUFFIXES: .c .lo .to
top_builddir = ..
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
sysconfdir = @sysconfdir@
datadir = @datadir@
mapdir = $(datadir)/idnkit
utf8_name = @UTF8_NAME@
SUBDIRS = tests
SHELL = @SHELL@
CC = @CC@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
LIBTOOL = @LIBTOOL@
ICONVINC = @ICONVINC@
ICONVLIB = @ICONVLIB@
INCS = -I$(srcdir)/../include -I../include $(ICONVINC)
DEFS = -DIDN_RESCONF_DIR="\"$(sysconfdir)\""
CFLAGS = $(OPTS) $(INCS) $(DEFS) @CPPFLAGS@ @CFLAGS@
LDFLAGS = @LDFLAGS@
SRCS = \
aliaslist.c \
api.c \
checker.c \
converter.c \
debug.c \
delimitermap.c \
filechecker.c \
filemapper.c \
localencoding.c \
log.c \
mapper.c \
mapselector.c \
nameprep.c \
nameprep_template.c \
nameprepdata.c \
normalizer.c \
punycode.c \
race.c \
res.c \
resconf.c \
result.c \
strhash.c \
ucs4.c \
ucsmap.c \
ucsset.c \
unicode.c \
unicode_template.c \
unicodedata_320.c \
unormalize.c \
util.c \
utf8.c \
version.c
OBJS = \
aliaslist.lo \
api.lo \
checker.lo \
converter.lo \
debug.lo \
delimitermap.lo \
filechecker.lo \
filemapper.lo \
localencoding.lo \
log.lo \
mapper.lo \
mapselector.lo \
nameprep.lo \
normalizer.lo \
punycode.lo \
race.lo \
res.lo \
resconf.lo \
result.lo \
strhash.lo \
ucs4.lo \
ucsmap.lo \
ucsset.lo \
unicode.lo \
unormalize.lo \
utf8.lo \
util.lo \
version.lo
LIB = libidnkit
TESTLIB = libidntest
LITELIBCFLAGS = $(CFLAGS) -DWITHOUT_ICONV
LITELIB_OBJS = \
apilite.lo \
converterlite.lo \
reslite.lo \
resconflite.lo \
aliaslist.lo \
checker.lo \
debug.lo \
delimitermap.lo \
filechecker.lo \
filemapper.lo \
log.lo \
mapper.lo \
mapselector.lo \
nameprep.lo \
normalizer.lo \
punycode.lo \
race.lo \
result.lo \
strhash.lo \
ucsmap.lo \
ucsset.lo \
unicode.lo \
unormalize.lo \
ucs4.lo \
utf8.lo \
util.lo \
version.lo
LITELIB = libidnkitlite
TESTLITELIB = libidntestlite
SAMPLES = idn.conf.sample idnalias.conf.sample
.c.lo:
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
.c.to:
$(CC) -o $@ -DTEST $(CFLAGS) $(LDFLAGS) -c $<
all: all-localdir all-subdirs
@LITEONLY_TRUE@all-localdir: $(LITELIB).la $(SAMPLES)
@LITEONLY_FALSE@all-localdir: $(LIB).la $(LITELIB).la $(SAMPLES)
$(LIB).la: $(OBJS)
$(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ \
-version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \
-rpath $(libdir) $(OBJS)
$(TESTLIB).la: $(OBJS)
$(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ \
-version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \
-rpath $(libdir) $(OBJS)
apilite.lo: api.c
$(LIBTOOL) --mode=compile $(CC) $(LITELIBCFLAGS) -o $@ \
-c $(srcdir)/api.c
converterlite.lo: converter.c
$(LIBTOOL) --mode=compile $(CC) $(LITELIBCFLAGS) -o $@ \
-c $(srcdir)/converter.c
reslite.lo: res.c
$(LIBTOOL) --mode=compile $(CC) $(LITELIBCFLAGS) -o $@ \
-c $(srcdir)/res.c
resconflite.lo: resconf.c
$(LIBTOOL) --mode=compile $(CC) $(LITELIBCFLAGS) -o $@ \
-c $(srcdir)/resconf.c
$(LITELIB).la: $(LITELIB_OBJS)
$(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ \
-version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \
-rpath $(libdir) $(LITELIB_OBJS)
$(TESTLITELIB).la: $(LITELIB_OBJS)
$(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ \
-version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \
-rpath $(libdir) $(LITELIB_OBJS)
idn.conf.sample: idn.conf.sample.in
sed -e 's%[@]mapdir[@]%$(mapdir)%' \
< $(srcdir)/idn.conf.sample.in > $@
idnalias.conf.sample: Makefile
$(SHELL) $(srcdir)/aliaslist.sh $(build) $(utf8_name) > $@
install: install-localdir install-subdirs
@LITEONLY_TRUE@install-localdir: all install-common
@LITEONLY_FALSE@install-localdir: all install-common install-nolite
install-common:
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(LIBTOOL) $(INSTALL_DATA) $(LITELIB).la \
$(DESTDIR)$(libdir)/$(LITELIB).la
-[ -f $(DESTDIR)$(libdir)/$(LITELIB).a ] \
&& $(RANLIB) $(DESTDIR)$(libdir)/$(LITELIB).a
$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)
$(INSTALL_DATA) idn.conf.sample \
$(DESTDIR)$(sysconfdir)/idn.conf.sample
$(INSTALL_DATA) idnalias.conf.sample \
$(DESTDIR)$(sysconfdir)/idnalias.conf.sample
@if [ ! -f $(DESTDIR)$(sysconfdir)/idn.conf ]; then \
echo "** installing default idn.conf"; \
$(INSTALL_DATA) idn.conf.sample $(DESTDIR)$(sysconfdir)/idn.conf; \
fi
@if [ ! -f $(DESTDIR)$(sysconfdir)/idnalias.conf ]; then \
echo "** installing default idnalias.conf"; \
$(INSTALL_DATA) idnalias.conf.sample \
$(DESTDIR)$(sysconfdir)/idnalias.conf; \
fi
install-nolite:
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
$(LIBTOOL) $(INSTALL_DATA) $(LIB).la \
$(DESTDIR)$(libdir)/$(LIB).la
-[ -f $(DESTDIR)$(libdir)/$(LIB).a ] \
&& $(RANLIB) $(DESTDIR)$(libdir)/$(LIB).a
install-config:
@if [ -f $(DESTDIR)$(sysconfdir)/idn.conf ]; then \
echo "** backing up old idn.conf as idn.conf.old"; \
mv -f $(DESTDIR)$(sysconfdir)/idn.conf \
$(DESTDIR)$(sysconfdir)/idn.conf.old; \
fi
@echo "** installing default idn.conf forcibly"
$(INSTALL_DATA) idn.conf.sample $(DESTDIR)$(sysconfdir)/idn.conf
@if [ -f $(DESTDIR)$(sysconfdir)/idnalias.conf ]; then \
echo "** backing up old idnalias.conf as idnalias.conf.old"; \
mv -f $(DESTDIR)$(sysconfdir)/idnalias.conf \
$(DESTDIR)$(sysconfdir)/idnalias.conf.old; \
fi
@echo "** installing default idnalias.conf forcibly"
$(INSTALL_DATA) idnalias.conf.sample \
$(DESTDIR)$(sysconfdir)/idnalias.conf
clean: clean-localdir clean-subdirs
clean-localdir: force
rm -f *.o *.lo *.la *.a core *.core *~
rm -f *.to *_test.c *_test
rm -f idn.conf.sample idnalias.conf.sample
rm -fr .libs/
distclean: distclean-localdir distclean-subdirs
distclean-localdir: force clean-localdir
rm -f Makefile
test check: test-localdir test-subdirs
@LITEONLY_TRUE@test-localdir: $(TESTLITELIB).la $(SAMPLES)
@LITEONLY_FALSE@test-localdir: $(TESTLIB).la $(TESTLITELIB).la $(SAMPLES)
all-subdirs install-subdirs clean-subdirs distclean-subdirs test-subdirs:
@target=`echo $@ | sed 's/-subdirs$$//'`; \
for d in $(SUBDIRS) ; do \
(cd $$d; $(MAKE) DESTDIR=$(DESTDIR) $$target); \
done
force:
|