head	1.2;
access;
symbols
	netbsd-11-0-RC7:1.2
	netbsd-11-0-RC6:1.2
	netbsd-11-0-RC5:1.2
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.8
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.6
	perseant-exfatfs-base:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.4
	netbsd-10-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.2
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.1.0.4
	cjep_staticlib_x-base:1.1
	phil-wifi-20200421:1.1
	phil-wifi-20200411:1.1
	is-mlppp:1.1.0.2
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	phil-wifi-20191119:1.1;
locks; strict;
comment	@# @;


1.2
date	2021.05.30.01.56.56;	author joerg;	state Exp;
branches;
next	1.1;
commitid	3Zpdqzdbkf2q47VC;

1.1
date	2019.11.11.22.45.15;	author joerg;	state Exp;
branches
	1.1.4.1;
next	;
commitid	IMynySmLyNzibuKB;

1.1.4.1
date	2021.05.31.22.10.11;	author cjep;	state Exp;
branches;
next	;
commitid	eWz9SBW0XqKjJlVC;


desc
@@


1.2
log
@Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9

This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
@
text
@#	$NetBSD: Makefile,v 1.1 2019/11/11 22:45:15 joerg Exp $

LIB=	clangBasic

.include <bsd.init.mk>

.PATH: ${CLANG_SRCDIR}/lib/Basic

SRCS+=	Attributes.cpp \
	Builtins.cpp \
	CharInfo.cpp \
	CodeGenOptions.cpp \
	Cuda.cpp \
	Diagnostic.cpp \
	DiagnosticIDs.cpp \
	DiagnosticOptions.cpp \
	ExpressionTraits.cpp \
	FileEntry.cpp \
	FileManager.cpp \
	FileSystemStatCache.cpp \
	IdentifierTable.cpp \
	LangOptions.cpp \
	LangStandards.cpp \
	Module.cpp \
	NoSanitizeList.cpp \
	ObjCRuntime.cpp \
	OpenCLOptions.cpp \
	OpenMPKinds.cpp \
	OperatorPrecedence.cpp \
	ProfileList.cpp \
	Sanitizers.cpp \
	SanitizerSpecialCaseList.cpp \
	SourceLocation.cpp \
	SourceManager.cpp \
	Stack.cpp \
	TargetID.cpp \
	TargetInfo.cpp \
	Targets.cpp \
	TokenKinds.cpp \
	TypeTraits.cpp \
	VE.cpp \
	Version.cpp \
	Warnings.cpp \
	XRayInstr.cpp \
	XRayLists.cpp

.PATH: ${CLANG_SRCDIR}/lib/Basic/Targets

SRCS+=	AArch64.cpp \
	AMDGPU.cpp \
	ARC.cpp \
	ARM.cpp \
	AVR.cpp \
	BPF.cpp \
	Hexagon.cpp \
	Lanai.cpp \
	Le64.cpp \
	M68k.cpp \
	MSP430.cpp \
	Mips.cpp \
	NVPTX.cpp \
	OSTargets.cpp \
	PNaCl.cpp \
	PPC.cpp \
	RISCV.cpp \
	SPIR.cpp \
	Sparc.cpp \
	SystemZ.cpp \
	TCE.cpp \
	WebAssembly.cpp \
	X86.cpp \
	XCore.cpp

CPPFLAGS+=	-I${CLANG_SRCDIR}/lib/Basic -I.

VCSVersion.inc: ${LLVM_TOPLEVEL}/Makefile.inc
	echo '#define LLVM_REVISION "${LLVM_REVISION}"' > VCSVersion.inc.tmp
	echo '#define LLVM_REPOSITORY "git@@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
	echo '#define CLANG_REVISION "${CLANG_REVISION}"' >> VCSVersion.inc.tmp
	echo '#define CLANG_REPOSITORY "git@@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
	mv VCSVersion.inc.tmp VCSVersion.inc

DPSRCS+=	VCSVersion.inc
CLEANFILES+=	VCSVersion.inc

.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif
@


1.1
log
@Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2018/07/17 18:55:30 joerg Exp $
d17 2
a20 1
	FixedPoint.cpp \
d25 1
d27 1
d30 1
a30 1
	SanitizerBlacklist.cpp \
d36 1
d40 2
d58 1
d74 1
a74 1
CPPFLAGS+=	-I${CLANG_SRCDIR}/lib/Basic
d76 9
a84 2
CPPFLAGS.Version.cpp=	-DSVN_REVISION=\"${CLANG_REVISION}\" \
			-DLLVM_REVISION=\"${LLVM_REVISION}\"
@


1.1.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2021/05/30 01:56:56 joerg Exp $
a16 2
	ExpressionTraits.cpp \
	FileEntry.cpp \
d19 1
a23 1
	NoSanitizeList.cpp \
a24 1
	OpenCLOptions.cpp \
d27 1
a27 1
	ProfileList.cpp \
a32 1
	TargetID.cpp \
a35 2
	TypeTraits.cpp \
	VE.cpp \
a51 1
	M68k.cpp \
d67 1
a67 1
CPPFLAGS+=	-I${CLANG_SRCDIR}/lib/Basic -I.
d69 2
a70 9
VCSVersion.inc: ${LLVM_TOPLEVEL}/Makefile.inc
	echo '#define LLVM_REVISION "${LLVM_REVISION}"' > VCSVersion.inc.tmp
	echo '#define LLVM_REPOSITORY "git@@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
	echo '#define CLANG_REVISION "${CLANG_REVISION}"' >> VCSVersion.inc.tmp
	echo '#define CLANG_REPOSITORY "git@@github.com:llvm/llvm-project.git"' >> VCSVersion.inc.tmp
	mv VCSVersion.inc.tmp VCSVersion.inc

DPSRCS+=	VCSVersion.inc
CLEANFILES+=	VCSVersion.inc
@


