1 1.5 mrg # $NetBSD: Makefile,v 1.5 2021/04/09 23:15:37 mrg Exp $ 2 1.1 mrg 3 1.1 mrg .include <bsd.own.mk> 4 1.1 mrg 5 1.1 mrg .include "../Makefile.inc" 6 1.1 mrg .include "../Makefile.sanitizer" 7 1.1 mrg 8 1.1 mrg .PATH: ${SANITIZER}/lsan ${SANITIZER}/asan 9 1.1 mrg 10 1.1 mrg LSAN_SRCS+= \ 11 1.4 mrg lsan.cc \ 12 1.4 mrg lsan_allocator.cc \ 13 1.3 mrg lsan_common.cc \ 14 1.3 mrg lsan_common_linux.cc \ 15 1.3 mrg lsan_interceptors.cc \ 16 1.4 mrg lsan_linux.cc \ 17 1.3 mrg lsan_thread.cc 18 1.1 mrg 19 1.1 mrg .if ${MACHINE_ARCH} == "vax" 20 1.1 mrg COPTS.lsan_allocator.cc += -O1 21 1.4 mrg COPTS.sanitizer_file.cc += -O1 22 1.1 mrg .endif 23 1.1 mrg 24 1.1 mrg LIB= lsan 25 1.1 mrg SRCS+= ${LSAN_SRCS} 26 1.5 mrg LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm 27 1.1 mrg LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 28 1.5 mrg LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread 29 1.1 mrg 30 1.4 mrg CWARNFLAGS.clang+= -Wno-error=unused-private-field 31 1.4 mrg 32 1.1 mrg .include <bsd.lib.mk> 33