xref: /freebsd/usr.bin/clang/llvm-dwarfutil/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1PROG_CXX=	llvm-dwarfutil
2
3SRCDIR=		llvm/tools/llvm-dwarfutil
4SRCS+=		DebugInfoLinker.cpp
5SRCS+=		llvm-dwarfutil.cpp
6
7.include "${SRCTOP}/lib/clang/llvm.pre.mk"
8
9CFLAGS+=	-I${.OBJDIR}
10
11INCFILE=	Options.inc
12TDFILE=		${LLVM_BASE}/${SRCDIR}/Options.td
13GENOPT=		-gen-opt-parser-defs
14${INCFILE}: ${TDFILE}
15	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
16	    -o ${.TARGET} ${TDFILE}
17TGHDRS+=	${INCFILE}
18
19DEPENDFILES+=	${TGHDRS:C/$/.d/}
20DPSRCS+=	${TGHDRS}
21CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
22
23.include "../llvm.prog.mk"
24