clang.build.mk (cc3f4b99653c34ae64f8a1fddea370abefef680e) | clang.build.mk (7273339dc40e5e9e1f0c1fb3c72a29c8528f256d) |
---|---|
1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5CLANG_SRCS= ${LLVM_SRCS}/tools/clang 6 7CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \ 8 -I${LLVM_SRCS}/${SRCDIR} ${INCDIR:C/^/-I${LLVM_SRCS}\//} -I. \ 9 -I${LLVM_SRCS}/../../lib/clang/include \ 10 -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \ 11 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG 12 | 1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5CLANG_SRCS= ${LLVM_SRCS}/tools/clang 6 7CFLAGS+= -I${LLVM_SRCS}/include -I${CLANG_SRCS}/include \ 8 -I${LLVM_SRCS}/${SRCDIR} ${INCDIR:C/^/-I${LLVM_SRCS}\//} -I. \ 9 -I${LLVM_SRCS}/../../lib/clang/include \ 10 -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD \ 11 -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS #-DNDEBUG 12 |
13.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no" | 13.if ${MK_CLANG_FULL} != "no" |
14CFLAGS+= -DCLANG_ENABLE_ARCMT \ 15 -DCLANG_ENABLE_REWRITER \ 16 -DCLANG_ENABLE_STATIC_ANALYZER | 14CFLAGS+= -DCLANG_ENABLE_ARCMT \ 15 -DCLANG_ENABLE_REWRITER \ 16 -DCLANG_ENABLE_STATIC_ANALYZER |
17.endif # !EARLY_BUILD && MK_CLANG_FULL | 17.endif # MK_CLANG_FULL |
18 19# LLVM is not strict aliasing safe as of 12/31/2011 20CFLAGS+= -fno-strict-aliasing 21 22TARGET_ARCH?= ${MACHINE_ARCH} 23BUILD_ARCH?= ${MACHINE_ARCH} 24 25.if (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "armv6") && \ --- 9 unchanged lines hidden (view full) --- 35BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-unknown-freebsd11.0 36CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \ 37 -DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \ 38 -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" 39CXXFLAGS+= -fno-exceptions -fno-rtti 40 41.PATH: ${LLVM_SRCS}/${SRCDIR} 42 | 18 19# LLVM is not strict aliasing safe as of 12/31/2011 20CFLAGS+= -fno-strict-aliasing 21 22TARGET_ARCH?= ${MACHINE_ARCH} 23BUILD_ARCH?= ${MACHINE_ARCH} 24 25.if (${TARGET_ARCH} == "arm" || ${TARGET_ARCH} == "armv6") && \ --- 9 unchanged lines hidden (view full) --- 35BUILD_TRIPLE?= ${BUILD_ARCH:C/amd64/x86_64/:C/armv6hf/armv6/}-unknown-freebsd11.0 36CFLAGS+= -DLLVM_DEFAULT_TARGET_TRIPLE=\"${TARGET_TRIPLE}\" \ 37 -DLLVM_HOST_TRIPLE=\"${BUILD_TRIPLE}\" \ 38 -DDEFAULT_SYSROOT=\"${TOOLS_PREFIX}\" 39CXXFLAGS+= -fno-exceptions -fno-rtti 40 41.PATH: ${LLVM_SRCS}/${SRCDIR} 42 |
43.if ${MK_STAGING} == "yes" 44TBLGEN= ${STAGE_HOST_OBJTOP}/usr/bin/tblgen 45CLANG_TBLGEN= ${STAGE_HOST_OBJTOP}/usr/bin/clang-tblgen 46.endif | |
47TBLGEN?= tblgen 48CLANG_TBLGEN?= clang-tblgen 49 50Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td \ 51 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsARM.td \ 52 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsHexagon.td \ 53 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsMips.td \ 54 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsNVVM.td \ --- 157 unchanged lines hidden (view full) --- 212 ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/CheckerBase.td 213 ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include \ 214 -gen-clang-sa-checkers -o ${.TARGET} \ 215 ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td 216 217SRCS+= ${TGHDRS:C/$/.inc.h/} 218DPADD+= ${TGHDRS:C/$/.inc.h/} 219CLEANFILES+= ${TGHDRS:C/$/.inc.h/} | 43TBLGEN?= tblgen 44CLANG_TBLGEN?= clang-tblgen 45 46Intrinsics.inc.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td \ 47 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsARM.td \ 48 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsHexagon.td \ 49 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsMips.td \ 50 ${LLVM_SRCS}/include/llvm/IR/IntrinsicsNVVM.td \ --- 157 unchanged lines hidden (view full) --- 208 ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/CheckerBase.td 209 ${CLANG_TBLGEN} -I ${CLANG_SRCS}/include \ 210 -gen-clang-sa-checkers -o ${.TARGET} \ 211 ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td 212 213SRCS+= ${TGHDRS:C/$/.inc.h/} 214DPADD+= ${TGHDRS:C/$/.inc.h/} 215CLEANFILES+= ${TGHDRS:C/$/.inc.h/} |
220 221# if we are not doing explicit 'make depend', there is 222# nothing to cause these to be generated. 223beforebuild: ${SRCS:M*.inc.h} | |