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