Home | History | Annotate | Line # | Download | only in liblsan
Makefile revision 1.8
      1 # $NetBSD: Makefile,v 1.8 2020/09/14 15:01:57 kamil 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.cc \
     12 	lsan_allocator.cc \
     13 	lsan_common.cc \
     14 	lsan_common_linux.cc \
     15 	lsan_interceptors.cc \
     16 	lsan_linux.cc \
     17 	lsan_thread.cc
     18 
     19 .if ${MACHINE_ARCH} == "vax"
     20 COPTS.lsan_allocator.cc += -O1
     21 COPTS.sanitizer_file.cc += -O1
     22 .endif
     23 
     24 LIB=	lsan
     25 SRCS+=	${LSAN_SRCS}
     26 LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
     27 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     28 LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
     29 
     30 CWARNFLAGS.clang+=	-Wno-error=unused-private-field
     31 
     32 .include <bsd.lib.mk>
     33