2002-03-06 15:39:10 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2002/03/06 12:39:10 lukem Exp $
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
TOP= ${.CURDIR}/..
|
|
|
|
|
|
|
|
.include "${TOP}/Makefile.inc"
|
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
KERNELS= INSTALL
|
|
|
|
|
|
|
|
STRIP?= strip
|
|
|
|
|
2002-03-06 00:16:51 +03:00
|
|
|
RAMDISKDIR!= cd $(.CURDIR)/../ramdisk && ${PRINTOBJDIR}
|
2002-03-06 15:39:10 +03:00
|
|
|
RAMDISK= ${RAMDISKDIR}/ramdisk-${DISTRIBREV}.fs
|
2002-01-25 18:28:41 +03:00
|
|
|
|
|
|
|
CLEANFILES+= netbsd.tmp ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
|
|
|
MDSETIMAGE?= mdsetimage
|
|
|
|
|
|
|
|
all: ${KERNELS:C/^.*$/netbsd.&.gz/g}
|
|
|
|
|
|
|
|
.for kern in ${KERNELS}
|
|
|
|
netbsd.${kern}.gz: ${KERNOBJDIR}/${kern}/netbsd ${RAMDISK}
|
|
|
|
cp ${KERNOBJDIR}/${kern}/netbsd netbsd.tmp
|
|
|
|
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}
|
|
|
|
${STRIP} netbsd.tmp
|
|
|
|
gzip -9 netbsd.tmp
|
|
|
|
mv netbsd.tmp.gz ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
clean cleandir distclean:
|
|
|
|
/bin/rm -f *.core ${CLEANFILES}
|
|
|
|
|
|
|
|
.include <bsd.obj.mk>
|