1 # Copyright (C) 2004, 2005, 2007, 2009, 2012-2014 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 2000-2002 Internet Software Consortium.
4 # Permission to use, copy, modify, and/or distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
16 # Id: Makefile.in,v 1.47 2009/12/05 23:31:40 each Exp
20 top_srcdir
= @top_srcdir@
26 READLINE_LIB
= @READLINE_LIB@
28 CINCLUDES
= -I
${srcdir}/include ${DNS_INCLUDES} ${BIND9_INCLUDES} \
29 ${ISC_INCLUDES} ${LWRES_INCLUDES} ${ISCCFG_INCLUDES}
31 CDEFINES
= -DVERSION
=\"${VERSION}\" @CRYPTO@
34 ISCCFGLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
35 DNSLIBS
= ..
/..
/lib
/dns
/libdns.@A@ @DNS_CRYPTO_LIBS@
36 BIND9LIBS
= ..
/..
/lib
/bind9
/libbind9.@A@
37 ISCLIBS
= ..
/..
/lib
/isc
/libisc.@A@
38 ISCNOSYMLIBS
= ..
/..
/lib
/isc
/libisc-nosymtbl.@A@
39 LWRESLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
41 ISCCFGDEPLIBS
= ..
/..
/lib
/isccfg
/libisccfg.@A@
42 DNSDEPLIBS
= ..
/..
/lib
/dns
/libdns.@A@
43 BIND9DEPLIBS
= ..
/..
/lib
/bind9
/libbind9.@A@
44 ISCDEPLIBS
= ..
/..
/lib
/isc
/libisc.@A@
45 LWRESDEPLIBS
= ..
/..
/lib
/lwres
/liblwres.@A@
47 DEPLIBS
= ${DNSDEPLIBS} ${BIND9DEPLIBS} ${ISCDEPLIBS} \
48 ${ISCCFGDEPLIBS} ${LWRESDEPLIBS}
50 LIBS
= ${LWRESLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
51 ${ISCLIBS} @IDNLIBS@ @LIBS@
53 NOSYMLIBS
= ${LWRESLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
54 ${ISCNOSYMLIBS} @IDNLIBS@ @LIBS@
58 TARGETS
= dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
60 OBJS
= dig.@O@ dighost.@O@ host.@O@ nslookup.@O@
64 SRCS
= dig.c dighost.c host.c nslookup.c
66 MANPAGES
= dig
.1 host
.1 nslookup
.1
68 HTMLPAGES
= dig.html host.html nslookup.html
70 MANOBJS
= ${MANPAGES} ${HTMLPAGES}
74 dig@EXEEXT@
: dig.@O@ dighost.@O@
${UOBJS} ${DEPLIBS}
75 export BASEOBJS
="dig.@O@ dighost.@O@ ${UOBJS}"; \
76 export LIBS0
="${DNSLIBS}"; \
79 host@EXEEXT@
: host.@O@ dighost.@O@
${UOBJS} ${DEPLIBS}
80 export BASEOBJS
="host.@O@ dighost.@O@ ${UOBJS}"; \
81 export LIBS0
="${DNSLIBS}"; \
84 nslookup@EXEEXT@
: nslookup.@O@ dighost.@O@
${UOBJS} ${DEPLIBS}
85 export BASEOBJS
="nslookup.@O@ dighost.@O@ ${READLINE_LIB} ${UOBJS}"; \
86 export LIBS0
="${DNSLIBS}"; \
91 docclean manclean maintainer-clean
::
94 clean distclean maintainer-clean
::
98 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${bindir}
99 $(SHELL
) ${top_srcdir}/mkinstalldirs
${DESTDIR}${mandir}/man1
101 install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
installdirs
102 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
103 dig@EXEEXT@
${DESTDIR}${bindir}
104 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
105 host@EXEEXT@
${DESTDIR}${bindir}
106 ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
107 nslookup@EXEEXT@
${DESTDIR}${bindir}
108 for m in
${MANPAGES}; do \
109 ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1
; \