1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG_CXX= llvm-readobj 6MAN= llvm-readobj.1 llvm-readelf.1 7 8SRCDIR= llvm/tools/llvm-readobj 9SRCS+= ARMWinEHPrinter.cpp 10SRCS+= COFFDumper.cpp 11SRCS+= COFFImportDumper.cpp 12SRCS+= ELFDumper.cpp 13SRCS+= llvm-readobj.cpp 14SRCS+= MachODumper.cpp 15SRCS+= ObjDumper.cpp 16SRCS+= WasmDumper.cpp 17SRCS+= Win64EHDumper.cpp 18SRCS+= WindowsResourceDumper.cpp 19SRCS+= XCOFFDumper.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 37LIBADD+= z 38 39LINKS+= ${BINDIR}/llvm-readobj ${BINDIR}/llvm-readelf 40 41.if ${MK_LLVM_BINUTILS} != "no" 42LINKS+= ${BINDIR}/llvm-readelf ${BINDIR}/readelf 43MLINKS+= llvm-readelf.1 readelf.1 44.endif 45 46.include "../llvm.prog.mk" 47