Fix whitespace in copyright dates.
[dragonfly.git] / lib / libisc / Makefile
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.6 2004/10/02 03:08:07 dillon Exp $
3
4 BIND_DIR=       ${.CURDIR}/../../contrib/bind-9.2.4rc7
5
6 .include "${.CURDIR}/../../usr.sbin/named/Makefile.inc"
7 .include "${BIND_DIR}/lib/isc/api"
8
9 LIB=            isc
10 SHLIB_MAJOR=    1
11 SHLIB_MINOR=    0
12
13 .PATH:          ${BIND_DIR}/lib
14 SRCS+=          isc/nls/msgcat.c
15
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
22
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 \
26                 isc/inet_pton.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 \
33                 isc/version.c
34
35 SRCS+=          isccfg/check.c isccfg/log.c isccfg/parser.c
36
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
52
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
59
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 \
62                 isccc/version.c
63
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 \
70                 lwres/lwinetntop.c
71
72 # contrib/bind/include/* must not override any real system includes
73 CFLAGS+=        -I${.CURDIR}/../../usr.sbin/named
74 CFLAGS+=        -I${.CURDIR}/../../usr.sbin/named/include
75
76 CFLAGS+=        -Wall -Wmissing-prototypes
77
78 CFLAGS+=        -DLIBINTERFACE=${LIBINTERFACE} \
79                 -DLIBREVISION=${LIBREVISION} \
80                 -DLIBAGE=${LIBAGE}
81
82 HEADERS =       app.h assertions.h base64.h bitstring.h boolean.h buffer.h \
83                 bufferlist.h commandline.h entropy.h error.h event.h \
84                 eventclass.h \
85                 file.h formatcheck.h fsaccess.h heap.h hex.h hmacmd5.h \
86                 interfaceiter.h ipv6.h lang.h lex.h \
87                 lfsr.h lib.h list.h log.h magic.h md5.h mem.h msgcat.h msgs.h \
88                 mutexblock.h netaddr.h ondestroy.h os.h \
89                 print.h quota.h random.h ratelimiter.h \
90                 refcount.h region.h resource.h \
91                 result.h resultclass.h rwlock.h serial.h sha1.h sockaddr.h \
92                 socket.h stdio.h string.h symtab.h task.h taskpool.h timer.h \
93                 types.h util.h
94
95 INCS=           ${HEADERS:S/^/${BIND_DIR}\/lib\/isc\/include\/isc\//g}
96 INCSDIR=        ${INCLUDEDIR}/isc
97
98 # there are a lot of duplicate names in the libraries we are combining,
99 # give each library its own subdirectory.
100 #
101 beforedepend: isc isccc dns dns/sec/dst isc/nls isc/unix isccfg lwres
102
103 isc isccc dns dns/sec/dst isc/nls isc/unix isccfg lwres:
104                 mkdir -p ${.TARGET}
105 .ORDER: isc isc/nls isc/unix
106
107 .ORDER: dns dns/sec/dst
108
109 CLEANDIRS+=     isc isccc dns isc/nls isc/unix isccfg lwres
110
111 #MAN=           assertions.3 bitncmp.3 eventlib.3 heap.3 \
112 #               logging.3 memcluster.3 tree.3
113 #CLEANFILES+=   ${MAN}
114
115 #MLINKS+=       assertions.3 ENSURE.3 \
116 #               assertions.3 ENSURE_ERR.3 \
117 #               assertions.3 INSIST.3 \
118 #               assertions.3 INSIST_ERR.3 \
119 #               assertions.3 INVARIANT.3 \
120 #               assertions.3 INVARIANT_ERR.3 \
121 #               assertions.3 REQUIRE.3 \
122 #               assertions.3 REQUIRE_ERR.3 \
123 #               assertions.3 assertion_type_to_text.3 \
124 #               assertions.3 set_assertion_failure_callback.3 \
125 #               eventlib.3 evAddTime.3 \
126 #               eventlib.3 evCancelConn.3 \
127 #               eventlib.3 evCancelRW.3 \
128 #               eventlib.3 evClearIdleTimer.3 \
129 #               eventlib.3 evClearTimer.3 \
130 #               eventlib.3 evCmpTime.3 \
131 #               eventlib.3 evConnFunc.3 \
132 #               eventlib.3 evConnect.3 \
133 #               eventlib.3 evConsIovec.3 \
134 #               eventlib.3 evConsTime.3 \
135 #               eventlib.3 evCreate.3 \
136 #               eventlib.3 evDefer.3 \
137 #               eventlib.3 evDeselectFD.3 \
138 #               eventlib.3 evDestroy.3 \
139 #               eventlib.3 evDispatch.3 \
140 #               eventlib.3 evDo.3 \
141 #               eventlib.3 evDrop.3 \
142 #               eventlib.3 evFileFunc.3 \
143 #               eventlib.3 evGetNext.3 \
144 #               eventlib.3 evHold.3 \
145 #               eventlib.3 evInitID.3 \
146 #               eventlib.3 evLastEventTime.3 \
147 #               eventlib.3 evListen.3 \
148 #               eventlib.3 evMainLoop.3 \
149 #               eventlib.3 evNowTime.3 \
150 #               eventlib.3 evPrintf.3 \
151 #               eventlib.3 evRead.3 \
152 #               eventlib.3 evResetTimer.3 \
153 #               eventlib.3 evSelectFD.3 \
154 #               eventlib.3 evSetDebug.3 \
155 #               eventlib.3 evSetIdleTimer.3 \
156 #               eventlib.3 evSetTimer.3 \
157 #               eventlib.3 evStreamFunc.3 \
158 #               eventlib.3 evSubTime.3 \
159 #               eventlib.3 evTestID.3 \
160 #               eventlib.3 evTimeRW.3 \
161 #               eventlib.3 evTimeSpec.3 \
162 #               eventlib.3 evTimeVal.3 \
163 #               eventlib.3 evTimerFunc.3 \
164 #               eventlib.3 evTouchIdleTimer.3 \
165 #               eventlib.3 evTryAccept.3 \
166 #               eventlib.3 evUnhold.3 \
167 #               eventlib.3 evUntimeRW.3 \
168 #               eventlib.3 evUnwait.3 \
169 #               eventlib.3 evWaitFor.3 \
170 #               eventlib.3 evWaitFunc.3 \
171 #               eventlib.3 evWrite.3 \
172 #               heap.3 heap_decreased.3 \
173 #               heap.3 heap_delete.3 \
174 #               heap.3 heap_element.3 \
175 #               heap.3 heap_for_each.3 \
176 #               heap.3 heap_free.3 \
177 #               heap.3 heap_increased.3 \
178 #               heap.3 heap_insert.3 \
179 #               heap.3 heap_new.3 \
180 #               logging.3 log_add_channel.3 \
181 #               logging.3 log_category_is_active.3 \
182 #               logging.3 log_close_stream.3 \
183 #               logging.3 log_dec_references.3 \
184 #               logging.3 log_free_channel.3 \
185 #               logging.3 log_free_context.3 \
186 #               logging.3 log_get_filename.3 \
187 #               logging.3 log_get_stream.3 \
188 #               logging.3 log_inc_references.3 \
189 #               logging.3 log_new_context.3 \
190 #               logging.3 log_new_file_channel.3 \
191 #               logging.3 log_new_null_channel.3 \
192 #               logging.3 log_new_syslog_channel.3 \
193 #               logging.3 log_open_stream.3 \
194 #               logging.3 log_option.3 \
195 #               logging.3 log_remove_channel.3 \
196 #               logging.3 log_set_file_owner.3 \
197 #               logging.3 log_vwrite.3 \
198 #               logging.3 log_write.3 \
199 #               memcluster.3 memget.3 \
200 #               memcluster.3 memput.3 \
201 #               memcluster.3 memstats.3 \
202 #               tree.3 tree_add.3 \
203 #               tree.3 tree_delete.3 \
204 #               tree.3 tree_init.3 \
205 #               tree.3 tree_mung.3 \
206 #               tree.3 tree_srch.3 \
207 #               tree.3 tree_trav.3
208
209 .include <bsd.lib.mk>
210
211 # This has to come after the .include <bsd.lib.mk>. Not sure why.
212
213 .SUFFIXES:      .mdoc .3
214 .mdoc.3:
215                 sed -e 's/@INDOT@//g' \
216                     -e 's/@SYSCALL_EXT@/2/g' \
217                     -e 's/@SYS_OPS_EXT@/8/g' \
218                     < ${.ALLSRC} > ${.TARGET}
219