1 # $NetBSD: Makefile.inc,v 1.22 2003/10/26 07:25:33 lukem Exp $
3 # TOP is assumed to be defined by Makefile including this one.
6 COMMONDIR= ${TOP}/inst-common
11 VND_RDEV= /dev/r${VND}c
12 IMAGE?= xxx-${DISTRIBREV}.fs
13 MDEC= ${DESTDIR}/usr/mdec
15 LISTS= ${COMMONDIR}/list ${.CURDIR}/list
16 CRUNCHCONF= ${COMMONDIR}/${CBIN}.conf
17 MTREECONF= ${COMMONDIR}/mtree.conf
22 dd if=/dev/zero of=${IMAGE} bs=128k count=32
23 vnconfig -t ${DISKTYPE} -v -c ${VND_DEV} ${IMAGE}
24 installboot ${MDEC}/xxboot ${VND_RDEV}
25 newfs -B be -c 64 -m 0 -o space ${VND_RDEV} ${DISKTYPE}
26 mount -t ffs ${VND_DEV} ${MOUNT_POINT}
27 ${TOOL_MTREE} -def ${MTREECONF} -p ${MOUNT_POINT}/ -u
28 TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
29 KERNOBJDIR=${KERNOBJDIR} TARGDIR=${MOUNT_POINT} ${HOST_SH} \
30 ${NETBSDSRCDIR}/distrib/common/runlist.sh ${LISTS}
35 vnconfig -u ${VND_DEV}
38 -umount -f ${MOUNT_POINT}
39 -vnconfig -u ${VND_DEV}
42 ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
43 ${TOOL_CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${CRUNCHCONF}
45 ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
46 ${MAKE} -f ${CBIN}.mk all
48 clean cleandir distclean:
49 /bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
52 .include <bsd.subdir.mk>