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.3 2004/05/27 18:15:41 dillon Exp $
4 BIND_DIR= ${.CURDIR}/../../contrib/bind-9.2.4rc4
6 .include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
7 .include "${BIND_DIR}/lib/isc/api"
13 .PATH: ${BIND_DIR}/lib
14 SRCS+= isc/nls/msgcat.c
16 SRCS+= isc/unix/app.c isc/unix/dir.c isc/unix/entropy.c \
17 isc/unix/errno2result.c isc/unix/file.c isc/unix/fsaccess.c \
18 isc/unix/interfaceiter.c isc/unix/keyboard.c isc/unix/net.c \
19 isc/unix/os.c isc/unix/resource.c isc/unix/socket.c \
20 isc/unix/stdio.c isc/unix/stdtime.c isc/unix/strerror.c \
21 isc/unix/syslog.c isc/unix/time.c
23 SRCS+= isc/assertions.c isc/base64.c isc/bitstring.c isc/buffer.c \
24 isc/bufferlist.c isc/commandline.c isc/error.c isc/event.c \
25 isc/hash.c isc/heap.c isc/hex.c isc/hmacmd5.c \
27 isc/lex.c isc/lfsr.c isc/lib.c isc/log.c \
28 isc/md5.c isc/mem.c isc/mutexblock.c isc/netaddr.c \
29 isc/ondestroy.c isc/quota.c isc/random.c \
30 isc/ratelimiter.c isc/result.c isc/rwlock.c \
31 isc/serial.c isc/sha1.c isc/sockaddr.c isc/string.c \
32 isc/symtab.c isc/task.c isc/taskpool.c isc/timer.c \
35 SRCS+= isccfg/check.c isccfg/log.c isccfg/parser.c
37 SRCS+= dns/a6.c dns/acl.c dns/adb.c dns/byaddr.c \
38 dns/cache.c dns/callbacks.c dns/compress.c \
39 dns/db.c dns/dbiterator.c dns/dbtable.c dns/diff.c \
40 dns/dispatch.c dns/dnssec.c dns/forward.c dns/journal.c \
41 dns/keytable.c dns/lib.c dns/log.c dns/lookup.c \
42 dns/master.c dns/masterdump.c dns/message.c \
43 dns/name.c dns/ncache.c dns/nxt.c dns/peer.c \
44 dns/rbt.c dns/rbtdb.c dns/rbtdb64.c dns/rdata.c \
45 dns/rdatalist.c dns/rdataset.c dns/rdatasetiter.c \
46 dns/rdataslab.c dns/request.c dns/resolver.c dns/result.c \
47 dns/rootns.c dns/sdb.c dns/soa.c dns/ssu.c \
48 dns/stats.c dns/tcpmsg.c dns/time.c dns/timer.c dns/tkey.c \
49 dns/tsig.c dns/ttl.c dns/validator.c \
50 dns/version.c dns/view.c dns/xfrin.c dns/zone.c \
51 dns/zonekey.c dns/zt.c
53 SRCS+= dns/sec/dst/dst_api.c dns/sec/dst/dst_lib.c \
54 dns/sec/dst/dst_parse.c dns/sec/dst/dst_result.c \
55 dns/sec/dst/gssapi_link.c dns/sec/dst/gssapictx.c \
56 dns/sec/dst/hmac_link.c dns/sec/dst/key.c \
57 dns/sec/dst/openssl_link.c dns/sec/dst/openssldh_link.c \
58 dns/sec/dst/openssldsa_link.c dns/sec/dst/opensslrsa_link.c
60 SRCS+= isccc/alist.c isccc/base64.c isccc/cc.c isccc/ccmsg.c \
61 isccc/lib.c isccc/result.c isccc/sexpr.c isccc/symtab.c \
64 SRCS+= lwres/context.c lwres/gai_strerror.c lwres/getaddrinfo.c \
65 lwres/gethost.c lwres/getipnode.c lwres/getnameinfo.c \
66 lwres/getrrset.c lwres/herror.c lwres/lwbuffer.c \
67 lwres/lwconfig.c lwres/lwpacket.c lwres/lwresutil.c \
68 lwres/lwres_gabn.c lwres/lwres_gnba.c lwres/lwres_grbn.c \
69 lwres/lwres_noop.c lwres/lwinetaton.c lwres/lwinetpton.c \
72 # contrib/bind/include/* must not override any real system includes
73 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named
75 CFLAGS+= -Wall -Wmissing-prototypes
77 CFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
78 -DLIBREVISION=${LIBREVISION} \
81 HEADERS = app.h assertions.h base64.h bitstring.h boolean.h buffer.h \
82 bufferlist.h commandline.h entropy.h error.h event.h \
84 file.h formatcheck.h fsaccess.h heap.h hex.h hmacmd5.h \
85 interfaceiter.h ipv6.h lang.h lex.h \
86 lfsr.h lib.h list.h log.h magic.h md5.h mem.h msgcat.h msgs.h \
87 mutexblock.h netaddr.h ondestroy.h os.h \
88 print.h quota.h random.h ratelimiter.h \
89 refcount.h region.h resource.h \
90 result.h resultclass.h rwlock.h serial.h sha1.h sockaddr.h \
91 socket.h stdio.h string.h symtab.h task.h taskpool.h timer.h \
94 INCS= ${HEADERS:S/^/${BIND_DIR}\/lib\/isc\/include\/isc\//g}
95 INCSDIR= ${INCLUDEDIR}/isc
97 # there are a lot of duplicate names in the libraries we are combining,
98 # give each library its own subdirectory.
100 beforedepend: isc isccc dns dns/sec/dst isc/nls isc/unix isccfg lwres
102 isc isccc dns dns/sec/dst isc/nls isc/unix isccfg lwres:
105 CLEANDIRS+= isc isccc dns isc/nls isc/unix isccfg lwres
107 #MAN= assertions.3 bitncmp.3 eventlib.3 heap.3 \
108 # logging.3 memcluster.3 tree.3
111 #MLINKS+= assertions.3 ENSURE.3 \
112 # assertions.3 ENSURE_ERR.3 \
113 # assertions.3 INSIST.3 \
114 # assertions.3 INSIST_ERR.3 \
115 # assertions.3 INVARIANT.3 \
116 # assertions.3 INVARIANT_ERR.3 \
117 # assertions.3 REQUIRE.3 \
118 # assertions.3 REQUIRE_ERR.3 \
119 # assertions.3 assertion_type_to_text.3 \
120 # assertions.3 set_assertion_failure_callback.3 \
121 # eventlib.3 evAddTime.3 \
122 # eventlib.3 evCancelConn.3 \
123 # eventlib.3 evCancelRW.3 \
124 # eventlib.3 evClearIdleTimer.3 \
125 # eventlib.3 evClearTimer.3 \
126 # eventlib.3 evCmpTime.3 \
127 # eventlib.3 evConnFunc.3 \
128 # eventlib.3 evConnect.3 \
129 # eventlib.3 evConsIovec.3 \
130 # eventlib.3 evConsTime.3 \
131 # eventlib.3 evCreate.3 \
132 # eventlib.3 evDefer.3 \
133 # eventlib.3 evDeselectFD.3 \
134 # eventlib.3 evDestroy.3 \
135 # eventlib.3 evDispatch.3 \
136 # eventlib.3 evDo.3 \
137 # eventlib.3 evDrop.3 \
138 # eventlib.3 evFileFunc.3 \
139 # eventlib.3 evGetNext.3 \
140 # eventlib.3 evHold.3 \
141 # eventlib.3 evInitID.3 \
142 # eventlib.3 evLastEventTime.3 \
143 # eventlib.3 evListen.3 \
144 # eventlib.3 evMainLoop.3 \
145 # eventlib.3 evNowTime.3 \
146 # eventlib.3 evPrintf.3 \
147 # eventlib.3 evRead.3 \
148 # eventlib.3 evResetTimer.3 \
149 # eventlib.3 evSelectFD.3 \
150 # eventlib.3 evSetDebug.3 \
151 # eventlib.3 evSetIdleTimer.3 \
152 # eventlib.3 evSetTimer.3 \
153 # eventlib.3 evStreamFunc.3 \
154 # eventlib.3 evSubTime.3 \
155 # eventlib.3 evTestID.3 \
156 # eventlib.3 evTimeRW.3 \
157 # eventlib.3 evTimeSpec.3 \
158 # eventlib.3 evTimeVal.3 \
159 # eventlib.3 evTimerFunc.3 \
160 # eventlib.3 evTouchIdleTimer.3 \
161 # eventlib.3 evTryAccept.3 \
162 # eventlib.3 evUnhold.3 \
163 # eventlib.3 evUntimeRW.3 \
164 # eventlib.3 evUnwait.3 \
165 # eventlib.3 evWaitFor.3 \
166 # eventlib.3 evWaitFunc.3 \
167 # eventlib.3 evWrite.3 \
168 # heap.3 heap_decreased.3 \
169 # heap.3 heap_delete.3 \
170 # heap.3 heap_element.3 \
171 # heap.3 heap_for_each.3 \
172 # heap.3 heap_free.3 \
173 # heap.3 heap_increased.3 \
174 # heap.3 heap_insert.3 \
175 # heap.3 heap_new.3 \
176 # logging.3 log_add_channel.3 \
177 # logging.3 log_category_is_active.3 \
178 # logging.3 log_close_stream.3 \
179 # logging.3 log_dec_references.3 \
180 # logging.3 log_free_channel.3 \
181 # logging.3 log_free_context.3 \
182 # logging.3 log_get_filename.3 \
183 # logging.3 log_get_stream.3 \
184 # logging.3 log_inc_references.3 \
185 # logging.3 log_new_context.3 \
186 # logging.3 log_new_file_channel.3 \
187 # logging.3 log_new_null_channel.3 \
188 # logging.3 log_new_syslog_channel.3 \
189 # logging.3 log_open_stream.3 \
190 # logging.3 log_option.3 \
191 # logging.3 log_remove_channel.3 \
192 # logging.3 log_set_file_owner.3 \
193 # logging.3 log_vwrite.3 \
194 # logging.3 log_write.3 \
195 # memcluster.3 memget.3 \
196 # memcluster.3 memput.3 \
197 # memcluster.3 memstats.3 \
198 # tree.3 tree_add.3 \
199 # tree.3 tree_delete.3 \
200 # tree.3 tree_init.3 \
201 # tree.3 tree_mung.3 \
202 # tree.3 tree_srch.3 \
205 .include <bsd.lib.mk>
207 # This has to come after the .include <bsd.lib.mk>. Not sure why.
211 sed -e 's/@INDOT@//g' \
212 -e 's/@SYSCALL_EXT@/2/g' \
213 -e 's/@SYS_OPS_EXT@/8/g' \
214 < ${.ALLSRC} > ${.TARGET}