Makefile revision 1.3
1# $OpenBSD: Makefile,v 1.3 2017/01/24 08:44:47 patrick Exp $
2
3.include <bsd.own.mk>
4
5LLVM_SRCS=	${.CURDIR}/../../../../../llvm
6
7DEFS=	Attributes.gen Intrinsics.gen
8
9all: ${DEFS}
10
11install:
12	# Nothing here so far ...
13
14depend:
15	# Nothing here so far ...
16
17clean cleandir:
18	rm -f ${DEFS}
19
20Attributes.gen: ${LLVM_SRCS}/include/llvm/IR/Attributes.td
21	${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-attrs \
22		-I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \
23		-I${LLVM_SRCS}/include \
24		-o ${.TARGET} ${.ALLSRC}
25
26Intrinsics.gen: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td 
27	${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-intrinsic \
28		-I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \
29		-I${LLVM_SRCS}/include \
30		-o ${.TARGET} ${.ALLSRC}
31
32.include <bsd.obj.mk>
33