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