Merge from vendor branch OPENSSL:
[dragonfly.git] / lib / libbind / Makefile
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.9 2006/09/20 21:48:39 victor Exp $
3
4 BIND_DIR=${.CURDIR}/../../contrib/bind-9.3
5
6 # note: lib/bind/include/isc/list.h must come before lib/isc/include/isc/list.h
7 #
8 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
9         -I${.CURDIR}/../../usr.sbin/named/include \
10         -I${BIND_DIR}/lib/bind/include
11
12 .include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
13 .include "${BIND_DIR}/lib/bind/api"
14
15 LIB= bind
16 WANT_IRS= for now
17
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.
20 .if defined(WANT_IRS)
21 .PATH:  ${BIND_DIR}/lib/bind/irs
22
23 SRCS+=  dns.c dns_gr.c dns_ho.c dns_nw.c dns_pr.c dns_pw.c \
24         dns_sv.c gai_strerror.c gen.c gen_gr.c gen_ho.c \
25         gen_ng.c gen_nw.c gen_pr.c gen_pw.c gen_sv.c \
26         getaddrinfo.c getgrent.c getgrent_r.c gethostent.c \
27         gethostent_r.c getnameinfo.c getnetent.c \
28         getnetent_r.c getnetgrent.c getnetgrent_r.c \
29         getprotoent.c getprotoent_r.c getpwent.c \
30         getpwent_r.c getservent.c getservent_r.c hesiod.c \
31         irp.c irp_gr.c irp_ho.c irp_ng.c irp_nw.c irp_pr.c \
32         irp_pw.c irp_sv.c irpmarshall.c irs_data.c lcl.c \
33         lcl_gr.c lcl_ho.c lcl_ng.c lcl_nw.c lcl_pr.c\
34         lcl_pw.c lcl_sv.c nis.c nis_gr.c nis_ho.c nis_ng.c \
35         nis_nw.c nis_pr.c nis_pw.c nis_sv.c nul_ng.c util.c
36
37 # kind of a messy way to patch this file
38 #
39 CONTRIBDIR= ${BIND_DIR}/lib/bind/irs
40 CFLAGS+=-I${CONTRIBDIR}
41 SRCS+=  dns_ho.c.patch
42
43 .PATH:  ${BIND_DIR}/lib/bind/nameser
44 SRCS+=  ns_date.c ns_name.c ns_netint.c \
45         ns_parse.c ns_print.c  ns_samedomain.c \
46         ns_sign.c ns_ttl.c ns_verify.c
47
48 .PATH:  ${BIND_DIR}/lib/bind/resolv
49 SRCS+=  herror.c mtctxres.c res_comp.c res_data.c \
50         res_debug.c res_findzonecut.c res_init.c \
51         res_mkquery.c res_mkupdate.c res_query.c \
52         res_send.c res_sendsigned.c res_update.c
53
54 .endif
55
56 .PATH:  ${BIND_DIR}/lib/bind/dst
57 CFLAGS+=-DHMAC_MD5 -DUSE_MD5
58 SRCS+=  dst_api.c hmac_link.c md5_dgst.c support.c
59
60 .PATH:  ${BIND_DIR}/lib/bind/isc
61 SRCS+=  assertions.c base64.c bitncmp.c ctl_clnt.c \
62         ctl_p.c ctl_srvr.c ev_connects.c ev_files.c \
63         ev_streams.c ev_timers.c ev_waits.c \
64         eventlib.c heap.c hex.c logging.c \
65         memcluster.c movefile.c tree.c
66
67
68 INTERNALLIB=            true
69
70 .include <bsd.lib.mk>
71