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+= llvm-readobj.cpp 13SRCS+= MachODumper.cpp 14SRCS+= ObjDumper.cpp 15SRCS+= WasmDumper.cpp 16SRCS+= Win64EHDumper.cpp 17SRCS+= WindowsResourceDumper.cpp 18SRCS+= XCOFFDumper.cpp 19 20CFLAGS.llvm-readobj.cpp+= -Dllvm_readobj_main=main 21 22.include "${SRCTOP}/lib/clang/llvm.pre.mk" 23 24CFLAGS+= -I${.OBJDIR} 25 26INCFILE= Opts.inc 27TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 28GENOPT= -gen-opt-parser-defs 29${INCFILE}: ${TDFILE} 30 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 31 -o ${.TARGET} ${TDFILE} 32TGHDRS+= ${INCFILE} 33 34DEPENDFILES+= ${TGHDRS:C/$/.d/} 35DPSRCS+= ${TGHDRS} 36CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 37 38LINKS+= ${BINDIR}/llvm-readobj ${BINDIR}/llvm-readelf 39 40.if ${MK_LLVM_BINUTILS} != "no" 41LINKS+= ${BINDIR}/llvm-readelf ${BINDIR}/readelf 42MLINKS+= llvm-readelf.1 readelf.1 43.endif 44 45.include "../llvm.prog.mk" 46