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