1 # $NetBSD: Makefile,v 1.9 2023/08/03 01:36:55 mrg Exp $ 2 3 .include <bsd.own.mk> 4 5 .include "../Makefile.inc" 6 .include "../Makefile.sanitizer" 7 8 .PATH: ${SANITIZER}/lsan ${SANITIZER}/asan 9 10 LSAN_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 23 .if ${MACHINE_ARCH} == "vax" 24 #COPTS.lsan_allocator.cpp += -O1 25 #COPTS.sanitizer_file.cpp += -O1 26 .endif 27 28 LIB= lsan 29 SRCS+= ${LSAN_SRCS} 30 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm 31 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 32 LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread 33 34 CWARNFLAGS.clang+= -Wno-error=unused-private-field 35 36 .include <bsd.lib.mk> 37