head	1.13;
access;
symbols
	perseant-exfatfs-base-20261102:1.13
	perseant-exfatfs-base-20250801:1.13
	perseant-exfatfs-base-20240630:1.13
	perseant-exfatfs:1.13.0.48
	perseant-exfatfs-base:1.13
	cjep_sun2x:1.13.0.46
	cjep_sun2x-base:1.13
	cjep_staticlib_x-base1:1.13
	cjep_staticlib_x:1.13.0.44
	cjep_staticlib_x-base:1.13
	phil-wifi-20200421:1.13
	phil-wifi-20200411:1.13
	phil-wifi-20200406:1.13
	pgoyette-compat-merge-20190127:1.13
	pgoyette-compat-20190127:1.13
	pgoyette-compat-20190118:1.13
	pgoyette-compat-1226:1.13
	pgoyette-compat-1126:1.13
	pgoyette-compat-1020:1.13
	pgoyette-compat-0930:1.13
	pgoyette-compat-0906:1.13
	pgoyette-compat-0728:1.13
	pgoyette-compat-0625:1.13
	pgoyette-compat-0521:1.13
	pgoyette-compat-0502:1.13
	pgoyette-compat-0422:1.13
	pgoyette-compat-0415:1.13
	pgoyette-compat-0407:1.13
	pgoyette-compat-0330:1.13
	pgoyette-compat-0322:1.13
	pgoyette-compat-0315:1.13
	pgoyette-compat:1.13.0.42
	pgoyette-compat-base:1.13
	perseant-stdc-iso10646:1.13.0.40
	perseant-stdc-iso10646-base:1.13
	prg-localcount2-base3:1.13
	prg-localcount2-base2:1.13
	prg-localcount2-base1:1.13
	prg-localcount2:1.13.0.38
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	bouyer-socketcan:1.13.0.36
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	pgoyette-localcount-20161104:1.13
	localcount-20160914:1.13
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.34
	pgoyette-localcount-base:1.13
	netbsd-5-2-3-RELEASE:1.13
	netbsd-5-1-5-RELEASE:1.13
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.13
	tls-earlyentropy:1.13.0.30
	tls-earlyentropy-base:1.13
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	netbsd-5-2-2-RELEASE:1.13
	netbsd-5-1-4-RELEASE:1.13
	netbsd-5-2-1-RELEASE:1.13
	netbsd-5-1-3-RELEASE:1.13
	agc-symver:1.13.0.32
	agc-symver-base:1.13
	tls-maxphys-base:1.13
	yamt-pagecache-base8:1.13
	netbsd-5-2:1.13.0.28
	yamt-pagecache-base7:1.13
	netbsd-5-2-RELEASE:1.13
	netbsd-5-2-RC1:1.13
	yamt-pagecache-base6:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-5-1-2-RELEASE:1.13
	netbsd-5-1-1-RELEASE:1.13
	yamt-pagecache-base3:1.13
	yamt-pagecache-base2:1.13
	yamt-pagecache:1.13.0.26
	yamt-pagecache-base:1.13
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.24
	bouyer-quota2-base:1.13
	matt-nb5-pq3:1.13.0.22
	matt-nb5-pq3-base:1.13
	netbsd-5-1:1.13.0.20
	netbsd-5-1-RELEASE:1.13
	netbsd-5-1-RC4:1.13
	netbsd-5-1-RC3:1.13
	netbsd-5-1-RC2:1.13
	netbsd-5-1-RC1:1.13
	netbsd-5-0-2-RELEASE:1.13
	netbsd-5-0-1-RELEASE:1.13
	jym-xensuspend-nbase:1.13
	netbsd-5-0:1.13.0.18
	netbsd-5-0-RELEASE:1.13
	netbsd-5-0-RC4:1.13
	netbsd-5-0-RC3:1.13
	netbsd-5-0-RC2:1.13
	jym-xensuspend:1.13.0.16
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.13
	netbsd-5:1.13.0.14
	netbsd-5-base:1.13
	yamt-pf42-base4:1.13
	yamt-pf42-base3:1.13
	hpcarm-cleanup-nbase:1.13
	yamt-pf42-base2:1.13
	yamt-pf42:1.13.0.12
	yamt-pf42-base:1.13
	mjf-devfs2:1.13.0.10
	mjf-devfs2-base:1.13
	keiichi-mipv6:1.13.0.8
	keiichi-mipv6-base:1.13
	mjf-devfs:1.13.0.6
	mjf-devfs-base:1.13
	cube-autoconf:1.13.0.4
	cube-autoconf-base:1.13
	hpcarm-cleanup:1.13.0.2
	hpcarm-cleanup-base:1.13
	netbsd-1-5-PATCH003:1.2
	netbsd-1-5-PATCH002:1.2
	netbsd-1-5-PATCH001:1.2
	netbsd-1-5-RELEASE:1.2
	netbsd-1-5-BETA2:1.2
	netbsd-1-5-BETA:1.2
	netbsd-1-5-ALPHA2:1.2
	netbsd-1-5:1.2.0.2
	netbsd-1-5-base:1.2;
locks; strict;
comment	@# @;


1.13
date	2002.05.21.16.33.41;	author tsutsui;	state dead;
branches;
next	1.12;

1.12
date	2002.05.08.21.44.57;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2002.05.02.18.02.44;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	2002.04.26.15.50.41;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2002.04.13.18.23.32;	author tsutsui;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.12.13.39.47;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2002.04.12.05.34.00;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2002.04.11.15.34.57;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2002.03.17.21.34.38;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2001.10.21.23.23.21;	author jmc;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.07.08.39.34;	author tsutsui;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.17.18.37.44;	author tsutsui;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.11.11.35.20;	author tsutsui;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Rename dir ramdisk-kernel/ -> instkernel/
@
text
@#	$NetBSD: Makefile,v 1.12 2002/05/08 21:44:57 lukem Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK=	${RAMDISKDIR}/ramdisk.fs

MDSETTARGETS=		INSTALL ${RAMDISK} -
MDSET_RELEASEDIR=	binary/kernel

.include "${DISTRIBDIR}/common/Makefile.mdset"

.include <bsd.prog.mk>
@


1.12
log
@- whitespace consistency cleanup
- build (mdset/nm/strip) into ${filename} as one rule, and move ${filename}.gz
  into separate rule
- rename MDSET.${filename}.nosymbols -> MDSET_NOSYMBOLS.${filename}
- rename MDSET.${filename}.post -> MDSET_POST.${filename}, and don't do
  suffix handling here
- rework suffix handling:
	- rename MDSET.${filename}.suffixes -> MDSET_SUFFIXES.${filename},
	  and change from list of suffixes to list of "suffix cmdtobuildsuffix",
  	  where cmdtobuildsuffix is the name of the variable containing the
	  command to build ${filename}.${suffix} (available as "${.TARGET}").
	- for each ${filename}.${suffix}, depend upon ${filename} and use
	  ${cmdtobuildsuffix} to create the former.
	- add separate ${filename}.${suffix}.gz rule
- mipsco & pmax: rename "install.gz" to "netbsd-INSTALL.gz", for
  consistency and so the target to build the mdset kernel doesn't get
  confused with general "install" target
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2002/05/02 18:02:44 lukem Exp $
@


1.11
log
@yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2002/04/26 15:50:41 lukem Exp $
a7 1
MDSETTARGETS=	INSTALL ${RAMDISK} -
d9 1
@


1.10
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/04/13 18:23:32 tsutsui Exp $
d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d10 1
a10 1
MDSETDIR=	binary/kernel
@


1.9
log
@Fix FILENAME in MDSETTARGETS (netbsd.INSTALL.gz is required).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2002/04/12 13:39:47 lukem Exp $
d4 1
a4 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.8
log
@Makefile.mdset:
	replace
		TARGETS = KERNEL IMAGE [...]
	with
		MDTARGETS = KERNEL IMAGE FILENAME [...]
	If FILENAME is "-", use "netbsd.${KERNEL}" as the target filename

The rest:
	Update for new MDTARGETS syntax.  In some cases, the kernel
	name from the "old" method will be used to override the default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2002/04/12 05:34:00 lukem Exp $
d8 1
a8 1
MDSETTARGETS=	INSTALL ${RAMDISK} netbsd
@


1.7
log
@- don't pull in <bsd.prog.mk> in Makefile.mdset; do that in the caller instead
- renamed optional post-strip action variable from ${KERNEL}.post to
  netbsd.${KERNEL}.post
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/04/11 15:34:57 lukem Exp $
d8 1
a8 1
TARGETS=	INSTALL ${RAMDISK}
@


1.6
log
@convert to using distrib/common/Makefile.mdset
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/03/17 21:34:38 lukem Exp $
d8 1
a8 1
TARGETS=	INSTALL	 ${RAMDISK}
d13 2
@


1.5
log
@deprecate Makefile.inc in favor of including ../../Makefile.inc directly
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2001/10/21 23:23:21 jmc Exp $
a2 1
.include "${.CURDIR}/../../../Makefile.inc"
d4 1
a4 1
.include <bsd.kernobj.mk>
a5 1
KERN=		${KERNOBJDIR}/INSTALL/netbsd
d8 1
a8 1
KERNEL=		netbsd.INSTALL.gz
d10 1
a10 1
CLEANFILES+=	${KERNEL} netbsd.tmp netbsd.tmp.gz
d12 1
a12 13
all: ${KERNEL}

${KERNEL}: ${KERN} ${RAMDISK}
	cp ${KERN} netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

release: check_RELEASEDIR
	-mkdir -p ${RELEASEDIR}/binary/kernel
	cp -p ${KERNEL} ${RELEASEDIR}/binary/kernel

.include <bsd.prog.mk>
@


1.4
log
@Convert to using ${MDSETIMAGE}.

Provide a default value for $MDSETIMAGE and pull in bsd.own.mk to have
it overriden as needed for cross/-current builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2001/01/07 08:39:34 tsutsui Exp $
d3 2
a4 3
TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
a5 2
.include <bsd.own.mk>
.include <bsd.subdir.mk>
a12 1
MDSETIMAGE?=	mdsetimage
d14 1
a14 1
all:	${KERNEL}
d22 1
a22 6
.ifndef RELEASEDIR
release:
	@@echo set RELEASEDIR first!
	@@false
.else
release:
a24 4
.endif

clean cleandir distclean:
	rm -f *.core ${CLEANFILES}
d26 1
a26 1
.include <bsd.obj.mk>
@


1.3
log
@Use ${PRINTOBJDIR}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/06/17 18:37:44 tsutsui Exp $
d7 1
d16 1
d22 1
a22 1
	mdsetimage -v netbsd.tmp ${RAMDISK}
@


1.2
log
@Include bsd.subdir.mk first to pull in /etc/mk.conf (via bsd.own.mk).
Otherwise, ".ifndef RELEASEDIR" fails if RELEASEDIR is defined in mk.conf.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2000/06/11 11:35:20 tsutsui Exp $
d10 1
a10 3
.if !make(print-objdir)
RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${MAKE} print-objdir
.endif
@


1.1
log
@- Build an INSTALL kernel on the separate directory.
- Install an INSTALL kernel and boot.fs image to RELEASEDIR.
@
text
@d1 1
a1 1
#	$NetBSD$
d7 1
a39 1
.include <bsd.subdir.mk>
@

