freebsd-skq/targets/pseudo/clang/Makefile.depend
cem 763f7660db Add WITH_CLANG_FORMAT option
clang-format is enabled conditional on either WITH_CLANG_EXTRAS or
WITH_CLANG_FORMAT.  Some sources in libclang are build conditional on
either rule, and obviously the clang-format binary itself depends on the
rule.

clang-format could still use a manual page.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D25427
2020-06-24 17:03:42 +00:00

82 lines
1.8 KiB
Makefile

# $FreeBSD$
# This file is not autogenerated - take care!
.include <src.opts.mk>
DIRDEPS = \
lib/clang/headers \
share/doc/llvm/clang \
usr.bin/clang/clang \
usr.bin/clang/clang-tblgen \
usr.bin/clang/llvm-objdump \
usr.bin/clang/llvm-tblgen \
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
DIRDEPS+= \
lib/libclang_rt/include \
lib/libclang_rt/asan \
lib/libclang_rt/asan-preinit \
lib/libclang_rt/asan_dynamic \
lib/libclang_rt/asan_cxx \
lib/libclang_rt/safestack \
lib/libclang_rt/stats \
lib/libclang_rt/stats_client \
lib/libclang_rt/ubsan_standalone \
lib/libclang_rt/ubsan_standalone_cxx \
.endif
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" || \
${MACHINE_CPUARCH} == "arm"
DIRDEPS+= \
lib/libclang_rt/profile \
.endif
.if ${MK_LLDB} == "yes"
DIRDEPS+= \
usr.bin/clang/lldb
.endif
.if ${MK_CLANG_EXTRAS} == "yes"
DIRDEPS+= \
usr.bin/clang/bugpoint \
usr.bin/clang/llc \
usr.bin/clang/lli \
usr.bin/clang/llvm-ar \
usr.bin/clang/llvm-as \
usr.bin/clang/llvm-bcanalyzer \
usr.bin/clang/llvm-cov \
usr.bin/clang/llvm-cxxdump \
usr.bin/clang/llvm-cxxfilt \
usr.bin/clang/llvm-diff \
usr.bin/clang/llvm-dis \
usr.bin/clang/llvm-dwarfdump \
usr.bin/clang/llvm-extract \
usr.bin/clang/llvm-link \
usr.bin/clang/llvm-lto \
usr.bin/clang/llvm-lto2 \
usr.bin/clang/llvm-mc \
usr.bin/clang/llvm-modextract \
usr.bin/clang/llvm-nm \
usr.bin/clang/llvm-pdbdump \
usr.bin/clang/llvm-pdbutil \
usr.bin/clang/llvm-profdata \
usr.bin/clang/llvm-rtdyld \
usr.bin/clang/llvm-symbolizer \
usr.bin/clang/llvm-xray \
usr.bin/clang/opt \
.endif
.if ${MK_CLANG_EXTRAS} == "yes" || ${MK_CLANG_FORMAT} == "yes"
DIRDEPS+= usr.bin/clang/clang-format
.endif
.if ${MK_LLD} == "yes"
DIRDEPS+= usr.bin/clang/lld
.endif
.include <dirdeps.mk>