1# $NetBSD: Makefile,v 1.2 2016/06/09 07:11:08 mrg Exp $ 2.include <bsd.own.mk> 3 4.include "../Makefile.inc" 5.include "../Makefile.sanitizer" 6 7.PATH: ${SANITIZER}/ubsan 8 9UBSAN_SRCS= \ 10 ubsan_diag.o \ 11 ubsan_flags.o \ 12 ubsan_handlers.o \ 13 ubsan_handlers_cxx.o \ 14 ubsan_init.o \ 15 ubsan_type_hash.o \ 16 ubsan_value.o 17 18COPTS.ubsan_type_hash.cc+=-frtti 19 20LIB= ubsan 21SRCS+= ${UBSAN_SRCS} 22 23.if ${MACHINE_ARCH} == "vax" 24COPTS += -O1 25.endif 26 27.include <bsd.lib.mk> 28