Home | History | Annotate | Line # | Download | only in libubsan
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 2017/06/29 18:52:23 joerg 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}/ubsan
     11 
     12 UBSAN_SRCS= \
     13 	ubsan_diag.o \
     14 	ubsan_flags.o \
     15 	ubsan_handlers.o \
     16 	ubsan_handlers_cxx.o \
     17 	ubsan_init.o \
     18 	ubsan_type_hash.o \
     19 	ubsan_value.o
     20 
     21 COPTS.ubsan_type_hash.cc+=-frtti
     22 
     23 LIB=	ubsan
     24 SRCS+=	${UBSAN_SRCS}
     25 
     26 .if ${MACHINE_ARCH} == "vax"
     27 COPTS += -O1
     28 .endif
     29 
     30 .include <bsd.lib.mk>
     31