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_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 23${TGHDRS}: ${LLVM_TBLGEN_BIN} 24 25DEPENDFILES+= ${TGHDRS:C/$/.d/} 26DPSRCS+= ${TGHDRS} 27CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 28 29LIBADD+= z 30 31LINKS+= ${BINDIR}/llvm-symbolizer ${BINDIR}/llvm-addr2line 32 33.if ${MK_LLVM_BINUTILS} != "no" 34LINKS= ${BINDIR}/llvm-symbolizer ${BINDIR}/addr2line 35MLINKS= llvm-addr2line.1 addr2line.1 36.endif 37 38.include "../llvm.prog.mk" 39