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