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