head	1.19;
access;
symbols
	perseant-exfatfs-base-20250801:1.19
	perseant-exfatfs-base-20240630:1.19
	perseant-exfatfs:1.19.0.48
	perseant-exfatfs-base:1.19
	cjep_sun2x:1.19.0.46
	cjep_sun2x-base:1.19
	cjep_staticlib_x-base1:1.19
	cjep_staticlib_x:1.19.0.44
	cjep_staticlib_x-base:1.19
	phil-wifi-20200421:1.19
	phil-wifi-20200411:1.19
	phil-wifi-20200406:1.19
	pgoyette-compat-merge-20190127:1.19
	pgoyette-compat-20190127:1.19
	pgoyette-compat-20190118:1.19
	pgoyette-compat-1226:1.19
	pgoyette-compat-1126:1.19
	pgoyette-compat-1020:1.19
	pgoyette-compat-0930:1.19
	pgoyette-compat-0906:1.19
	pgoyette-compat-0728:1.19
	pgoyette-compat-0625:1.19
	pgoyette-compat-0521:1.19
	pgoyette-compat-0502:1.19
	pgoyette-compat-0422:1.19
	pgoyette-compat-0415:1.19
	pgoyette-compat-0407:1.19
	pgoyette-compat-0330:1.19
	pgoyette-compat-0322:1.19
	pgoyette-compat-0315:1.19
	pgoyette-compat:1.19.0.42
	pgoyette-compat-base:1.19
	perseant-stdc-iso10646:1.19.0.40
	perseant-stdc-iso10646-base:1.19
	prg-localcount2-base3:1.19
	prg-localcount2-base2:1.19
	prg-localcount2-base1:1.19
	prg-localcount2:1.19.0.38
	prg-localcount2-base:1.19
	pgoyette-localcount-20170426:1.19
	bouyer-socketcan-base1:1.19
	pgoyette-localcount-20170320:1.19
	bouyer-socketcan:1.19.0.36
	bouyer-socketcan-base:1.19
	pgoyette-localcount-20170107:1.19
	pgoyette-localcount-20161104:1.19
	localcount-20160914:1.19
	pgoyette-localcount-20160806:1.19
	pgoyette-localcount-20160726:1.19
	pgoyette-localcount:1.19.0.34
	pgoyette-localcount-base:1.19
	netbsd-5-2-3-RELEASE:1.19
	netbsd-5-1-5-RELEASE:1.19
	yamt-pagecache-base9:1.19
	yamt-pagecache-tag8:1.19
	tls-earlyentropy:1.19.0.30
	tls-earlyentropy-base:1.19
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.19
	riastradh-drm2-base3:1.19
	netbsd-5-2-2-RELEASE:1.19
	netbsd-5-1-4-RELEASE:1.19
	netbsd-5-2-1-RELEASE:1.19
	netbsd-5-1-3-RELEASE:1.19
	agc-symver:1.19.0.32
	agc-symver-base:1.19
	tls-maxphys-base:1.19
	yamt-pagecache-base8:1.19
	netbsd-5-2:1.19.0.28
	yamt-pagecache-base7:1.19
	netbsd-5-2-RELEASE:1.19
	netbsd-5-2-RC1:1.19
	yamt-pagecache-base6:1.19
	yamt-pagecache-base5:1.19
	yamt-pagecache-base4:1.19
	netbsd-5-1-2-RELEASE:1.19
	netbsd-5-1-1-RELEASE:1.19
	yamt-pagecache-base3:1.19
	yamt-pagecache-base2:1.19
	yamt-pagecache:1.19.0.26
	yamt-pagecache-base:1.19
	bouyer-quota2-nbase:1.19
	bouyer-quota2:1.19.0.24
	bouyer-quota2-base:1.19
	matt-nb5-pq3:1.19.0.22
	matt-nb5-pq3-base:1.19
	netbsd-5-1:1.19.0.20
	netbsd-5-1-RELEASE:1.19
	netbsd-5-1-RC4:1.19
	netbsd-5-1-RC3:1.19
	netbsd-5-1-RC2:1.19
	netbsd-5-1-RC1:1.19
	netbsd-5-0-2-RELEASE:1.19
	netbsd-5-0-1-RELEASE:1.19
	jym-xensuspend-nbase:1.19
	netbsd-5-0:1.19.0.18
	netbsd-5-0-RELEASE:1.19
	netbsd-5-0-RC4:1.19
	netbsd-5-0-RC3:1.19
	netbsd-5-0-RC2:1.19
	jym-xensuspend:1.19.0.16
	jym-xensuspend-base:1.19
	netbsd-5-0-RC1:1.19
	netbsd-5:1.19.0.14
	netbsd-5-base:1.19
	yamt-pf42-base4:1.19
	yamt-pf42-base3:1.19
	hpcarm-cleanup-nbase:1.19
	yamt-pf42-base2:1.19
	yamt-pf42:1.19.0.12
	yamt-pf42-base:1.19
	mjf-devfs2:1.19.0.10
	mjf-devfs2-base:1.19
	keiichi-mipv6:1.19.0.8
	keiichi-mipv6-base:1.19
	mjf-devfs:1.19.0.6
	mjf-devfs-base:1.19
	cube-autoconf:1.19.0.4
	cube-autoconf-base:1.19
	hpcarm-cleanup:1.19.0.2
	hpcarm-cleanup-base:1.19
	netbsd-1-6-PATCH002-RELEASE:1.18
	netbsd-1-6-PATCH002:1.18
	netbsd-1-6-PATCH002-RC4:1.18
	netbsd-1-6-PATCH002-RC3:1.18
	netbsd-1-6-PATCH002-RC2:1.18
	netbsd-1-6-PATCH002-RC1:1.18
	netbsd-1-6-PATCH001:1.18
	netbsd-1-6-PATCH001-RELEASE:1.18
	netbsd-1-6-PATCH001-RC3:1.18
	netbsd-1-6-PATCH001-RC2:1.18
	netbsd-1-6-PATCH001-RC1:1.18
	netbsd-1-6-RELEASE:1.18
	netbsd-1-6-RC3:1.18
	netbsd-1-6-RC2:1.18
	netbsd-1-6-RC1:1.18
	netbsd-1-6:1.18.0.2
	netbsd-1-6-base:1.18
	netbsd-1-5-PATCH003:1.2.2.3
	netbsd-1-5-PATCH002:1.2.2.2
	netbsd-1-5-PATCH001:1.2.2.2
	netbsd-1-5-RELEASE:1.2.2.2
	netbsd-1-5-BETA2:1.2.2.2
	netbsd-1-5-BETA:1.2.2.2
	netbsd-1-5:1.2.0.2;
locks; strict;
comment	@# @;


1.19
date	2002.10.14.16.20.42;	author lukem;	state dead;
branches;
next	1.18;

1.18
date	2002.05.08.21.44.56;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2002.05.02.18.02.37;	author lukem;	state Exp;
branches;
next	1.16;

1.16
date	2002.04.26.15.50.33;	author lukem;	state Exp;
branches;
next	1.15;

1.15
date	2002.04.13.00.07.46;	author lukem;	state Exp;
branches;
next	1.14;

1.14
date	2002.04.12.23.54.28;	author tv;	state Exp;
branches;
next	1.13;

1.13
date	2002.04.12.23.47.09;	author tv;	state Exp;
branches;
next	1.12;

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

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

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

1.9
date	2002.04.11.12.17.16;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	2002.03.05.20.29.36;	author thorpej;	state Exp;
branches;
next	1.7;

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

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

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

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

1.3
date	2001.06.24.12.09.04;	author veego;	state Exp;
branches;
next	1.2;

1.2
date	2000.09.28.13.05.37;	author fvdl;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2000.09.27.16.04.15;	author fvdl;	state Exp;
branches;
next	;

1.2.2.1
date	2000.09.28.13.05.37;	author fvdl;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2000.10.09.13.43.29;	author fvdl;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2002.02.09.20.26.48;	author he;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Merge kernel-ramdisk & kernel-rescue into instkernel, now that
../../common/Makefile.mdset supports building multiple copies of the
same kernel (as long as they're to separate filenames).
Now there's no need to set FLOPPYKERNDIR, as it now defaults to instkernel.
@
text
@#	$NetBSD: Makefile,v 1.18 2002/05/08 21:44:56 lukem Exp $

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

#	create ${RAMDISK_*} variables
#
RAMDISKS=	RAMDISK_S	ramdisk-rescuesmall	\
		RAMDISK_T	ramdisk-rescuetiny

.for V F in ${RAMDISKS}
${V}DIR!=	cd ${.CURDIR}/../${F} && ${PRINTOBJDIR}
${V}=		${${V}DIR}/${F}.fs
.endfor

MDSETTARGETS=		INSTALL_SMALL	${RAMDISK_S}	netbsd.RESCUE_SMALL \
			INSTALL_TINY	${RAMDISK_T}	netbsd.RESCUE_TINY
MDSET_RELEASEDIR=	binary/kernel

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

.include <bsd.prog.mk>
@


1.18
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.17 2002/05/02 18:02:37 lukem Exp $
@


1.17
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.16 2002/04/26 15:50:33 lukem Exp $
d16 2
a17 3
MDSETTARGETS=	INSTALL_SMALL	${RAMDISK_S}	netbsd.RESCUE_SMALL	\
		INSTALL_TINY	${RAMDISK_T}	netbsd.RESCUE_TINY

@


1.16
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2002/04/13 00:07:46 lukem Exp $
d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d19 1
a19 1
MDSETDIR=	binary/kernel
@


1.15
log
@Use 3rd argument of MDSETTARGETS to change name of the rescue kernels
from netbsd.INSTALL_{SMALL,TINY} to netbsd.RESCUE_{SMALL,TINY}.
Go back to installing copies of these in the release directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2002/04/12 23:54:28 tv Exp $
d4 1
a4 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.14
log
@Actually, this reuses the same kernel names, so we can't simply install
to the RELEASEDIR here.  Use an empty "release" rule instead.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2002/04/12 23:47:09 tv Exp $
d16 2
a17 2
MDSETTARGETS=	INSTALL_SMALL	${RAMDISK_S}	-	\
		INSTALL_TINY	${RAMDISK_T}	-
d19 1
a19 1
release:	# do nothing
@


1.13
log
@Define MDSETDIR so "make release" DTRT.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/04/12 13:39:46 lukem Exp $
d19 1
a19 1
MDSETDIR=	binary/kernel
@


1.12
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.11 2002/04/12 05:33:59 lukem Exp $
d18 2
@


1.11
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.10 2002/04/11 15:34:55 lukem Exp $
d16 2
a17 2
TARGETS=	INSTALL_SMALL	${RAMDISK_S}	\
		INSTALL_TINY	${RAMDISK_T}
@


1.10
log
@convert to using distrib/common/Makefile.mdset
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/04/11 12:17:16 lukem Exp $
d20 2
@


1.9
log
@Yet Another Cleanup:
- factor more stuff into common/Makefile.*
- use NDWO makefile layout
- don't always rebuild bootfloppy-* and fdset-* stuff. (mmm, dependencies)
- add .WAIT sync in top level Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2002/03/05 20:29:36 thorpej Exp $
d4 1
d16 2
a17 11
#	create netbsd.*.gz targets
#
#	TARGETS is a list of:
#		KERNEL_name	fs-image	"nocluster" disables clustering
#
TARGETS=	INSTALL_SMALL	${RAMDISK_S}	-	\
		INSTALL_TINY	${RAMDISK_T}	-

release:

.include "${.CURDIR}/../common/Makefile.mdset"
d19 1
@


1.8
log
@Use ${PRINTOBJDIR}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2002/02/26 22:54:05 lukem Exp $
a2 4
TOP=	${.CURDIR}/..

.include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk>
d11 1
a11 1
${V}DIR!=	cd ${TOP}/${F} && ${PRINTOBJDIR}
d18 1
a18 1
#		KERNEL_name	fs-image
d20 2
a21 2
TARGETS=	INSTALL_SMALL	${RAMDISK_S}	\
		INSTALL_TINY	${RAMDISK_T}
d23 1
a23 14
.for K R in ${TARGETS}
KERNELS+=	netbsd.${K}.gz
KERNELSYMS+=	netbsd.${K}.symbols
netbsd.${K}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${R}
	@@echo "Populating ${K} with ${R}"
	cp ${KERNOBJDIR}/${K}/netbsd netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${R}
	${NM} netbsd.tmp > netbsd.${K}.symbols
	${STRIP} netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}
.endfor

CLEANFILES+=	netbsd.tmp ${KERNELS} ${KERNELSYMS}
d25 1
a25 5
#	do the work
#
realall: ${KERNELS}

release:
a26 1
.include <bsd.prog.mk>
@


1.7
log
@use CLEANFILES as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/02/08 04:40:51 lukem Exp $
d15 2
a16 3
${V}!=		cd ${TOP}/${F}/; \
	        printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/${F}.fs\n" | \
		${MAKE} -s -f-
@


1.6
log
@set TOP to ${.CURDIR}/.., and use that
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/02/03 16:22:24 lukem Exp $
d41 2
d45 1
a45 1
all: ${KERNELS}
a48 4
clean cleandir distclean:
	rm -f *.core netbsd.tmp ${KERNELS} ${KERNELSYMS}

.include <bsd.obj.mk>
@


1.5
log
@Major overhaul, to enable unprivileged (cross) building, removing the
requirement to build as root on a system with vnconfig.


Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate

Remove now-obsolete:
	list2sh.awk runlist.sh bootfloppy-common/list

Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more

Rename  bootfloppy-common/Makefile.inc  to  common/Makefile.bootfloppy
and	fdset-common/Makefile.inc       to  common/Makefile.fdset
This uses makefs instead of vnconfig and disklabel, thus removing the
need for root privileges to build these floppies..

Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile.
Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and
${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things.

Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which
detects whether it's an install or rescue profile based on the existance
of /sysinst.  Remove /dev generation code as init(8) now does that for us.

Migrate common parts of */list to a shared common/list.ramdisk.
Convert ramdisk-*/list to new format used by distrib/common/parselist.awk
Don't bother running pwd_mkdb now that libhack's getpwent parses
/etc/master.passwd instead of /etc/passwd.

Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a
new full-path-style specfile.

Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated
from ramdisk-*/list by parselist.awk.

Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini.

Remove unused ramdisk-{small,tiny}/disktab.preinstall.

Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated
targets.

ramdisk-*/Makefile: convert to using common/Makefile.ramdisk

Remove unused ramdisk-*/dot.hdprofile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2002/01/27 15:31:57 lukem Exp $
d3 3
a5 1
.include "../Makefile.inc"
d15 1
a15 1
${V}!=		cd ${.CURDIR}/../${F}/; \
@


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/06/24 12:09:04 veego Exp $
d3 1
a3 3
TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
d7 8
a14 6
MDEC=		${DESTDIR}/usr/mdec
MDSETIMAGE?=	${DESTDIR}/usr/sbin/mdsetimage
STRIP?=		strip

RAMDISK_T!=	cd ${.CURDIR}/../ramdisk-rescuetiny/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/ramdisk-rescuetiny.fs\n" | \
d16 1
a16 11
RAMDISK_S!=	cd ${.CURDIR}/../ramdisk-rescuesmall/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/ramdisk-rescuesmall.fs\n" | \
		${MAKE} -s -f-

netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
	cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_T}
	nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
	${STRIP} netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}
d18 16
a33 4
netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S}
	cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${RAMDISK_S}
	nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols
d37 1
d39 2
a40 2
KERNELS=netbsd.INSTALL_TINY.gz netbsd.INSTALL_SMALL.gz

d46 1
a46 2
	rm -f *.core ${KERNELS} netbsd.INSTALL_TINY.symbols \
		netbsd.INSTALL_SMALL.symbols
d49 1
a49 1
.include <bsd.subdir.mk>
@


1.3
log
@Remove also the kernel symbols files during a make clean and co.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/09/28 13:05:37 fvdl Exp $
d10 1
d22 1
a22 1
	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T}
d30 1
a30 1
	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_S}
@


1.2
log
@Add empty 'release' target. The kernels have been made and copied in the
kernel-ramdisk subdir already.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2000/09/27 16:04:15 fvdl Exp $
d42 2
a43 1
	rm -f *.core ${KERNELS}
@


1.2.2.1
log
@file Makefile was added on branch netbsd-1-5 on 2000-10-09 13:43:29 +0000
@
text
@d1 45
@


1.2.2.2
log
@Sync with -current. Approved by jhawk. Original commit message:

Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@a0 45
#	$NetBSD: Makefile,v 1.2.2.1 2000/10/09 13:43:29 fvdl Exp $

TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
.include <bsd.kernobj.mk>
.include <bsd.own.mk>

MDEC=		${DESTDIR}/usr/mdec
STRIP?=		strip

RAMDISK_T!=	cd ${.CURDIR}/../ramdisk-rescuetiny/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/ramdisk-rescuetiny.fs\n" | \
		${MAKE} -s -f-
RAMDISK_S!=	cd ${.CURDIR}/../ramdisk-rescuesmall/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/ramdisk-rescuesmall.fs\n" | \
		${MAKE} -s -f-

netbsd.INSTALL_TINY.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_TINY/netbsd ${RAMDISK_T}
	cp ${KERNOBJDIR}/INSTALL_TINY/netbsd netbsd.tmp
	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_T}
	nm netbsd.tmp > netbsd.INSTALL_TINY.symbols
	${STRIP} netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

netbsd.INSTALL_SMALL.gz: .NOTMAIN ${KERNOBJDIR}/INSTALL_SMALL/netbsd ${RAMDISK_S}
	cp ${KERNOBJDIR}/INSTALL_SMALL/netbsd netbsd.tmp
	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK_S}
	nm netbsd.tmp > netbsd.INSTALL_SMALL.symbols
	${STRIP} netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

KERNELS=netbsd.INSTALL_TINY.gz netbsd.INSTALL_SMALL.gz

all: ${KERNELS}

release:

clean cleandir distclean:
	rm -f *.core ${KERNELS}

.include <bsd.obj.mk>
.include <bsd.subdir.mk>
@


1.2.2.3
log
@Apply patch (requested by windsor):
  Remove *.symbols files in ``make clean''.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.2.2 2002/02/09 20:26:48 he Exp $
a35 1
KERNELSYMS=	netbsd.INSTALL_TINY.symbols netbsd.INSTALL_SMALL.symbols
d42 1
a42 1
	rm -f *.core ${KERNELS} ${KERNELSYMS}
@


1.1
log
@Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/06/12 18:51:15 he Exp $
d38 2
@
