xref: /freebsd/lib/libclang_rt/xray/Makefile (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# $FreeBSD$
2
3.include <bsd.init.mk>
4
5LIB=		clang_rt.xray-${CRTARCH}
6
7SRCS+=		sanitizer_common/sanitizer_allocator.cpp
8SRCS+=		sanitizer_common/sanitizer_allocator_checks.cpp
9SRCS+=		sanitizer_common/sanitizer_common.cpp
10SRCS+=		sanitizer_common/sanitizer_common_libcdep.cpp
11SRCS+=		sanitizer_common/sanitizer_deadlock_detector1.cpp
12SRCS+=		sanitizer_common/sanitizer_deadlock_detector2.cpp
13SRCS+=		sanitizer_common/sanitizer_errno.cpp
14SRCS+=		sanitizer_common/sanitizer_file.cpp
15SRCS+=		sanitizer_common/sanitizer_flag_parser.cpp
16SRCS+=		sanitizer_common/sanitizer_flags.cpp
17SRCS+=		sanitizer_common/sanitizer_libc.cpp
18SRCS+=		sanitizer_common/sanitizer_libignore.cpp
19SRCS+=		sanitizer_common/sanitizer_linux.cpp
20SRCS+=		sanitizer_common/sanitizer_linux_libcdep.cpp
21SRCS+=		sanitizer_common/sanitizer_mutex.cpp
22SRCS+=		sanitizer_common/sanitizer_platform_limits_freebsd.cpp
23SRCS+=		sanitizer_common/sanitizer_platform_limits_linux.cpp
24SRCS+=		sanitizer_common/sanitizer_platform_limits_posix.cpp
25SRCS+=		sanitizer_common/sanitizer_posix.cpp
26SRCS+=		sanitizer_common/sanitizer_posix_libcdep.cpp
27SRCS+=		sanitizer_common/sanitizer_printf.cpp
28SRCS+=		sanitizer_common/sanitizer_procmaps_bsd.cpp
29SRCS+=		sanitizer_common/sanitizer_procmaps_common.cpp
30SRCS+=		sanitizer_common/sanitizer_suppressions.cpp
31SRCS+=		sanitizer_common/sanitizer_termination.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