1c369979cSDimitry Andric 2021385abSAlex Richardson.include <src.opts.mk> 3021385abSAlex Richardson 4c369979cSDimitry AndricPROG_CXX= llvm-symbolizer 5bd74205dSDimitry AndricMAN= llvm-symbolizer.1 llvm-addr2line.1 6c369979cSDimitry Andric 70b57cec5SDimitry AndricSRCDIR= llvm/tools/llvm-symbolizer 8*5f757f3fSDimitry AndricSRCS+= llvm-symbolizer-driver.cpp 9986e05bcSDimitry AndricSRCS+= llvm-symbolizer.cpp 10c369979cSDimitry Andric 11e8d8bef9SDimitry Andric.include "${SRCTOP}/lib/clang/llvm.pre.mk" 12e8d8bef9SDimitry Andric 13e8d8bef9SDimitry AndricCFLAGS+= -I${.OBJDIR} 14e8d8bef9SDimitry Andric 15d8ed7fa3SDimitry AndricINCFILE= Opts.inc 16d8ed7fa3SDimitry AndricTDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 17d8ed7fa3SDimitry AndricGENOPT= -gen-opt-parser-defs 18d8ed7fa3SDimitry Andric${INCFILE}: ${TDFILE} 19d8ed7fa3SDimitry Andric ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 20d8ed7fa3SDimitry Andric -o ${.TARGET} ${TDFILE} 21d8ed7fa3SDimitry AndricTGHDRS+= ${INCFILE} 22e8d8bef9SDimitry Andric 23e8d8bef9SDimitry AndricDEPENDFILES+= ${TGHDRS:C/$/.d/} 24e8d8bef9SDimitry AndricDPSRCS+= ${TGHDRS} 25e8d8bef9SDimitry AndricCLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 26e8d8bef9SDimitry Andric 27bd74205dSDimitry AndricLINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line 28bd74205dSDimitry Andric 29021385abSAlex Richardson.if ${MK_LLVM_BINUTILS} != "no" 3041df1d60SEd MasteLINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/addr2line 3141df1d60SEd MasteMLINKS+= llvm-addr2line.1 addr2line.1 32021385abSAlex Richardson.endif 33021385abSAlex Richardson 34986e05bcSDimitry Andric.include "../llvm.prog.mk" 35