Home | History | Annotate | Line # | Download | only in libisc
Makefile revision 1.25
      1  1.25  christos #	$NetBSD: Makefile,v 1.25 2026/01/29 18:37:58 christos Exp $
      2   1.1  christos 
      3   1.1  christos LIB=isc
      4   1.1  christos #USE_SHLIBDIR=   yes
      5   1.1  christos 
      6   1.1  christos .include <bsd.own.mk>
      7   1.1  christos 
      8  1.12  christos LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv
      9  1.12  christos LIBUVOBJDIR!=   cd ${LIBUVDIR}/lib && ${PRINTOBJDIR}
     10  1.12  christos CPPFLAGS+=-I${LIBUVDIR}/dist/include
     11  1.12  christos 
     12   1.1  christos .include "${.CURDIR}/../Makefile.inc"
     13   1.1  christos 
     14   1.1  christos DIST=	${IDIST}/lib/isc
     15  1.16  christos CPPFLAGS+=-I${IDIST}/lib/isc
     16  1.24  christos CPPFLAGS+=-I${BIND_SRCDIR}/include/isc
     17   1.1  christos 
     18  1.11  christos DIST_ISC= ${DIST} ${DIST}/netmgr
     19  1.11  christos 
     20  1.11  christos .PATH.c:	${DIST}/unix ${DIST}/nls ${DIST}/pthreads ${DIST_ISC}
     21   1.1  christos 
     22  1.25  christos UNIX_SRCS=	backtrace.c dir.c errno.c errno2result.c \
     23  1.24  christos 		file.c interfaceiter.c net.c os.c \
     24  1.21  christos 		stdio.c stdtime.c syslog.c time.c \
     25  1.21  christos 		meminfo.c
     26  1.11  christos 
     27   1.1  christos PTHREAD_SRCS=	condition.c mutex.c thread.c
     28   1.1  christos 
     29  1.24  christos NETMGR_SRCS=    netmgr.c proxystream.c proxyudp.c socket.c streamdns.c \
     30  1.24  christos 		tcp.c netmgr-timer.c tlsstream.c udp.c
     31  1.11  christos 
     32  1.24  christos CRYPTO_SRCS=
     33   1.1  christos 
     34  1.24  christos SRCS=		ascii.c assertions.c async.c base32.c base64.c \
     35  1.24  christos 		commandline.c crc64.c counter.c error.c fips.c \
     36  1.24  christos 		getaddresses.c hash.c hashmap.c heap.c helper.c hex.c histo.c \
     37  1.24  christos 		hmac.c httpd.c ht.c managers.c iterated_hash.c job.c \
     38  1.24  christos 		lex.c lib.c log.c loop.c md.c mem.c \
     39  1.25  christos 		mutexblock.c netaddr.c netscope.c parseint.c \
     40  1.24  christos 		picohttpparser.c portset.c proxy2.c quota.c radix.c random.c \
     41  1.24  christos 		ratelimiter.c regex.c \
     42  1.24  christos 		region.c result.c rwlock.c safe.c serial.c signal.c \
     43  1.24  christos 		sockaddr.c stats.c string.c symtab.c tid.c \
     44  1.24  christos 		timer.c tls.c tm.c url.c utf8.c uv.c work.c xml.c \
     45  1.11  christos 		${UNIX_SRCS} ${PTHREAD_SRCS} ${CRYPTO_SRCS} ${NETMGR_SRCS}
     46  1.11  christos 
     47   1.1  christos 
     48  1.12  christos LDFLAGS+=-Wl,--version-script=${.CURDIR}/isc.map
     49  1.12  christos LDADD+=-Wl,-Bstatic
     50  1.12  christos 
     51  1.13  christos .if ${MKPICLIB} != "no"
     52  1.12  christos LDADD+=-L${LIBUVOBJDIR} -luv_pic
     53  1.12  christos DPADD+=${LIBUVOBJDIR}/libuv_pic.a
     54  1.13  christos .else
     55  1.13  christos LDADD+=-L${LIBUVOBJDIR} -luv
     56  1.13  christos DPADD+=${LIBUVOBJDIR}/libuv.a
     57  1.13  christos .endif
     58  1.12  christos 
     59  1.12  christos LDADD+=-Wl,-Bdynamic
     60  1.12  christos 
     61   1.2  christos LDADD+=-lz
     62   1.2  christos DPADD+=${LIBZ}
     63   1.2  christos 
     64  1.20  christos COPTS.iterated_hash.c+= -Wno-error=deprecated-declarations
     65  1.19  christos COPTS.hmac.c+= -Wno-error=deprecated-declarations
     66  1.19  christos COPTS.md.c+= -Wno-error=deprecated-declarations
     67  1.19  christos 
     68  1.21  christos CLEANTFILES+=netmgr-timer.c
     69  1.21  christos 
     70  1.21  christos CPPFLAGS.netmgr-timer.c+=-I${DIST}/netmgr
     71  1.21  christos netmgr-timer.c: ${DIST}/netmgr/timer.c
     72  1.21  christos 	${MKTARGET_CREATE}
     73  1.21  christos 	cp ${.ALLSRC} ${.TARGET}
     74  1.21  christos 
     75   1.1  christos .include <bsd.lib.mk>
     76