1 # From: Id: Makefile.inc,v 8.4 1996/03/03 17:42:43 vixie Exp
2 # $FreeBSD: src/usr.sbin/named/Makefile.inc,v 1.12.2.3 2001/07/22 18:57:06 dillon Exp $
3 # $DragonFly: src/usr.sbin/named/Makefile.inc,v 1.10 2007/07/31 21:47:14 dillon Exp $
8 BIND_DIR?= ${.CURDIR}/../../contrib/bind-9.3
15 DESTEXEC= /usr/libexec
18 DESTHELP= /usr/share/misc
20 # note: lib/bind/include not included here because we may want to
21 # use the system resolv.h and friends instead of the one in libbind.
23 CFLAGS+= -I${BIND_DIR}/port/freebsd/include \
24 -I${BIND_DIR}/lib/dns/include \
25 -I${BIND_DIR}/lib/isc/nothreads/include \
26 -I${BIND_DIR}/lib/isc/unix/include \
27 -I${BIND_DIR}/lib/isc/include \
28 -I${BIND_DIR}/lib/isccc/include \
29 -I${BIND_DIR}/lib/lwres/unix/include \
30 -I${BIND_DIR}/lib/lwres/include \
31 -I${BIND_DIR}/lib/isccfg/include \
32 -I${BIND_DIR}/lib/dns/sec/dst/include \
35 CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/include
37 CFLAGS+= -DVERSION=\"${VER}\" \
38 -DNS_LOCALSTATEDIR=\"/var\" \
39 -DNS_SYSCONFDIR=\"${DESTETC}\"
41 # This is for dig and other utilities
43 .if defined(USE_LIBBIND)
45 .if exists(${.OBJDIR}/../../lib/libbind)
46 LIBBINDDIR:= ${.OBJDIR}/../../lib/libbind
48 LIBBINDDIR!= cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
50 LIBBIND:= ${LIBBINDDIR}/libbind.a
57 .if defined(USE_LIBBIND9)
59 .if exists(${.OBJDIR}/../../lib/libbind9)
60 LIBBINDDIR9:= ${.OBJDIR}/../../lib/libbind9
62 LIBBINDDIR9!= cd ${.CURDIR}/../../lib/libbind9; make -V .OBJDIR
64 LIBBIND9:= ${LIBBINDDIR9}/libbind9.a
71 .if defined(USE_LIBISC)
73 .if exists(${.OBJDIR}/../../lib/libisc)
74 LIBISCDIR:= ${.OBJDIR}/../../lib/libisc
76 LIBISCDIR!= cd ${.CURDIR}/../../lib/libisc; make -V .OBJDIR
78 LIBISC:= ${LIBISCDIR}/libisc.a
85 .include "Makefile.maninc"