1# $FreeBSD$ 2 3PROG_CXX= llvm-dwarfutil 4 5SRCDIR= llvm/tools/llvm-dwarfutil 6SRCS+= DebugInfoLinker.cpp 7SRCS+= llvm-dwarfutil.cpp 8 9.include "${SRCTOP}/lib/clang/llvm.pre.mk" 10 11CFLAGS+= -I${.OBJDIR} 12 13INCFILE= Options.inc 14TDFILE= ${LLVM_BASE}/${SRCDIR}/Options.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 21${TGHDRS}: ${LLVM_TBLGEN_BIN} 22 23DEPENDFILES+= ${TGHDRS:C/$/.d/} 24DPSRCS+= ${TGHDRS} 25CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 26 27LIBADD+= z 28 29.include "../llvm.prog.mk" 30