1# $NetBSD: Makefile,v 1.10 2009/04/03 22:36:35 perry Exp $ 2 3.include <bsd.own.mk> 4.include "../../common/Makefile.distrib" 5 6MKMAN= no 7PROG= miniroot.kmod 8 9SRCMOD= ${DESTDIR}/stand/${MACHINE}/${DISTRIBVER}/modules/miniroot/miniroot.kmod 10DSTMOD= ${.OBJDIR}/miniroot.kmod 11RAMDISK= ramdisk-big 12RAMDISKDIR!= cd ${.CURDIR}/../ramdisks/${RAMDISK} && ${PRINTOBJDIR} 13RAMDISKFS= ${RAMDISKDIR}/${RAMDISK}.fs 14 15miniroot.kmod: ${RAMDISKFS} ${SRCMOD} 16 ${OBJCOPY} --add-section miniroot=${RAMDISKFS} \ 17 --set-section-flags miniroot=alloc,contents,load,data \ 18 ${SRCMOD} ${DSTMOD}.tmp 19 gzip -9nc < ${DSTMOD}.tmp > ${DSTMOD} 20 rm -f ${DSTMOD}.tmp 21 22.include <bsd.prog.mk> 23 24release: miniroot.kmod 25 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \ 26 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/miniroot/ 27 28