1996-08-29 21:38:16 +00:00
|
|
|
# From: Id: Makefile.inc,v 8.4 1996/03/03 17:42:43 vixie Exp
|
1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1996-08-29 21:38:16 +00:00
|
|
|
|
|
|
|
.ifndef (Mk.Inc)
|
|
|
|
Mk.Inc?=defined
|
|
|
|
|
|
|
|
BIND_DIR= ${.CURDIR}/../../contrib/bind
|
|
|
|
|
1998-05-03 05:09:13 +00:00
|
|
|
VER!= cat ${BIND_DIR}/Version
|
1996-08-29 21:38:16 +00:00
|
|
|
|
|
|
|
PS= ps
|
1998-05-03 05:09:13 +00:00
|
|
|
PIDDIR= /var/run
|
|
|
|
DESTETC= /etc/namedb
|
|
|
|
DESTEXEC= /usr/libexec
|
|
|
|
DESTRUN= /var/run
|
1996-08-29 21:38:16 +00:00
|
|
|
DESTSBIN= /usr/sbin
|
1998-05-03 05:09:13 +00:00
|
|
|
DESTHELP= /usr/share/misc
|
1996-08-29 21:38:16 +00:00
|
|
|
|
2000-12-01 09:39:28 +00:00
|
|
|
CFLAGS+= -I${BIND_DIR}/port/freebsd/include \
|
|
|
|
-I${.CURDIR}/../../contrib/bind/bin/named
|
1998-06-11 09:16:28 +00:00
|
|
|
|
|
|
|
# This is mostly for named and named-xfer
|
|
|
|
.if defined(USE_LIBBIND)
|
1998-06-11 10:42:58 +00:00
|
|
|
# Sadly, mkdep doesn't know about -idirafter, which would be ideal here.
|
1999-11-30 04:43:16 +00:00
|
|
|
#CFLAGS+= -I${.CURDIR}/../../include -I${BIND_DIR}/include
|
|
|
|
CFLAGS+= -I${BIND_DIR}/include
|
1996-08-29 21:38:16 +00:00
|
|
|
|
1998-05-03 05:09:13 +00:00
|
|
|
.if exists(${.OBJDIR}/../../lib/libbind)
|
1998-05-06 13:23:39 +00:00
|
|
|
LIBBINDDIR:= ${.OBJDIR}/../../lib/libbind
|
1998-05-03 05:09:13 +00:00
|
|
|
.else
|
1998-05-06 13:23:39 +00:00
|
|
|
LIBBINDDIR!= cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
|
1998-05-03 05:09:13 +00:00
|
|
|
.endif
|
1998-05-06 13:23:39 +00:00
|
|
|
LIBBIND:= ${LIBBINDDIR}/libbind.a
|
|
|
|
|
|
|
|
DPADD+= ${LIBBIND}
|
|
|
|
LDADD+= ${LIBBIND}
|
1998-05-03 05:09:13 +00:00
|
|
|
|
1998-06-11 09:16:28 +00:00
|
|
|
CLEANFILES+= tmp_version.c pathnames.h
|
|
|
|
CFLAGS+= -I.
|
1998-05-03 05:09:13 +00:00
|
|
|
|
|
|
|
tmp_version.c: version.c ${BIND_DIR}/Version
|
2001-03-02 16:52:14 +00:00
|
|
|
(u=$${USER-root} d=`pwd` h=`hostname` t=`LC_ALL=C date`; \
|
1998-05-03 05:09:13 +00:00
|
|
|
sed -e "s|%WHEN%|$${t}|" -e "s|%VERSION%|"${VER}"|" \
|
|
|
|
-e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
|
|
|
|
< ${BIND_DIR}/bin/named/version.c > tmp_version.c)
|
|
|
|
|
1999-11-30 06:15:34 +00:00
|
|
|
pathnames.h: ${BIND_DIR}/bin/named/pathtemplate.h \
|
|
|
|
${.CURDIR}/../../usr.sbin/named/Makefile.inc
|
1998-05-03 05:09:13 +00:00
|
|
|
rm -f pathnames.h
|
|
|
|
sed -e "s|%DESTSBIN%|${DESTSBIN}|" \
|
|
|
|
-e "s|%DESTEXEC%|${DESTEXEC}|" \
|
|
|
|
-e "s|%DESTETC%|${DESTETC}|" \
|
|
|
|
-e "s|%DESTRUN%|${DESTRUN}|" \
|
|
|
|
< ${BIND_DIR}/bin/named/pathtemplate.h > pathnames.h
|
|
|
|
|
1998-06-11 09:16:28 +00:00
|
|
|
.endif
|
|
|
|
|
1996-08-29 21:38:16 +00:00
|
|
|
.include "Makefile.maninc"
|
|
|
|
.endif
|