summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/clang/include/llvm/IR/Makefile
blob: 5aedf87f20d8ef0f97901a9ad63324af80cf759c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $OpenBSD: Makefile,v 1.1 2016/09/05 10:56:48 pascal Exp $

.include <bsd.own.mk>

LLVM_SRCS=	${.CURDIR}/../../../../../llvm

DEFS=	Attributes.inc Intrinsics.gen

all: ${DEFS}

install:
	# Nothing here so far ...

depend:
	# Nothing here so far ...

clean:
	rm -f ${DEFS}

Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td
	${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-attrs \
		-I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \
		-I${LLVM_SRCS}/include \
		-o ${.TARGET} ${.ALLSRC}

Intrinsics.gen: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td 
	${.OBJDIR}/../../../llvm-tblgen/llvm-tblgen -gen-intrinsic \
		-I${LLVM_SRCS}/include/llvm/IR -I${LLVM_SRCS}/lib/Target \
		-I${LLVM_SRCS}/include \
		-o ${.TARGET} ${.ALLSRC}

.include <bsd.obj.mk>