xref: /freebsd/usr.bin/clang/llvm-dwp/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PROG_CXX=	llvm-dwp
2MAN=
3
4SRCDIR=		llvm/tools/llvm-dwp
5SRCS+=		llvm-dwp-driver.cpp
6SRCS+=		llvm-dwp.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.include "../llvm.prog.mk"
25