freebsd-dev/usr.bin/clang/Makefile
Ed Maste 75bc38b916 Add WITH_/WITHOUT_LLD knobs to enable the lld linker
Use this to control inclusion of the libllvm functionality required
by lld. Enable by default on arm64 and amd64, the two platforms where
lld is most usable for testing.

Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D7713
2016-08-31 21:18:38 +00:00

47 lines
769 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
SUBDIR+= clang
SUBDIR+= clang-tblgen
SUBDIR+= llvm-tblgen
.if !defined(TOOLS_PREFIX)
.if ${MK_CLANG_EXTRAS} != "no"
SUBDIR+= bugpoint
SUBDIR+= clang-format
SUBDIR+= llc
SUBDIR+= lli
SUBDIR+= llvm-ar
SUBDIR+= llvm-as
SUBDIR+= llvm-bcanalyzer
SUBDIR+= llvm-cov
SUBDIR+= llvm-cxxdump
SUBDIR+= llvm-diff
SUBDIR+= llvm-dis
SUBDIR+= llvm-dwarfdump
SUBDIR+= llvm-extract
SUBDIR+= llvm-link
SUBDIR+= llvm-lto
SUBDIR+= llvm-mc
SUBDIR+= llvm-nm
SUBDIR+= llvm-objdump
SUBDIR+= llvm-pdbdump
SUBDIR+= llvm-profdata
SUBDIR+= llvm-rtdyld
SUBDIR+= llvm-symbolizer
SUBDIR+= opt
.endif
.if ${MK_LLD} != "no"
SUBDIR+= lld
.endif
.if ${MK_LLDB} != "no"
SUBDIR+= lldb
.endif # MK_LLDB
.endif # TOOLS_PREFIX
SUBDIR_PARALLEL=
.include <bsd.subdir.mk>