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