head	1.39;
access;
symbols
	perseant-exfatfs-base-20250801:1.39
	perseant-exfatfs-base-20240630:1.39
	perseant-exfatfs:1.39.0.6
	perseant-exfatfs-base:1.39
	netbsd-8-3-RELEASE:1.35
	netbsd-9-4-RELEASE:1.38
	netbsd-9-3-RELEASE:1.38
	cjep_sun2x:1.39.0.4
	cjep_sun2x-base:1.39
	cjep_staticlib_x-base1:1.39
	netbsd-9-2-RELEASE:1.38
	cjep_staticlib_x:1.39.0.2
	cjep_staticlib_x-base:1.39
	netbsd-9-1-RELEASE:1.38
	phil-wifi-20200421:1.39
	phil-wifi-20200411:1.39
	phil-wifi-20200406:1.39
	netbsd-8-2-RELEASE:1.35
	netbsd-9-0-RELEASE:1.38
	netbsd-9-0-RC2:1.38
	netbsd-9-0-RC1:1.38
	netbsd-9:1.38.0.2
	netbsd-9-base:1.38
	phil-wifi-20190609:1.38
	netbsd-8-1-RELEASE:1.35
	netbsd-8-1-RC1:1.35
	pgoyette-compat-merge-20190127:1.36.2.1
	pgoyette-compat-20190127:1.37
	pgoyette-compat-20190118:1.37
	pgoyette-compat-1226:1.37
	pgoyette-compat-1126:1.37
	pgoyette-compat-1020:1.37
	pgoyette-compat-0930:1.37
	pgoyette-compat-0906:1.37
	netbsd-7-2-RELEASE:1.32.2.1
	pgoyette-compat-0728:1.37
	netbsd-8-0-RELEASE:1.35
	phil-wifi:1.36.0.4
	phil-wifi-base:1.36
	pgoyette-compat-0625:1.36
	netbsd-8-0-RC2:1.35
	pgoyette-compat-0521:1.36
	pgoyette-compat-0502:1.36
	pgoyette-compat-0422:1.36
	netbsd-8-0-RC1:1.35
	pgoyette-compat-0415:1.36
	pgoyette-compat-0407:1.36
	pgoyette-compat-0330:1.36
	pgoyette-compat-0322:1.36
	pgoyette-compat-0315:1.36
	netbsd-7-1-2-RELEASE:1.32.2.1
	pgoyette-compat:1.36.0.2
	pgoyette-compat-base:1.36
	netbsd-7-1-1-RELEASE:1.32.2.1
	matt-nb8-mediatek:1.35.0.10
	matt-nb8-mediatek-base:1.35
	perseant-stdc-iso10646:1.35.0.8
	perseant-stdc-iso10646-base:1.35
	netbsd-8:1.35.0.6
	netbsd-8-base:1.35
	prg-localcount2-base3:1.35
	prg-localcount2-base2:1.35
	prg-localcount2-base1:1.35
	prg-localcount2:1.35.0.4
	prg-localcount2-base:1.35
	pgoyette-localcount-20170426:1.35
	bouyer-socketcan-base1:1.35
	pgoyette-localcount-20170320:1.35
	netbsd-7-1:1.32.2.1.0.6
	netbsd-7-1-RELEASE:1.32.2.1
	netbsd-7-1-RC2:1.32.2.1
	netbsd-7-nhusb-base-20170116:1.32.2.1
	bouyer-socketcan:1.35.0.2
	bouyer-socketcan-base:1.35
	pgoyette-localcount-20170107:1.34
	netbsd-7-1-RC1:1.32.2.1
	pgoyette-localcount-20161104:1.34
	netbsd-7-0-2-RELEASE:1.32.2.1
	localcount-20160914:1.34
	netbsd-7-nhusb:1.32.2.1.0.4
	netbsd-7-nhusb-base:1.32.2.1
	pgoyette-localcount-20160806:1.34
	pgoyette-localcount-20160726:1.34
	pgoyette-localcount:1.34.0.2
	pgoyette-localcount-base:1.34
	netbsd-7-0-1-RELEASE:1.32.2.1
	netbsd-7-0:1.32.2.1.0.2
	netbsd-7-0-RELEASE:1.32.2.1
	netbsd-7-0-RC3:1.32.2.1
	netbsd-7-0-RC2:1.32.2.1
	netbsd-7-0-RC1:1.32.2.1
	netbsd-6-0-6-RELEASE:1.17
	netbsd-6-1-5-RELEASE:1.17
	netbsd-7:1.32.0.2
	netbsd-7-base:1.32
	yamt-pagecache-base9:1.30
	yamt-pagecache-tag8:1.15.2.4
	netbsd-6-1-4-RELEASE:1.17
	netbsd-6-0-5-RELEASE:1.17
	tls-earlyentropy:1.30.0.2
	tls-earlyentropy-base:1.31
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.30
	riastradh-drm2-base3:1.30
	netbsd-6-1-3-RELEASE:1.17
	netbsd-6-0-4-RELEASE:1.17
	netbsd-6-1-2-RELEASE:1.17
	netbsd-6-0-3-RELEASE:1.17
	netbsd-6-1-1-RELEASE:1.17
	riastradh-drm2-base2:1.27
	riastradh-drm2-base1:1.27
	riastradh-drm2:1.27.0.2
	riastradh-drm2-base:1.27
	netbsd-6-1:1.17.0.8
	netbsd-6-0-2-RELEASE:1.17
	netbsd-6-1-RELEASE:1.17
	khorben-n900:1.25.0.2
	netbsd-6-1-RC4:1.17
	netbsd-6-1-RC3:1.17
	agc-symver:1.24.0.4
	agc-symver-base:1.24
	netbsd-6-1-RC2:1.17
	netbsd-6-1-RC1:1.17
	yamt-pagecache-base8:1.21
	netbsd-6-0-1-RELEASE:1.17
	yamt-pagecache-base7:1.21
	matt-nb6-plus-nbase:1.17
	yamt-pagecache-base6:1.21
	netbsd-6-0:1.17.0.6
	netbsd-6-0-RELEASE:1.17
	netbsd-6-0-RC2:1.17
	tls-maxphys:1.20.0.2
	tls-maxphys-base:1.32
	matt-nb6-plus:1.17.0.4
	matt-nb6-plus-base:1.17
	netbsd-6-0-RC1:1.17
	yamt-pagecache-base5:1.20
	yamt-pagecache-base4:1.19
	netbsd-6:1.17.0.2
	netbsd-6-base:1.17
	yamt-pagecache-base3:1.16
	yamt-pagecache-base2:1.16
	yamt-pagecache:1.15.0.2
	yamt-pagecache-base:1.15
	cherry-xenmp:1.4.0.2
	cherry-xenmp-base:1.4
	bouyer-quota2:1.3.0.2
	bouyer-quota2-base:1.1
	bouyer-quota2-nbase:1.3;
locks; strict;
comment	@# @;


1.39
date	2019.11.13.22.03.32;	author joerg;	state dead;
branches;
next	1.38;
commitid	VVWg38Zx9vNeTJKB;

1.38
date	2019.04.03.15.21.58;	author joerg;	state Exp;
branches;
next	1.37;
commitid	dAeEThbtMKeNRUhB;

1.37
date	2018.07.17.18.55.25;	author joerg;	state Exp;
branches;
next	1.36;
commitid	ZigGmMKrele9pwKA;

1.36
date	2017.08.01.20.07.37;	author joerg;	state Exp;
branches
	1.36.2.1
	1.36.4.1;
next	1.35;
commitid	Eal5CLsDsgNz3y1A;

1.35
date	2017.01.11.12.02.25;	author joerg;	state Exp;
branches;
next	1.34;
commitid	J5yUvIHsYWlHRxBz;

1.34
date	2016.02.27.21.47.30;	author joerg;	state Exp;
branches
	1.34.2.1;
next	1.33;
commitid	CPKx2lHByYm8mBWy;

1.33
date	2015.01.29.20.41.33;	author joerg;	state Exp;
branches;
next	1.32;
commitid	ADAyDANcT8UzDX7y;

1.32
date	2014.08.10.17.34.19;	author joerg;	state Exp;
branches
	1.32.2.1;
next	1.31;
commitid	LSY4UBCvKZWl9QLx;

1.31
date	2014.05.30.18.28.13;	author joerg;	state Exp;
branches;
next	1.30;
commitid	HUKCFjIKgK7YKACx;

1.30
date	2014.02.14.20.23.56;	author joerg;	state Exp;
branches
	1.30.2.1;
next	1.29;
commitid	vx0eoFPhbjkRL6px;

1.29
date	2014.01.15.22.21.34;	author joerg;	state Exp;
branches;
next	1.28;
commitid	HdzLIuZThDhTnglx;

1.28
date	2014.01.05.16.38.06;	author joerg;	state Exp;
branches;
next	1.27;
commitid	HKy6us9gT88YMWjx;

1.27
date	2013.07.07.21.36.42;	author joerg;	state Exp;
branches;
next	1.26;
commitid	ZV9rCKFTZlFqjAWw;

1.26
date	2013.05.28.17.37.33;	author joerg;	state Exp;
branches;
next	1.25;
commitid	XKi6BfOZNFC9hqRw;

1.25
date	2013.04.25.13.59.55;	author joerg;	state Exp;
branches;
next	1.24;

1.24
date	2013.02.19.12.35.41;	author joerg;	state Exp;
branches;
next	1.23;

1.23
date	2013.02.04.15.00.31;	author joerg;	state Exp;
branches;
next	1.22;

1.22
date	2013.01.23.15.02.54;	author joerg;	state Exp;
branches;
next	1.21;

1.21
date	2012.09.23.17.22.22;	author joerg;	state Exp;
branches;
next	1.20;

1.20
date	2012.04.29.19.19.04;	author joerg;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2012.04.04.10.42.00;	author joerg;	state Exp;
branches;
next	1.18;

1.18
date	2012.02.28.17.09.29;	author joerg;	state Exp;
branches;
next	1.17;

1.17
date	2012.01.18.16.53.09;	author joerg;	state Exp;
branches;
next	1.16;

1.16
date	2011.11.03.17.52.53;	author joerg;	state Exp;
branches;
next	1.15;

1.15
date	2011.08.09.12.30.47;	author joerg;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2011.07.17.20.07.57;	author joerg;	state Exp;
branches;
next	1.13;

1.13
date	2011.07.14.21.38.57;	author joerg;	state Exp;
branches;
next	1.12;

1.12
date	2011.07.13.23.48.29;	author joerg;	state Exp;
branches;
next	1.11;

1.11
date	2011.07.07.21.59.14;	author joerg;	state Exp;
branches;
next	1.10;

1.10
date	2011.07.05.19.37.10;	author joerg;	state Exp;
branches;
next	1.9;

1.9
date	2011.07.05.17.22.21;	author joerg;	state Exp;
branches;
next	1.8;

1.8
date	2011.07.05.17.06.10;	author joerg;	state Exp;
branches;
next	1.7;

1.7
date	2011.07.05.14.15.56;	author joerg;	state Exp;
branches;
next	1.6;

1.6
date	2011.07.04.22.37.59;	author joerg;	state Exp;
branches;
next	1.5;

1.5
date	2011.07.04.16.10.39;	author joerg;	state Exp;
branches;
next	1.4;

1.4
date	2011.05.12.14.56.22;	author joerg;	state Exp;
branches;
next	1.3;

1.3
date	2011.02.23.03.09.03;	author joerg;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2011.02.17.18.35.35;	author joerg;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.06.01.13.44;	author joerg;	state Exp;
branches;
next	;

1.36.2.1
date	2018.07.28.04.33.04;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.36.4.1
date	2019.06.10.21.45.04;	author christos;	state Exp;
branches;
next	1.36.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.36.4.2
date	2020.04.13.07.46.13;	author martin;	state dead;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.34.2.1
date	2017.03.20.06.52.27;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.32.2.1
date	2015.06.04.20.04.22;	author snj;	state Exp;
branches;
next	;
commitid	yRnjq9fueSo6n9oy;

1.30.2.1
date	2014.08.10.07.08.02;	author tls;	state Exp;
branches;
next	;
commitid	t01A1TLTYxkpGMLx;

1.20.2.1
date	2012.11.20.02.58.00;	author tls;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2013.02.25.00.26.32;	author tls;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2013.06.23.06.28.21;	author tls;	state Exp;
branches;
next	1.20.2.4;
commitid	OnlO1cBgtQRcIHUw;

1.20.2.4
date	2014.08.19.23.47.17;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.15.2.1
date	2011.11.10.14.31.22;	author yamt;	state Exp;
branches;
next	1.15.2.2;

1.15.2.2
date	2012.04.17.00.03.28;	author yamt;	state Exp;
branches;
next	1.15.2.3;

1.15.2.3
date	2012.05.23.10.07.26;	author yamt;	state Exp;
branches;
next	1.15.2.4;

1.15.2.4
date	2012.10.30.18.55.47;	author yamt;	state Exp;
branches;
next	1.15.2.5;

1.15.2.5
date	2014.05.22.16.13.21;	author yamt;	state Exp;
branches;
next	;
commitid	b9CSqJ1zFqr1hyBx;

1.3.2.1
date	2011.02.23.03.09.03;	author bouyer;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2011.03.06.15.07.39;	author bouyer;	state Exp;
branches;
next	;


desc
@@


1.39
log
@Remove old LLVM build system.
@
text
@#	$NetBSD: Makefile,v 1.38 2019/04/03 15:21:58 joerg Exp $

PROG_CXX=	clang
NOMAN=		yes

.if !defined(HOSTPROG)
SYMLINKS+=	clang ${BINDIR}/clang++
SYMLINKS+=	clang ${BINDIR}/clang-cpp
.endif

.include <bsd.init.mk>

.PATH: ${CLANG_SRCDIR}/tools/driver

SRCS=	driver.cpp \
	cc1_main.cpp \
	cc1as_main.cpp \
	cc1gen_reproducer_main.cpp

CLANG_LIBS+= \
	clangFrontendTool \
	clangFrontend \
	clangARCMigrate \
	clangStaticAnalyzerFrontend \
	clangStaticAnalyzerCheckers \
	clangStaticAnalyzerCore \
	clangCrossTU \
	clangIndex \
	clangASTMatchers \
	clangCodeGen \
	clangFrontendRewrite \
	clangFrontend \
	clangSerialization \
	clangParse \
	clangSema \
	clangAnalysis \
	clangEdit \
	clangDriver \
	clangRewrite \
	clangAST \
	clangLex \
	clangBasic

LLVM_LIBS+= \
	TransformsAggressiveInstCombine \
	TransformsCoroutines \
	ProfileDataCoverage \
	LTO \
	ObjCARC \
	Passes \
	ipo \
	IRReader \
	AsmParser \
	BitReader \
	BitWriter

.if !defined(HOSTPROG)
LLVM_LIBS+= \
	AMDGPUCodeGen \
	AMDGPUTargetInfo \
	AMDGPUAsmParser \
	AMDGPUMCTargetDesc \
	AMDGPUAsmPrinter \
	AMDGPUUtils
.endif

LLVM_LIBS+= \
	AArch64CodeGen \
	AArch64TargetInfo \
	AArch64AsmParser \
	AArch64MCTargetDesc \
	AArch64AsmPrinter \
	AArch64Utils \
	ARMCodeGen \
	ARMTargetInfo \
	ARMMCTargetDesc \
	ARMAsmParser \
	ARMAsmPrinter \
	ARMUtils \
	MipsCodeGen \
	MipsTargetInfo \
	MipsAsmPrinter \
	MipsAsmParser \
	MipsMCTargetDesc \
	PowerPCCodeGen \
	PowerPCTargetInfo \
	PowerPCMCTargetDesc \
	PowerPCAsmParser \
	PowerPCAsmPrinter \
	SparcCodeGen \
	SparcTargetInfo \
	SparcMCTargetDesc \
	SparcAsmParser \
	SparcAsmPrinter \
	X86CodeGen \
	X86MCTargetDesc \
	X86TargetInfo \
	X86Utils \
	X86AsmParser \
	X86AsmPrinter \
	GlobalISel \
	SelectionDAG \
	AsmPrinter \
	DebugInfoCodeView \
	DebugInfoMSF \
	CodeGen \
	Vectorize \
	Target \
	InstCombine \
	Instrumentation \
	ScalarOpts \
	ProfileData \
	MCDisassembler \
	MCParser \
	MC \
	Analysis \
	Object \
	Linker \
	TransformsUtils \
	IR \
	Option \
	BinaryFormat \
	Support \
	Demangle

.include "${.PARSEDIR}/../../link.mk"

LDADD+=	-lz
.if !defined(HOSTPROG)
DPADD+=	${LIBZ}
.endif

.include <bsd.prog.mk>
@


1.38
log
@Add MKLLVMRT to build a subset of the LLVM stack for JIT purposes.
Hook up AMDGPU backend for clang.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2018/07/17 18:55:25 joerg Exp $
@


1.37
log
@Update LLVM/Clang build system to r337282.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2017/08/01 20:07:37 joerg Exp $
d55 13
a67 1
	BitWriter \
@


1.36
log
@Update LLVM build glue for 5.0RC1.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2017/01/11 12:02:25 joerg Exp $
d17 2
a18 1
	cc1as_main.cpp
d27 2
d30 3
a32 1
	clangDriver \
a33 1
	clangCodeGen \
d36 1
d38 1
a38 2
	clangAnalysis \
	clangFrontendRewrite \
d45 1
d50 1
d67 1
a93 1
	Passes \
@


1.36.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2019/04/03 15:21:58 joerg Exp $
d17 1
a17 2
	cc1as_main.cpp \
	cc1gen_reproducer_main.cpp
a25 2
	clangCrossTU \
	clangIndex \
d27 2
a29 3
	clangFrontendRewrite \
	clangFrontend \
	clangSerialization \
d32 1
d34 1
a34 2
	clangEdit \
	clangDriver \
a40 1
	TransformsAggressiveInstCombine \
a44 1
	Passes \
d49 1
a49 13
	BitWriter

.if !defined(HOSTPROG)
LLVM_LIBS+= \
	AMDGPUCodeGen \
	AMDGPUTargetInfo \
	AMDGPUAsmParser \
	AMDGPUMCTargetDesc \
	AMDGPUAsmPrinter \
	AMDGPUUtils
.endif

LLVM_LIBS+= \
a60 1
	ARMUtils \
d87 1
@


1.36.4.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36.4.1 2019/06/10 21:45:04 christos Exp $
@


1.36.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2018/07/17 18:55:25 joerg Exp $
d17 1
a17 2
	cc1as_main.cpp \
	cc1gen_reproducer_main.cpp
a25 2
	clangCrossTU \
	clangIndex \
d27 2
a29 3
	clangFrontendRewrite \
	clangFrontend \
	clangSerialization \
d32 1
d34 1
a34 2
	clangEdit \
	clangDriver \
a40 1
	TransformsAggressiveInstCombine \
a44 1
	Passes \
a60 1
	ARMUtils \
d87 1
@


1.35
log
@Update LLVM build glue for pre-4.0.0 r291444.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2016/02/27 21:47:30 joerg Exp $
d104 1
@


1.34
log
@Update build system for LLVM 3.8.0rc3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2015/01/29 20:41:33 joerg Exp $
d26 1
d41 3
d82 1
d85 3
d98 1
a101 1
	Analysis \
d104 2
a105 1
	Support
@


1.34.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2017/01/11 12:02:25 joerg Exp $
a25 1
	clangASTMatchers \
a39 3
	TransformsCoroutines \
	ProfileDataCoverage \
	LTO \
a77 1
	GlobalISel \
a79 3
	DebugInfoCodeView \
	DebugInfoMSF \
	Passes \
a89 1
	Analysis \
d93 1
d96 1
a96 2
	Support \
	Demangle
@


1.33
log
@Update build system glue for LLVM 3.6RC1. Notable changes:

- Old JIT is removed.
- Improvements to debug information handling.
- ARM: check for deprecated instructions and warn in the integrated
  assembler
- PPC: VSX support, va_arg support for struct/union types, -fPIC vs
  -fpic supported, faster atomics
- x86: improved vectorizer
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2014/08/10 17:34:19 joerg Exp $
a86 1
	Analysis \
d93 1
a93 1
	ipa \
@


1.32
log
@Update build glue for LLVM/Clang 3.6svn r215315. Changes include various
performance improvements across all backends and a much improved PPC32
backend.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2014/05/30 18:28:13 joerg Exp $
a80 1
	ProfileData \
d86 1
@


1.32.2.1
log
@Update LLVM to 3.6.1, requested by joerg in ticket 824.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2015/01/29 20:41:33 joerg Exp $
d81 1
a86 1
	ProfileData \
@


1.31
log
@Update build system for LLVM/Clang snapshot r209886. This brings in the
merged AArch64 backend and the move of eARM to DWARF exception handling
for NetBSD. C++11 is required for building.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2014/02/14 20:23:56 joerg Exp $
d33 2
a34 2
	clangRewriteFrontend \
	clangRewriteCore \
d48 1
a49 1
	AArch64AsmParser \
@


1.30
log
@Update LLVm/Clang to 3.5svn r201163. This brings improvements to the
16bit x86 support, self hosting for SPARC64 and improvements to the
NetBSD driver on ARM, AArch64 and MIPS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2014/01/15 22:21:34 joerg Exp $
a77 1
	Object \
d81 1
d91 1
d101 5
@


1.30.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2014/05/30 18:28:13 joerg Exp $
d78 1
a81 1
	ProfileData \
a90 1
	Object \
a99 5
LDADD+=	-lz
.if !defined(HOSTPROG)
DPADD+=	${LIBZ}
.endif

@


1.29
log
@Update build glue for LLVM/Clang 3.5svn r199312. Noticable changes
include bug fixes for the loop vectorizer, initial work for assembler
parser/disassembler on SPARC, improvements to ARM assembler and .code16
support on x86.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2014/01/05 16:38:06 joerg Exp $
a58 1
	MipsMCTargetDesc \
d61 1
@


1.28
log
@Update LLVM family to 3.5svn r198450. Interesting changes include:
- Improvements in the SPARC64 support
- ARM backend can almost build a full NetBSD/EABI system with the
  integrated assembler
- PowerPC grows disassembler support
- LLD supports copy relocation, beginning of MIPS backend
- New diagnostic for use of bool expression as size_t argument for
  strncmp and friends
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.27 2013/07/07 21:36:42 joerg Exp $
d70 1
@


1.27
log
@Update LLVM/Clang to snapshot r185778. This brings in a lot of work on
integrated-assembler support on PowerPC as well as support for
compressed DWARF sections in some tools.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2013/05/28 17:37:33 joerg Exp $
d70 1
@


1.26
log
@Update LLVM/Clang snapshot to r182734. Brings initial support for
integrated PowerPC assembler.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2013/04/25 13:59:55 joerg Exp $
d93 1
@


1.25
log
@Update LLVM/Clang snapshot to r180004. This brings in the last pieces of
C++11 support in Clang as well as initial SPARC64 support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2013/02/19 12:35:41 joerg Exp $
d65 1
d76 1
@


1.24
log
@Update LLVM/Clang snapshot to r175373. This improves GNU as
compatibility.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2013/02/04 15:00:31 joerg Exp $
d42 1
@


1.23
log
@Update to LLVM/Clang snapshot r174288. This brings in the new AArch64
backend as well as an import bug fix for pointer compare optimisations.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2013/01/23 15:02:54 joerg Exp $
d50 1
@


1.22
log
@Update LLVM/Clang snapshot to r172366. Catch up with the move past 3.2
release.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2012/09/23 17:22:22 joerg Exp $
d40 1
d45 5
@


1.21
log
@Update LLVM/Clang snapshot to r164464. This adopts the GCC options for
the SSP parameters and a not-yet-default rewrite of SROA.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2012/04/29 19:19:04 joerg Exp $
a22 1
	clangEdit \
d31 1
d82 1
a82 1
	Core \
@


1.20
log
@Update LLVM/Clang snapshot to r155677, bringing in a number of bugfixes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2012/04/04 10:42:00 joerg Exp $
d33 2
a34 1
	clangRewrite \
@


1.20.2.1
log
@Resync to 2012-11-19 00:00:00 UTC
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2012/09/23 17:22:22 joerg Exp $
d33 1
a33 2
	clangRewriteFrontend \
	clangRewriteCore \
@


1.20.2.2
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20.2.1 2012/11/20 02:58:00 tls Exp $
d23 1
a31 1
	clangEdit \
a39 1
	ObjCARC \
a43 6
	AArch64CodeGen \
	AArch64TargetInfo \
	AArch64MCTargetDesc \
	AArch64AsmParser \
	AArch64AsmPrinter \
	AArch64Utils \
d82 1
a82 1
	IR \
@


1.20.2.3
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a41 1
	IRReader \
a63 1
	PowerPCAsmParser \
a73 1
	Object \
@


1.20.2.4
log
@Rebase to HEAD as of a few days ago.
@
text
@d33 2
a34 2
	clangFrontendRewrite \
	clangRewrite \
d48 1
a49 1
	AArch64MCTargetDesc \
d59 1
a61 1
	MipsMCTargetDesc \
a69 2
	SparcAsmParser \
	SparcAsmPrinter \
d76 1
a79 1
	ProfileData \
a88 1
	Object \
a92 1
	Option \
a96 5
LDADD+=	-lz
.if !defined(HOSTPROG)
DPADD+=	${LIBZ}
.endif

@


1.19
log
@Update LLVM/Clang snapshot to r153935. This brings in the new inline
cost analysis.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2012/02/28 17:09:29 joerg Exp $
a32 1
	clangIndex \
@


1.18
log
@Update LLVM/Clang snapshot to r151411. This brings in Lambda support for
C++11 and a new literal format string check to catch variadic argument
functions.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2012/01/18 16:53:09 joerg Exp $
d23 1
@


1.17
log
@Make sure to link the MIPS assembler parser in.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2011/11/03 17:52:53 joerg Exp $
d69 1
@


1.16
log
@Update LLVM/Clang snapshot to r143571 for the improved optimizer.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/08/09 12:30:47 joerg Exp $
d52 1
@


1.15
log
@Update LLVM/Clang snapshot to r137038. This brings in the extended array
boundary checker and the white listing of pre-c99 flexible array member
idiom foo[1] as last element of a struct.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2011/07/17 20:07:57 joerg Exp $
d76 1
@


1.15.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/08/09 12:30:47 joerg Exp $
a75 1
	Linker \
@


1.15.2.2
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.2.1 2011/11/10 14:31:22 yamt Exp $
a22 1
	clangEdit \
a51 1
	MipsAsmParser \
a67 1
	Vectorize \
@


1.15.2.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.2.2 2012/04/17 00:03:28 yamt Exp $
d33 1
@


1.15.2.4
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.2.3 2012/05/23 10:07:26 yamt Exp $
d33 1
a33 2
	clangRewriteFrontend \
	clangRewriteCore \
@


1.15.2.5
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15.2.4 2012/10/30 18:55:47 yamt Exp $
d23 1
a31 1
	clangEdit \
a39 1
	ObjCARC \
a40 1
	IRReader \
a43 6
	AArch64CodeGen \
	AArch64TargetInfo \
	AArch64MCTargetDesc \
	AArch64AsmParser \
	AArch64AsmPrinter \
	AArch64Utils \
d51 1
a53 1
	MipsMCTargetDesc \
a56 1
	PowerPCAsmParser \
a60 2
	SparcAsmParser \
	SparcAsmPrinter \
a66 1
	Object \
d82 1
a82 2
	IR \
	Option \
@


1.14
log
@Update to Clang/LLVM r135360. Most importantly, this adjusts the
cc -print-search-dirs output to expand sysroot-prefixed library paths to
make live easier for libtool.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2011/07/14 21:38:57 joerg Exp $
d39 1
a75 1
	ipo \
@


1.13
log
@Install cpp frontend link too
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2011/07/13 23:48:29 joerg Exp $
d49 1
d53 1
d57 1
@


1.12
log
@Update to LLVM/Clang r135100 to get past the type system rewrite.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2011/07/07 21:59:14 joerg Exp $
d8 1
@


1.11
log
@Update LLVM/Clang snapshot to r134635. This reduces the memory usage in
preprocessor heavy code and recognizes mipseb as alias for mips.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2011/07/05 19:37:10 joerg Exp $
d48 1
d55 1
@


1.10
log
@Hook up LLVM's MIPS target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2011/07/05 17:22:21 joerg Exp $
d43 1
@


1.9
log
@Hook up LLVM's ARM target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2011/07/05 17:06:10 joerg Exp $
d45 2
@


1.8
log
@Doesn't need the X86 disassembler.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2011/07/05 14:15:56 joerg Exp $
d41 4
@


1.7
log
@Hook up LLVM's SPARC target.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2011/07/04 22:37:59 joerg Exp $
a49 1
	X86Disassembler \
@


1.6
log
@Hook up LLVM's PowerPC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2011/07/04 16:10:39 joerg Exp $
d44 2
@


1.5
log
@Update LLVM/Clang to r134374. This brings the xstorerng alias for Via
PadLock, a bugfix for the C++ ABI in one edge condition and various
compiler improvements.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/05/12 14:56:22 joerg Exp $
d41 3
@


1.4
log
@Update LLVM and Clang snapshot
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2011/02/23 03:09:03 joerg Exp $
d21 1
@


1.3
log
@Update LLVM/Clang snapshot. This brings improvements for the integrated
assembler and support for -cxx-isystem in the driver.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2011/02/17 18:35:35 joerg Exp $
d51 1
@


1.3.2.1
log
@file Makefile was added on branch bouyer-quota2 on 2011-03-06 15:07:39 +0000
@
text
@d1 64
@


1.3.2.2
log
@Sync with HEAD
@
text
@a0 64
#	$NetBSD: Makefile,v 1.3 2011/02/23 03:09:03 joerg Exp $

PROG_CXX=	clang
NOMAN=		yes

.if !defined(HOSTPROG)
SYMLINKS+=	clang ${BINDIR}/clang++
.endif

.include <bsd.init.mk>

.PATH: ${CLANG_SRCDIR}/tools/driver

SRCS=	driver.cpp \
	cc1_main.cpp \
	cc1as_main.cpp

CLANG_LIBS+= \
	clangFrontendTool \
	clangFrontend \
	clangStaticAnalyzerFrontend \
	clangStaticAnalyzerCheckers \
	clangStaticAnalyzerCore \
	clangDriver \
	clangSerialization \
	clangCodeGen \
	clangParse \
	clangSema \
	clangAnalysis \
	clangIndex \
	clangRewrite \
	clangAST \
	clangLex \
	clangBasic

LLVM_LIBS+= \
	AsmParser \
	BitReader \
	BitWriter \
	X86CodeGen \
	X86TargetInfo \
	X86Utils \
	X86AsmParser \
	X86Disassembler \
	X86AsmPrinter \
	SelectionDAG \
	AsmPrinter \
	CodeGen \
	Target \
	InstCombine \
	ScalarOpts \
	Analysis \
	MCDisassembler \
	MCParser \
	MC \
	ipo \
	TransformsUtils \
	ipa \
	Core \
	Support

.include "${.PARSEDIR}/../../link.mk"

.include <bsd.prog.mk>
@


1.2
log
@Update LLVM/clang snapshot. This brings in support for
.pushsection/.popsection and fixes clang -B to be incremental.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/02/06 01:13:44 joerg Exp $
d42 1
@


1.1
log
@Add LLVM and clang build system.  It is enabled by MKLLVM=yes.
Upstream sources can be fetched by running "make checkout" in
src/external/bsd/llvm, they will be properly imported once the
integration and missing features are sorted out.
@
text
@d1 1
a1 1
#	$NetBSD$
d21 1
d23 1
a23 1
	clangStaticAnalyzer \
@

