diff options
Diffstat (limited to 'usr.bin/clang/llvm.prog.mk')
-rw-r--r-- | usr.bin/clang/llvm.prog.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk new file mode 100644 index 000000000000..27a3312726df --- /dev/null +++ b/usr.bin/clang/llvm.prog.mk @@ -0,0 +1,32 @@ + +.include "${SRCTOP}/lib/clang/llvm.pre.mk" + +CFLAGS+= -I${OBJTOP}/lib/clang/libllvm + +.include "${SRCTOP}/lib/clang/llvm.build.mk" + +# Special case for the bootstrap-tools phase. +.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \ + (${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "lldb-tblgen" || \ + ${PROG_CXX} == "llvm-min-tblgen" || ${PROG_CXX} == "llvm-tblgen") +LIBDEPS+= llvmminimal +.else +LIBDEPS+= llvm +LIBADD+= z +LIBADD+= zstd +.endif + +.for lib in ${LIBDEPS} +DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a +LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a +.endfor + +PACKAGE= clang + +.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING) +LIBADD+= execinfo +LIBADD+= tinfow +.endif +LIBADD+= pthread + +.include <bsd.prog.mk> |