1# $OpenBSD: Makefile,v 1.4 2020/08/03 14:45:22 patrick Exp $
2
3.include <bsd.own.mk>
4
5TBLGEN=	${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen
6CLANG_INC=${.CURDIR}/../../../../../llvm/clang/include
7
8GEN= Options.inc
9
10all: ${GEN}
11
12install:
13	@# Nothing here so far ...
14
15clean cleandir:
16	rm -f ${GEN}
17
18Options.inc: ${CLANG_INC}/clang/Driver/Options.td
19	${TBLGEN} -I${CLANG_INC}/clang/Driver \
20		-I${.CURDIR}/../../../../../llvm/llvm/include -gen-opt-parser-defs \
21		-o ${.TARGET} ${.ALLSRC}
22
23.include <bsd.obj.mk>
24