freebsd-dev/lib/clang/libclangbasic/Makefile
Dimitry Andric c371433e4a For clang, move the definition of FREEBSD_CC_VERSION into its own header
file, lib/clang/freebsd_cc_version.h, instead of reusing Version.inc.
The header is only included from one .cpp file in the clang tree.

This minimizes the number of .cpp files that need to be rebuilt if the
version is bumped.

Discussed with:	bdrewery
2016-06-03 16:17:36 +00:00

56 lines
1.1 KiB
Makefile

# $FreeBSD$
.include <bsd.own.mk>
LIB= clangbasic
SRCDIR= tools/clang/lib/Basic
SRCS= Attributes.cpp \
Builtins.cpp \
CharInfo.cpp \
Diagnostic.cpp \
DiagnosticIDs.cpp \
DiagnosticOptions.cpp \
FileManager.cpp \
FileSystemStatCache.cpp \
IdentifierTable.cpp \
LangOptions.cpp \
Module.cpp \
ObjCRuntime.cpp \
OpenMPKinds.cpp \
OperatorPrecedence.cpp \
SanitizerBlacklist.cpp \
Sanitizers.cpp \
SourceLocation.cpp \
SourceManager.cpp \
TargetInfo.cpp \
Targets.cpp \
TokenKinds.cpp \
Version.cpp \
VersionTuple.cpp \
VirtualFileSystem.cpp \
Warnings.cpp
TGHDRS= AttrHasAttributeImpl \
DiagnosticAnalysisKinds \
DiagnosticASTKinds \
DiagnosticCommentKinds \
DiagnosticCommonKinds \
DiagnosticDriverKinds \
DiagnosticFrontendKinds \
DiagnosticGroups \
DiagnosticIndexName \
DiagnosticLexKinds \
DiagnosticParseKinds \
DiagnosticSemaKinds \
DiagnosticSerializationKinds \
arm_neon
.include "../clang.lib.mk"
# XX: work around GCC bug 67888
CFLAGS.gcc += -fpermissive
# Ensure FREEBSD_CC_VERSION is defined for Targets.cpp
CFLAGS.Targets.cpp+= -include ../freebsd_cc_version.h