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 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+= ncursesw 29.endif 30LIBADD+= pthread 31LIBADD+= z 32LIBADD+= zstd 33 34.include <bsd.prog.mk> 35