Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / contrib / idn / idnkit-1.0-src / tools / runidn / Makefile.in
blob5911e59727e719e2a66f0d981f8377f8c9f94618
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.
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
28 # JPNIC.
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.
42 LIB_CURRENT = 1
43 LIB_REVISION = 1
44 LIB_AGE = 0
46 .SUFFIXES:
47 .SUFFIXES: .c .lo
49 top_builddir = ../..
50 subdir = tools/runidn
52 srcdir = @srcdir@
53 VPATH = @srcdir@
55 prefix = @prefix@
56 exec_prefix = @exec_prefix@
58 bindir = @bindir@
59 libdir = @libdir@
60 mandir = @mandir@
61 man1dir = $(mandir)/man1
63 CC = @CC@
64 INSTALL = @INSTALL@
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
68 MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
69 SHELL = @SHELL@
70 LIBTOOL = @LIBTOOL@
72 ICONVINC = @ICONVINC@
73 ICONVLIB = @ICONVLIB@
75 INCS = -I$(srcdir) -I$(srcdir)/../../include -I../../include $(ICONVINC)
76 DEFS =
78 CFLAGS = $(INCS) $(DEFS) @CPPFLAGS@ @CFLAGS@
79 LDFLAGS = @LDFLAGS@
81 LIB = libidnkitres
82 OBJS = rtresolver.lo stub.lo $(IDNOBJS)
83 SCRIPT = runidn
84 LIBDL = @LIBDL@
86 IDNDIR = ../../lib
87 IDNOBJS = \
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
117 .c.lo:
118 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
120 @RUNIDN_TRUE@all: $(LIB).la runidn
121 @RUNIDN_FALSE@all:
123 rtresolver.lo: $(srcdir)/resolver.c
124 $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -DFOR_RUNIDN -o $@ \
125 -c $(srcdir)/resolver.c
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)
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:
141 install-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
150 install-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
160 clean:
161 rm -f *.lo *.la *.o
162 rm -fr .libs/
164 distclean: clean
165 rm -f runidn Makefile
167 test check: