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.
4 # By using this file, you agree to the terms and conditions set forth bellow.
6 # LICENSE TERMS AND CONDITIONS
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.
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.
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.
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."
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
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.
56 exec_prefix = @
exec_prefix@
61 man1dir = $(mandir)/man1
65 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
66 INSTALL_SCRIPT
= @INSTALL_SCRIPT@
67 INSTALL_DATA
= @INSTALL_DATA@
68 MKINSTALLDIRS
= @top_srcdir@
/mkinstalldirs
75 INCS
= -I
$(srcdir) -I
$(srcdir)/..
/..
/include -I..
/..
/include $(ICONVINC
)
78 CFLAGS
= $(INCS
) $(DEFS
) @CPPFLAGS@ @CFLAGS@
82 OBJS
= rtresolver.lo stub.lo
$(IDNOBJS
)
88 $(IDNDIR
)/aliaslist.lo \
90 $(IDNDIR
)/checker.lo \
91 $(IDNDIR
)/converter.lo \
93 $(IDNDIR
)/delimitermap.lo \
94 $(IDNDIR
)/filechecker.lo \
95 $(IDNDIR
)/filemapper.lo \
96 $(IDNDIR
)/localencoding.lo \
99 $(IDNDIR
)/mapselector.lo \
100 $(IDNDIR
)/nameprep.lo \
101 $(IDNDIR
)/normalizer.lo \
102 $(IDNDIR
)/punycode.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 \
118 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -c
$<
120 @RUNIDN_TRUE@
all: $(LIB
).la runidn
123 rtresolver.lo
: $(srcdir)/resolver.c
124 $(LIBTOOL
) --mode
=compile
$(CC
) $(CFLAGS
) -DFOR_RUNIDN
-o
$@ \
125 -c
$(srcdir)/resolver.c
128 $(LIBTOOL
) --mode
=link
$(LD
) $(LDFLAGS
) -o
$@ \
129 -version-info
$(LIB_CURRENT
):$(LIB_REVISION
):$(LIB_AGE
) \
130 -module
-rpath
$(libdir) $(OBJS
) $(LIBDL
)
132 runidn
: $(srcdir)/runidn.in
133 cd
$(top_builddir
) && \
134 CONFIG_FILES
=$(subdir
)/$@ CONFIG_HEADERS
= CONFIG_LINKS
= \
135 $(SHELL
) .
/config.status
137 @RUNIDN_TRUE@@COMPAT_TRUE@
install: all install-runidn install-compat
138 @RUNIDN_TRUE@@COMPAT_FALSE@
install: all install-runidn
139 @RUNIDN_FALSE@
install:
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
151 src
=$(DESTDIR
)$(bindir)/runidn
; \
152 dst
=$(DESTDIR
)$(bindir)/runmdn
; \
154 ln
$$src $$dst || cp
$$src $$dst
155 src
=$(DESTDIR
)$(man1dir)/runidn
.1; \
156 dst
=$(DESTDIR
)$(man1dir)/runmdn
.1; \
158 ln
$$src $$dst || cp
$$src $$dst
165 rm -f runidn Makefile