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