2003-12-07 22:57:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.15 2003/12/07 19:57:39 scw 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
|
2000-11-10 12:56:56 +03:00
|
|
|
YHEADER= yes
|
1999-07-19 16:04:03 +04:00
|
|
|
|
1999-11-28 19:58:16 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2003-12-07 22:57:39 +03:00
|
|
|
# XXX
|
|
|
|
.if ${MACHINE_CPU} == "sh5"
|
|
|
|
COPTS.ns_main.c= -O1
|
|
|
|
.endif
|
|
|
|
|
1999-11-28 19:58:16 +03:00
|
|
|
.if ${MKSHARE} != "no"
|
|
|
|
FILES= named.conf
|
|
|
|
FILESDIR= /usr/share/examples/named
|
|
|
|
.endif
|
|
|
|
|
1998-10-05 22:01:57 +04:00
|
|
|
HOSTNAMECMD= hostname
|
|
|
|
|
2002-06-28 20:27:14 +04:00
|
|
|
tmp_version.c: ${BIND_DIST_DIR}/bin/named/version.c Makefile ../Makefile \
|
|
|
|
${BIND_DIST_DIR}/Version
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
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
|
2003-10-21 14:01:19 +04:00
|
|
|
${_MKTARGET_CREATE}
|
1999-11-20 22:47:10 +03:00
|
|
|
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
|
|
|
|
|
2003-08-01 21:03:41 +04:00
|
|
|
DPSRCS+= pathnames.h
|
|
|
|
CLEANFILES+= pathnames.h
|
1998-10-05 22:01:57 +04:00
|
|
|
|
|
|
|
.include "../../Makefile.inc"
|
|
|
|
.include <bsd.prog.mk>
|