1 2.include <bsd.init.mk> 3 4LIB= clang_rt.xray-${CRTARCH} 5 6CFLAGS+= -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS 7 8SRCS+= sanitizer_common/sanitizer_allocator.cpp 9SRCS+= sanitizer_common/sanitizer_allocator_checks.cpp 10SRCS+= sanitizer_common/sanitizer_common.cpp 11SRCS+= sanitizer_common/sanitizer_common_libcdep.cpp 12SRCS+= sanitizer_common/sanitizer_deadlock_detector1.cpp 13SRCS+= sanitizer_common/sanitizer_deadlock_detector2.cpp 14SRCS+= sanitizer_common/sanitizer_errno.cpp 15SRCS+= sanitizer_common/sanitizer_file.cpp 16SRCS+= sanitizer_common/sanitizer_flag_parser.cpp 17SRCS+= sanitizer_common/sanitizer_flags.cpp 18SRCS+= sanitizer_common/sanitizer_libc.cpp 19SRCS+= sanitizer_common/sanitizer_libignore.cpp 20SRCS+= sanitizer_common/sanitizer_linux.cpp 21SRCS+= sanitizer_common/sanitizer_linux_libcdep.cpp 22SRCS+= sanitizer_common/sanitizer_mutex.cpp 23SRCS+= sanitizer_common/sanitizer_platform_limits_freebsd.cpp 24SRCS+= sanitizer_common/sanitizer_posix.cpp 25SRCS+= sanitizer_common/sanitizer_posix_libcdep.cpp 26SRCS+= sanitizer_common/sanitizer_printf.cpp 27SRCS+= sanitizer_common/sanitizer_procmaps_bsd.cpp 28SRCS+= sanitizer_common/sanitizer_procmaps_common.cpp 29SRCS+= sanitizer_common/sanitizer_suppressions.cpp 30SRCS+= sanitizer_common/sanitizer_termination.cpp 31SRCS+= sanitizer_common/sanitizer_thread_arg_retval.cpp 32SRCS+= sanitizer_common/sanitizer_thread_registry.cpp 33SRCS+= sanitizer_common/sanitizer_tls_get_addr.cpp 34SRCS+= sanitizer_common/sanitizer_type_traits.cpp 35SRCS+= xray/xray_buffer_queue.cpp 36SRCS+= xray/xray_flags.cpp 37SRCS+= xray/xray_init.cpp 38SRCS+= xray/xray_interface.cpp 39SRCS+= xray/xray_log_interface.cpp 40SRCS+= xray/xray_utils.cpp 41 42.if ${MACHINE_CPUARCH} == amd64 43SRCS+= xray/xray_trampoline_x86_64.S 44SRCS+= xray/xray_x86_64.cpp 45.endif # amd64 46 47.if ${MACHINE_ARCH} == powerpc64le 48SRCS+= xray/xray_powerpc64.cpp 49SRCS+= xray/xray_trampoline_powerpc64.cpp 50SRCS+= xray/xray_trampoline_powerpc64_asm.S 51.endif # powerpc64le 52 53.PATH: ${CRTSRC}/include/xray 54INCSDIR= ${CLANGDIR}/include/xray 55INCS+= xray_interface.h 56INCS+= xray_log_interface.h 57INCS+= xray_records.h 58 59.include <bsd.lib.mk> 60