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