xref: /freebsd/usr.bin/clang/llvm.prog.mk (revision a0b9e2e854027e6ff61fb075a1309dbc71c42b54)
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} == "lldb-tblgen" || \
12     ${PROG_CXX} == "llvm-tblgen")
13LIBDEPS+=	llvmminimal
14.else
15LIBDEPS+=	llvm
16.endif
17
18.for lib in ${LIBDEPS}
19DPADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
20LDADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
21.endfor
22
23PACKAGE=	clang
24
25LIBADD+=	execinfo
26LIBADD+=	ncursesw
27LIBADD+=	pthread
28
29.include <bsd.prog.mk>
30