7ba5ed4f95
boundary checker and the white listing of pre-c99 flexible array member idiom foo[1] as last element of a struct.
31 lines
904 B
Makefile
31 lines
904 B
Makefile
# $NetBSD: Makefile.inc,v 1.20 2011/08/09 12:30:46 joerg Exp $
|
|
|
|
.if !defined(LLVM_TOPLEVEL_MK)
|
|
LLVM_TOPLEVEL_MK=
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LLVM_REVISION= 137038
|
|
CLANG_REVISION= 137038
|
|
|
|
LLVM_SRCDIR:= ${.PARSEDIR}/dist/llvm
|
|
CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
|
|
LLVM_TOPLEVEL:= ${.PARSEDIR}
|
|
|
|
CPPFLAGS+= -I. -I${LLVM_SRCDIR}/include -I${CLANG_SRCDIR}/include \
|
|
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
|
|
|
|
.if defined(HOSTLIB) || defined(HOSTPROG)
|
|
LLVM_INCLUDE_CONFIG= ${LLVM_TOOLCONF_OBJDIR}/config/include
|
|
LLVM_INCLUDE_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm-include && ${PRINTOBJDIR}
|
|
LLVM_TOOLCONF_OBJDIR!= cd ${NETBSDSRCDIR}/tools/llvm && ${PRINTOBJDIR}
|
|
HOST_CPPFLAGS+= ${CPPFLAGS}
|
|
HOST_CXXFLAGS+= -O2 -g
|
|
.else
|
|
LLVM_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config
|
|
LLVM_INCLUDE_OBJDIR!= cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
|
|
.endif
|
|
CPPFLAGS+= -I${LLVM_INCLUDE_OBJDIR} -I${LLVM_INCLUDE_CONFIG}
|
|
|
|
.endif
|