2000-07-05 00:27:35 +04:00
|
|
|
# $NetBSD: Makefile,v 1.9 2000/07/04 20:27:36 matt Exp $
|
1998-10-05 22:01:57 +04:00
|
|
|
|
1999-11-20 22:47:10 +03:00
|
|
|
.include "../Makefile.inc"
|
|
|
|
.PATH: ${BIND_DIST_DIR}/bin/named \
|
|
|
|
${BIND_DIST_DIR}/bin/named-bootconf \
|
|
|
|
${BIND_DIST_DIR}/man
|
1998-10-05 22:01:57 +04:00
|
|
|
|
|
|
|
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 \
|
1999-11-20 22:47:10 +03:00
|
|
|
db_glue.c db_ixfr.c db_sec.c db_tsig.c \
|
|
|
|
ns_parser.y ns_lexer.c ns_parseutil.c ns_ctl.c \
|
1998-10-05 22:01:57 +04:00
|
|
|
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 \
|
1999-11-20 22:47:10 +03:00
|
|
|
ns_udp.c ns_config.c ns_update.c ns_ixfr.c ns_signal.c \
|
|
|
|
ns_sort.c ns_notify.c tmp_version.c
|
2000-07-05 00:27:35 +04:00
|
|
|
CPPFLAGS+= ${INCLUDE} -I${BIND_DIST_DIR}/bin/named
|
1998-10-05 22:01:57 +04:00
|
|
|
LDADD= ${LIBRARY}
|
1999-11-20 22:47:10 +03:00
|
|
|
CLEANFILES+= y.tab.h named-bootconf tmp_version.c pathnames.h
|
|
|
|
MAN= ${PROG}.8 named.conf.5
|
1999-07-19 16:04:03 +04:00
|
|
|
|
1999-11-28 19:58:16 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
.if ${MKSHARE} != "no"
|
|
|
|
FILES= named.conf
|
|
|
|
FILESDIR= /usr/share/examples/named
|
|
|
|
.endif
|
|
|
|
|
1998-10-05 22:01:57 +04:00
|
|
|
HOSTNAMECMD= hostname
|
|
|
|
|
1999-11-20 22:47:10 +03:00
|
|
|
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile
|
1998-10-05 22:01:57 +04:00
|
|
|
(u=$${USER-root} d=`pwd` h=`${HOSTNAMECMD}` t=`date`; \
|
|
|
|
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
1999-11-20 22:47:10 +03:00
|
|
|
< ${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
|
1998-10-05 22:01:57 +04:00
|
|
|
|
|
|
|
.include "../../Makefile.inc"
|
|
|
|
.include <bsd.prog.mk>
|
1999-11-20 22:47:10 +03:00
|
|
|
|
|
|
|
${OBJS}: pathnames.h
|