Home | History | Annotate | Line # | Download | only in libubsan
Makefile revision 1.17
      1  1.17       mrg #	$NetBSD: Makefile,v 1.17 2020/09/05 09:50:15 mrg 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.12       mrg # XXXmknative
     14   1.1  christos UBSAN_SRCS= \
     15  1.10       mrg 	ubsan_diag.cc \
     16  1.10       mrg 	ubsan_flags.cc \
     17  1.10       mrg 	ubsan_handlers.cc \
     18  1.10       mrg 	ubsan_init.cc \
     19  1.17       mrg 	ubsan_monitor.cc \
     20  1.10       mrg 	ubsan_type_hash.cc \
     21  1.10       mrg 	ubsan_type_hash_itanium.cc \
     22  1.10       mrg 	ubsan_type_hash_win.cc \
     23  1.12       mrg 	ubsan_value.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.16  christos .if ${MACHINE_ARCH} == "vax"
     30  1.16  christos COPTS.sanitizer_file.cc += -O1
     31  1.16  christos .endif
     32  1.16  christos 
     33   1.1  christos LIB=	ubsan
     34   1.1  christos SRCS+=	${UBSAN_SRCS}
     35   1.5  christos LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
     36  1.14       mrg CPPFLAGS+=-DCAN_SANITIZE_UB=1
     37   1.1  christos 
     38   1.1  christos .include <bsd.lib.mk>
     39