1 # $NetBSD: Makefile,v 1.4.2.1 1999/04/29 20:11:09 perry Exp $ 2 3 TOP= ${.CURDIR}/.. 4 5 .include "${TOP}/Makefile.inc" 6 IMAGE= ramdisk.fs 7 8 CBIN= ramdiskbin 9 10 MOUNT_POINT?= /mnt 11 # DEV/RDEV file system device, CDEV/RDEV vnconfig device 12 VND?= vnd0 13 VND_DEV= /dev/${VND}a 14 VND_RDEV= /dev/r${VND}a 15 VND_CDEV= /dev/${VND}c 16 VND_CRDEV= /dev/r${VND}c 17 IMAGE?= xxx.fs 18 MDEC= ${DESTDIR}/usr/mdec 19 20 LISTS= list 21 CRUNCHCONF= ${CBIN}.conf 22 MTREE= mtree.conf 23 24 all: ${CBIN} 25 dd if=/dev/zero of=${IMAGE} count=6144 26 vnconfig -v -c ${VND_CDEV} ${IMAGE} 27 # disklabel -rw ${VND_CDEV} ${DISKTYPE} 28 newfs -B le -m 0 -o space -i 5120 ${VND_RDEV} 29 mount ${VND_DEV} ${MOUNT_POINT} 30 mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u 31 TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ 32 TARGDIR=${MOUNT_POINT} sh ${TOP}/src/runlist.sh ${.CURDIR}/${LISTS} 33 @echo chdir '$${.CURDIR}/../../../notes/alpha; make INSTALL.more' 34 @chdir ${.CURDIR}/../../../notes/alpha; make INSTALL.more 35 cp `chdir ${.CURDIR}/../../../notes/alpha; make echomore` \ 36 ${MOUNT_POINT} 37 @echo "" 38 @df -i ${MOUNT_POINT} 39 @echo "" 40 umount ${MOUNT_POINT} 41 vnconfig -u ${VND_CDEV} 42 43 unconfig: 44 -umount -f ${MOUNT_POINT} 45 -vnconfig -u ${VND_DEV} 46 -/bin/rm -f ${IMAGE} 47 48 ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} 49 crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} 50 51 ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c 52 make -f ${CBIN}.mk all 53 54 clean cleandir distclean: 55 /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.lo *.c 56 57 .include <bsd.own.mk> 58 .include <bsd.obj.mk> 59 .include <bsd.subdir.mk> 60