1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-symbolizer 5MAN= llvm-symbolizer.1 llvm-addr2line.1 6 7SRCDIR= llvm/tools/llvm-symbolizer 8SRCS+= llvm-symbolizer-driver.cpp 9SRCS+= llvm-symbolizer.cpp 10 11.include "${SRCTOP}/lib/clang/llvm.pre.mk" 12 13CFLAGS+= -I${.OBJDIR} 14 15INCFILE= Opts.inc 16TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 17GENOPT= -gen-opt-parser-defs 18${INCFILE}: ${TDFILE} 19 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 20 -o ${.TARGET} ${TDFILE} 21TGHDRS+= ${INCFILE} 22 23DEPENDFILES+= ${TGHDRS:C/$/.d/} 24DPSRCS+= ${TGHDRS} 25CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 26 27LINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line 28 29.if ${MK_LLVM_BINUTILS} != "no" 30LINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/addr2line 31MLINKS+= llvm-addr2line.1 addr2line.1 32.endif 33 34.include "../llvm.prog.mk" 35