1.include <src.opts.mk> 2 3.if ${MK_CLANG} != "no" 4SUBDIR+= clang 5.endif 6 7.if !defined(TOOLS_PREFIX) 8.if ${MK_CLANG} != "no" 9SUBDIR+= clang-scan-deps 10.endif 11 12# LLVM binutils are needed to support features such as LTO, so we build them 13# by default if clang is enabled. If MK_LLVM_BINUTILS is set, we also use them 14# as the default binutils (ar,nm,addr2line, etc.). 15.if ${MK_CLANG} != "no" || ${MK_LLVM_BINUTILS} != "no" 16SUBDIR+= llvm-ar 17SUBDIR+= llvm-cxxfilt 18SUBDIR+= llvm-nm 19SUBDIR+= llvm-objcopy 20SUBDIR+= llvm-objdump 21SUBDIR+= llvm-readobj 22SUBDIR+= llvm-size 23SUBDIR+= llvm-strings 24SUBDIR+= llvm-symbolizer 25SUBDIR+= .WAIT 26SUBDIR+= toolchain 27.endif 28 29.if ${MK_CLANG_EXTRAS} != "no" 30SUBDIR+= bugpoint 31SUBDIR+= llc 32SUBDIR+= lli 33SUBDIR+= llvm-as 34SUBDIR+= llvm-bcanalyzer 35SUBDIR+= llvm-cxxdump 36SUBDIR+= llvm-diff 37SUBDIR+= llvm-dis 38SUBDIR+= llvm-dwarfdump 39SUBDIR+= llvm-dwarfutil 40SUBDIR+= llvm-dwp 41SUBDIR+= llvm-extract 42SUBDIR+= llvm-link 43SUBDIR+= llvm-lto 44SUBDIR+= llvm-lto2 45SUBDIR+= llvm-mc 46SUBDIR+= llvm-mca 47SUBDIR+= llvm-modextract 48SUBDIR+= llvm-pdbutil 49SUBDIR+= llvm-rtdyld 50SUBDIR+= llvm-xray 51SUBDIR+= opt 52.endif 53 54.if ${MK_CLANG_EXTRAS} != "no" || ${MK_CLANG_FORMAT} != "no" 55SUBDIR+= clang-format 56.endif 57 58.if ${MK_LLD} != "no" 59SUBDIR+= lld 60.endif 61.if ${MK_LLDB} != "no" 62SUBDIR+= lldb 63SUBDIR+= lldb-server 64.endif 65.if ${MK_LLVM_COV} != "no" 66SUBDIR+= llvm-cov 67SUBDIR+= llvm-profdata 68SUBDIR_DEPEND_toolchain= llvm-cov 69.endif 70.endif # TOOLS_PREFIX 71 72SUBDIR_PARALLEL= 73 74.include <bsd.subdir.mk> 75