Home | History | Annotate | Line # | Download | only in libisc
Makefile revision 1.23
      1  1.23  christos #	$NetBSD: Makefile,v 1.23 2024/09/30 17:37:26 christos Exp $
      2   1.1  christos 
      3  1.21  christos NOLINT=yes # XXX
      4   1.1  christos LIB=isc
      5   1.1  christos #USE_SHLIBDIR=   yes
      6   1.1  christos 
      7   1.1  christos .include <bsd.own.mk>
      8   1.1  christos 
      9  1.12  christos LIBUVDIR=${NETBSDSRCDIR}/external/mit/libuv
     10  1.12  christos LIBUVOBJDIR!=   cd ${LIBUVDIR}/lib && ${PRINTOBJDIR}
     11  1.12  christos CPPFLAGS+=-I${LIBUVDIR}/dist/include
     12  1.12  christos 
     13   1.1  christos .include "${.CURDIR}/../Makefile.inc"
     14   1.1  christos 
     15   1.1  christos DIST=	${IDIST}/lib/isc
     16  1.16  christos CPPFLAGS+=-I${IDIST}/lib/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.11  christos UNIX_SRCS=	backtrace.c dir.c entropy.c errno.c errno2result.c \
     23  1.21  christos 		file.c interfaceiter.c net.c os.c resource.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.21  christos NETMGR_SRCS=    tcp.c udp.c netmgr.c tcpdns.c tlsdns.c \
     30  1.21  christos 		uv-compat.c netmgr-timer.c uverr2result.c 
     31  1.11  christos 
     32   1.1  christos CRYPTO_SRCS=	aes.c
     33   1.1  christos 
     34  1.21  christos SRCS=		app.c assertions.c astack.c base32.c base64.c buffer.c \
     35  1.21  christos 		commandline.c crc64.c counter.c error.c event.c glob.c \
     36  1.18  christos 		hash.c heap.c hex.c hmac.c httpd.c ht.c managers.c \
     37  1.21  christos 		iterated_hash.c lex.c lib.c log.c md.c mem.c \
     38   1.3  christos 		mutexblock.c netaddr.c netscope.c nonce.c parseint.c \
     39  1.21  christos 		picohttpparser.c pool.c portset.c quota.c radix.c random.c \
     40  1.16  christos 		ratelimiter.c regex.c trampoline.c \
     41  1.11  christos 		region.c result.c rwlock.c safe.c serial.c siphash.c \
     42   1.3  christos 		sockaddr.c stats.c string.c symtab.c task.c \
     43  1.21  christos 		taskpool.c timer.c tls.c tm.c url.c utf8.c \
     44  1.11  christos 		${UNIX_SRCS} ${PTHREAD_SRCS} ${CRYPTO_SRCS} ${NETMGR_SRCS}
     45  1.11  christos 
     46   1.1  christos 
     47  1.12  christos LDFLAGS+=-Wl,--version-script=${.CURDIR}/isc.map
     48  1.12  christos LDADD+=-Wl,-Bstatic
     49  1.12  christos 
     50  1.13  christos .if ${MKPICLIB} != "no"
     51  1.12  christos LDADD+=-L${LIBUVOBJDIR} -luv_pic
     52  1.12  christos DPADD+=${LIBUVOBJDIR}/libuv_pic.a
     53  1.13  christos .else
     54  1.13  christos LDADD+=-L${LIBUVOBJDIR} -luv
     55  1.13  christos DPADD+=${LIBUVOBJDIR}/libuv.a
     56  1.13  christos .endif
     57  1.12  christos 
     58  1.12  christos LDADD+=-Wl,-Bdynamic
     59  1.12  christos 
     60   1.2  christos LDADD+=-lz
     61   1.2  christos DPADD+=${LIBZ}
     62   1.2  christos 
     63  1.20  christos COPTS.iterated_hash.c+= -Wno-error=deprecated-declarations
     64  1.19  christos COPTS.hmac.c+= -Wno-error=deprecated-declarations
     65  1.19  christos COPTS.md.c+= -Wno-error=deprecated-declarations
     66  1.19  christos 
     67  1.21  christos CLEANTFILES+=netmgr-timer.c
     68  1.21  christos 
     69  1.21  christos CPPFLAGS.netmgr-timer.c+=-I${DIST}/netmgr
     70  1.21  christos netmgr-timer.c: ${DIST}/netmgr/timer.c
     71  1.21  christos 	${MKTARGET_CREATE}
     72  1.21  christos 	cp ${.ALLSRC} ${.TARGET}
     73  1.21  christos 
     74   1.1  christos .include <bsd.lib.mk>
     75