xref: /freebsd/lib/libclang_rt/xray/Makefile (revision 22cf89c938886d14f5796fc49f9f020c23ea8eaf)
1
2.include <bsd.init.mk>
3
4LIB=		clang_rt.xray-${CRTARCH}
5
6SRCS+=		sanitizer_common/sanitizer_allocator.cpp
7SRCS+=		sanitizer_common/sanitizer_allocator_checks.cpp
8SRCS+=		sanitizer_common/sanitizer_common.cpp
9SRCS+=		sanitizer_common/sanitizer_common_libcdep.cpp
10SRCS+=		sanitizer_common/sanitizer_deadlock_detector1.cpp
11SRCS+=		sanitizer_common/sanitizer_deadlock_detector2.cpp
12SRCS+=		sanitizer_common/sanitizer_errno.cpp
13SRCS+=		sanitizer_common/sanitizer_file.cpp
14SRCS+=		sanitizer_common/sanitizer_flag_parser.cpp
15SRCS+=		sanitizer_common/sanitizer_flags.cpp
16SRCS+=		sanitizer_common/sanitizer_libc.cpp
17SRCS+=		sanitizer_common/sanitizer_libignore.cpp
18SRCS+=		sanitizer_common/sanitizer_linux.cpp
19SRCS+=		sanitizer_common/sanitizer_linux_libcdep.cpp
20SRCS+=		sanitizer_common/sanitizer_mutex.cpp
21SRCS+=		sanitizer_common/sanitizer_platform_limits_freebsd.cpp
22SRCS+=		sanitizer_common/sanitizer_platform_limits_linux.cpp
23SRCS+=		sanitizer_common/sanitizer_platform_limits_posix.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_registry.cpp
32SRCS+=		sanitizer_common/sanitizer_tls_get_addr.cpp
33SRCS+=		sanitizer_common/sanitizer_type_traits.cpp
34SRCS+=		xray/xray_buffer_queue.cpp
35SRCS+=		xray/xray_flags.cpp
36SRCS+=		xray/xray_init.cpp
37SRCS+=		xray/xray_interface.cpp
38SRCS+=		xray/xray_log_interface.cpp
39SRCS+=		xray/xray_utils.cpp
40
41.if ${MACHINE_CPUARCH} == amd64
42SRCS+=		xray/xray_trampoline_x86_64.S
43SRCS+=		xray/xray_x86_64.cpp
44.endif # amd64
45
46.if ${MACHINE_ARCH} == powerpc64le
47SRCS+=		xray/xray_powerpc64.cpp
48SRCS+=		xray/xray_trampoline_powerpc64.cpp
49SRCS+=		xray/xray_trampoline_powerpc64_asm.S
50.endif # powerpc64le
51
52.PATH:		${CRTSRC}/include/xray
53INCSDIR=	${CLANGDIR}/include/xray
54INCS+=		xray_interface.h
55INCS+=		xray_log_interface.h
56INCS+=		xray_records.h
57
58.include <bsd.lib.mk>
59