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