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 29${TGHDRS}: ${LLVM_TBLGEN_BIN} 30 31DEPENDFILES+= ${TGHDRS:C/$/.d/} 32DPSRCS+= ${TGHDRS} 33CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 34 35LIBADD+= z 36 37LINKS= ${BINDIR}/llvm-objdump ${BINDIR}/objdump 38MLINKS= llvm-objdump.1 objdump.1 39 40.include "../llvm.prog.mk" 41