1 # $FreeBSD: src/lib/libisc/Makefile,v 1.1.2.6 2002/07/22 14:21:49 ru Exp $
2 # $DragonFly: src/lib/libisc/Makefile,v 1.8 2006/09/20 21:48:39 victor Exp $
4 BIND_DIR
= ${.CURDIR
}/..
/..
/contrib
/bind
5 .
include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
6 .
include "${BIND_DIR}/lib/isc/api"
11 .PATH
: ${BIND_DIR}/lib
12 SRCS
+= isc
/nls
/msgcat.c
14 SRCS
+= isc
/unix
/app.c isc
/unix
/dir.c isc
/unix
/entropy.c \
15 isc
/unix
/errno2result.c isc
/unix
/file.c \
16 isc
/unix
/fsaccess.c isc
/unix
/interfaceiter.c \
17 isc
/unix
/keyboard.c isc
/unix
/net.c \
18 isc
/unix
/os.c isc
/unix
/resource.c isc
/unix
/socket.c \
19 isc
/unix
/stdio.c isc
/unix
/stdtime.c \
20 isc
/unix
/strerror.c isc
/unix
/syslog.c \
23 SRCS
+= isc
/assertions.c isc
/base64.c isc
/bitstring.c \
24 isc
/buffer.c isc
/bufferlist.c isc
/commandline.c \
25 isc
/error.c isc
/event.c isc
/hash.c isc
/heap.c \
26 isc
/hex.c isc
/httpd.c \
27 isc
/hmacmd5.c isc
/hmacsha.c isc
/inet_pton.c isc
/lex.c isc
/lfsr.c \
28 isc
/lib.c isc
/inet_aton.c isc
/log.c isc
/md5.c isc
/mem.c \
29 isc
/mutexblock.c isc
/netaddr.c isc
/netscope.c \
30 isc
/ondestroy.c isc
/parseint.c isc
/portset.c isc
/quota.c \
31 isc
/radix.c isc
/random.c isc
/ratelimiter.c isc
/refcount.c isc
/region.c \
33 isc
/rwlock.c isc
/serial.c isc
/sha1.c isc
/sha2.c \
34 isc
/sockaddr.c isc
/stats.c isc
/string.c isc
/strtoul.c \
35 isc
/symtab.c isc
/task.c isc
/taskpool.c \
36 isc
/timer.c isc
/version.c
38 SRCS
+= isccfg
/aclconf.c isccfg
/namedconf.c isccfg
/log.c isccfg
/parser.c isccfg
/version.c
40 SRCS
+= dns
/acache.c dns
/acl.c dns
/adb.c dns
/byaddr.c dns
/cache.c \
41 dns
/callbacks.c dns
/compress.c dns
/db.c \
42 dns
/dbiterator.c dns
/dbtable.c dns
/diff.c \
43 dns
/dispatch.c dns
/dlz.c dns
/dnssec.c dns
/ds.c \
44 dns
/dst_api.c dns
/dst_lib.c dns
/dst_parse.c \
45 dns
/dst_result.c dns
/forward.c dns
/gssapi_link.c \
47 dns
/hmac_link.c dns
/iptable.c dns
/journal.c dns
/key.c \
48 dns
/keytable.c dns
/lib.c dns
/log.c \
49 dns
/lookup.c dns
/master.c dns
/masterdump.c \
50 dns
/message.c dns
/name.c dns
/ncache.c \
51 dns
/nsec.c dns
/openssl_link.c \
52 dns
/openssldh_link.c dns
/openssldsa_link.c \
53 dns
/opensslrsa_link.c dns
/order.c dns
/peer.c \
54 dns
/portlist.c dns
/rbt.c dns
/rbtdb.c \
55 dns
/rbtdb64.c dns
/rcode.c dns
/rdata.c \
56 dns
/rdatalist.c dns
/rdataset.c \
57 dns
/rdatasetiter.c dns
/rdataslab.c \
58 dns
/request.c dns
/resolver.c \
59 dns
/result.c dns
/rootns.c dns
/sdb.c dns
/soa.c \
60 dns
/ssu.c dns
/stats.c dns
/tcpmsg.c dns
/time.c \
61 dns
/timer.c dns
/tkey.c dns
/tsig.c dns
/ttl.c \
62 dns
/validator.c dns
/version.c dns
/view.c \
63 dns
/xfrin.c dns
/zone.c dns
/zonekey.c \
66 SRCS
+= isccc
/alist.c isccc
/base64.c isccc
/cc.c isccc
/ccmsg.c \
67 isccc
/lib.c isccc
/result.c isccc
/sexpr.c isccc
/symtab.c \
70 SRCS
+= lwres
/context.c lwres
/gai_strerror.c lwres
/getaddrinfo.c \
71 lwres
/gethost.c lwres
/getipnode.c lwres
/getnameinfo.c \
72 lwres
/getrrset.c lwres
/herror.c lwres
/lwbuffer.c \
73 lwres
/lwconfig.c lwres
/lwinetaton.c lwres
/lwinetntop.c \
74 lwres
/lwinetpton.c lwres
/lwpacket.c lwres
/lwres_gabn.c \
75 lwres
/lwres_gnba.c lwres
/lwres_grbn.c lwres
/lwres_noop.c \
76 lwres
/lwresutil.c lwres
/print.c lwres
/strtoul.c
78 # contrib/bind/include/* must not override any real system includes
79 CFLAGS
+= -I
${.CURDIR
}/..
/..
/usr.sbin
/named
80 CFLAGS
+= -I
${.CURDIR
}/..
/..
/usr.sbin
/named
/include
82 .if
!defined
(NO_CRYPT
) && !defined
(NO_OPENSSL
) && !defined
(NO_BIND_DNSSEC
)
86 .if
${MACHINE_ARCH} == "i386"
87 CFLAGS
+= -I
${BIND_DIR}/lib
/isc
/x86_32
/include
88 CFLAGS
+= -DISC_PLATFORM_USETHREADS
89 CFLAGS
+= -DISC_PLATFORM_USEGCCASM
91 .if
${MACHINE_ARCH} == "x86_64"
92 CFLAGS
+= -I
${BIND_DIR}/lib
/isc
/x86_64
/include
93 CFLAGS
+= -DISC_PLATFORM_USETHREADS
94 CFLAGS
+= -DISC_PLATFORM_USESTDASM
97 CFLAGS
+= -Wall
-Wmissing-prototypes
99 CFLAGS
+= -DLIBINTERFACE
=${LIBINTERFACE} \
100 -DLIBREVISION
=${LIBREVISION} \
103 HEADERS
= app.h assertions.h base64.h bitstring.h boolean.h buffer.h \
104 bufferlist.h commandline.h entropy.h error.h event.h \
106 file.h formatcheck.h fsaccess.h hash.h heap.h hex.h hmacmd5.h \
107 interfaceiter.h ipv6.h lang.h
lex.h \
108 lfsr.h lib.h list.h log.h magic.h md5.h mem.h msgcat.h msgs.h \
109 mutexblock.h netaddr.h netscope.h ondestroy.h os.h \
110 parseint.h
print.h quota.h random.h ratelimiter.h \
111 refcount.h region.h resource.h \
112 result.h resultclass.h rwlock.h serial.h sha1.h sockaddr.h \
113 socket.h stdio.h string.h symtab.h task.h taskpool.h timer.h \
114 types.h util.h version.h
116 INCS
= ${HEADERS
:S
/^
/${BIND_DIR}\
/lib\
/isc\
/include\
/isc\
//g
}
117 INCSDIR
= ${INCLUDEDIR}/isc
119 # there are a lot of duplicate names in the libraries we are combining,
120 # give each library its own subdirectory.
122 beforedepend
: isc isccc dns dns
/sec
/dst isc
/nls isc
/unix isccfg lwres
124 isc isccc dns dns
/sec
/dst isc
/nls isc
/unix isccfg lwres
:
126 .ORDER
: isc isc
/nls isc
/unix
128 .ORDER
: dns dns
/sec
/dst
130 CLEANDIRS
+= isc isccc dns isc
/nls isc
/unix isccfg lwres
132 #MAN= assertions.3 bitncmp.3 eventlib.3 heap.3 \
133 # logging.3 memcluster.3 tree.3
136 #MLINKS+= assertions.3 ENSURE.3 \
137 # assertions.3 ENSURE_ERR.3 \
138 # assertions.3 INSIST.3 \
139 # assertions.3 INSIST_ERR.3 \
140 # assertions.3 INVARIANT.3 \
141 # assertions.3 INVARIANT_ERR.3 \
142 # assertions.3 REQUIRE.3 \
143 # assertions.3 REQUIRE_ERR.3 \
144 # assertions.3 assertion_type_to_text.3 \
145 # assertions.3 set_assertion_failure_callback.3 \
146 # eventlib.3 evAddTime.3 \
147 # eventlib.3 evCancelConn.3 \
148 # eventlib.3 evCancelRW.3 \
149 # eventlib.3 evClearIdleTimer.3 \
150 # eventlib.3 evClearTimer.3 \
151 # eventlib.3 evCmpTime.3 \
152 # eventlib.3 evConnFunc.3 \
153 # eventlib.3 evConnect.3 \
154 # eventlib.3 evConsIovec.3 \
155 # eventlib.3 evConsTime.3 \
156 # eventlib.3 evCreate.3 \
157 # eventlib.3 evDefer.3 \
158 # eventlib.3 evDeselectFD.3 \
159 # eventlib.3 evDestroy.3 \
160 # eventlib.3 evDispatch.3 \
161 # eventlib.3 evDo.3 \
162 # eventlib.3 evDrop.3 \
163 # eventlib.3 evFileFunc.3 \
164 # eventlib.3 evGetNext.3 \
165 # eventlib.3 evHold.3 \
166 # eventlib.3 evInitID.3 \
167 # eventlib.3 evLastEventTime.3 \
168 # eventlib.3 evListen.3 \
169 # eventlib.3 evMainLoop.3 \
170 # eventlib.3 evNowTime.3 \
171 # eventlib.3 evPrintf.3 \
172 # eventlib.3 evRead.3 \
173 # eventlib.3 evResetTimer.3 \
174 # eventlib.3 evSelectFD.3 \
175 # eventlib.3 evSetDebug.3 \
176 # eventlib.3 evSetIdleTimer.3 \
177 # eventlib.3 evSetTimer.3 \
178 # eventlib.3 evStreamFunc.3 \
179 # eventlib.3 evSubTime.3 \
180 # eventlib.3 evTestID.3 \
181 # eventlib.3 evTimeRW.3 \
182 # eventlib.3 evTimeSpec.3 \
183 # eventlib.3 evTimeVal.3 \
184 # eventlib.3 evTimerFunc.3 \
185 # eventlib.3 evTouchIdleTimer.3 \
186 # eventlib.3 evTryAccept.3 \
187 # eventlib.3 evUnhold.3 \
188 # eventlib.3 evUntimeRW.3 \
189 # eventlib.3 evUnwait.3 \
190 # eventlib.3 evWaitFor.3 \
191 # eventlib.3 evWaitFunc.3 \
192 # eventlib.3 evWrite.3 \
193 # heap.3 heap_decreased.3 \
194 # heap.3 heap_delete.3 \
195 # heap.3 heap_element.3 \
196 # heap.3 heap_for_each.3 \
197 # heap.3 heap_free.3 \
198 # heap.3 heap_increased.3 \
199 # heap.3 heap_insert.3 \
200 # heap.3 heap_new.3 \
201 # logging.3 log_add_channel.3 \
202 # logging.3 log_category_is_active.3 \
203 # logging.3 log_close_stream.3 \
204 # logging.3 log_dec_references.3 \
205 # logging.3 log_free_channel.3 \
206 # logging.3 log_free_context.3 \
207 # logging.3 log_get_filename.3 \
208 # logging.3 log_get_stream.3 \
209 # logging.3 log_inc_references.3 \
210 # logging.3 log_new_context.3 \
211 # logging.3 log_new_file_channel.3 \
212 # logging.3 log_new_null_channel.3 \
213 # logging.3 log_new_syslog_channel.3 \
214 # logging.3 log_open_stream.3 \
215 # logging.3 log_option.3 \
216 # logging.3 log_remove_channel.3 \
217 # logging.3 log_set_file_owner.3 \
218 # logging.3 log_vwrite.3 \
219 # logging.3 log_write.3 \
220 # memcluster.3 memget.3 \
221 # memcluster.3 memput.3 \
222 # memcluster.3 memstats.3 \
223 # tree.3 tree_add.3 \
224 # tree.3 tree_delete.3 \
225 # tree.3 tree_init.3 \
226 # tree.3 tree_mung.3 \
227 # tree.3 tree_srch.3 \
230 .
include <bsd.lib.mk
>
232 # This has to come after the .include <bsd.lib.mk>. Not sure why.
236 sed
-e
's/@INDOT@//g' \
237 -e
's/@SYSCALL_EXT@/2/g' \
238 -e
's/@SYS_OPS_EXT@/8/g' \
239 < ${.ALLSRC
} > ${.TARGET
}