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