1# $NetBSD: Makefile,v 1.10 2024/09/30 00:32:12 kalvisd Exp $ 2 3.include <bsd.own.mk> 4 5.include "../Makefile.inc" 6.include "../Makefile.sanitizer" 7 8.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan 9 10LSAN_SRCS+= \ 11 lsan_common.cpp \ 12 lsan_common_linux.cpp \ 13 lsan_common_mac.cpp \ 14 lsan.cpp \ 15 lsan_linux.cpp \ 16 lsan_mac.cpp \ 17 lsan_malloc_mac.cpp \ 18 lsan_allocator.cpp \ 19 lsan_interceptors.cpp \ 20 lsan_thread.cpp \ 21 lsan_posix.cpp 22 23LIB= lsan 24SRCS+= ${LSAN_SRCS} 25LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm 26LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 27LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread 28 29CWARNFLAGS.clang+= -Wno-error=unused-private-field 30 31.include <bsd.lib.mk> 32