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