Home | History | Annotate | Line # | Download | only in libubsan
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2018/02/14 03:37:39 christos 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_init_standalone.o \
     19 	ubsan_type_hash.o \
     20 	ubsan_type_hash_itanium.o \
     21 	ubsan_type_hash_win.o \
     22 	ubsan_value.o
     23 
     24 
     25 .for _s in ubsan_handlers_cxx ubsan_type_hash ubsan_type_hash_itanium
     26 COPTS.${_s}.cc+=-frtti
     27 .endfor
     28 
     29 LIB=	ubsan
     30 SRCS+=	${UBSAN_SRCS}
     31 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     32 
     33 .if ${MACHINE_ARCH} == "vax"
     34 COPTS += -O1
     35 .endif
     36 
     37 .include <bsd.lib.mk>
     38