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