# $NetBSD: Makefile,v 1.18 2002/02/04 11:03:08 tsutsui Exp $ TOP= ${.CURDIR}/.. .include "${TOP}/Makefile.inc" IMAGE= ramdisk.fs CBIN= ramdiskbin MOUNT_POINT?= /mnt # DEV/RDEV file system device VND?= vnd1 VND_DEV= /dev/${VND}a VND_RDEV= /dev/r${VND}a MDEC= ${DESTDIR}/usr/mdec LISTS= list CRUNCHCONF= ${CBIN}.conf MTREECONF= mtree.conf CRUNCHGEN?= crunchgen MTREE?= mtree RAMDISKSIZE= 1440k DISKTYPE= floppyinstfs all: ${CBIN} dd if=/dev/zero of=${IMAGE} bs=${RAMDISKSIZE} count=1 vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE} disklabel -rw ${VND} ${DISKTYPE} newfs -B be -m 0 -o space -i 4096 -c 80 ${VND_RDEV} mount ${VND_DEV} ${MOUNT_POINT} ${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -u TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \ KERNOBJDIR=${KERNOBJDIR} DESTDIR=${DESTDIR} \ TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS} @echo "" @df -i ${MOUNT_POINT} @echo "" umount ${MOUNT_POINT} vnconfig -u ${VND} unconfig: -umount -f ${MOUNT_POINT} -vnconfig -u ${VND} -rm -f ${IMAGE} ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} ${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c libhack.o ${MAKE} -f ${CBIN}.mk all HACKSRC=${TOP}/../../utils/libhack .include "${HACKSRC}/Makefile.inc" # turn off small gethostby* temporarily HACKOBJS:= ${HACKOBJS:Ngethost.o} release: clean cleandir distclean: if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; rm -f ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache rm -f *.core *.o *.cro *.c .include .include .include