1*6692e12aSchristos# $NetBSD: Makefile,v 1.6 2022/09/22 21:22:50 christos Exp $ 283743a32Schristos 34555df5cSchristosLIBISPRIVATE=pic 42f8ec969Schristos 56660b2eaSchristos.include <bsd.own.mk> 66660b2eaSchristos 76660b2eaSchristosMKLINT= no 86660b2eaSchristosLIB= uv 96660b2eaSchristos 1083743a32Schristos.if ${LIBISPRIVATE:Uno} == "no" 116660b2eaSchristosINCS= uv.h uv/unix.h uv/bsd.h uv/errno.h uv/version.h uv/threadpool.h 126660b2eaSchristosINCSDIR=/usr/include 136660b2eaSchristosMAN= libuv.3 1483743a32Schristos.endif 156660b2eaSchristos 166660b2eaSchristosLIBUVDIR=${.CURDIR}/../dist 176660b2eaSchristos 186660b2eaSchristos.PATH: ${LIBUVDIR}/src ${LIBUVDIR}/src/unix ${LIBUVDIR}/include 196660b2eaSchristosSRCS+= \ 206660b2eaSchristosasync.c \ 216660b2eaSchristosatomic-ops.h \ 226660b2eaSchristoscore.c \ 236660b2eaSchristosdl.c \ 246660b2eaSchristosfs.c \ 256660b2eaSchristosgetaddrinfo.c \ 266660b2eaSchristosgetnameinfo.c \ 276660b2eaSchristosinternal.h \ 286660b2eaSchristosloop-watcher.c \ 296660b2eaSchristosloop.c \ 306660b2eaSchristospipe.c \ 316660b2eaSchristospoll.c \ 326660b2eaSchristosprocess.c \ 336660b2eaSchristosrandom-devurandom.c \ 346660b2eaSchristossignal.c \ 356660b2eaSchristosstream.c \ 36*6692e12aSchristosstrtok.c \ 376660b2eaSchristostcp.c \ 386660b2eaSchristosthread.c \ 396660b2eaSchristostty.c \ 406660b2eaSchristosudp.c 416660b2eaSchristos 426660b2eaSchristosSRCS+= \ 436660b2eaSchristosbsd-ifaddrs.c \ 446660b2eaSchristosbsd-proctitle.c \ 456660b2eaSchristoskqueue.c \ 466660b2eaSchristosnetbsd.c \ 476660b2eaSchristosposix-hrtime.c 486660b2eaSchristos 496660b2eaSchristosSRCS+= \ 506660b2eaSchristosfs-poll.c \ 516660b2eaSchristosidna.c \ 526660b2eaSchristosinet.c \ 536660b2eaSchristosrandom.c \ 546660b2eaSchristosstrscpy.c \ 556660b2eaSchristosthreadpool.c \ 566660b2eaSchristostimer.c \ 576660b2eaSchristosuv-data-getter-setters.c \ 586660b2eaSchristosuv-common.c \ 596660b2eaSchristosversion.c 606660b2eaSchristos 616660b2eaSchristosCPPFLAGS+= -I${LIBUVDIR}/include -I${LIBUVDIR}/src 626660b2eaSchristos 636660b2eaSchristosLIBDPLIBS+= kvm ${NETBSDSRCDIR}/lib/libkvm 646660b2eaSchristos 650cf0e7abSmrg.if ${LIBISPRIVATE} != "yes" && ${LIBISPRIVATE} != "pic" 666660b2eaSchristosSHLIB_MAJOR= 1 676660b2eaSchristosSHLIB_MINOR= 0 686660b2eaSchristos 696660b2eaSchristosPKGCONFIG=libuv 706660b2eaSchristos.include "${.CURDIR}/../pkgconfig.mk" 712f8ec969Schristos.endif 726660b2eaSchristos 736660b2eaSchristos.include <bsd.lib.mk> 74