1# $FreeBSD$ 2 3PROG_CXX= llvm-symbolizer 4MAN= llvm-symbolizer.1 llvm-addr2line.1 5 6SRCDIR= llvm/tools/llvm-symbolizer 7SRCS+= llvm-symbolizer.cpp 8 9.include "${SRCTOP}/lib/clang/llvm.pre.mk" 10 11CFLAGS+= -I${.OBJDIR} 12 13INCFILE= Opts.inc 14TDFILE= ${LLVM_SRCS}/tools/llvm-symbolizer/Opts.td 15GENOPT= -gen-opt-parser-defs 16${INCFILE}: ${TDFILE} 17 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 18 -o ${.TARGET} ${TDFILE} 19TGHDRS+= ${INCFILE} 20 21DEPENDFILES+= ${TGHDRS:C/$/.d/} 22DPSRCS+= ${TGHDRS} 23CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 24 25LIBADD+= z 26 27LINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line 28 29.include "../llvm.prog.mk" 30