1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-objdump 5 6SRCDIR= llvm/tools/llvm-objdump 7SRCS+= COFFDump.cpp 8SRCS+= ELFDump.cpp 9SRCS+= MachODump.cpp 10SRCS+= OffloadDump.cpp 11SRCS+= SourcePrinter.cpp 12SRCS+= WasmDump.cpp 13SRCS+= XCOFFDump.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