Makefile revision 1.2
1#	$NetBSD: Makefile,v 1.2 1995/10/13 16:46:47 gwr Exp $
2
3TOP=		${.CURDIR}/..
4
5# This include just sets REV=XX
6.include "${TOP}/Makefile.inc"
7
8IMAGE=	miniroot
9CBIN=	mini_usr
10
11TREE=	${TOP}/common/${IMAGE}.tree
12
13LISTS=	${TOP}/common/mini_sbin.list \
14	${TOP}/common/mini_bin.list \
15	${TOP}/common/${CBIN}.list \
16	${TOP}/common/${IMAGE}.list
17
18MOUNT_POINT=	/mnt
19DISKTYPE=	miniroot
20BDEV=		/dev/sd2b
21CDEV=		/dev/rsd2b
22
23KERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd
24
25# These are all the parameters for the miniroot: (6MB)
26NBLKS=		12288
27# old format, minfree, opt,  b/i  trks, sects, cpg
28NEWFSARGS= -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16
29
30${IMAGE}.fs: ${CBIN} do_mount do_files do_bootxx do_kernel do_umount
31	dd if=${CDEV} of=$@ bs=64b count=`expr ${NBLKS} / 64`
32
33# Only do these for the miniroot, not the ramdisk.
34do_bootxx:
35	sync ; sleep 1 ; sync
36	cd ${MOUNT_POINT} ;\
37	  usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV}
38
39# Copy the generic kernel
40do_kernel:
41	cp -p ${KERNEL} ${MOUNT_POINT}/netbsd
42
43# Do not delete this if I change my mind and kill make...
44.PRECIOUS: ${IMAGE}.fs
45
46# Rules used making ${IMAGE}.fs (do_*)
47.include "${TOP}/common/Make.fsimage"
48
49# Rules for making ${CBIN} ...
50.include "${TOP}/common/Make.crunch"
51
52clean cleandir:
53	-rm -f a.out core *.core *.o
54	-rm -f ${CLEANFILES}
55
56# Standard rules needed by the above...
57.include <bsd.obj.mk>
58