1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-cxxfilt 5 6SRCDIR= llvm/tools/llvm-cxxfilt 7SRCS+= llvm-cxxfilt.cpp 8 9CFLAGS.llvm-cxxfilt.cpp+= -Dllvm_cxxfilt_main=main 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 23DEPENDFILES+= ${TGHDRS:C/$/.d/} 24DPSRCS+= ${TGHDRS} 25CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 26 27.if ${MK_LLVM_CXXFILT} != "no" 28LINKS= ${BINDIR}/llvm-cxxfilt ${BINDIR}/c++filt 29MLINKS= llvm-cxxfilt.1 c++filt.1 30.endif 31 32.include "../llvm.prog.mk" 33