1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG_CXX= llvm-nm 6 7SRCDIR= llvm/tools/llvm-nm 8SRCS+= llvm-nm.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 22${TGHDRS}: ${LLVM_TBLGEN_BIN} 23 24DEPENDFILES+= ${TGHDRS:C/$/.d/} 25DPSRCS+= ${TGHDRS} 26CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 27 28LIBADD+= z 29 30.if ${MK_LLVM_BINUTILS} != "no" 31LINKS= ${BINDIR}/llvm-nm ${BINDIR}/nm 32MLINKS= llvm-nm.1 nm.1 33.endif 34 35.include "../llvm.prog.mk" 36