summaryrefslogtreecommitdiffstats
path: root/lib/clang/clang.build.mk
blob: 7452edd7714dcc5298f984410453555ffbfca228 (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
# $FreeBSD$

.include <src.opts.mk>

.ifndef LLVM_SRCS
.error Please define LLVM_SRCS before including this file
.endif

.ifndef CLANG_SRCS
.error Please define CLANG_SRCS before including this file
.endif

.ifndef SRCDIR
.error Please define SRCDIR before including this file
.endif

CFLAGS+=	-I${CLANG_SRCS}/include

.if ${MK_CLANG_FULL} != "no"
CFLAGS+=	-DCLANG_ENABLE_ARCMT
CFLAGS+=	-DCLANG_ENABLE_STATIC_ANALYZER
.endif

.include "llvm.build.mk"
OpenPOWER on IntegriCloud