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