head	1.13;
access;
symbols
	netbsd-9-5-RELEASE:1.12
	perseant-exfatfs-base-20250801:1.13
	perseant-exfatfs-base-20240630:1.13
	perseant-exfatfs:1.13.0.6
	perseant-exfatfs-base:1.13
	netbsd-8-3-RELEASE:1.8
	netbsd-9-4-RELEASE:1.12
	netbsd-9-3-RELEASE:1.12
	cjep_sun2x:1.13.0.4
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	netbsd-9-2-RELEASE:1.12
	cjep_staticlib_x:1.13.0.2
	cjep_staticlib_x-base:1.13
	netbsd-9-1-RELEASE:1.12
	phil-wifi-20200421:1.13
	phil-wifi-20200411:1.13
	phil-wifi-20200406:1.13
	netbsd-8-2-RELEASE:1.8
	netbsd-9-0-RELEASE:1.12
	netbsd-9-0-RC2:1.12
	netbsd-9-0-RC1:1.12
	netbsd-9:1.12.0.2
	netbsd-9-base:1.12
	phil-wifi-20190609:1.12
	netbsd-8-1-RELEASE:1.8
	netbsd-8-1-RC1:1.8
	pgoyette-compat-merge-20190127:1.10
	pgoyette-compat-20190127:1.10
	pgoyette-compat-20190118:1.10
	pgoyette-compat-1226:1.10
	pgoyette-compat-1126:1.10
	pgoyette-compat-1020:1.10
	pgoyette-compat-0930:1.10
	pgoyette-compat-0906:1.10
	netbsd-7-2-RELEASE:1.8
	pgoyette-compat-0728:1.10
	netbsd-8-0-RELEASE:1.8
	phil-wifi:1.10.0.4
	phil-wifi-base:1.10
	pgoyette-compat-0625:1.10
	netbsd-8-0-RC2:1.8
	pgoyette-compat-0521:1.10
	pgoyette-compat-0502:1.10
	pgoyette-compat-0422:1.10
	netbsd-8-0-RC1:1.8
	pgoyette-compat-0415:1.10
	pgoyette-compat-0407:1.10
	pgoyette-compat-0330:1.10
	pgoyette-compat-0322:1.10
	pgoyette-compat-0315:1.10
	netbsd-7-1-2-RELEASE:1.8
	pgoyette-compat:1.10.0.2
	pgoyette-compat-base:1.10
	netbsd-7-1-1-RELEASE:1.8
	matt-nb8-mediatek:1.8.0.22
	matt-nb8-mediatek-base:1.8
	perseant-stdc-iso10646:1.8.0.20
	perseant-stdc-iso10646-base:1.8
	netbsd-8:1.8.0.18
	netbsd-8-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.16
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	netbsd-7-1:1.8.0.14
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-nhusb-base-20170116:1.8
	bouyer-socketcan:1.8.0.12
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	netbsd-7-1-RC1:1.8
	pgoyette-localcount-20161104:1.8
	netbsd-7-0-2-RELEASE:1.8
	localcount-20160914:1.8
	netbsd-7-nhusb:1.8.0.10
	netbsd-7-nhusb-base:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.8
	pgoyette-localcount-base:1.8
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.6
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.8.0.4
	netbsd-7-base:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.1.6.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.8.0.2
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.3
	riastradh-drm2-base1:1.3
	riastradh-drm2:1.3.0.6
	riastradh-drm2-base:1.3
	netbsd-6-1:1.1.0.14
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	khorben-n900:1.3.0.4
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.3.0.2
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.2
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.2
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.1.0.12
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.2.0.2
	tls-maxphys-base:1.8
	matt-nb6-plus:1.1.0.10
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.8
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.6
	yamt-pagecache-base:1.1
	cherry-xenmp:1.1.0.4
	cherry-xenmp-base:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1
	bouyer-quota2-nbase:1.1;
locks; strict;
comment	@# @;


1.13
date	2019.11.13.22.03.31;	author joerg;	state dead;
branches;
next	1.12;
commitid	VVWg38Zx9vNeTJKB;

1.12
date	2019.04.03.15.21.58;	author joerg;	state Exp;
branches;
next	1.11;
commitid	dAeEThbtMKeNRUhB;

1.11
date	2019.03.03.17.46.01;	author maya;	state Exp;
branches;
next	1.10;
commitid	RFmRKLd3yf2dEWdB;

1.10
date	2017.12.17.21.16.57;	author joerg;	state Exp;
branches
	1.10.4.1;
next	1.9;
commitid	tfKVoFEeKkum0ijA;

1.9
date	2017.08.01.20.07.37;	author joerg;	state Exp;
branches;
next	1.8;
commitid	Eal5CLsDsgNz3y1A;

1.8
date	2014.01.15.20.53.00;	author joerg;	state Exp;
branches;
next	1.7;
commitid	WTp1VsIWFtqWTflx;

1.7
date	2013.12.03.22.42.55;	author joerg;	state Exp;
branches;
next	1.6;
commitid	fi98cTmMo6RfRJfx;

1.6
date	2013.11.28.14.19.59;	author joerg;	state Exp;
branches;
next	1.5;
commitid	MlnRZp3iC6hOg3fx;

1.5
date	2013.09.29.12.11.59;	author joerg;	state Exp;
branches;
next	1.4;
commitid	sFrf2fEIoDd9uk7x;

1.4
date	2013.09.02.14.34.55;	author joerg;	state Exp;
branches;
next	1.3;
commitid	PjuIIiky2I1I8S3x;

1.3
date	2013.02.27.21.25.08;	author joerg;	state Exp;
branches;
next	1.2;

1.2
date	2012.06.17.16.51.31;	author joerg;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2011.02.06.01.13.43;	author joerg;	state Exp;
branches
	1.1.2.1
	1.1.6.1;
next	;

1.10.4.1
date	2019.06.10.21.45.03;	author christos;	state Exp;
branches;
next	1.10.4.2;
commitid	jtc8rnCzWiEEHGqB;

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

1.2.2.1
date	2013.06.23.06.28.21;	author tls;	state Exp;
branches;
next	1.2.2.2;
commitid	OnlO1cBgtQRcIHUw;

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

1.1.2.1
date	2011.02.06.01.13.43;	author bouyer;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2011.03.06.15.07.38;	author bouyer;	state Exp;
branches;
next	;

1.1.6.1
date	2012.10.30.18.55.47;	author yamt;	state Exp;
branches;
next	1.1.6.2;

1.1.6.2
date	2014.05.22.16.30.18;	author yamt;	state Exp;
branches;
next	;
commitid	2FkpAxlnFV6QmyBx;


desc
@@


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

.include <bsd.init.mk>

SUBDIR=	include \

.if ${MKLLVMRT} != "no"
SUBDIR+= \
	librt
.endif

.if ${MKLLVM} != "no"
SUBDIR+= \
	lib \
	.WAIT \
	bin
.endif

.include "Makefile.inc"

checkout:
	svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/${SVN_BRANCH} ${LLD_SRCDIR}
	svn co -r ${LLDB_REVISION} ${SVN_ROOT}/lldb/${SVN_BRANCH} ${LLDB_SRCDIR}

checkout-imported:
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/${SVN_BRANCH} ${CLANG_SRCDIR}
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/${SVN_BRANCH} ${LLVM_SRCDIR}

checkout-mclinker:
	if [ -d ${MCLINKER_SRCDIR}/.git ]; then \
		cd ${MCLINKER_SRCDIR}; git pull ${MCLINKER_ROOT} ; \
	else \
		git clone ${MCLINKER_ROOT} ${MCLINKER_SRCDIR}; \
	fi
	cd ${MCLINKER_SRCDIR} && git checkout ${MCLINKER_REVISION}

import-clang:
	cd ${CLANG_SRCDIR} && cvs -d cvs.netbsd.org:/cvsroot import -m "Import clang ${CLANG_REVISION} from ${SVN_BRANCH}" src/external/bsd/llvm/dist/clang LLVM clang-${CLANG_REVISION:C,^r,,}
import-llvm:
	cd ${LLVM_SRCDIR} && cvs -d cvs.netbsd.org:/cvsroot import -m "Import LLVM ${LLVM_REVISION} from ${SVN_BRANCH}" src/external/bsd/llvm/dist/llvm LLVM llvm-${LLVM_REVISION:C,^r,,}

.include <bsd.subdir.mk>
@


1.12
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.11 2019/03/03 17:46:01 maya Exp $
@


1.11
log
@Make the includes target run the custom include targets.

This avoids the need for a .WAIT here, and later makes it possible
for non-llvm things to not worry about llvm includes not being created
yet (as includes runs before a lot of other things)

suggested by mrg, build-tested by agc, thanks!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2017/12/17 21:16:57 joerg Exp $
d6 8
a16 3

.if ${MKCLANGRT:Uno} == "yes"
SUBDIR+=	librt
@


1.10
log
@Be consistent with the revision numbers in the import-llvm command.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2017/08/01 20:07:37 joerg Exp $
a5 1
	.WAIT \
@


1.10.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2019/04/03 15:21:58 joerg Exp $
d6 1
a6 8

.if ${MKLLVMRT} != "no"
SUBDIR+= \
	librt
.endif

.if ${MKLLVM} != "no"
SUBDIR+= \
d10 3
@


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


1.9
log
@Update LLVM build glue for 5.0RC1.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2014/01/15 20:53:00 joerg Exp $
d36 1
a36 1
	cd ${LLVM_SRCDIR} && cvs -d cvs.netbsd.org:/cvsroot import -m "Import LLVM ${CLANG_REVISION} from ${SVN_BRANCH}" src/external/bsd/llvm/dist/llvm LLVM llvm-${LLVM_REVISION:C,^r,,}
@


1.8
log
@Don't checkout compiler-rt, drop old build glue.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2013/12/03 22:42:55 joerg Exp $
d33 5
@


1.7
log
@Split checkout target into two parts now that llvm and clang are
imported. Requested by matt@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2013/11/28 14:19:59 joerg Exp $
a17 2
	svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/${SVN_BRANCH} \
	    ${COMPILER_RT_SRCDIR}
@


1.6
log
@Update LLVM/Clang to r195771 from the 3.4 release branch.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2013/09/29 12:11:59 joerg Exp $
a17 1
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/${SVN_BRANCH} ${CLANG_SRCDIR}
d22 3
@


1.5
log
@Hook up initial build infrastructure for LLDB. Update LLVM/Clang
snapshot to r191390 for some required changed. Re-enable static analyzer
in Clang.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $
d18 2
a19 2
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/trunk ${CLANG_SRCDIR}
	svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/trunk \
d21 3
a23 3
	svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/trunk ${LLD_SRCDIR}
	svn co -r ${LLDB_REVISION} ${SVN_ROOT}/lldb/trunk ${LLDB_SRCDIR}
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
@


1.4
log
@Update LLVM/Clang snapshot to r189662. This includes many improvements
to the new SLP vectorizer, fast codegen support for PPC and using
terminfo for the color sequences. In addition, add (optional) build
infrastructure for lld to allow easier testing. This is controlled by
MKLLD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2013/02/27 21:25:08 joerg Exp $
d22 1
@


1.3
log
@Add infrastructure for building MCLinker.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2012/06/17 16:51:31 joerg Exp $
a17 1
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
d21 2
@


1.2
log
@Update to LLVM/Clang snapshot r158648 to the fix a false warning in LVM.
Add build glue for compiler_rt.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2011/02/06 01:13:43 joerg Exp $
d23 8
@


1.2.2.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
a22 8
checkout-mclinker:
	if [ -d ${MCLINKER_SRCDIR}/.git ]; then \
		cd ${MCLINKER_SRCDIR}; git pull ${MCLINKER_ROOT} ; \
	else \
		git clone ${MCLINKER_ROOT} ${MCLINKER_SRCDIR}; \
	fi
	cd ${MCLINKER_SRCDIR} && git checkout ${MCLINKER_REVISION}

@


1.2.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d18 4
a21 6
	svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/${SVN_BRANCH} ${LLD_SRCDIR}
	svn co -r ${LLDB_REVISION} ${SVN_ROOT}/lldb/${SVN_BRANCH} ${LLDB_SRCDIR}

checkout-imported:
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/${SVN_BRANCH} ${CLANG_SRCDIR}
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/${SVN_BRANCH} ${LLVM_SRCDIR}
@


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 3
a3 1
#	$NetBSD$
d11 4
d18 4
a21 2
	svn co -r ${LLVM_REVISION} http://llvm.org/svn/llvm-project/llvm/trunk ${LLVM_SRCDIR}
	svn co -r ${CLANG_REVISION} http://llvm.org/svn/llvm-project/cfe/trunk ${CLANG_SRCDIR}
@


1.1.6.1
log
@sync with head
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.1 2011/02/06 01:13:43 joerg Exp $

.include <bsd.init.mk>
a8 4
.if ${MKCLANGRT:Uno} == "yes"
SUBDIR+=	librt
.endif

d12 2
a13 4
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/trunk ${CLANG_SRCDIR}
	svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/trunk \
	    ${COMPILER_RT_SRCDIR}
@


1.1.6.2
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.1.6.1 2012/10/30 18:55:47 yamt Exp $
d18 4
a21 14
	svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/${SVN_BRANCH} ${LLD_SRCDIR}
	svn co -r ${LLDB_REVISION} ${SVN_ROOT}/lldb/${SVN_BRANCH} ${LLDB_SRCDIR}

checkout-imported:
	svn co -r ${CLANG_REVISION} ${SVN_ROOT}/cfe/${SVN_BRANCH} ${CLANG_SRCDIR}
	svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/${SVN_BRANCH} ${LLVM_SRCDIR}

checkout-mclinker:
	if [ -d ${MCLINKER_SRCDIR}/.git ]; then \
		cd ${MCLINKER_SRCDIR}; git pull ${MCLINKER_ROOT} ; \
	else \
		git clone ${MCLINKER_ROOT} ${MCLINKER_SRCDIR}; \
	fi
	cd ${MCLINKER_SRCDIR} && git checkout ${MCLINKER_REVISION}
@


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


1.1.2.2
log
@Sync with HEAD
@
text
@a0 15
#	$NetBSD: Makefile,v 1.1 2011/02/06 01:13:43 joerg Exp $

SUBDIR=	include \
	.WAIT \
	lib \
	.WAIT \
	bin

.include "Makefile.inc"

checkout:
	svn co -r ${LLVM_REVISION} http://llvm.org/svn/llvm-project/llvm/trunk ${LLVM_SRCDIR}
	svn co -r ${CLANG_REVISION} http://llvm.org/svn/llvm-project/cfe/trunk ${CLANG_SRCDIR}

.include <bsd.subdir.mk>
@


