freebsd-dev/usr.bin/clang/llvm.prog.mk
Bryan Drewery 7d969b1d9b DIRDEPS_BUILD: Use libllvmminimal for tblgen for the host build.
The host tools are only ever built for the same reason as TOOLS_PREFIX, for running
during the build.

Sponsored by:	EMC / Isilon Storage Division
2016-09-01 18:35:37 +00:00

26 lines
558 B
Makefile

# $FreeBSD$
.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} == "llvm-tblgen")
LIBDEPS+= llvmminimal
.else
LIBDEPS+= llvm
.endif
.for lib in ${LIBDEPS}
DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor
LIBADD+= ncursesw
LIBADD+= pthread
.include <bsd.prog.mk>