xref: /freebsd/usr.bin/clang/llvm-strings/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <src.opts.mk>
2
3PROG_CXX=	llvm-strings
4
5SRCDIR=		llvm/tools/llvm-strings
6SRCS+=		llvm-strings.cpp
7
8.include "${SRCTOP}/lib/clang/llvm.pre.mk"
9
10CFLAGS+=	-I${.OBJDIR}
11
12INCFILE=	Opts.inc
13TDFILE=		${LLVM_BASE}/${SRCDIR}/Opts.td
14GENOPT=		-gen-opt-parser-defs
15${INCFILE}: ${TDFILE}
16	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
17	    -o ${.TARGET} ${TDFILE}
18TGHDRS+=	${INCFILE}
19
20DEPENDFILES+=	${TGHDRS:C/$/.d/}
21DPSRCS+=	${TGHDRS}
22CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
23
24.if ${MK_LLVM_BINUTILS} != "no"
25LINKS+=		${BINDIR}/llvm-strings ${BINDIR}/strings
26MLINKS+=	llvm-strings.1 strings.1
27.endif
28
29.include "../llvm.prog.mk"
30