1# $NetBSD: Makefile,v 1.68 2009/09/20 19:49:09 abs Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6.include <bsd.kernobj.mk> 7 8ARCHDIR= ${.CURDIR}/../${MACHINE}/miniroot 9 10CRUNCHBIN= instbin 11CRUNCHGEN_FLAGS= -d "${DBG}" 12LISTS= ${.CURDIR}/list ${ARCHDIR}/list 13MTREECONF= ${DISTRIBDIR}/common/mtree.common 14IMAGE= miniroot.fs 15IMAGEDEPENDS= ${CRUNCHBIN} install.sub install.sh upgrade.sh \ 16 ${KERNSRCDIR}/conf/osrelease.sh \ 17 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \ 18 ${NETBSDSRCDIR}/etc/netconfig ${DISTRIBDIR}/common/protocols \ 19 ${DISTRIBDIR}/common/services 20PARSELISTENV= ARCHDIR=${ARCHDIR:Q} \ 21 DISTRIBREV=${DISTRIBREV:Q} \ 22 DISTRIBVER=${DISTRIBVER:Q} \ 23 KERNOBJDIR=${KERNOBJDIR:Q} 24 25IMAGE_RELEASEDIR= installation/miniroot 26 27.include "${ARCHDIR}/Makefile.inc" 28 29# Use stubs to eliminate some large stuff from libc 30HACKSRC= ${DISTRIBDIR}/utils/libhack 31.include "${HACKSRC}/Makefile.inc" 32${CRUNCHBIN}: libhack.o 33 34.include "${DISTRIBDIR}/common/Makefile.crunch" 35.if defined(MAKEDEVTARGETS) 36.include "${DISTRIBDIR}/common/Makefile.makedev" 37.endif 38.include "${DISTRIBDIR}/common/Makefile.image" 39 40release:: check_RELEASEDIR .WAIT ${IMAGE}.gz 41 ${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz 42 43.include <bsd.prog.mk> 44