Home | History | Annotate | Line # | Download | only in libasan
Makefile revision 1.3.2.2
      1 # $NetBSD: Makefile,v 1.3.2.2 2018/11/26 01:51:44 pgoyette 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_flags.cc \
     18 asan_fake_stack.cc \
     19 asan_globals.cc \
     20 asan_interceptors.cc \
     21 asan_linux.cc \
     22 asan_mac.cc \
     23 asan_malloc_linux.cc \
     24 asan_malloc_mac.cc \
     25 asan_malloc_win.cc \
     26 asan_new_delete.cc \
     27 asan_poisoning.cc \
     28 asan_posix.cc \
     29 asan_report.cc \
     30 asan_rtl.cc \
     31 asan_stack.cc \
     32 asan_stats.cc \
     33 asan_suppressions.cc \
     34 asan_thread.cc \
     35 asan_win.cc \
     36 asan_win_dll_thunk.cc \
     37 asan_win_dynamic_runtime_thunk.cc
     38 
     39 LIB=	asan
     40 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
     41 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     42 
     43 .if ${MACHINE_ARCH} == "vax"
     44 COPTS.asan_allocator.cc += -O1
     45 COPTS.asan_report.cc += -O1
     46 COPTS.ubsan_diag.cc += -O1
     47 COPTS.ubsan_init.cc += -O1
     48 .endif
     49 
     50 .include <bsd.lib.mk>
     51