1 2.include <src.opts.mk> 3 4PROG_CXX= llvm-readobj 5MAN= llvm-readobj.1 llvm-readelf.1 6 7SRCDIR= llvm/tools/llvm-readobj 8SRCS+= ARMWinEHPrinter.cpp 9SRCS+= COFFDumper.cpp 10SRCS+= COFFImportDumper.cpp 11SRCS+= ELFDumper.cpp 12SRCS+= MachODumper.cpp 13SRCS+= ObjDumper.cpp 14SRCS+= WasmDumper.cpp 15SRCS+= Win64EHDumper.cpp 16SRCS+= WindowsResourceDumper.cpp 17SRCS+= XCOFFDumper.cpp 18SRCS+= llvm-readobj-driver.cpp 19SRCS+= llvm-readobj.cpp 20 21.include "${SRCTOP}/lib/clang/llvm.pre.mk" 22 23CFLAGS+= -I${.OBJDIR} 24 25INCFILE= Opts.inc 26TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 27GENOPT= -gen-opt-parser-defs 28${INCFILE}: ${TDFILE} 29 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 30 -o ${.TARGET} ${TDFILE} 31TGHDRS+= ${INCFILE} 32 33DEPENDFILES+= ${TGHDRS:C/$/.d/} 34DPSRCS+= ${TGHDRS} 35CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 36 37LINKS+= ${BINDIR}/llvm-readobj ${BINDIR}/llvm-readelf 38 39.if ${MK_LLVM_BINUTILS} != "no" 40LINKS+= ${BINDIR}/llvm-readelf ${BINDIR}/readelf 41MLINKS+= llvm-readelf.1 readelf.1 42.endif 43 44.include "../llvm.prog.mk" 45