Home | History | Annotate | Line # | Download | only in ramdisk
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 1995/10/08 23:07:53 gwr Exp $
      2 
      3 TOP=		${.CURDIR}/..
      4 
      5 # This include just sets REV=XX
      6 .include "${TOP}/Makefile.inc"
      7 
      8 IMAGE=	ramdisk
      9 CBIN=	rd_bin
     10 
     11 TREE=	${TOP}/common/${IMAGE}.tree
     12 
     13 LISTS=	${TOP}/common/${CBIN}.list \
     14 	${TOP}/common/${IMAGE}.list
     15 
     16 MOUNT_POINT=	/mnt
     17 DISKTYPE=	rdroot
     18 BDEV=		/dev/rd0
     19 CDEV?=		/dev/rd0
     20 
     21 KERNEL=${SRCSYSDIR}/arch/sun3/compile/RAMDISK/netbsd
     22 
     23 # These are all the parameters for the root fs: (256K)
     24 NBLKS=		512
     25 # args: old fmt, minfree, opt, b/i  trks, sects, cpg
     26 NEWFSARGS= -O -m 0 -o space -i 2048 -t 2 -u 16 -c 16
     27 
     28 CLEANFILES+= rdsetroot
     29 
     30 .PRECIOUS: ${IMAGE}.fs
     31 
     32 netbsd-rd : rdsetroot ${IMAGE}.fs
     33 	cp ${KERNEL} netbsd-tmp
     34 	./rdsetroot  netbsd-tmp < ${IMAGE}.fs
     35 	-mv -f netbsd-tmp $@
     36 
     37 rdsetroot: ${TOP}/common/rdsetroot.c
     38 	$(CC) -o $@ -DDEBUG ${TOP}/common/rdsetroot.c
     39 
     40 ${IMAGE}.fs: ${CBIN} do_mount do_files do_umount
     41 	dd if=${CDEV} of=$@ count=${NBLKS}
     42 
     43 # Rules used making ${IMAGE}.fs (do_*)
     44 .include "${TOP}/common/Make.fsimage"
     45 
     46 # Rules for making ${CBIN} ...
     47 .include "${TOP}/common/Make.crunch"
     48 
     49 ${CBIN} : libhack.o
     50 
     51 # Use stubs to eliminate some large stuff from libc
     52 HACKSRC=${TOP}/../utils/libhack
     53 .include "${HACKSRC}/Makefile.inc"
     54 
     55 clean cleandir:
     56 	echo rm -f core ${CLEANFILES} *.o
     57 
     58 # Standard rules needed by the above...
     59 .include <bsd.obj.mk>
     60