1 1.1.2.2 martin # $NetBSD: Makefile,v 1.1.2.2 2024/02/24 13:07:34 martin Exp $ 2 1.1.2.2 martin 3 1.1.2.2 martin LIBISPRIVATE=yes 4 1.1.2.2 martin LIB=isc 5 1.1.2.2 martin 6 1.1.2.2 martin .include <bsd.own.mk> 7 1.1.2.2 martin 8 1.1.2.2 martin LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv 9 1.1.2.2 martin LIBUVOBJDIR!= cd ${LIBUVDIR}/lib && ${PRINTOBJDIR} 10 1.1.2.2 martin CPPFLAGS+=-I${LIBUVDIR}/dist/include 11 1.1.2.2 martin 12 1.1.2.2 martin .include "${.CURDIR}/../Makefile.inc" 13 1.1.2.2 martin 14 1.1.2.2 martin DIST= ${IDIST}/lib/isc 15 1.1.2.2 martin CPPFLAGS+=-I${IDIST}/lib/isc 16 1.1.2.2 martin 17 1.1.2.2 martin DIST_ISC= ${DIST} ${DIST}/netmgr 18 1.1.2.2 martin 19 1.1.2.2 martin .if ${NAMED_USE_PTHREADS} == "yes" 20 1.1.2.2 martin .PATH.c: ${DIST}/unix ${DIST}/nls ${DIST}/pthreads ${DIST_ISC} 21 1.1.2.2 martin .else 22 1.1.2.2 martin .PATH.c: ${DIST}/unix ${DIST}/nls ${DIST}/nothreads ${DIST_ISC} 23 1.1.2.2 martin .endif 24 1.1.2.2 martin 25 1.1.2.2 martin UNIX_SRCS= backtrace.c dir.c entropy.c errno.c errno2result.c \ 26 1.1.2.2 martin file.c fsaccess.c interfaceiter.c net.c os.c resource.c \ 27 1.1.2.2 martin socket.c stdio.c stdtime.c syslog.c time.c \ 28 1.1.2.2 martin backtrace-emptytbl.c meminfo.c 29 1.1.2.2 martin 30 1.1.2.2 martin PTHREAD_SRCS= condition.c mutex.c thread.c 31 1.1.2.2 martin 32 1.1.2.2 martin NETMGR_SRCS= tcp.c udp.c netmgr.c tcpdns.c uv-compat.c uverr2result.c 33 1.1.2.2 martin 34 1.1.2.2 martin CRYPTO_SRCS= aes.c 35 1.1.2.2 martin 36 1.1.2.2 martin SRCS= app.c assertions.c astack.c base32.c base64.c bind9.c buffer.c \ 37 1.1.2.2 martin bufferlist.c commandline.c crc64.c counter.c error.c event.c \ 38 1.1.2.2 martin hash.c heap.c hex.c hmac.c httpd.c ht.c managers.c \ 39 1.1.2.2 martin iterated_hash.c lex.c lfsr.c lib.c log.c md.c mem.c \ 40 1.1.2.2 martin mutexblock.c netaddr.c netscope.c nonce.c parseint.c \ 41 1.1.2.2 martin pool.c portset.c quota.c radix.c random.c \ 42 1.1.2.2 martin ratelimiter.c regex.c trampoline.c \ 43 1.1.2.2 martin region.c result.c rwlock.c safe.c serial.c siphash.c \ 44 1.1.2.2 martin sockaddr.c stats.c string.c symtab.c task.c \ 45 1.1.2.2 martin taskpool.c timer.c tls.c tm.c utf8.c version.c \ 46 1.1.2.2 martin ${UNIX_SRCS} ${PTHREAD_SRCS} ${CRYPTO_SRCS} ${NETMGR_SRCS} 47 1.1.2.2 martin 48 1.1.2.2 martin 49 1.1.2.2 martin .if (${USE_INET6} == "no") 50 1.1.2.2 martin CPPFLAGS.net.c= -Wno-error 51 1.1.2.2 martin SRCS+= ipv6.c 52 1.1.2.2 martin .endif 53 1.1.2.2 martin 54 1.1.2.2 martin LDFLAGS+=-Wl,--version-script=${.CURDIR}/isc.map 55 1.1.2.2 martin LDADD+=-Wl,-Bstatic 56 1.1.2.2 martin 57 1.1.2.2 martin .if ${MKPICLIB} != "no" 58 1.1.2.2 martin LDADD+=-L${LIBUVOBJDIR} -luv_pic 59 1.1.2.2 martin DPADD+=${LIBUVOBJDIR}/libuv_pic.a 60 1.1.2.2 martin .else 61 1.1.2.2 martin LDADD+=-L${LIBUVOBJDIR} -luv 62 1.1.2.2 martin DPADD+=${LIBUVOBJDIR}/libuv.a 63 1.1.2.2 martin .endif 64 1.1.2.2 martin 65 1.1.2.2 martin LDADD+=-Wl,-Bdynamic 66 1.1.2.2 martin 67 1.1.2.2 martin LDADD+=-lz 68 1.1.2.2 martin DPADD+=${LIBZ} 69 1.1.2.2 martin 70 1.1.2.2 martin COPTS.iterated_hash.c+= -Wno-error=deprecated-declarations 71 1.1.2.2 martin COPTS.hmac.c+= -Wno-error=deprecated-declarations 72 1.1.2.2 martin COPTS.md.c+= -Wno-error=deprecated-declarations 73 1.1.2.2 martin 74 1.1.2.2 martin .include <bsd.lib.mk> 75