2002-03-19 14:50:45 +03:00
|
|
|
# $NetBSD: Makefile,v 1.6 2002/03/19 11:50:45 reinoud Exp $
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
TOP= ${.CURDIR}/..
|
|
|
|
|
|
|
|
.include "${TOP}/Makefile.inc"
|
|
|
|
.include <bsd.own.mk>
|
2002-03-06 16:25:49 +03:00
|
|
|
.include <bsd.kernobj.mk>
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
KERNELS= INSTALL
|
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
RAMDISKDIR!= cd $(.CURDIR)/../ramdisk && ${PRINTOBJDIR}
|
2002-03-12 17:28:27 +03:00
|
|
|
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
|
|
|
|
2002-03-06 16:25:49 +03:00
|
|
|
realall: ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
.for kern in ${KERNELS}
|
|
|
|
netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK}
|
2002-03-19 14:50:45 +03:00
|
|
|
cp ${KERNOBJDIR}/${kern}/netbsd NB_INST_KNL
|
|
|
|
${MDSETIMAGE} -v NB_INST_KNL ${RAMDISK}
|
|
|
|
${STRIP} NB_INST_KNL
|
|
|
|
gzip -9 NB_INST_KNL
|
|
|
|
mv NB_INST_KNL.gz ${.TARGET}
|
2002-01-25 18:28:41 +03:00
|
|
|
.endfor
|
|
|
|
|
2002-03-06 16:25:49 +03:00
|
|
|
.include <bsd.prog.mk>
|