head	1.17;
access;
symbols
	RELENG_5_5_0_RELEASE:1.16.6.1
	RELENG_5_5:1.16.6.1.0.6
	RELENG_5_5_BP:1.16.6.1
	RELENG_5_4_0_RELEASE:1.16.6.1
	RELENG_5_4:1.16.6.1.0.4
	RELENG_5_4_BP:1.16.6.1
	RELENG_4_11_0_RELEASE:1.10.2.2
	RELENG_4_11:1.10.2.2.0.12
	RELENG_4_11_BP:1.10.2.2
	RELENG_5_3_0_RELEASE:1.16.6.1
	RELENG_5_3:1.16.6.1.0.2
	RELENG_5_3_BP:1.16.6.1
	RELENG_5:1.16.0.6
	RELENG_5_BP:1.16
	RELENG_4_10_0_RELEASE:1.10.2.2
	RELENG_4_10:1.10.2.2.0.10
	RELENG_4_10_BP:1.10.2.2
	RELENG_5_2_1_RELEASE:1.16
	RELENG_5_2_0_RELEASE:1.16
	RELENG_5_2:1.16.0.4
	RELENG_5_2_BP:1.16
	RELENG_4_9_0_RELEASE:1.10.2.2
	RELENG_4_9:1.10.2.2.0.8
	RELENG_4_9_BP:1.10.2.2
	RELENG_5_1_0_RELEASE:1.16
	RELENG_5_1:1.16.0.2
	RELENG_5_1_BP:1.16
	RELENG_4_8_0_RELEASE:1.10.2.2
	RELENG_4_8:1.10.2.2.0.6
	RELENG_4_8_BP:1.10.2.2
	RELENG_5_0_0_RELEASE:1.15
	RELENG_5_0:1.15.0.2
	RELENG_5_0_BP:1.15
	RELENG_4_7_0_RELEASE:1.10.2.2
	RELENG_4_7:1.10.2.2.0.4
	RELENG_4_7_BP:1.10.2.2
	RELENG_4_6_2_RELEASE:1.10.2.2
	RELENG_4_6_1_RELEASE:1.10.2.2
	RELENG_4_6_0_RELEASE:1.10.2.2
	RELENG_4_6:1.10.2.2.0.2
	RELENG_4_6_BP:1.10.2.2
	RELENG_4_5_0_RELEASE:1.10.2.1
	RELENG_4_5:1.10.2.1.0.4
	RELENG_4_5_BP:1.10.2.1
	RELENG_4_4_0_RELEASE:1.10.2.1
	RELENG_4_4:1.10.2.1.0.2
	RELENG_4_4_BP:1.10.2.1
	RELENG_4_3_0_RELEASE:1.10
	RELENG_4_3:1.10.0.4
	RELENG_4_3_BP:1.10
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	PRE_SMPNG:1.10
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.7.2.2
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.2
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.7.2.2
	RELENG_3_3_0_RELEASE:1.7.2.1
	RELENG_3_2_PAO:1.7.0.4
	RELENG_3_2_PAO_BP:1.7
	RELENG_3_2_0_RELEASE:1.7
	RELENG_3_1_0_RELEASE:1.7
	RELENG_3:1.7.0.2
	RELENG_3_BP:1.7
	RELENG_2_2_8_RELEASE:1.3
	RELENG_3_0_0_RELEASE:1.7
	RELENG_2_2_7_RELEASE:1.3
	RELENG_2_2_6_RELEASE:1.3
	RELENG_2_2_5_RELEASE:1.3
	RELENG_2_2_2_RELEASE:1.3
	RELENG_2_2_1_RELEASE:1.3
	RELENG_2_2_0_RELEASE:1.3
	RELENG_2_1_7_RELEASE:1.1
	RELENG_2_1_6_1_RELEASE:1.1
	RELENG_2_1_6_RELEASE:1.1
	RELENG_2_2:1.3.0.2
	RELENG_2_2_BP:1.3
	RELENG_2_1_5_RELEASE:1.1
	RELENG_2_1_0_RELEASE:1.1
	bind_4_9_3_b24:1.1.1.1
	VIXIE:1.1.1
	RELENG_2_1_0:1.1.0.6
	RELENG_2_1_0_BP:1.1
	RELENG_2_0_5_RELEASE:1.1
	RELENG_2_0_5:1.1.0.4
	RELENG_2_0_5_BP:1.1
	RELENG_2_0_5_ALPHA:1.1
	RELEASE_2_0:1.1
	BETA_2_0:1.1
	ALPHA_2_0:1.1.0.2;
locks; strict;
comment	@# @;


1.17
date	2004.09.24.15.39.01;	author des;	state dead;
branches;
next	1.16;

1.16
date	2003.04.04.17.49.15;	author obrien;	state Exp;
branches
	1.16.6.1;
next	1.15;

1.15
date	2001.12.17.16.21.58;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.20.06.20.04;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	2001.03.26.14.41.02;	author ru;	state Exp;
branches;
next	1.12;

1.12
date	2001.03.20.18.16.52;	author ru;	state Exp;
branches;
next	1.11;

1.11
date	2000.12.01.09.39.28;	author obrien;	state Exp;
branches;
next	1.10;

1.10
date	99.11.30.06.16.46;	author peter;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.08.28.01.17.29;	author peter;	state Exp;
branches;
next	1.8;

1.8
date	99.08.19.03.29.14;	author mdodd;	state Exp;
branches;
next	1.7;

1.7
date	98.05.04.20.00.14;	author bde;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	98.05.03.05.14.56;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	97.02.22.16.08.30;	author peter;	state Exp;
branches;
next	1.4;

1.4
date	97.01.14.07.13.53;	author jkh;	state Exp;
branches;
next	1.3;

1.3
date	96.08.29.21.39.42;	author peter;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	95.07.25.00.37.36;	author bde;	state Exp;
branches;
next	1.1;

1.1
date	94.09.22.21.50.30;	author pst;	state Exp;
branches
	1.1.1.1;
next	;

1.16.6.1
date	2004.09.26.03.10.19;	author des;	state dead;
branches;
next	;

1.10.2.1
date	2001.04.25.12.10.22;	author ru;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2002.02.18.16.24.26;	author ru;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2012.11.17.07.28.25;	author svnexp;	state Exp;
branches;
next	;

1.7.2.1
date	99.08.29.15.44.33;	author peter;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	99.12.13.15.08.30;	author peter;	state Exp;
branches;
next	;

1.3.2.1
date	99.09.05.11.40.37;	author peter;	state Exp;
branches;
next	;

1.1.1.1
date	95.08.20.22.20.17;	author peter;	state Exp;
branches;
next	;


desc
@@


1.17
log
@More remnants of BIND 8; these live in usr.sbin now.
@
text
@# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.16 2003/04/04 17:49:15 obrien Exp $

USE_LIBBIND=	yes
.include "${.CURDIR}/../named/Makefile.inc"

.PATH: ${BIND_DIR}/bin/nslookup ${BIND_DIR}/doc/man

PROG=	nslookup
MAN=	nslookup.8
SRCS=	main.c getinfo.c debug.c send.c skip.c list.c subr.c commands.l

CFLAGS+= -D_PATH_HELPFILE=\"${DESTHELP}/nslookup.help\"
CFLAGS+= -I${.CURDIR}/../../contrib/bind/bin/nslookup

DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
LDADD+=	-ll -ledit -ltermcap

FILES=	nslookup.help
FILESDIR=	${DESTHELP}

.include <bsd.prog.mk>
@


1.16
log
@style.Makefile(5)
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.16.6.1
log
@MFC: BIND 9 and related bits.

Approved by:	re
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.16 2003/04/04 17:49:15 obrien Exp $
@


1.15
log
@Install files via FILES.
@
text
@d6 1
a6 2
.PATH: ${BIND_DIR}/bin/nslookup
.PATH: ${BIND_DIR}/doc/man
d15 1
a16 1
DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
@


1.14
log
@Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.13 2001/03/26 14:41:02 ru Exp $
d19 2
a20 4
beforeinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
		${BIND_DIR}/bin/nslookup/nslookup.help \
		${DESTDIR}${DESTHELP}/nslookup.help
@


1.13
log
@- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.12 2001/03/20 18:16:52 ru Exp $
d6 2
a7 2
.PATH:	${BIND_DIR}/bin/nslookup
.PATH:	${BIND_DIR}/doc/man
d10 1
a11 1
MAN=	nslookup.8
d13 3
a15 2
CFLAGS+=-D_PATH_HELPFILE=\"${DESTHELP}/nslookup.help\"
CFLAGS+=-I${.CURDIR}/../../contrib/bind/bin/nslookup
@


1.12
log
@Set the default manual section for usr.sbin/ to 8.
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.11 2000/12/01 09:39:28 obrien Exp $
d11 1
@


1.11
log
@The GCC 2.96 snapshots have slightly different rules for finding include
files.  Mostly -I${.CURDIR} was needed -- especially for YACC generated
files as the new cpp does not look in the ultimate source file
(ie, the .y file)'s directory as told by the "#line" directive.  Some were
misspellings of "-I${.CURDIR}" as "-I.".
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.10 1999/11/30 06:16:46 peter Exp $
a10 1
MAN8=	nslookup.8
@


1.10
log
@Link against libbind (library and headers)
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.9 1999/08/28 01:17:29 peter Exp $
d14 1
@


1.10.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.10 1999/11/30 06:16:46 peter Exp $
d11 1
a11 1
MAN=	nslookup.8
@


1.10.2.2
log
@MFC: Install files via FILES.
@
text
@d1 1
a1 1
# $FreeBSD$
d17 4
a20 2
FILES=	nslookup.help
FILESDIR=	${DESTHELP}
@


1.10.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/usr.sbin/nslookup/Makefile 90862 2002-02-18 16:26:51Z ru $
@


1.9
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d3 1
@


1.8
log
@Add support for command line editing and history.

Remove src/contrib/bind/bin/nslookup/commands.c as it is generated by lex
from commands.l.

Submitted by: lpc/cdcontrol patches originally by msmith.
Reviewed by: msmith (in theory)
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.7 1998/05/04 20:00:14 bde Exp $
@


1.7
log
@Simplified by using new lex rules.
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.6 1998/05/03 05:14:56 peter Exp $
d13 2
a14 2
LDADD+=	-ll
DPADD+=	${LIBL}
@


1.7.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.7.2.2
log
@MFC: bind 8.2.2.p5

Urged by:	imp, alfred, and a whole bunch of other folks.
Approved by:	jkh (a few days ago)
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.sbin/nslookup/Makefile,v 1.7.2.1 1999/08/29 15:44:33 peter Exp $
a2 1
USE_LIBBIND=	yes
d13 2
a14 2
LDADD+=	-ll -ledit -ltermcap
DPADD+=	${LIBL} ${LIBEDIT} ${LIBTERMCAP}
@


1.6
log
@Update for bind-8
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.5 1997/02/22 16:08:30 peter Exp $
d9 1
a9 1
SRCS=	main.c getinfo.c debug.c send.c skip.c list.c subr.c commands.c
a14 2

CLEANFILES+= commands.c lex.yy.c lex.yy.o
@


1.5
log
@Revert $FreeBSD$ to $Id$
@
text
@d1 1
a1 1
# $Id$
d5 2
a6 2
.PATH:	${BIND_DIR}/tools/nslookup
.PATH:	${BIND_DIR}/man
d12 3
a14 2
LDADD=	-ll
DPADD=	${LIBL}
d20 2
a21 2
		${BIND_DIR}/tools/nslookup/nslookup.help \
		${DESTDIR}/usr/share/misc/nslookup.help
@


1.4
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Build bind-4.9.4-P1 nslookup
@
text
@d1 1
a1 1
# $Id$
@


1.3.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.2
log
@Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
@
text
@d1 6
a6 1
#	@@(#)Makefile	8.1 (Berkeley) 6/6/93
d9 1
a9 1
SRCS=	main.c commands.l getinfo.c debug.c send.c skip.c list.c subr.c
d11 5
a15 3
DPADD+=	${LIBL}
LDADD+=	-ll
CLEANFILES+=lex.yy.o
d19 2
a20 1
		${.CURDIR}/nslookup.help ${DESTDIR}/usr/share/misc
@


1.1
log
@Port nslookup to FreeBSD
@
text
@d11 2
a12 2
	install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/nslookup.help \
		${DESTDIR}/usr/share/misc
@


1.1.1.1
log
@Update 4.9.3.beta9p1 -> 4.9.3-beta24
@
text
@d1 1
a1 4
#
#	@@(#)Makefile	5.20 (Berkeley) 10/2/89
#	$Id: Makefile,v 8.2 1995/01/11 08:58:13 vixie Exp $
#
d3 10
a12 52
## ++Copyright++ 1987
## -
## Copyright (c) 1987
##    The Regents of the University of California.  All rights reserved.
## 
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
## are met:
## 1. Redistributions of source code must retain the above copyright
##    notice, this list of conditions and the following disclaimer.
## 2. Redistributions in binary form must reproduce the above copyright
##    notice, this list of conditions and the following disclaimer in the
##    documentation and/or other materials provided with the distribution.
## 3. All advertising materials mentioning features or use of this software
##    must display the following acknowledgement:
## 	This product includes software developed by the University of
## 	California, Berkeley and its contributors.
## 4. Neither the name of the University nor the names of its contributors
##    may be used to endorse or promote products derived from this software
##    without specific prior written permission.
## 
## THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
## ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
## IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
## ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
## DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
## OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
## HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
## LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
## OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
## -
## Portions Copyright (c) 1993 by Digital Equipment Corporation.
## 
## Permission to use, copy, modify, and distribute this software for any
## purpose with or without fee is hereby granted, provided that the above
## copyright notice and this permission notice appear in all copies, and that
## the name of Digital Equipment Corporation not be used in advertising or
## publicity pertaining to distribution of the document or software without
## specific, written prior permission.
## 
## THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
## WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
## OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
## CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
## DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
## PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
## ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
## SOFTWARE.
## -
## --Copyright--
d14 1
a14 68
DESTDIR =
DESTBIN = /usr/bin
COMPINCL = ../../compat/include
CC= cc
SHELL= /bin/sh
CDEBUG= -O
INCL =	../../include
RES=	../../res/libresolv.a
COMPLIB= ../../compat/lib/lib44bsd.a
LDFLAGS =
LIBS = -ll
LEX = lex
DESTHELP= /usr/lib
DEFS=	-D_PATH_HELPFILE=\"$(DESTHELP)/nslookup.help\"

#(bsd/386, 4.4bsd, other net2 descendents)
#DESTHELP= /usr/share/misc
#COMPINCL= .
#COMPLIB= 
#LIBS = -ll -lutil
#LEX = lex -I

#(sgi irix4)
#DESTHELP= /usr/bsd
#DEFS=	-xansi -signed -D__STDC__ -D_BSD_SIGNALS \
# 	-D_PATH_HELPFILE=\"$(DESTHELP)/nslookup.help\"
#COMPLIB= 

#(sgi irix5)
#DESTHELP= /usr/share/misc
#DEFS=	-xansi -signed -D__BIT_TYPES_DEFINED__ -D_BSD_SIGNALS \
# 	-D_PATH_HELPFILE=\"$(DESTHELP)/nslookup.help\"
#COMPLIB= 

CFLAGS=	${CDEBUG} -I${INCL} -I${COMPINCL} ${DEFS}
CSRCS=	main.c getinfo.c debug.c send.c skip.c list.c subr.c
SRCS=	${CSRCS} commands.c
OBJS=	main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o

all: nslookup

nslookup: ${OBJS} ${RES} ${COMPLIB}
	${CC} ${CDEBUG} ${LDFLAGS} -o $@@ ${OBJS} \
		${RES} ${COMPLIB} ${LIBS}

clean:
	rm -f ${OBJS} core nslookup commands.c lex.yy.c lex.yy.o
	rm -f *.BAK *.CKP *~

cleandir: clean
	rm -f tags .depend

depend: ${SRCS}
	mkdep ${CPPFLAGS} -I${INCL} -I${COMPINCL} ${DEFS} ${SRCS}

install:
	${INSTALL} -s -c -o bin -g bin -m 755 nslookup ${DESTDIR}${DESTBIN}/
	${INSTALL}    -c -o bin -g bin -m 444 nslookup.help \
		 ${DESTDIR}${DESTHELP}/

lint: ${SRCS}
	lint ${SRCS}

tags: ${CSRCS}
	ctags ${CSRCS}

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
@
