Attach bind-9.2.4rc4 to the base system. Rip out bind-8 binaries and add
[dragonfly.git] / usr.sbin / named / Makefile.inc
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.4 2004/05/27 18:15:42 dillon Exp $
4
5 .ifndef (Mk.Inc)
6 Mk.Inc?=defined
7
8 BIND_DIR?=      ${.CURDIR}/../../contrib/bind-9.2.4rc4
9
10 VER=            9.2.4rc4
11
12 PS=             ps
13 PIDDIR=         /var/run
14 DESTETC=        /etc/namedb
15 DESTEXEC=       /usr/libexec
16 DESTRUN=        /var/run
17 DESTSBIN=       /usr/sbin
18 DESTHELP=       /usr/share/misc
19
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.
22 #
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 \
33                 -I${BIND_DIR}/lib/dns
34
35 CFLAGS+=        -I. -I${.CURDIR}
36
37 CFLAGS+=        -DVERSION=\"${VER}\" \
38                 -DNS_LOCALSTATEDIR=\"/var\" \
39                 -DNS_SYSCONFDIR=\"${DESTETC}\"
40
41 # This is for dig and other utilities
42 #
43 .if defined(USE_LIBBIND)
44
45 .if exists(${.OBJDIR}/../../lib/libbind)
46 LIBBINDDIR:=    ${.OBJDIR}/../../lib/libbind
47 .else
48 LIBBINDDIR!=    cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
49 .endif
50 LIBBIND:=       ${LIBBINDDIR}/libbind.a
51
52 DPADD+=         ${LIBBIND}
53 LDADD+=         ${LIBBIND}
54
55 CLEANFILES+=
56
57 .endif
58
59 .if defined(USE_LIBISC)
60
61 .if exists(${.OBJDIR}/../../lib/libisc)
62 LIBISCDIR:=     ${.OBJDIR}/../../lib/libisc
63 .else
64 LIBISCDIR!=     cd ${.CURDIR}/../../lib/libisc; make -V .OBJDIR
65 .endif
66 LIBISC:=        ${LIBISCDIR}/libisc.a
67
68 DPADD+=         ${LIBISC}
69 LDADD+=         ${LIBISC}
70
71 CLEANFILES+=
72
73 .endif
74
75 .include        "Makefile.maninc"
76 .endif