xref: /freebsd/lib/libclang_rt/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1SD_ASAN+=	asan
2SD_ASAN+=	asan-preinit
3SD_ASAN+=	asan_cxx
4SD_ASAN+=	asan_dynamic
5SD_ASAN+=	asan_static
6
7SD_CFI+=	cfi
8SD_CFI+= 	cfi_diag
9
10SD_DD+=		dd
11
12SD_FUZZER+=	fuzzer
13SD_FUZZER+=	fuzzer_interceptors
14SD_FUZZER+=	fuzzer_no_main
15
16SD_INCLUDE+=	include
17
18SD_MSAN+=	msan
19SD_MSAN+=	msan_cxx
20
21SD_PROFILE+=	profile
22
23SD_SAFESTACK+=	safestack
24
25SD_STATS+=	stats
26SD_STATS+=	stats_client
27
28SD_TSAN+=	tsan
29SD_TSAN+=	tsan_cxx
30
31SD_UBSAN+=	ubsan_minimal
32SD_UBSAN+=	ubsan_standalone
33SD_UBSAN+=	ubsan_standalone_cxx
34
35SD_XRAY+=	xray
36SD_XRAY+=	xray-basic
37SD_XRAY+=	xray-fdr
38SD_XRAY+=	xray-profiling
39
40.if ${MACHINE_CPUARCH} == "aarch64"
41SUBDIR+=	${SD_ASAN}
42SUBDIR+=	${SD_CFI}
43SUBDIR+=	${SD_FUZZER}
44SUBDIR+=	${SD_MSAN}
45SUBDIR+=	${SD_SAFESTACK}
46SUBDIR+=	${SD_STATS}
47SUBDIR+=	${SD_TSAN}
48SUBDIR+=	${SD_UBSAN}
49SUBDIR+=	${SD_XRAY}
50.elif ${MACHINE_CPUARCH} == "amd64"
51SUBDIR+=	${SD_ASAN}
52SUBDIR+=	${SD_CFI}
53SUBDIR+=	${SD_DD}
54SUBDIR+=	${SD_FUZZER}
55SUBDIR+=	${SD_MSAN}
56SUBDIR+=	${SD_SAFESTACK}
57SUBDIR+=	${SD_STATS}
58SUBDIR+=	${SD_TSAN}
59SUBDIR+=	${SD_UBSAN}
60SUBDIR+=	${SD_XRAY}
61.elif ${MACHINE_CPUARCH} == "arm"
62# nothing for 32-bit arm yet
63.elif ${MACHINE_CPUARCH} == "i386"
64SUBDIR+=	${SD_ASAN}
65SUBDIR+=	${SD_CFI}
66SUBDIR+=	${SD_SAFESTACK}
67SUBDIR+=	${SD_STATS}
68SUBDIR+=	${SD_UBSAN}
69.elif ${MACHINE_CPUARCH} == "powerpc"
70. if ${MACHINE_ARCH} == "powerpc64"
71SUBDIR+=	${SD_ASAN}
72SUBDIR+=	${SD_MSAN}
73SUBDIR+=	${SD_STATS}
74SUBDIR+=	${SD_TSAN}
75SUBDIR+=	${SD_UBSAN}
76. elif ${MACHINE_ARCH} == "powerpc64le"
77SUBDIR+=	${SD_ASAN}
78SUBDIR+=	${SD_MSAN}
79SUBDIR+=	${SD_STATS}
80SUBDIR+=	${SD_TSAN}
81SUBDIR+=	${SD_UBSAN}
82SUBDIR+=	${SD_XRAY}
83. else
84# nothing for other powerpc yet
85. endif
86.elif ${MACHINE_CPUARCH} == "riscv"
87SUBDIR+=	${SD_ASAN}
88SUBDIR+=	${SD_STATS}
89SUBDIR+=	${SD_UBSAN}
90.endif
91
92SUBDIR+=	${SD_INCLUDE}
93SUBDIR+=	${SD_PROFILE}
94
95SUBDIR_PARALLEL=
96
97.include <bsd.subdir.mk>
98