head	1.7;
access;
symbols
	netbsd-11-0-RC4:1.7
	netbsd-11-0-RC3:1.7
	netbsd-11-0-RC2:1.7
	netbsd-11-0-RC1:1.7
	perseant-exfatfs-base-20250801:1.7
	netbsd-11:1.7.0.30
	netbsd-11-base:1.7
	netbsd-10-1-RELEASE:1.7
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.28
	perseant-exfatfs-base:1.7
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.7
	netbsd-10-0-RC6:1.7
	netbsd-10-0-RC5:1.7
	netbsd-10-0-RC4:1.7
	netbsd-10-0-RC3:1.7
	netbsd-10-0-RC2:1.7
	netbsd-10-0-RC1:1.7
	netbsd-10:1.7.0.26
	netbsd-10-base:1.7
	netbsd-9-3-RELEASE:1.7
	cjep_sun2x-base1:1.7
	cjep_sun2x:1.7.0.24
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.7.0.22
	cjep_staticlib_x-base:1.7
	netbsd-9-1-RELEASE:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	is-mlppp:1.7.0.20
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	netbsd-8-2-RELEASE:1.7
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.18
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.16
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.7.0.14
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.7.0.12
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.10
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.8
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.6
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.6.0.14
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.7
	netbsd-7-nhusb:1.6.0.12
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.10
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	tls-maxphys-base:1.6
	tls-maxphys:1.6.0.8
	netbsd-7:1.6.0.6
	netbsd-7-base:1.6
	yamt-pagecache:1.6.0.4
	yamt-pagecache-base9:1.6
	tls-earlyentropy:1.6.0.2
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6;
locks; strict;
comment	@# @;


1.7
date	2016.01.23.21.22.46;	author christos;	state Exp;
branches;
next	1.6;
commitid	0voYFcZKKnOpl6Sy;

1.6
date	2013.08.25.14.20.30;	author matt;	state Exp;
branches
	1.6.4.1
	1.6.8.1;
next	1.5;
commitid	8lErLW8EdJSkkQ2x;

1.5
date	2013.08.21.05.45.16;	author matt;	state Exp;
branches;
next	1.4;
commitid	KgILw5MjyoHzBh2x;

1.4
date	2013.08.20.20.54.35;	author matt;	state Exp;
branches;
next	1.3;
commitid	j7xShQFqVkKmFe2x;

1.3
date	2013.08.20.18.06.03;	author matt;	state Exp;
branches;
next	1.2;
commitid	8xeSBzFWsLqFJd2x;

1.2
date	2013.08.20.17.41.58;	author matt;	state Exp;
branches;
next	1.1;
commitid	VUlFRmxMxbbmBd2x;

1.1
date	2013.08.20.17.35.41;	author matt;	state Exp;
branches;
next	;
commitid	6y7b1uGFUh62zd2x;

1.6.4.1
date	2013.08.25.14.20.30;	author yamt;	state dead;
branches;
next	1.6.4.2;
commitid	HJV5p3BoaVY5KwBx;

1.6.4.2
date	2014.05.22.11.36.56;	author yamt;	state Exp;
branches;
next	;
commitid	HJV5p3BoaVY5KwBx;

1.6.8.1
date	2013.08.25.14.20.30;	author tls;	state dead;
branches;
next	1.6.8.2;
commitid	jTnpym9Qu0o4R1Nx;

1.6.8.2
date	2014.08.20.00.02.17;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;


desc
@@


1.7
log
@Define _KERNTYPES for things that need it.
@
text
@#	$NetBSD: Makefile,v 1.6 2013/08/25 14:20:30 matt Exp $

.include <bsd.obj.mk>		# Pull in OBJDIR name rules.
.include <bsd.own.mk>
.include <bsd.klinks.mk>

LIBISPRIVATE?=	yes
LIB=	kern
DBG=	-Os

S= ${NETBSDSRCDIR}/sys
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch

CPPFLAGS+= -D_STANDALONE

COPTS+=	-ffreestanding
COPTS+=	-fno-stack-protector
COPTS+=	-fno-unwind-tables
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
CPPFLAGS+= -D_KERNTYPES

### find out what to use for libkern
KERN_AS=	library
KERNDIR=	${S}/lib/libkern

.include "${KERNDIR}/Makefile.libkern"
.ifndef ARCHSUBDIR
.BEGIN:
	@@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

.include <bsd.lib.mk>
@


1.6
log
@Add LIBISPRIVATE?=yes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2013/08/21 05:45:16 matt Exp $
d21 1
@


1.6.8.1
log
@file Makefile was added on branch tls-maxphys on 2014-08-20 00:02:17 +0000
@
text
@d1 33
@


1.6.8.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 33
#	$NetBSD$

.include <bsd.obj.mk>		# Pull in OBJDIR name rules.
.include <bsd.own.mk>
.include <bsd.klinks.mk>

LIBISPRIVATE?=	yes
LIB=	kern
DBG=	-Os

S= ${NETBSDSRCDIR}/sys
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch

CPPFLAGS+= -D_STANDALONE

COPTS+=	-ffreestanding
COPTS+=	-fno-stack-protector
COPTS+=	-fno-unwind-tables
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

### find out what to use for libkern
KERN_AS=	library
KERNDIR=	${S}/lib/libkern

.include "${KERNDIR}/Makefile.libkern"
.ifndef ARCHSUBDIR
.BEGIN:
	@@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

.include <bsd.lib.mk>
@


1.6.4.1
log
@file Makefile was added on branch yamt-pagecache on 2014-05-22 11:36:56 +0000
@
text
@d1 33
@


1.6.4.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
@a0 33
#	$NetBSD$

.include <bsd.obj.mk>		# Pull in OBJDIR name rules.
.include <bsd.own.mk>
.include <bsd.klinks.mk>

LIBISPRIVATE?=	yes
LIB=	kern
DBG=	-Os

S= ${NETBSDSRCDIR}/sys
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I${S}/arch

CPPFLAGS+= -D_STANDALONE

COPTS+=	-ffreestanding
COPTS+=	-fno-stack-protector
COPTS+=	-fno-unwind-tables
CWARNFLAGS+= -Werror
CWARNFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith

### find out what to use for libkern
KERN_AS=	library
KERNDIR=	${S}/lib/libkern

.include "${KERNDIR}/Makefile.libkern"
.ifndef ARCHSUBDIR
.BEGIN:
	@@echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU}
	@@false
.endif

.include <bsd.lib.mk>
@


1.5
log
@Use <bsd.klinks.mk>
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.4 2013/08/20 20:54:35 matt Exp $

WITHOUT_MAN=true  # defined
d7 1
a8 1
LIBISPRIVATE?=	yes
d26 1
a26 1
.include "${S}/lib/libkern/Makefile.libkern"
@


1.4
log
@Add links for various directories needs by amd64/sparc64/i386/sun2/m68000
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2013/08/20 18:06:03 matt Exp $
d7 1
a23 33
.if !make(obj) && !make(clean) && !make(cleandir)
.NOPATH: machine
.endif

realdepend realall: machine .WAIT
CLEANFILES+= ${MACHINE_CPU} machine

ARCHDIRS.i386=		x86
ARCHDIRS.m68000=	m68k
ARCHDIRS.sparc64=	sparc
ARCHDIRS.x86_64=	x86
MACHDIRS.sun2=		sun68k

machine::
.if ${MACHINE_CPU} == "arm"
	ln -sf ${S}/arch/${MACHINE_CPU}/include machine
.else
	ln -sf ${S}/arch/${MACHINE}/include machine
.endif
.if !empty(ARCHDIRS.${MACHINE_ARCH})
.for d in ${ARCHDIRS.${MACHINE_ARCH}}
	ln -sf ${S}/arch/${d}/include ${d}
.endfor
.endif
.if !empty(MACHDIRS.${MACHINE})
.for d in ${MACHDIRS.${MACHINE}}
	ln -sf ${S}/arch/${d}/include ${d}
.endfor
.endif
	ln -sf ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}

${OBJS}: machine

a35 13

lib${LIB}.o:: ${OBJS}
	@@echo building standard ${LIB} library
	@@rm -f lib${LIB}.o
	@@${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}`

lib${LIB}.po:: ${POBJS}
	@@echo building profiled ${LIB} library
	@@rm -f lib${LIB}.po
	@@${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}`

showsources: ${SRCS}
	@@echo ${.ALLSRC}
@


1.3
log
@Add LIBISPRIVATE?=yes
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2013/08/20 17:41:58 matt Exp $
a11 6
MKDEBUGLIB:=    no
MKLINT:=        no
MKPICINSTALL:=  no
MKPIC:=         no
MKPROFILE:=     no

d30 6
d42 10
@


1.2
log
@remove some dead rules.
Use ln -sf
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2013/08/20 17:35:41 matt Exp $
d9 1
@


1.1
log
@Make libkern.a for standalone problems and install it into ./usr/lib
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.gzboot,v 1.24 2013/08/15 21:41:09 matt Exp $
d32 1
a32 1
realdepend realall: machine
d36 6
a41 3
	-rm -f ${MACHINE_CPU} machine
	ln -s ${S}/arch/${MACHINE}/include machine
	ln -s ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
a55 5
cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

@

