1 1.25 christos # $NetBSD: Makefile,v 1.25 2018/06/28 10:15:01 christos 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.12 christos asan_activation.cc \ 15 1.19 mrg asan_allocator.cc \ 16 1.12 christos asan_debugging.cc \ 17 1.19 mrg asan_flags.cc \ 18 1.12 christos asan_fake_stack.cc \ 19 1.12 christos asan_globals.cc \ 20 1.12 christos asan_interceptors.cc \ 21 1.12 christos asan_linux.cc \ 22 1.12 christos asan_mac.cc \ 23 1.12 christos asan_malloc_linux.cc \ 24 1.12 christos asan_malloc_mac.cc \ 25 1.12 christos asan_malloc_win.cc \ 26 1.12 christos asan_new_delete.cc \ 27 1.12 christos asan_poisoning.cc \ 28 1.12 christos asan_posix.cc \ 29 1.12 christos asan_report.cc \ 30 1.12 christos asan_rtl.cc \ 31 1.12 christos asan_stack.cc \ 32 1.12 christos asan_stats.cc \ 33 1.19 mrg asan_suppressions.cc \ 34 1.12 christos asan_thread.cc \ 35 1.12 christos asan_win.cc \ 36 1.12 christos asan_win_dll_thunk.cc \ 37 1.12 christos asan_win_dynamic_runtime_thunk.cc 38 1.1 christos 39 1.1 christos LIB= asan 40 1.25 christos SRCS+= ${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc 41 1.21 christos LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 42 1.3 christos 43 1.10 martin .if ${MACHINE_ARCH} == "vax" 44 1.20 mrg COPTS.asan_allocator.cc += -O1 45 1.17 mrg COPTS.asan_report.cc += -O1 46 1.20 mrg COPTS.sanitizer_common.cc += -O1 47 1.20 mrg COPTS.sanitizer_common_libcdep.cc += -O1 48 1.20 mrg COPTS.sanitizer_posix.cc += -O1 49 1.22 mrg COPTS.ubsan_diag.cc += -O1 50 1.22 mrg COPTS.ubsan_init.cc += -O1 51 1.10 martin .endif 52 1.10 martin 53 1.1 christos .include <bsd.lib.mk> 54