xref: /freebsd/usr.bin/clang/llvm.prog.mk (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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-min-tblgen" || ${PROG_CXX} == "llvm-tblgen")
12LIBDEPS+=	llvmminimal
13.else
14LIBDEPS+=	llvm
15LIBADD+=	z
16LIBADD+=	zstd
17.endif
18
19.for lib in ${LIBDEPS}
20DPADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
21LDADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
22.endfor
23
24PACKAGE=	clang
25
26.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING)
27LIBADD+=	execinfo
28LIBADD+=	tinfow
29.endif
30LIBADD+=	pthread
31
32.include <bsd.prog.mk>
33