clang.build.mk revision 310618
1# $FreeBSD: stable/11/lib/clang/clang.build.mk 310618 2016-12-26 20:36:37Z dim $
2
3.include <src.opts.mk>
4
5.ifndef LLVM_SRCS
6.error Please define LLVM_SRCS before including this file
7.endif
8
9.ifndef CLANG_SRCS
10.error Please define CLANG_SRCS before including this file
11.endif
12
13.ifndef SRCDIR
14.error Please define SRCDIR before including this file
15.endif
16
17CFLAGS+=	-I${CLANG_SRCS}/include
18
19.if ${MK_CLANG_FULL} != "no"
20CFLAGS+=	-DCLANG_ENABLE_ARCMT
21CFLAGS+=	-DCLANG_ENABLE_STATIC_ANALYZER
22.endif
23
24.include "llvm.build.mk"
25