1# $FreeBSD$ 2 3PROG_CXX= llvm-objcopy 4MAN= 5 6SRCDIR= tools/llvm-objcopy 7SRCS+= Object.cpp 8SRCS+= llvm-objcopy.cpp 9 10.include "${SRCTOP}/lib/clang/llvm.pre.mk" 11 12CFLAGS+= -I${.OBJDIR} 13 14.include "${SRCTOP}/lib/clang/llvm.build.mk" 15 16.for hdr in ObjcopyOpts StripOpts 17${hdr}.inc: ${LLVM_SRCS}/${SRCDIR}/${hdr}.td 18 ${LLVM_TBLGEN} -gen-opt-parser-defs \ 19 -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ 20 ${LLVM_SRCS}/${SRCDIR}/${hdr}.td 21TGHDRS+= ${hdr}.inc 22.endfor 23 24DEPENDFILES+= ${TGHDRS:C/$/.d/} 25DPSRCS+= ${TGHDRS} 26CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} 27 28LIBDEPS+= llvm 29 30.for lib in ${LIBDEPS} 31DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 32LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a 33.endfor 34 35PACKAGE= clang 36 37LIBADD+= ncursesw 38LIBADD+= pthread 39 40.include <bsd.prog.mk> 41