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.4 2004/02/03 05:12:51 dillon Exp $
4 BIND_DIR=${.CURDIR}/../../contrib/bind
9 # Required to avoid a setpwent() prototype conflict. This is normally
10 # set in the freebsd port subdir header files in contrib/bind, but it's
11 # conditionalized on __FreeBSD__.
13 CFLAGS += -DSETPWENT_VOID
15 # This may or may not work yet. It's not compatible with the core
16 # system components since it overrides the master.passwd handling etc.
18 .PATH: ${BIND_DIR}/lib/irs
19 SRCS+= dns.c dns_gr.c dns_ho.c dns_nw.c dns_pr.c dns_pw.c \
20 dns_sv.c gai_strerror.c gen.c gen_gr.c gen_ho.c \
21 gen_ng.c gen_nw.c gen_pr.c gen_pw.c gen_sv.c \
22 getaddrinfo.c getgrent.c getgrent_r.c gethostent.c \
23 gethostent_r.c getnameinfo.c getnetent.c getnetent_r.c \
24 getnetgrent.c getnetgrent_r.c getprotoent.c \
25 getprotoent_r.c getpwent.c getpwent_r.c getservent.c \
26 getservent_r.c hesiod.c irs_data.c \
27 irp.c irp_gr.c irp_ho.c irp_ng.c irp_nw.c \
28 irp_pr.c irp_pw.c irp_sv.c irpmarshall.c \
30 lcl_ho.c lcl_ng.c lcl_nw.c lcl_pr.c lcl_pw.c \
31 lcl_sv.c nis.c nis_gr.c nis_ho.c nis_ng.c nis_nw.c \
32 nis_pr.c nis_pw.c nis_sv.c nul_ng.c util.c
34 .PATH: ${BIND_DIR}/lib/nameser
35 SRCS+= ns_parse.c ns_print.c ns_netint.c ns_ttl.c ns_name.c \
36 ns_sign.c ns_verify.c ns_date.c ns_samedomain.c
38 .PATH: ${BIND_DIR}/lib/resolv
39 SRCS+= herror.c res_debug.c res_data.c res_comp.c res_init.c \
40 res_mkquery.c res_query.c res_send.c res_sendsigned.c \
41 res_mkupdate.c res_update.c res_findzonecut.c
44 .if defined(WANT_CYLINK) && exists(${BIND_DIR}/lib/cylink)
45 .PATH: ${BIND_DIR}/lib/cylink
46 CFLAGS+=-DCYLINK_DSS -I${BIND_DIR}/lib/cylink
47 SRCS+= bn.c bn00.c lbn00.c lbnmem.c legal.c \
48 bits.c dss.c math.c ctk_prime.c rand.c sha.c swap.c
51 .if defined(WANT_DNSSAFE) && exists(${BIND_DIR}/lib/dnssafe)
52 .PATH: ${BIND_DIR}/lib/dnssafe
53 CFLAGS+=-DDNSSAFE -I${BIND_DIR}/lib/dnssafe
54 SRCS+= bgclrbit.c bgmdmpyx.c bgmdsqx.c bgmodexp.c \
55 bgpegcd.c big2exp.c bigabs.c bigacc.c bigarith.c \
56 bigcmp.c bigconst.c biginv.c biglen.c bigmodx.c \
57 bigmpy.c bigpdiv.c bigpmpy.c bigpmpyh.c bigpmpyl.c \
58 bigpsq.c bigqrx.c bigsmod.c bigtocan.c bigu.c \
59 bigunexp.c cantobig.c crt2.c \
60 digrand.c intbits.c md5.c md5rand.c prime.c \
61 rsa.c rsakeygn.c seccbcd.c seccbce.c surrendr.c \
62 ahchdig.c ahchencr.c ahchgen.c ahchrand.c ahdigest.c \
63 ahencryp.c ahgen.c ahrandom.c ahrsaenc.c ahrsaepr.c \
64 ahrsaepu.c aichdig.c aichenc8.c aichencn.c aichencr.c \
65 aichgen.c aichrand.c aimd5.c \
66 aimd5ran.c ainfotyp.c ainull.c airsaepr.c airsaepu.c \
67 airsakgn.c airsaprv.c airsapub.c algchoic.c algobj.c \
68 amcrte.c ammd5.c ammd5r.c \
69 amrkg.c amrsae.c balg.c binfocsh.c bkey.c bmempool.c \
70 digest.c encrypt.c generate.c intitem.c \
71 keyobj.c ki8byte.c kiitem.c kinfotyp.c \
72 kifulprv.c kipkcrpr.c kirsacrt.c kirsapub.c random.c
75 .PATH: ${BIND_DIR}/lib/dst
76 CFLAGS+=-DHMAC_MD5 -DUSE_MD5
77 SRCS+= dst_api.c prandom.c rsaref_link.c support.c bsafe_link.c \
78 cylink_link.c hmac_link.c md5_dgst.c eay_dss_link.c
80 .PATH: ${BIND_DIR}/lib/isc
81 SRCS+= tree.c bitncmp.c assertions.c \
82 memcluster.c logging.c heap.c \
83 ctl_p.c ctl_srvr.c ctl_clnt.c \
84 eventlib.c ev_connects.c ev_files.c \
85 ev_timers.c ev_streams.c ev_waits.c
92 # XXX contrib/bind/include/* must not override any real system includes
93 CFLAGS:= -I${BIND_DIR}/port/freebsd/include -I${BIND_DIR}/include ${CFLAGS}