1# $NetBSD: Makefile.images,v 1.11 2016/01/30 05:15:18 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 -m68020-60 # -m68020-60 seems to generate smaller binaries 10DBG+= -DNDEBUG # to remove assert(3) macro 11 12CRUNCHBIN= instbin 13LISTS= ${.CURDIR}/list ${.CURDIR}/../common/list.images 14MTREECONF= ${.CURDIR}/../common/mtree.conf 15IMAGEENDIAN= be 16IMAGEDEPENDS+= ${CRUNCHBIN} \ 17 ${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd 18 19IMAGE_RELEASEDIR= installation/miniroot 20 21.if defined(USE_SYSINST) 22LISTS+= ${DISTRIBDIR}/common/list.sysinst.en 23.endif 24 25# Use stubs to eliminate some large stuff from libc 26HACKSRC=${DISTRIBDIR}/utils/libhack 27.include "${HACKSRC}/Makefile.inc" 28${CRUNCHBIN}: libhack.o 29 30.include "${DISTRIBDIR}/common/Makefile.crunch" 31.if defined(MAKEDEVTARGETS) 32.include "${DISTRIBDIR}/common/Makefile.makedev" 33.endif 34.include "${DISTRIBDIR}/common/Makefile.image" 35 36release:: check_RELEASEDIR 37 ${MAKESUMS} -t ${RELEASEDIR}/${RELEASEMACHINEDIR}/${IMAGE_RELEASEDIR} ${IMAGE}.gz 38 39.include <bsd.prog.mk> 40