1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-objcopy 5 6SRCDIR= llvm/tools/llvm-objcopy 7SRCS+= ObjcopyOptions.cpp 8SRCS+= llvm-objcopy-driver.cpp 9SRCS+= llvm-objcopy.cpp 10 11.include "${SRCTOP}/lib/clang/llvm.pre.mk" 12 13CFLAGS+= -I${.OBJDIR} 14CFLAGS+= -I${LLVM_BASE}/${SRCDIR} 15 16.for hdr in BitcodeStripOpts InstallNameToolOpts ObjcopyOpts StripOpts 17${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td 18 ${LLVM_TBLGEN} -gen-opt-parser-defs \ 19 -I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \ 20 -d ${.TARGET}.d -o ${.TARGET} ${LLVM_BASE}/${SRCDIR}/${hdr}.td 21TGHDRS+= ${hdr}.inc 22.endfor 23 24DEPENDFILES+= ${TGHDRS:C/$/.d/} 25DPSRCS+= ${TGHDRS} 26CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 27 28LINKS= ${BINDIR}/llvm-objcopy ${BINDIR}/llvm-strip 29 30.if ${MK_LLVM_BINUTILS} != "no" 31LINKS+= ${BINDIR}/llvm-objcopy ${BINDIR}/objcopy \ 32 ${BINDIR}/llvm-strip ${BINDIR}/strip 33MLINKS= llvm-objcopy.1 objcopy.1 \ 34 llvm-objcopy.1 strip.1 35.endif 36 37.include "../llvm.prog.mk" 38