1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG_CXX= llvm-symbolizer 6MAN= llvm-symbolizer.1 llvm-addr2line.1 7 8SRCDIR= llvm/tools/llvm-symbolizer 9SRCS+= llvm-symbolizer.cpp 10 11.include "${SRCTOP}/lib/clang/llvm.pre.mk" 12 13CFLAGS+= -I${.OBJDIR} 14 15INCFILE= Opts.inc 16TDFILE= ${LLVM_SRCS}/tools/llvm-symbolizer/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 27LIBADD+= z 28 29LINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line 30 31.if ${MK_LLVM_BINUTILS} != "no" 32LINKS= ${BINDIR}/llvm-symbolizer ${BINDIR}/addr2line 33MLINKS= llvm-addr2line.1 addr2line.1 34.endif 35 36.include "../llvm.prog.mk" 37