1 # $FreeBSD: src/lib/libbind/Makefile,v 1.5.2.2 2002/07/19 18:46:25 ru Exp $
2 # $DragonFly: src/lib/libbind/Makefile,v 1.8 2006/01/18 02:33:32 dillon Exp $
4 BIND_DIR=${.CURDIR}/../../contrib/bind-9.2.4rc7
6 # note: lib/bind/include/isc/list.h must come before lib/isc/include/isc/list.h
8 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
9 -I${.CURDIR}/../../usr.sbin/named/include \
10 -I${BIND_DIR}/lib/bind/include
12 .include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
13 .include "${BIND_DIR}/lib/bind/api"
18 # This may or may not work yet. It's not compatible with the core
19 # system components since it overrides the master.passwd handling etc.
21 .PATH: ${BIND_DIR}/lib/bind/irs
22 SRCS+= gethostent_r.c getnetgrent_r.c getprotoent_r.c getservent_r.c \
23 dns_gr.c irp_gr.c lcl_gr.c gen_gr.c getgrent.c getpwent_r.c \
24 nis_pw.c irp_pw.c lcl_pw.c dns_pw.c gen_pw.c getpwent.c \
25 nis_ho.c nis_ng.c nis_nw.c nis_pr.c nis_sv.c \
26 dns.c dns_ho.c dns_nw.c dns_pr.c \
27 dns_sv.c gai_strerror.c gen.c gen_ho.c \
28 gen_ng.c gen_nw.c gen_pr.c gen_sv.c \
29 getaddrinfo.c gethostent.c getnameinfo.c \
30 getnetent.c getnetent_r.c getnetgrent.c \
31 getprotoent.c getservent.c hesiod.c \
32 irp.c irp_ho.c irp_ng.c irp_nw.c \
33 irp_pr.c irp_sv.c irpmarshall.c irs_data.c \
34 lcl.c lcl_ho.c lcl_ng.c lcl_nw.c \
35 lcl_pr.c lcl_sv.c nis.c nul_ng.c util.c \
38 # kind of a messy way to patch this file
40 CONTRIBDIR= ${BIND_DIR}/lib/bind/irs
41 CFLAGS+=-I${CONTRIBDIR}
44 .PATH: ${BIND_DIR}/lib/bind/nameser
45 SRCS+= ns_date.c ns_name.c ns_netint.c \
46 ns_parse.c ns_print.c ns_samedomain.c \
47 ns_sign.c ns_ttl.c ns_verify.c
49 .PATH: ${BIND_DIR}/lib/bind/resolv
50 SRCS+= herror.c res_comp.c res_data.c \
51 res_debug.c res_findzonecut.c res_init.c \
52 res_mkquery.c res_mkupdate.c res_query.c \
53 res_send.c res_sendsigned.c res_update.c
57 .PATH: ${BIND_DIR}/lib/bind/dst
58 CFLAGS+=-DHMAC_MD5 -DUSE_MD5
59 SRCS+= dst_api.c hmac_link.c md5_dgst.c support.c
61 .PATH: ${BIND_DIR}/lib/bind/isc
62 SRCS+= assertions.c base64.c bitncmp.c ctl_clnt.c \
63 ctl_p.c ctl_srvr.c ev_connects.c ev_files.c \
64 ev_streams.c ev_timers.c ev_waits.c \
65 eventlib.c heap.c hex.c logging.c \
66 memcluster.c movefile.c tree.c
68 .PATH: ${BIND_DIR}/lib/bind/bsd