Home | History | Annotate | Line # | Download | only in libubsan
Makefile revision 1.7.2.1
      1  1.7.2.1  christos #	$NetBSD: Makefile,v 1.7.2.1 2019/06/10 21:55:38 christos Exp $
      2      1.3     joerg 
      3      1.3     joerg UNSUPPORTED_COMPILER.clang=	# defined
      4      1.7  christos LIBISCXX = yes
      5      1.3     joerg 
      6      1.1  christos .include <bsd.own.mk>
      7      1.1  christos 
      8      1.1  christos .include "../Makefile.inc"
      9      1.1  christos .include "../Makefile.sanitizer"
     10      1.1  christos 
     11      1.1  christos .PATH: ${SANITIZER}/ubsan
     12      1.1  christos 
     13      1.1  christos UBSAN_SRCS= \
     14  1.7.2.1  christos 	ubsan_diag.cc \
     15  1.7.2.1  christos 	ubsan_flags.cc \
     16  1.7.2.1  christos 	ubsan_handlers.cc \
     17  1.7.2.1  christos 	ubsan_handlers_cxx.cc \
     18  1.7.2.1  christos 	ubsan_init.cc \
     19  1.7.2.1  christos 	ubsan_type_hash.cc \
     20  1.7.2.1  christos 	ubsan_type_hash_itanium.cc \
     21  1.7.2.1  christos 	ubsan_type_hash_win.cc \
     22  1.7.2.1  christos 	ubsan_value.cc \
     23  1.7.2.1  christos 	ubsan_init_standalone.cc
     24      1.4       mrg 
     25      1.4       mrg .for _s in ubsan_handlers_cxx ubsan_type_hash ubsan_type_hash_itanium
     26      1.4       mrg COPTS.${_s}.cc+=-frtti
     27      1.4       mrg .endfor
     28      1.1  christos 
     29  1.7.2.1  christos COPTS.ubsan_handlers_cxx.cc+= -Wno-error=maybe-uninitialized
     30  1.7.2.1  christos 
     31      1.1  christos LIB=	ubsan
     32      1.1  christos SRCS+=	${UBSAN_SRCS}
     33      1.5  christos LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     34  1.7.2.1  christos CPPFLAGS+=-DCAN_SANITIZE_UB=1
     35      1.2       mrg 
     36      1.1  christos .include <bsd.lib.mk>
     37