2018-02-23 03:53:12 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2016-06-27 00:56:38 -04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
|
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
2000-04-20 15:09:11 -04:00
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
2015-11-09 00:34:24 -05:00
|
|
|
VERSION=@BIND9_VERSION@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2001-09-20 11:17:07 -04:00
|
|
|
@BIND9_MAKE_INCLUDES@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2013-01-10 01:34:28 -05:00
|
|
|
READLINE_LIB = @READLINE_LIB@
|
|
|
|
|
|
2017-07-19 21:52:03 -04:00
|
|
|
CINCLUDES = -I${srcdir}/include ${DNS_INCLUDES} \
|
|
|
|
|
${BIND9_INCLUDES} ${ISC_INCLUDES} \
|
2019-06-24 08:06:56 -04:00
|
|
|
${IRS_INCLUDES} ${ISCCFG_INCLUDES} @LIBIDN2_CFLAGS@ \
|
|
|
|
|
${OPENSSL_CFLAGS}
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2018-05-22 09:24:37 -04:00
|
|
|
CDEFINES = -DVERSION=\"${VERSION}\"
|
2000-04-20 15:09:11 -04:00
|
|
|
CWARNINGS =
|
|
|
|
|
|
2001-11-20 21:19:02 -05:00
|
|
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
2019-06-11 18:59:31 -04:00
|
|
|
DNSLIBS = ../../lib/dns/libdns.@A@ ${MAXMINDDB_LIBS} @DNS_CRYPTO_LIBS@
|
2001-11-14 17:08:38 -05:00
|
|
|
BIND9LIBS = ../../lib/bind9/libbind9.@A@
|
2019-06-24 08:06:56 -04:00
|
|
|
ISCLIBS = ../../lib/isc/libisc.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
|
|
|
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ ${OPENSSL_LIBS} ${JSON_C_LIBS} ${LIBXML2_LIBS}
|
2017-09-08 16:39:09 -04:00
|
|
|
IRSLIBS = ../../lib/irs/libirs.@A@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2001-11-20 21:19:02 -05:00
|
|
|
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
2000-04-20 15:09:11 -04:00
|
|
|
DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
2001-11-14 17:08:38 -05:00
|
|
|
BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@
|
2000-04-20 15:09:11 -04:00
|
|
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
2017-09-08 16:39:09 -04:00
|
|
|
IRSDEPLIBS = ../../lib/irs/libirs.@A@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2017-09-08 16:39:09 -04:00
|
|
|
DEPLIBS = ${DNSDEPLIBS} ${IRSDEPLIBS} ${BIND9DEPLIBS} \
|
|
|
|
|
${ISCDEPLIBS} ${ISCCFGDEPLIBS}
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2017-09-08 16:39:09 -04:00
|
|
|
LIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
2019-06-24 06:21:47 -04:00
|
|
|
${ISCLIBS} @LIBIDN2_LIBS@ @LIBS@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2017-09-08 16:39:09 -04:00
|
|
|
NOSYMLIBS = ${DNSLIBS} ${IRSLIBS} ${BIND9LIBS} ${ISCCFGLIBS} \
|
2019-06-24 06:21:47 -04:00
|
|
|
${ISCNOSYMLIBS} @LIBIDN2_LIBS@ @LIBS@
|
2009-09-01 14:40:25 -04:00
|
|
|
|
2000-06-08 20:44:12 -04:00
|
|
|
SUBDIRS =
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2002-12-26 22:29:37 -05:00
|
|
|
TARGETS = dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2000-06-14 20:22:21 -04:00
|
|
|
OBJS = dig.@O@ dighost.@O@ host.@O@ nslookup.@O@
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2000-07-31 21:33:37 -04:00
|
|
|
UOBJS =
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2000-06-14 20:22:21 -04:00
|
|
|
SRCS = dig.c dighost.c host.c nslookup.c
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2004-08-16 00:20:59 -04:00
|
|
|
MANPAGES = dig.1 host.1 nslookup.1
|
2001-01-17 20:33:54 -05:00
|
|
|
|
2004-08-16 00:20:59 -04:00
|
|
|
HTMLPAGES = dig.html host.html nslookup.html
|
2001-05-31 23:05:07 -04:00
|
|
|
|
|
|
|
|
MANOBJS = ${MANPAGES} ${HTMLPAGES}
|
|
|
|
|
|
2000-04-20 15:09:11 -04:00
|
|
|
@BIND9_MAKE_RULES@
|
|
|
|
|
|
2018-08-01 15:13:40 -04:00
|
|
|
LDFLAGS = @LDFLAGS@ @LIBIDN2_LDFLAGS@
|
Rework libidn2 detection
Clean up the parts of configure.in responsible for handling libidn2
detection and adjust other pieces of the build system to match these
cleanups:
- use pkg-config when --with-libidn2 is used without an explicit path,
- look for idn2_to_ascii_lz() rather than idn2_to_ascii_8z() as the
former is used in BIND while the latter is not,
- do not look for idn2_to_unicode_8zlz() as it is present in all
libidn2 versions which have idn2_to_ascii_lz(),
- check whether the <idn2.h> header is usable,
- set LDFLAGS in the Makefile for dig so that, if specified, the
requested libidn2 path is used when linking with libidn2,
- override CPPFLAGS when looking for libidn2 components so that the
configure script does not produce warnings when libidn2 is not
installed system-wide,
- merge the AS_CASE() call into the AS_IF() call below it to simplify
code,
- indicate the default value of --with-libidn2 in "./configure --help"
output,
- use $with_libidn2 rather than $use_libidn2 to better match the name
of the configure script argument,
- stop differentiating between IDN "in" and "out" support, i.e. make
dig either support libidn2 or not; remove WITH_* Autoconf macros and
use a new one, HAVE_LIBIDN2, to determine whether libidn2 support
should be enabled.
2018-07-10 08:34:35 -04:00
|
|
|
|
2002-12-26 22:29:37 -05:00
|
|
|
dig@EXEEXT@: dig.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
|
2009-09-01 14:40:25 -04:00
|
|
|
export BASEOBJS="dig.@O@ dighost.@O@ ${UOBJS}"; \
|
2017-09-08 16:39:09 -04:00
|
|
|
export LIBS0="${DNSLIBS} ${IRSLIBS}"; \
|
2009-09-01 14:40:25 -04:00
|
|
|
${FINALBUILDCMD}
|
2000-04-26 14:34:17 -04:00
|
|
|
|
2002-12-26 22:29:37 -05:00
|
|
|
host@EXEEXT@: host.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
|
2009-09-01 14:40:25 -04:00
|
|
|
export BASEOBJS="host.@O@ dighost.@O@ ${UOBJS}"; \
|
2017-09-08 16:39:09 -04:00
|
|
|
export LIBS0="${DNSLIBS} ${IRSLIBS}"; \
|
2009-09-01 14:40:25 -04:00
|
|
|
${FINALBUILDCMD}
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2002-12-26 22:29:37 -05:00
|
|
|
nslookup@EXEEXT@: nslookup.@O@ dighost.@O@ ${UOBJS} ${DEPLIBS}
|
2013-02-15 13:15:09 -05:00
|
|
|
export BASEOBJS="nslookup.@O@ dighost.@O@ ${READLINE_LIB} ${UOBJS}"; \
|
2017-09-08 16:39:09 -04:00
|
|
|
export LIBS0="${DNSLIBS} ${IRSLIBS}"; \
|
2009-09-01 14:40:25 -04:00
|
|
|
${FINALBUILDCMD}
|
2000-05-09 14:05:13 -04:00
|
|
|
|
2001-06-08 13:18:15 -04:00
|
|
|
doc man:: ${MANOBJS}
|
2001-05-31 23:05:07 -04:00
|
|
|
|
2001-06-08 13:18:15 -04:00
|
|
|
docclean manclean maintainer-clean::
|
|
|
|
|
rm -f ${MANOBJS}
|
2001-05-31 23:05:07 -04:00
|
|
|
|
|
|
|
|
clean distclean maintainer-clean::
|
2000-04-20 15:09:11 -04:00
|
|
|
rm -f ${TARGETS}
|
|
|
|
|
|
|
|
|
|
installdirs:
|
2000-09-20 15:06:16 -04:00
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
|
2001-01-17 20:33:54 -05:00
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
|
2000-04-20 15:09:11 -04:00
|
|
|
|
2018-08-01 15:25:05 -04:00
|
|
|
install:: dig@EXEEXT@ host@EXEEXT@ nslookup@EXEEXT@ installdirs
|
2004-02-23 20:41:28 -05:00
|
|
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
|
|
|
|
|
dig@EXEEXT@ ${DESTDIR}${bindir}
|
|
|
|
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
|
|
|
|
|
host@EXEEXT@ ${DESTDIR}${bindir}
|
|
|
|
|
${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} \
|
|
|
|
|
nslookup@EXEEXT@ ${DESTDIR}${bindir}
|
2018-08-01 15:25:05 -04:00
|
|
|
for m in ${MANPAGES}; do \
|
2018-09-03 06:05:45 -04:00
|
|
|
${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man1 || exit 1; \
|
|
|
|
|
done
|
2016-11-01 22:17:07 -04:00
|
|
|
|
|
|
|
|
uninstall::
|
|
|
|
|
for m in ${MANPAGES}; do \
|
2018-09-03 06:05:45 -04:00
|
|
|
rm -f ${DESTDIR}${mandir}/man1/$$m || exit 1; \
|
2016-11-01 22:17:07 -04:00
|
|
|
done
|
|
|
|
|
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/nslookup@EXEEXT@
|
|
|
|
|
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/host@EXEEXT@
|
|
|
|
|
${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${bindir}/dig@EXEEXT@
|