1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG_CXX= llvm-objdump 6 7SRCDIR= llvm/tools/llvm-objdump 8SRCS+= COFFDump.cpp 9SRCS+= ELFDump.cpp 10SRCS+= MachODump.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 32LIBADD+= z 33 34LINKS= ${BINDIR}/llvm-objdump ${BINDIR}/objdump 35MLINKS= llvm-objdump.1 objdump.1 36 37.include "../llvm.prog.mk" 38