]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - lib/bind/dns/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / lib / bind / dns / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 BIND_DIR=       ${.CURDIR}/../../../contrib/bind9
6 LIB_BIND_REL=   ..
7 LIB_BIND_DIR=   ${.CURDIR}/${LIB_BIND_REL}
8 SRCDIR=         ${BIND_DIR}/lib/dns
9
10 .include        "${LIB_BIND_DIR}/config.mk"
11
12 LIB=            dns
13
14 .PATH:          ${SRCDIR}
15 SRCS+=          acache.c acl.c adb.c byaddr.c \
16                 cache.c callbacks.c compress.c \
17                 db.c dbiterator.c dbtable.c diff.c dispatch.c \
18                 dlz.c dns64.c dnssec.c ds.c \
19                 dst_api.c dst_lib.c dst_parse.c dst_result.c \
20                 forward.c \
21                 gssapi_link.c gssapictx.c hmac_link.c \
22                 iptable.c journal.c \
23                 key.c \
24                 keydata.c keytable.c lib.c log.c lookup.c \
25                 master.c masterdump.c message.c \
26                 name.c ncache.c nsec.c nsec3.c \
27                 openssl_link.c openssldh_link.c \
28                 openssldsa_link.c opensslgost_link.c opensslrsa_link.c \
29                 opensslecdsa_link.c \
30                 order.c peer.c portlist.c private.c \
31                 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
32                 rdataset.c rdatasetiter.c rdataslab.c request.c \
33                 resolver.c result.c rootns.c rpz.c rriterator.c \
34                 sdb.c sdlz.c soa.c ssu.c ssu_external.c \
35                 stats.c tcpmsg.c time.c timer.c tkey.c \
36                 tsec.c tsig.c ttl.c validator.c \
37                 version.c view.c xfrin.c zone.c zonekey.c zt.c
38
39 CFLAGS+=        -I${SRCDIR}/include/dst -I${SRCDIR}/include -I${SRCDIR}
40 CFLAGS+=        -I${.CURDIR}
41 CFLAGS+=        -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include
42
43 DPADD=          ${CRYPTO_DPADD} ${PTHREAD_DPADD}
44 LDADD=          ${CRYPTO_LDADD} ${PTHREAD_LDADD}
45
46 .if ${MK_BIND_LIBS} != "no"
47 DNSINCS=        ${SRCDIR}/include/dns/acache.h \
48                 ${SRCDIR}/include/dns/acl.h \
49                 ${SRCDIR}/include/dns/adb.h \
50                 ${SRCDIR}/include/dns/bit.h \
51                 ${SRCDIR}/include/dns/byaddr.h \
52                 ${SRCDIR}/include/dns/cache.h \
53                 ${SRCDIR}/include/dns/callbacks.h \
54                 ${SRCDIR}/include/dns/cert.h \
55                 ${SRCDIR}/include/dns/compress.h \
56                 ${SRCDIR}/include/dns/db.h \
57                 ${SRCDIR}/include/dns/dbiterator.h \
58                 ${SRCDIR}/include/dns/dbtable.h \
59                 ${SRCDIR}/include/dns/diff.h \
60                 ${SRCDIR}/include/dns/dispatch.h \
61                 ${SRCDIR}/include/dns/dlz.h \
62                 ${SRCDIR}/include/dns/dnssec.h \
63                 ${SRCDIR}/include/dns/ds.h \
64                 ${SRCDIR}/include/dns/events.h \
65                 ${SRCDIR}/include/dns/fixedname.h \
66                 ${SRCDIR}/include/dns/forward.h \
67                 ${SRCDIR}/include/dns/iptable.h \
68                 ${SRCDIR}/include/dns/journal.h \
69                 ${SRCDIR}/include/dns/keyflags.h \
70                 ${SRCDIR}/include/dns/keytable.h \
71                 ${SRCDIR}/include/dns/keyvalues.h \
72                 ${SRCDIR}/include/dns/lib.h \
73                 ${SRCDIR}/include/dns/log.h \
74                 ${SRCDIR}/include/dns/lookup.h \
75                 ${SRCDIR}/include/dns/master.h \
76                 ${SRCDIR}/include/dns/masterdump.h \
77                 ${SRCDIR}/include/dns/message.h \
78                 ${SRCDIR}/include/dns/name.h \
79                 ${SRCDIR}/include/dns/ncache.h \
80                 ${SRCDIR}/include/dns/nsec.h \
81                 ${SRCDIR}/include/dns/nsec3.h \
82                 ${SRCDIR}/include/dns/opcode.h \
83                 ${SRCDIR}/include/dns/order.h \
84                 ${SRCDIR}/include/dns/peer.h \
85                 ${SRCDIR}/include/dns/portlist.h \
86                 ${SRCDIR}/include/dns/private.h \
87                 ${SRCDIR}/include/dns/rbt.h \
88                 ${SRCDIR}/include/dns/rcode.h \
89                 ${SRCDIR}/include/dns/rdata.h \
90                 ${SRCDIR}/include/dns/rdatasetiter.h \
91                 ${SRCDIR}/include/dns/rdataclass.h \
92                 ${SRCDIR}/include/dns/rdatalist.h \
93                 ${SRCDIR}/include/dns/rdataset.h \
94                 ${SRCDIR}/include/dns/rdataslab.h \
95                 ${SRCDIR}/include/dns/rdatatype.h \
96                 ${SRCDIR}/include/dns/request.h \
97                 ${SRCDIR}/include/dns/resolver.h \
98                 ${SRCDIR}/include/dns/result.h \
99                 ${SRCDIR}/include/dns/rootns.h \
100                 ${SRCDIR}/include/dns/sdb.h \
101                 ${SRCDIR}/include/dns/sdlz.h \
102                 ${SRCDIR}/include/dns/secalg.h \
103                 ${SRCDIR}/include/dns/secproto.h \
104                 ${SRCDIR}/include/dns/soa.h \
105                 ${SRCDIR}/include/dns/ssu.h \
106                 ${SRCDIR}/include/dns/stats.h \
107                 ${SRCDIR}/include/dns/tcpmsg.h \
108                 ${SRCDIR}/include/dns/time.h \
109                 ${SRCDIR}/include/dns/timer.h \
110                 ${SRCDIR}/include/dns/tkey.h \
111                 ${SRCDIR}/include/dns/tsig.h \
112                 ${SRCDIR}/include/dns/ttl.h \
113                 ${SRCDIR}/include/dns/types.h \
114                 ${SRCDIR}/include/dns/validator.h \
115                 ${SRCDIR}/include/dns/version.h \
116                 ${SRCDIR}/include/dns/view.h \
117                 ${SRCDIR}/include/dns/xfrin.h \
118                 ${SRCDIR}/include/dns/zone.h \
119                 ${SRCDIR}/include/dns/zonekey.h \
120                 ${SRCDIR}/include/dns/zt.h \
121                 dns/enumtype.h \
122                 dns/enumclass.h \
123                 dns/rdatastruct.h
124
125 DNSINCSDIR=     ${INCLUDEDIR}/dns
126
127 DSTINCS=        ${SRCDIR}/include/dst/dst.h \
128                 ${SRCDIR}/include/dst/gssapi.h \
129                 ${SRCDIR}/include/dst/lib.h \
130                 ${SRCDIR}/include/dst/result.h
131
132 DSTINCSDIR=     ${INCLUDEDIR}/dst
133
134 INCSGROUPS=     DNSINCS DSTINCS
135 .endif
136
137 .if defined(MAINTAINER_MODE)
138 generate: ${.CURDIR}/dns/enumtype.h ${.CURDIR}/dns/enumclass.h \
139         ${.CURDIR}/dns/rdatastruct.h ${.CURDIR}/code.h
140
141 gen: ${SRCDIR}/gen.c
142
143 ${.CURDIR}/dns/enumtype.h: gen
144         (cd ${SRCDIR} && ${.OBJDIR}/gen -t) >${.TARGET}
145
146 ${.CURDIR}/dns/enumclass.h: gen
147         (cd ${SRCDIR} && ${.OBJDIR}/gen -c) >${.TARGET}
148
149 ${.CURDIR}/dns/rdatastruct.h: gen
150         (cd ${SRCDIR} && ${.OBJDIR}/gen -i -P rdata/rdatastructpre.h \
151             -S rdata/rdatastructsuf.h) >${.TARGET}
152
153 ${.CURDIR}/code.h: gen
154         (cd ${SRCDIR} && ${.OBJDIR}/gen) >${.TARGET}
155 .endif
156
157 .include <bsd.lib.mk>