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