1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-cxxfilt 5 6SRCDIR= llvm/tools/llvm-cxxfilt 7SRCS+= llvm-cxxfilt-driver.cpp 8SRCS+= llvm-cxxfilt.cpp 9 10.include "${SRCTOP}/lib/clang/llvm.pre.mk" 11 12CFLAGS+= -I${.OBJDIR} 13 14INCFILE= Opts.inc 15TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 16GENOPT= -gen-opt-parser-defs 17${INCFILE}: ${TDFILE} 18 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 19 -o ${.TARGET} ${TDFILE} 20TGHDRS+= ${INCFILE} 21 22DEPENDFILES+= ${TGHDRS:C/$/.d/} 23DPSRCS+= ${TGHDRS} 24CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 25 26.if ${MK_LLVM_CXXFILT} != "no" 27LINKS= ${BINDIR}/llvm-cxxfilt ${BINDIR}/c++filt 28MLINKS= llvm-cxxfilt.1 c++filt.1 29.endif 30 31.include "../llvm.prog.mk" 32