Makefile.images revision 1.2
11.2Slukem#	$NetBSD: Makefile.images,v 1.2 2002/04/26 15:50:25 lukem Exp $
21.1Sleo
31.1Sleo.include <bsd.own.mk>
41.2Slukem.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
51.1Sleo
61.1Sleo.include <bsd.kernobj.mk>
71.1Sleo
81.1SleoCRUNCHBIN=	instbin
91.1SleoLISTS=		${.CURDIR}/list ${.CURDIR}/../common/list.images
101.1SleoMTREECONF=	${DISTRIBDIR}/common/mtree.common
111.1SleoIMAGEDEPENDS+=	${CRUNCHBIN} ${KERNSRCDIR}/conf/osrelease.sh \
121.2Slukem		${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd 
131.1SleoPARSELISTENV=	ARCHDIR=${ARCHDIR:Q} \
141.1Sleo		DISTRIBREV=${DISTRIBREV:Q} \
151.1Sleo		DISTRIBVER=${DISTRIBVER:Q} \
161.1Sleo		KERNOBJDIR=${KERNOBJDIR:Q}
171.1SleoMAKESUMS=	CKSUM=${CKSUM:Q} sh ${DISTRIBDIR}/sets/makesums
181.1Sleo
191.1Sleo.if defined(USE_SYSINST)
201.1SleoLISTS+=		${DISTRIBDIR}/common/list.sysinst
211.1Sleo.endif
221.1Sleo
231.1Sleorealall: check_DESTDIR .WAIT image
241.1Sleo	@true
251.1Sleo
261.1Sleorelease: check_RELEASEDIR .WAIT image
271.1Sleo	mkdir -p ${RELEASEDIR}/installation/miniroot
281.1Sleo	gzip -c -9 < ${.OBJDIR}/${IMAGE} \
291.1Sleo		> ${RELEASEDIR}/installation/miniroot/${IMAGE}.gz
301.1Sleo	 ${MAKESUMS} -t ${RELEASEDIR}/installation/miniroot ${IMAGE}.gz
311.1Sleo
321.1Sleoimage:	${IMAGE} image_md_post
331.1Sleo
341.1Sleoimage_md_post:
351.1Sleo# nothing here; refer to machine-dependant ${ARCHDIR}/Makefile.inc
361.1Sleo
371.1Sleo#
381.1Sleo# Using libhack:opendir() causes linking errors
391.1Sleo#
401.1SleoNOLIBHACKOPENDIR=1
411.1Sleo
421.1Sleo# Use stubs to eliminate some large stuff from libc
431.2SlukemHACKSRC=${DISTRIBDIR}/utils/libhack
441.1Sleo.include "${HACKSRC}/Makefile.inc"
451.1Sleo
461.1Sleo# This is listed in instbin.conf but is built here.
471.1Sleo${CRUNCHBIN}: libhack.o
481.1Sleo
491.1Sleo
501.1Sleo.include "${DISTRIBDIR}/common/Makefile.crunch"
511.1Sleo.if defined(MAKEDEVTARGETS)
521.1Sleo.include "${DISTRIBDIR}/common/Makefile.makedev"
531.1Sleo.endif
541.1Sleo.include "${DISTRIBDIR}/common/Makefile.image"
551.1Sleo
561.1Sleo.include <bsd.prog.mk>
57