xref: /freebsd/usr.bin/clang/llvm.prog.mk (revision 0957b409a90fd597c1e9124cbaf3edd2b488f4ac)
1# $FreeBSD$
2
3.include "${SRCTOP}/lib/clang/llvm.pre.mk"
4
5CFLAGS+=	-I${OBJTOP}/lib/clang/libllvm
6
7.include "${SRCTOP}/lib/clang/llvm.build.mk"
8
9# Special case for the bootstrap-tools phase.
10.if (defined(TOOLS_PREFIX) || ${MACHINE} == "host") && \
11    (${PROG_CXX} == "clang-tblgen" || ${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
24LIBADD+=	ncursesw
25LIBADD+=	pthread
26
27.include <bsd.prog.mk>
28