xref: /freebsd/usr.bin/clang/llvm.prog.mk (revision 5e3190f700637fcfc1a52daeaa4a031fdd2557c7)
1
2.include "${SRCTOP}/lib/clang/llvm.pre.mk"
3
4CFLAGS+=	-I${OBJTOP}/lib/clang/libllvm
5
6.include "${SRCTOP}/lib/clang/llvm.build.mk"
7
8# Special case for the bootstrap-tools phase.
9.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \
10    (${PROG_CXX} == "clang-tblgen" || ${PROG_CXX} == "lldb-tblgen" || \
11     ${PROG_CXX} == "llvm-tblgen")
12LIBDEPS+=	llvmminimal
13.else
14LIBDEPS+=	llvm
15.endif
16
17.for lib in ${LIBDEPS}
18DPADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
19LDADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
20.endfor
21
22PACKAGE=	clang
23
24.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING)
25LIBADD+=	execinfo
26LIBADD+=	tinfow
27.endif
28LIBADD+=	pthread
29LIBADD+=	z
30LIBADD+=	zstd
31
32.include <bsd.prog.mk>
33