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