1# Id: Makefile.in,v 1.1 2003/06/04 00:27:11 marka Exp 2# Copyright (c) 2000 Japan Network Information Center. All rights reserved. 3# 4# By using this file, you agree to the terms and conditions set forth bellow. 5# 6# LICENSE TERMS AND CONDITIONS 7# 8# The following License Terms and Conditions apply, unless a different 9# license is obtained from Japan Network Information Center ("JPNIC"), 10# a Japanese association, Kokusai-Kougyou-Kanda Bldg 6F, 2-3-4 Uchi-Kanda, 11# Chiyoda-ku, Tokyo 101-0047, Japan. 12# 13# 1. Use, Modification and Redistribution (including distribution of any 14# modified or derived work) in source and/or binary forms is permitted 15# under this License Terms and Conditions. 16# 17# 2. Redistribution of source code must retain the copyright notices as they 18# appear in each source code file, this License Terms and Conditions. 19# 20# 3. Redistribution in binary form must reproduce the Copyright Notice, 21# this License Terms and Conditions, in the documentation and/or other 22# materials provided with the distribution. For the purposes of binary 23# distribution the "Copyright Notice" refers to the following language: 24# "Copyright (c) 2000-2002 Japan Network Information Center. All rights reserved." 25# 26# 4. The name of JPNIC may not be used to endorse or promote products 27# derived from this Software without specific prior written approval of 28# JPNIC. 29# 30# 5. Disclaimer/Limitation of Liability: THIS SOFTWARE IS PROVIDED BY JPNIC 31# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 32# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 33# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JPNIC BE LIABLE 34# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 35# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 36# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 37# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 38# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 39# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 40# ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 41 42LIB_CURRENT = 1 43LIB_REVISION = 1 44LIB_AGE = 0 45 46.SUFFIXES: 47.SUFFIXES: .c .lo 48 49top_builddir = ../.. 50subdir = tools/runidn 51 52srcdir = @srcdir@ 53VPATH = @srcdir@ 54 55prefix = @prefix@ 56exec_prefix = @exec_prefix@ 57 58bindir = @bindir@ 59libdir = @libdir@ 60mandir = @mandir@ 61man1dir = $(mandir)/man1 62 63CC = @CC@ 64INSTALL = @INSTALL@ 65INSTALL_PROGRAM = @INSTALL_PROGRAM@ 66INSTALL_SCRIPT = @INSTALL_SCRIPT@ 67INSTALL_DATA = @INSTALL_DATA@ 68MKINSTALLDIRS = @top_srcdir@/mkinstalldirs 69SHELL = @SHELL@ 70LIBTOOL = @LIBTOOL@ 71 72ICONVINC = @ICONVINC@ 73ICONVLIB = @ICONVLIB@ 74 75INCS = -I$(srcdir) -I$(srcdir)/../../include -I../../include $(ICONVINC) 76DEFS = 77 78CFLAGS = $(INCS) $(DEFS) @CPPFLAGS@ @CFLAGS@ 79LDFLAGS = @LDFLAGS@ 80 81LIB = libidnkitres 82OBJS = rtresolver.lo stub.lo $(IDNOBJS) 83SCRIPT = runidn 84LIBDL = @LIBDL@ 85 86IDNDIR = ../../lib 87IDNOBJS = \ 88 $(IDNDIR)/aliaslist.lo \ 89 $(IDNDIR)/api.lo \ 90 $(IDNDIR)/checker.lo \ 91 $(IDNDIR)/converter.lo \ 92 $(IDNDIR)/debug.lo \ 93 $(IDNDIR)/delimitermap.lo \ 94 $(IDNDIR)/filechecker.lo \ 95 $(IDNDIR)/filemapper.lo \ 96 $(IDNDIR)/localencoding.lo \ 97 $(IDNDIR)/log.lo \ 98 $(IDNDIR)/mapper.lo \ 99 $(IDNDIR)/mapselector.lo \ 100 $(IDNDIR)/nameprep.lo \ 101 $(IDNDIR)/normalizer.lo \ 102 $(IDNDIR)/punycode.lo \ 103 $(IDNDIR)/race.lo \ 104 $(IDNDIR)/res.lo \ 105 $(IDNDIR)/resconf.lo \ 106 $(IDNDIR)/result.lo \ 107 $(IDNDIR)/strhash.lo \ 108 $(IDNDIR)/ucsmap.lo \ 109 $(IDNDIR)/ucsset.lo \ 110 $(IDNDIR)/unicode.lo \ 111 $(IDNDIR)/unormalize.lo \ 112 $(IDNDIR)/ucs4.lo \ 113 $(IDNDIR)/utf8.lo \ 114 $(IDNDIR)/util.lo \ 115 $(IDNDIR)/version.lo 116 117.c.lo: 118 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $< 119 120@RUNIDN_TRUE@all: $(LIB).la runidn 121@RUNIDN_FALSE@all: 122 123rtresolver.lo: $(srcdir)/resolver.c 124 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -DFOR_RUNIDN -o $@ \ 125 -c $(srcdir)/resolver.c 126 127$(LIB).la: $(OBJS) 128 $(LIBTOOL) --mode=link $(LD) $(LDFLAGS) -o $@ \ 129 -version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \ 130 -module -rpath $(libdir) $(OBJS) $(LIBDL) 131 132runidn: $(srcdir)/runidn.in 133 cd $(top_builddir) && \ 134 CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= \ 135 $(SHELL) ./config.status 136 137@RUNIDN_TRUE@@COMPAT_TRUE@install: all install-runidn install-compat 138@RUNIDN_TRUE@@COMPAT_FALSE@install: all install-runidn 139@RUNIDN_FALSE@install: 140 141install-runidn: 142 $(MKINSTALLDIRS) $(DESTDIR)$(libdir) 143 $(LIBTOOL) --mode=install $(INSTALL_DATA) $(LIB).la \ 144 $(DESTDIR)$(libdir)/$(LIB).la 145 $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 146 $(INSTALL_SCRIPT) $(SCRIPT) $(DESTDIR)$(bindir) 147 $(MKINSTALLDIRS) $(DESTDIR)$(man1dir) 148 $(INSTALL_DATA) $(srcdir)/runidn.1 $(DESTDIR)$(man1dir)/runidn.1 149 150install-compat: 151 src=$(DESTDIR)$(bindir)/runidn; \ 152 dst=$(DESTDIR)$(bindir)/runmdn; \ 153 rm -f $$dst; \ 154 ln $$src $$dst || cp $$src $$dst 155 src=$(DESTDIR)$(man1dir)/runidn.1; \ 156 dst=$(DESTDIR)$(man1dir)/runmdn.1; \ 157 rm -f $$dst; \ 158 ln $$src $$dst || cp $$src $$dst 159 160clean: 161 rm -f *.lo *.la *.o 162 rm -fr .libs/ 163 164distclean: clean 165 rm -f runidn Makefile 166 167test check: 168