Home | History | Annotate | Line # | Download | only in libasan
Makefile revision 1.28
      1 # $NetBSD: Makefile,v 1.28 2019/02/08 22:06:12 mrg Exp $
      2 
      3 UNSUPPORTED_COMPILER.clang=	# defined
      4 NOSANITIZER=	# defined
      5 
      6 .include <bsd.own.mk>
      7 
      8 .include "../Makefile.inc"
      9 .include "../Makefile.sanitizer"
     10 
     11 .PATH: ${SANITIZER}/asan ${SANITIZER}/lsan
     12 
     13 ASAN_SRCS= \
     14 	asan_activation.cc \
     15 	asan_allocator.cc \
     16 	asan_debugging.cc \
     17 	asan_descriptions.cc \
     18 	asan_errors.cc \
     19 	asan_fake_stack.cc \
     20 	asan_flags.cc \
     21 	asan_globals.cc \
     22 	asan_interceptors.cc \
     23 	asan_linux.cc \
     24 	asan_mac.cc \
     25 	asan_malloc_linux.cc \
     26 	asan_malloc_mac.cc \
     27 	asan_malloc_win.cc \
     28 	asan_memory_profile.cc \
     29 	asan_new_delete.cc \
     30 	asan_poisoning.cc \
     31 	asan_posix.cc \
     32 	asan_report.cc \
     33 	asan_rtl.cc \
     34 	asan_stack.cc \
     35 	asan_stats.cc \
     36 	asan_suppressions.cc \
     37 	asan_thread.cc \
     38 	asan_win.cc \
     39 	asan_win_dll_thunk.cc \
     40 	asan_win_dynamic_runtime_thunk.cc
     41 
     42 LIB=	asan
     43 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
     44 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     45 CPPFLAGS+=-DCAN_SANITIZE_UB=0
     46 
     47 .if ${MACHINE_ARCH} == "vax"
     48 COPTS.asan_allocator.cc += -O1
     49 COPTS.asan_report.cc += -O1
     50 COPTS.ubsan_diag.cc += -O1
     51 COPTS.ubsan_init.cc += -O1
     52 .endif
     53 
     54 .include <bsd.lib.mk>
     55