1# $NetBSD: Makefile.images,v 1.8 2010/02/21 20:06:19 tsutsui Exp $ 2 3.include <bsd.own.mk> 4.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 5 6.include <bsd.kernobj.mk> 7 8WARNS= 1 9DBG= -Os 10 11CRUNCHBIN= instbin 12LISTS= ${.CURDIR}/list ${.CURDIR}/../common/list.images 13MTREECONF= ${DISTRIBDIR}/common/mtree.common 14IMAGEENDIAN= be 15IMAGEDEPENDS+= ${CRUNCHBIN} \ 16 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd 17 18IMAGE_RELEASEDIR= installation/miniroot 19 20.if defined(USE_SYSINST) 21LISTS+= ${DISTRIBDIR}/common/list.sysinst.en 22.endif 23 24# Use stubs to eliminate some large stuff from libc 25HACKSRC=${DISTRIBDIR}/utils/libhack 26.include "${HACKSRC}/Makefile.inc" 27${CRUNCHBIN}: libhack.o 28 29.include "${DISTRIBDIR}/common/Makefile.crunch" 30.if defined(MAKEDEVTARGETS) 31.include "${DISTRIBDIR}/common/Makefile.makedev" 32.endif 33.include "${DISTRIBDIR}/common/Makefile.image" 34 35release:: check_RELEASEDIR 36 ${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz 37 38.include <bsd.prog.mk> 39