head	1.21;
access;
symbols
	perseant-exfatfs-base-20250801:1.21
	perseant-exfatfs-base-20240630:1.21
	perseant-exfatfs:1.21.0.24
	perseant-exfatfs-base:1.21
	cjep_sun2x:1.21.0.22
	cjep_sun2x-base:1.21
	cjep_staticlib_x-base1:1.21
	cjep_staticlib_x:1.21.0.20
	cjep_staticlib_x-base:1.21
	phil-wifi-20200421:1.21
	phil-wifi-20200411:1.21
	phil-wifi-20200406:1.21
	pgoyette-compat-merge-20190127:1.21
	pgoyette-compat-20190127:1.21
	pgoyette-compat-20190118:1.21
	pgoyette-compat-1226:1.21
	pgoyette-compat-1126:1.21
	pgoyette-compat-1020:1.21
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	pgoyette-compat-0728:1.21
	pgoyette-compat-0625:1.21
	pgoyette-compat-0521:1.21
	pgoyette-compat-0502:1.21
	pgoyette-compat-0422:1.21
	pgoyette-compat-0415:1.21
	pgoyette-compat-0407:1.21
	pgoyette-compat-0330:1.21
	pgoyette-compat-0322:1.21
	pgoyette-compat-0315:1.21
	pgoyette-compat:1.21.0.18
	pgoyette-compat-base:1.21
	perseant-stdc-iso10646:1.21.0.16
	perseant-stdc-iso10646-base:1.21
	prg-localcount2-base3:1.21
	prg-localcount2-base2:1.21
	prg-localcount2-base1:1.21
	prg-localcount2:1.21.0.14
	prg-localcount2-base:1.21
	pgoyette-localcount-20170426:1.21
	bouyer-socketcan-base1:1.21
	pgoyette-localcount-20170320:1.21
	bouyer-socketcan:1.21.0.12
	bouyer-socketcan-base:1.21
	pgoyette-localcount-20170107:1.21
	pgoyette-localcount-20161104:1.21
	localcount-20160914:1.21
	pgoyette-localcount-20160806:1.21
	pgoyette-localcount-20160726:1.21
	pgoyette-localcount:1.21.0.10
	pgoyette-localcount-base:1.21
	netbsd-5-2-3-RELEASE:1.20.4.1
	netbsd-5-1-5-RELEASE:1.20.12.1
	yamt-pagecache-base9:1.21
	yamt-pagecache-tag8:1.21
	tls-earlyentropy:1.21.0.6
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.21
	riastradh-drm2-base3:1.21
	netbsd-5-2-2-RELEASE:1.20.4.1
	netbsd-5-1-4-RELEASE:1.20.12.1
	netbsd-5-2-1-RELEASE:1.20.4.1
	netbsd-5-1-3-RELEASE:1.20.12.1
	agc-symver:1.21.0.8
	agc-symver-base:1.21
	tls-maxphys-base:1.21
	yamt-pagecache-base8:1.21
	netbsd-5-2:1.20.4.1.0.2
	yamt-pagecache-base7:1.21
	netbsd-5-2-RELEASE:1.20.4.1
	netbsd-5-2-RC1:1.20.4.1
	yamt-pagecache-base6:1.21
	yamt-pagecache-base5:1.21
	yamt-pagecache-base4:1.21
	netbsd-5-1-2-RELEASE:1.20.12.1
	netbsd-5-1-1-RELEASE:1.20.12.1
	yamt-pagecache-base3:1.21
	yamt-pagecache-base2:1.21
	yamt-pagecache:1.21.0.4
	yamt-pagecache-base:1.21
	bouyer-quota2-nbase:1.21
	bouyer-quota2:1.21.0.2
	bouyer-quota2-base:1.21
	matt-nb5-mips64-premerge-20101231:1.20
	matt-nb5-pq3:1.20.0.14
	matt-nb5-pq3-base:1.20
	netbsd-5-1:1.20.0.12
	netbsd-5-1-RELEASE:1.20
	netbsd-5-1-RC4:1.20
	matt-nb5-mips64-k15:1.20
	netbsd-5-1-RC3:1.20
	netbsd-5-1-RC2:1.20
	netbsd-5-1-RC1:1.20
	netbsd-5-0-2-RELEASE:1.20
	matt-nb5-mips64-premerge-20091211:1.20
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.20
	matt-nb4-mips64-k7-u2a-k9b:1.20
	matt-nb5-mips64-u1-k1-k5:1.20
	matt-nb5-mips64:1.20.0.10
	netbsd-5-0-1-RELEASE:1.20
	jym-xensuspend-nbase:1.21
	netbsd-5-0:1.20.0.8
	netbsd-5-0-RELEASE:1.20
	netbsd-5-0-RC4:1.20
	netbsd-5-0-RC3:1.20
	netbsd-5-0-RC2:1.20
	jym-xensuspend:1.20.0.6
	jym-xensuspend-base:1.21
	netbsd-5-0-RC1:1.20
	netbsd-5:1.20.0.4
	netbsd-5-base:1.20
	matt-mips64-base2:1.20
	matt-mips64:1.18.0.14
	netbsd-4-0-1-RELEASE:1.17.4.1
	wrstuden-revivesa-base-3:1.20
	wrstuden-revivesa-base-2:1.20
	wrstuden-fixsa-newbase:1.17.4.1
	wrstuden-revivesa-base-1:1.19
	yamt-pf42-base4:1.18
	yamt-pf42-base3:1.18
	hpcarm-cleanup-nbase:1.18
	yamt-pf42-baseX:1.18
	yamt-pf42-base2:1.18
	wrstuden-revivesa:1.18.0.12
	wrstuden-revivesa-base:1.19
	yamt-pf42:1.18.0.10
	yamt-pf42-base:1.18
	keiichi-mipv6-nbase:1.18
	keiichi-mipv6:1.18.0.8
	keiichi-mipv6-base:1.18
	matt-armv6-nbase:1.18
	matt-armv6-prevmlocking:1.18
	wrstuden-fixsa-base-1:1.17.4.1
	netbsd-4-0:1.17.4.1.0.2
	netbsd-4-0-RELEASE:1.17.4.1
	cube-autoconf:1.18.0.6
	cube-autoconf-base:1.18
	netbsd-4-0-RC5:1.17.4.1
	netbsd-4-0-RC4:1.17.4.1
	netbsd-4-0-RC3:1.17.4.1
	netbsd-4-0-RC2:1.17.4.1
	netbsd-4-0-RC1:1.17.4.1
	matt-armv6:1.18.0.4
	matt-armv6-base:1.18
	matt-mips64-base:1.18
	hpcarm-cleanup:1.18.0.2
	hpcarm-cleanup-base:1.18
	netbsd-3-1-1-RELEASE:1.16
	netbsd-3-0-3-RELEASE:1.16
	wrstuden-fixsa:1.17.0.6
	wrstuden-fixsa-base:1.17.4.1
	abandoned-netbsd-4-base:1.17
	abandoned-netbsd-4:1.17.0.2
	netbsd-3-1:1.16.0.6
	netbsd-3-1-RELEASE:1.16
	netbsd-3-0-2-RELEASE:1.16
	netbsd-3-1-RC4:1.16
	netbsd-3-1-RC3:1.16
	netbsd-3-1-RC2:1.16
	netbsd-3-1-RC1:1.16
	netbsd-4:1.17.0.4
	netbsd-4-base:1.17
	netbsd-3-0-1-RELEASE:1.16
	netbsd-3-0:1.16.0.4
	netbsd-3-0-RELEASE:1.16
	netbsd-3-0-RC6:1.16
	netbsd-3-0-RC5:1.16
	netbsd-3-0-RC4:1.16
	netbsd-3-0-RC3:1.16
	netbsd-3-0-RC2:1.16
	netbsd-3-0-RC1:1.16
	netbsd-2-0-3-RELEASE:1.15
	netbsd-2-1:1.15.0.6
	netbsd-2-1-RELEASE:1.15
	netbsd-2-1-RC6:1.15
	netbsd-2-1-RC5:1.15
	netbsd-2-1-RC4:1.15
	netbsd-2-1-RC3:1.15
	netbsd-2-1-RC2:1.15
	netbsd-2-1-RC1:1.15
	netbsd-2-0-2-RELEASE:1.15
	netbsd-3:1.16.0.2
	netbsd-3-base:1.16
	netbsd-2-0-1-RELEASE:1.15
	netbsd-2:1.15.0.4
	netbsd-2-base:1.15
	netbsd-2-0-RELEASE:1.15
	netbsd-2-0-RC5:1.15
	netbsd-2-0-RC4:1.15
	netbsd-2-0-RC3:1.15
	netbsd-2-0-RC2:1.15
	netbsd-2-0-RC1:1.15
	bind-9-3-0-beta3:1.1.1.2
	bind-8-latest:1.15
	netbsd-2-0:1.15.0.2
	netbsd-2-0-base:1.15
	netbsd-1-6-PATCH002-RELEASE:1.10.2.1
	netbsd-1-6-PATCH002:1.10.2.1
	netbsd-1-6-PATCH002-RC4:1.10.2.1
	netbsd-1-6-PATCH002-RC3:1.10.2.1
	netbsd-1-6-PATCH002-RC2:1.10.2.1
	netbsd-1-6-PATCH002-RC1:1.10.2.1
	netbsd-1-6-PATCH001:1.10.2.1
	netbsd-1-6-PATCH001-RELEASE:1.10.2.1
	netbsd-1-6-PATCH001-RC3:1.10.2.1
	netbsd-1-6-PATCH001-RC2:1.10.2.1
	netbsd-1-6-PATCH001-RC1:1.10.2.1
	fvdl_fs64_base:1.11
	netbsd-1-6-RELEASE:1.10.2.1
	netbsd-1-6-RC3:1.10.2.1
	netbsd-1-6-RC2:1.10.2.1
	netbsd-1-6-RC1:1.10.2.1
	netbsd-1-6:1.10.0.2
	netbsd-1-6-base:1.10
	netbsd-1-5-PATCH003:1.8.4.3
	netbsd-1-5-PATCH002:1.8.4.2
	netbsd-1-5-PATCH001:1.8.4.2
	netbsd-1-5-RELEASE:1.8.4.2
	netbsd-1-5-BETA2:1.8
	netbsd-1-5-BETA:1.8
	netbsd-1-4-PATCH003:1.5.2.1
	netbsd-1-5-ALPHA2:1.8
	netbsd-1-5:1.8.0.4
	netbsd-1-5-base:1.8
	minoura-xpg4dl-base:1.8
	minoura-xpg4dl:1.8.0.2
	netbsd-1-4-PATCH002:1.5.2.1
	wrstuden-devbsize-19991221:1.8
	wrstuden-devbsize:1.6.0.4
	wrstuden-devbsize-base:1.8
	comdex-fall-1999:1.6.0.2
	comdex-fall-1999-base:1.6
	netbsd-1-4-PATCH001:1.5
	netbsd-1-4-RELEASE:1.5
	netbsd-1-4:1.5.0.2
	netbsd-1-4-base:1.5
	bind-8-1-2:1.1.1.1
	ISC:1.1.1;
locks; strict;
comment	@# @;


1.21
date	2009.04.18.13.01.21;	author christos;	state dead;
branches;
next	1.20;

1.20
date	2008.08.29.00.02.24;	author gmcgarry;	state Exp;
branches
	1.20.4.1
	1.20.6.1
	1.20.8.1
	1.20.12.1;
next	1.19;

1.19
date	2008.06.21.18.59.36;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2007.01.27.21.36.13;	author christos;	state Exp;
branches
	1.18.12.1;
next	1.17;

1.17
date	2006.05.11.23.16.30;	author mrg;	state Exp;
branches
	1.17.4.1
	1.17.6.1;
next	1.16;

1.16
date	2004.05.18.00.10.39;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2003.12.07.19.57.39;	author scw;	state Exp;
branches;
next	1.14;

1.14
date	2003.10.21.10.01.22;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2003.10.19.06.12.07;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2003.08.01.17.04.07;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2002.06.28.16.27.15;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	2000.11.10.09.56.58;	author itojun;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2000.07.04.20.27.36;	author matt;	state Exp;
branches;
next	1.8;

1.8
date	99.11.28.16.58.16;	author veego;	state Exp;
branches
	1.8.4.1;
next	1.7;

1.7
date	99.11.20.19.47.46;	author veego;	state Exp;
branches;
next	1.6;

1.6
date	99.07.19.12.04.03;	author tron;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	99.03.28.00.28.17;	author tron;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	98.12.15.01.06.04;	author tron;	state Exp;
branches;
next	1.3;

1.3
date	98.11.19.21.11.45;	author tron;	state Exp;
branches;
next	1.2;

1.2
date	98.10.09.19.30.02;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	98.10.05.18.01.59;	author tron;	state Exp;
branches
	1.1.1.1;
next	;

1.20.4.1
date	2011.01.06.21.42.52;	author riz;	state Exp;
branches;
next	;

1.20.6.1
date	2009.05.13.19.20.17;	author jym;	state dead;
branches;
next	;

1.20.8.1
date	2011.01.10.00.42.26;	author riz;	state Exp;
branches;
next	;

1.20.12.1
date	2011.01.09.20.43.33;	author riz;	state Exp;
branches;
next	;

1.18.12.1
date	2008.06.23.04.32.12;	author wrstuden;	state Exp;
branches;
next	1.18.12.2;

1.18.12.2
date	2008.09.18.04.30.00;	author wrstuden;	state Exp;
branches;
next	;

1.17.4.1
date	2007.05.17.00.43.57;	author jdc;	state Exp;
branches;
next	;

1.17.6.1
date	2007.06.03.17.26.15;	author wrstuden;	state Exp;
branches;
next	;

1.10.2.1
date	2002.06.28.16.30.20;	author lukem;	state Exp;
branches;
next	;

1.8.4.1
date	2000.11.13.22.11.32;	author tv;	state Exp;
branches;
next	1.8.4.2;

1.8.4.2
date	2000.11.13.22.16.41;	author tv;	state Exp;
branches;
next	1.8.4.3;

1.8.4.3
date	2002.07.01.17.17.21;	author he;	state Exp;
branches;
next	;

1.6.4.1
date	99.12.27.18.37.29;	author wrstuden;	state Exp;
branches;
next	;

1.5.2.1
date	99.12.04.17.11.09;	author he;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2000.12.13.23.57.45;	author he;	state Exp;
branches;
next	;

1.1.1.1
date	98.10.05.18.01.59;	author tron;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.05.18.00.06.57;	author christos;	state Exp;
branches;
next	;


desc
@@


1.21
log
@delete old bind
@
text
@#	$NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $

.include <bsd.own.mk>

PROG=	named
MAN=	named.8 lwresd.8 named.conf.5
BINDIR=	/usr/sbin
LINKS=	${BINDIR}/named ${BINDIR}/lwresd

.include "${.CURDIR}/../Makefile.inc"

DIST=${IDIST}/bin/named
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include

.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
.for f in client
COPTS.${f}.c+=  -fno-strict-aliasing
.endfor
.endif

.PATH: ${DIST}/unix ${DIST}

SRCS_UNIX=	os.c
SRCS=	builtin.c client.c config.c control.c controlconf.c \
	interfacemgr.c listenlist.c log.c logconf.c \
	lwaddr.c lwdclient.c lwderror.c \
	lwdgabn.c lwdgnba.c lwdgrbn.c lwdnoop.c lwresd.c lwsearch.c \
	main.c notify.c query.c server.c sortlist.c statschannel.c \
	tkeyconf.c tsigconf.c \
	update.c xfrout.c zoneconf.c ${SRCS_UNIX}

.include <bsd.prog.mk>
@


1.20
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2008/06/21 18:59:36 christos Exp $
@


1.20.8.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $
d13 1
a13 1
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
@


1.20.12.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $
d13 1
a13 1
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
@


1.20.4.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $
d13 1
a13 1
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include -DCONFIGARGS=\"defaults\"
@


1.20.6.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $
@


1.19
log
@adjust for 9.5.0
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2007/01/27 21:36:13 christos Exp $
d15 1
a15 1
.if ${HAVE_GCC} == 4
@


1.18
log
@Changes for bind-9.4.0-rc2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2006/05/11 23:16:30 mrg Exp $
d28 2
a29 1
	main.c notify.c query.c server.c sortlist.c tkeyconf.c tsigconf.c \
@


1.18.12.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2007/01/27 21:36:13 christos Exp $
d28 1
a28 2
	main.c notify.c query.c server.c sortlist.c statschannel.c \
	tkeyconf.c tsigconf.c \
@


1.18.12.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18.12.1 2008/06/23 04:32:12 wrstuden Exp $
d15 1
a15 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
@


1.17
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2004/05/18 00:10:39 christos Exp $
d24 1
a24 1
SRCS=	aclconf.c builtin.c client.c config.c control.c controlconf.c \
@


1.17.6.1
log
@Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17.4.1 2007/05/17 00:43:57 jdc Exp $
d24 1
a24 1
SRCS=	builtin.c client.c config.c control.c controlconf.c \
@


1.17.4.1
log
@Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2007/01/27 21:36:13 christos Exp $
d24 1
a24 1
SRCS=	builtin.c client.c config.c control.c controlconf.c \
@


1.16
log
@Resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.2 2004/05/18 00:06:57 christos Exp $
a11 1

d15 6
@


1.15
log
@Gcc3 for sh5 gets an ICE compiling ns_main.c at -O2.
Drop to -O1 for now when building for sh5.
@
text
@d1 1
a1 21
#	$NetBSD: Makefile,v 1.14 2003/10/21 10:01:22 lukem Exp $

.include "../Makefile.inc"
.PATH:		${BIND_DIST_DIR}/bin/named \
		${BIND_DIST_DIR}/bin/named-bootconf \
		${BIND_DIST_DIR}/man

PROG=		named
HDRS=		db_defs.h db_glob.h ns_defs.h ns_glob.h named.h pathnames.h
SRCS=		db_dump.c db_load.c db_lookup.c db_save.c db_update.c \
		db_glue.c db_ixfr.c db_sec.c db_tsig.c \
		ns_parser.y ns_lexer.c ns_parseutil.c ns_ctl.c \
		ns_forw.c ns_init.c ns_main.c ns_maint.c ns_req.c \
		ns_resp.c ns_stats.c ns_ncache.c ns_xfr.c ns_glue.c \
		ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
		ns_sort.c ns_notify.c tmp_version.c
CPPFLAGS+=	${INCLUDE} -I${BIND_DIST_DIR}/bin/named
LDADD=		${LIBRARY}
CLEANFILES+=	y.tab.h named-bootconf tmp_version.c pathnames.h
MAN=		${PROG}.8 named.conf.5
YHEADER=	yes
d5 20
a24 28
# XXX
.if ${MACHINE_CPU} == "sh5"
COPTS.ns_main.c=	-O1
.endif

.if ${MKSHARE} != "no"
FILES=		named.conf
FILESDIR=	/usr/share/examples/named
.endif

HOSTNAMECMD=	hostname

tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile \
		${BIND_DIST_DIR}/Version
	${_MKTARGET_CREATE}
	(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
	sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
	    -e "s|%WHOANDWHERE%|$${u}@@$${h}:$${d}|" \
	    < ${BIND_DIST_DIR}/bin/named/version.c > tmp_version.c)

pathnames.h: ${BIND_DIST_DIR}/bin/named/pathtemplate.h
	${_MKTARGET_CREATE}
	sed -e "s|%DESTETC%|/etc|" -e "s|%DESTSBIN%|/usr/sbin|" \
	    -e "s|%DESTRUN%|/var/run|" -e "s|%DESTEXEC%|/usr/libexec|" \
	    < ${BIND_DIST_DIR}/bin/named/pathtemplate.h > pathnames.h

DPSRCS+=	pathnames.h
CLEANFILES+=	pathnames.h
a25 1
.include "../../Makefile.inc"
@


1.14
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2003/10/19 06:12:07 lukem Exp $
d24 5
@


1.13
log
@support MAKEVERBOSE
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2003/08/01 17:04:07 lukem Exp $
d34 1
a34 2
	${_MKMSGCREATE}
	${_MKCMD}\
d41 1
a41 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.12
log
@Rework how dependency generation is performed:

* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2002/06/28 16:27:15 lukem Exp $
d34 2
d42 2
@


1.11
log
@tmp_version.c also needs to depend up ${BIND_DIST_DIR}/Version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2000/11/10 09:56:58 itojun Exp $
d44 2
a45 4
CLEANFILES+=pathnames.h

# mention explicit dependency, so pathnames.h will appear timely
db_dump.c: pathnames.h
a48 2

${OBJS}: pathnames.h
@


1.10
log
@synchronize with BIND 8.2.2-P7.
- resolve conflicts (there are many conflicts with $NetBSD$ tags -
  dunno why they happen).
- type pedant (couple of typecasts).

correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2000/07/04 20:27:36 matt Exp $
d32 2
a33 1
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile
@


1.10.2.1
log
@Pull up revision 1.11 (requested by lukem in ticket #390):
tmp_version.c also needs to depend up ${BIND_DIST_DIR}/Version
@
text
@d1 1
a1 1
#	$NetBSD$
d32 1
a32 2
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile \
		${BIND_DIST_DIR}/Version
@


1.9
log
@More #include <stdlib.h> string, etc. cleanup
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/11/28 16:58:16 veego Exp $
d21 1
@


1.8
log
@Install named.conf again into /usr/share/examples/named.
Somehow it vanished when I updated the bind version.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1999/11/20 19:47:46 veego Exp $
d17 1
a17 1
CPPFLAGS+=	${INCLUDE}
@


1.8.4.1
log
@Pullup 1.10 [releng]:
correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/11/28 16:58:16 veego Exp $
a20 1
YHEADER=	yes
@


1.8.4.2
log
@Pullup 1.9 [releng]:
Add -I for named source directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8.4.1 2000/11/13 22:11:32 tv Exp $
d17 1
a17 1
CPPFLAGS+=	${INCLUDE} -I${BIND_DIST_DIR}/bin/named
@


1.8.4.3
log
@Pull up revision 1.11 (requested by itojun):
  Update BIND to version 8.3.3.
@
text
@d1 1
a1 1
#	$NetBSD$
d32 1
a32 2
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile \
		${BIND_DIST_DIR}/Version
@


1.7
log
@Use the bind source from basesrc/dist/bind.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1999/03/28 00:28:17 tron Exp $
d21 7
@


1.6
log
@Install "named.conf" to "/usr/share/examples/named".
@
text
@d3 4
a6 1
.PATH:		${.CURDIR}/../man
a7 1
WARNS=		0
d11 2
a12 1
		db_glue.c ns_parser.y ns_lexer.c ns_parseutil.c \
d15 2
a16 1
		ns_udp.c ns_config.c ns_update.c tmp_version.c
d19 2
a20 10
CLEANFILES+=	y.tab.h named-bootconf tmp_version.c
MAN=		${PROG}.8 named.conf.5 named-bootconf.8
SCRIPTS=	named-bootconf.sh

.include <bsd.own.mk>

.if ${MKSHARE} != "no"
FILES=		named.conf
FILESDIR=	/usr/share/examples/named
.endif
d24 1
a24 1
tmp_version.c: ${.CURDIR}/version.c Makefile ../Makefile
d28 11
a38 1
	    < ${.CURDIR}/version.c > tmp_version.c)
d42 2
@


1.6.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 1999/11/28 16:58:16 veego Exp $
d3 1
a3 4
.include "../Makefile.inc"
.PATH:		${BIND_DIST_DIR}/bin/named \
		${BIND_DIST_DIR}/bin/named-bootconf \
		${BIND_DIST_DIR}/man
d5 1
d9 1
a9 2
		db_glue.c db_ixfr.c db_sec.c db_tsig.c \
		ns_parser.y ns_lexer.c ns_parseutil.c ns_ctl.c \
d12 1
a12 2
		ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
		ns_sort.c ns_notify.c tmp_version.c
d15 3
a17 2
CLEANFILES+=	y.tab.h named-bootconf tmp_version.c pathnames.h
MAN=		${PROG}.8 named.conf.5
d28 1
a28 1
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile
d32 1
a32 11
	    < ${BIND_DIST_DIR}/bin/named/version.c > tmp_version.c)

pathnames.h: ${BIND_DIST_DIR}/bin/named/pathtemplate.h
	sed -e "s|%DESTETC%|/etc|" -e "s|%DESTSBIN%|/usr/sbin|" \
	    -e "s|%DESTRUN%|/var/run|" -e "s|%DESTEXEC%|/usr/libexec|" \
	    < ${BIND_DIST_DIR}/bin/named/pathtemplate.h > pathnames.h

CLEANFILES+=pathnames.h

# mention explicit dependency, so pathnames.h will appear timely
db_dump.c: pathnames.h
a35 2

${OBJS}: pathnames.h
@


1.5
log
@Forgot to commit this: install "named.conf.5".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 1998/12/15 01:06:04 tron Exp $
d18 7
@


1.5.2.1
log
@Pull up revisions 1.6-1.7 (requested by christos and veego):
  Update to BIND 8.2.2-P5.
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 4
.include "../Makefile.inc"
.PATH:		${BIND_DIST_DIR}/bin/named \
		${BIND_DIST_DIR}/bin/named-bootconf \
		${BIND_DIST_DIR}/man
d5 1
d9 1
a9 2
		db_glue.c db_ixfr.c db_sec.c db_tsig.c \
		ns_parser.y ns_lexer.c ns_parseutil.c ns_ctl.c \
d12 1
a12 2
		ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
		ns_sort.c ns_notify.c tmp_version.c
d15 3
a17 2
CLEANFILES+=	y.tab.h named-bootconf tmp_version.c pathnames.h
MAN=		${PROG}.8 named.conf.5
d21 1
a21 1
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile
d25 1
a25 11
	    < ${BIND_DIST_DIR}/bin/named/version.c > tmp_version.c)

pathnames.h: ${BIND_DIST_DIR}/bin/named/pathtemplate.h
	sed -e "s|%DESTETC%|/etc|" -e "s|%DESTSBIN%|/usr/sbin|" \
	    -e "s|%DESTRUN%|/var/run|" -e "s|%DESTEXEC%|/usr/libexec|" \
	    < ${BIND_DIST_DIR}/bin/named/pathtemplate.h > pathnames.h

CLEANFILES+=pathnames.h

# mention explicit dependency, so pathnames.h will appear timely
db_dump.c: pathnames.h
a28 2

${OBJS}: pathnames.h
@


1.5.2.2
log
@Apply patch (requested by he):
  Upgrade to BIND version 8.2.2-P7.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5.2.1 1999/12/04 17:11:09 he Exp $
d17 1
a17 1
CPPFLAGS+=	${INCLUDE} -I${BIND_DIST_DIR}/bin/named
a20 1
YHEADER=	yes
@


1.4
log
@Remove "named-bootconf" while doing "make clean".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1998/11/19 21:11:45 tron Exp $
d16 1
a16 1
MAN=		${PROG}.8 named-bootconf.8
@


1.3
log
@Add manual page for "named-bootconf".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1998/10/09 19:30:02 tron Exp $
d15 1
a15 1
CLEANFILES+=	y.tab.h tmp_version.c
@


1.2
log
@Fix build problems if object directories are used.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 1998/10/05 18:01:59 tron Exp $
d16 1
a16 1
MAN=		${PROG}.8
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD$
d21 1
a21 1
tmp_version.c: version.c Makefile ../Makefile
d25 1
a25 1
	    < version.c > tmp_version.c)
@


1.1.1.1
log
@Import BIND 8.1.2.
@
text
@@


1.1.1.2
log
@Import bind9 build framework
@
text
@d3 1
a3 1
.include <bsd.own.mk>
d5 21
d27 1
a27 21
PROG=	named
MAN=	named.8 lwresd.8 named.conf.5
BINDIR=	/usr/sbin
LINKS=	${BINDIR}/named ${BINDIR}/lwresd

.include "${.CURDIR}/../Makefile.inc"


DIST=${IDIST}/bin/named
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include

.PATH: ${DIST}/unix ${DIST}

SRCS_UNIX=	os.c
SRCS=	aclconf.c builtin.c client.c config.c control.c controlconf.c \
	interfacemgr.c listenlist.c log.c logconf.c \
	lwaddr.c lwdclient.c lwderror.c \
	lwdgabn.c lwdgnba.c lwdgrbn.c lwdnoop.c lwresd.c lwsearch.c \
	main.c notify.c query.c server.c sortlist.c tkeyconf.c tsigconf.c \
	update.c xfrout.c zoneconf.c ${SRCS_UNIX}

@
