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