Home | History | Annotate | Line # | Download | only in liblsan
      1 # $NetBSD: Makefile,v 1.9 2025/09/07 04:12:11 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 LIB=	lsan
     24 SRCS+=	${LSAN_SRCS}
     25 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
     26 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     27 LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
     28 
     29 CWARNFLAGS.clang+=	-Wno-error=unused-private-field
     30 
     31 .include "../preinit.mk"
     32 
     33 .include <bsd.lib.mk>
     34