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 21CFLAGS.llvm-readobj.cpp+= -Dllvm_readobj_main=main 22 23.include "${SRCTOP}/lib/clang/llvm.pre.mk" 24 25CFLAGS+= -I${.OBJDIR} 26 27INCFILE= Opts.inc 28TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td 29GENOPT= -gen-opt-parser-defs 30${INCFILE}: ${TDFILE} 31 ${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \ 32 -o ${.TARGET} ${TDFILE} 33TGHDRS+= ${INCFILE} 34 35DEPENDFILES+= ${TGHDRS:C/$/.d/} 36DPSRCS+= ${TGHDRS} 37CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 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