1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-size 5 6SRCDIR= llvm/tools/llvm-size 7SRCS+= llvm-size.cpp 8 9CFLAGS.llvm-size.cpp+= -Dllvm_size_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_BINUTILS} != "no" 28LINKS+= ${BINDIR}/llvm-size ${BINDIR}/size 29MLINKS+= llvm-size.1 size.1 30.endif 31 32.include "../llvm.prog.mk" 33