installer: Small fix for the /dev/serno changes.
[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.11 2008/07/11 22:42:30 reed Exp $
4
5 .ifndef (Mk.Inc)
6 Mk.Inc?=defined
7
8 BIND_DIR?=      ${.CURDIR}/../../contrib/bind-9.3
9
10 # P2 doesn't officially exist from ISC
11 # this is the patch for 9.3.5-P1 backported to 9.3.4-P1
12 VER=            9.3.4-P2
13
14 PS=             ps
15 PIDDIR=         /var/run
16 DESTETC=        /etc/namedb
17 DESTEXEC=       /usr/libexec
18 DESTRUN=        /var/run
19 DESTSBIN=       /usr/sbin
20 DESTHELP=       /usr/share/misc
21
22 # note: lib/bind/include not included here because we may want to
23 # use the system resolv.h and friends instead of the one in libbind.
24 #
25 CFLAGS+=        -I${BIND_DIR}/port/freebsd/include \
26                 -I${BIND_DIR}/lib/dns/include \
27                 -I${BIND_DIR}/lib/isc/nothreads/include \
28                 -I${BIND_DIR}/lib/isc/unix/include \
29                 -I${BIND_DIR}/lib/isc/include \
30                 -I${BIND_DIR}/lib/isccc/include \
31                 -I${BIND_DIR}/lib/lwres/unix/include \
32                 -I${BIND_DIR}/lib/lwres/include \
33                 -I${BIND_DIR}/lib/isccfg/include \
34                 -I${BIND_DIR}/lib/dns/sec/dst/include \
35                 -I${BIND_DIR}/lib/dns
36
37 CFLAGS+=        -I. -I${.CURDIR} -I${.CURDIR}/include
38
39 CFLAGS+=        -DVERSION=\"${VER}\" \
40                 -DNS_LOCALSTATEDIR=\"/var\" \
41                 -DNS_SYSCONFDIR=\"${DESTETC}\"
42
43 # This is for dig and other utilities
44 #
45 .if defined(USE_LIBBIND)
46
47 .if exists(${.OBJDIR}/../../lib/libbind)
48 LIBBINDDIR:=    ${.OBJDIR}/../../lib/libbind
49 .else
50 LIBBINDDIR!=    cd ${.CURDIR}/../../lib/libbind; make -V .OBJDIR
51 .endif
52 LIBBIND:=       ${LIBBINDDIR}/libbind.a
53
54 DPADD+=         ${LIBBIND}
55 LDADD+=         ${LIBBIND}
56
57 .endif
58
59 .if defined(USE_LIBBIND9)
60
61 .if exists(${.OBJDIR}/../../lib/libbind9)
62 LIBBINDDIR9:=    ${.OBJDIR}/../../lib/libbind9
63 .else
64 LIBBINDDIR9!=    cd ${.CURDIR}/../../lib/libbind9; make -V .OBJDIR
65 .endif
66 LIBBIND9:=       ${LIBBINDDIR9}/libbind9.a
67
68 DPADD+=         ${LIBBIND9}
69 LDADD+=         ${LIBBIND9}
70
71 .endif
72
73 .if defined(USE_LIBISC)
74
75 .if exists(${.OBJDIR}/../../lib/libisc)
76 LIBISCDIR:=     ${.OBJDIR}/../../lib/libisc
77 .else
78 LIBISCDIR!=     cd ${.CURDIR}/../../lib/libisc; make -V .OBJDIR
79 .endif
80 LIBISC:=        ${LIBISCDIR}/libisc.a
81
82 DPADD+=         ${LIBISC}
83 LDADD+=         ${LIBISC}
84
85 .endif
86
87 .include        "Makefile.maninc"
88 .endif