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