2001-10-22 03:23:19 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2001/10/21 23:23:23 jmc Exp $
|
2000-05-23 22:34:58 +04:00
|
|
|
|
|
|
|
TOP= ${.CURDIR}/..
|
|
|
|
|
|
|
|
.include "${TOP}/Makefile.inc"
|
2001-03-04 23:33:03 +03:00
|
|
|
.include <bsd.own.mk>
|
2000-05-23 22:34:58 +04:00
|
|
|
.include <bsd.kernobj.mk>
|
|
|
|
|
|
|
|
MDEC= ${DESTDIR}/usr/mdec
|
|
|
|
STRIP?= strip
|
2001-10-22 03:23:19 +04:00
|
|
|
MDSETIMAGE?= ${DESTDIR}/usr/sbin/mdsetimage
|
2000-05-23 22:34:58 +04:00
|
|
|
|
2001-03-04 23:33:03 +03:00
|
|
|
RAMDISK!= cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR}
|
2000-05-23 22:34:58 +04:00
|
|
|
|
|
|
|
.for kernel in INSTALL
|
|
|
|
netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK}
|
|
|
|
cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp
|
2001-10-22 03:23:19 +04:00
|
|
|
${MDSETIMAGE} -v netbsd.tmp ${RAMDISK}/ramdisk.fs
|
2000-05-23 22:34:58 +04:00
|
|
|
${STRIP} netbsd.tmp
|
|
|
|
gzip -9 netbsd.tmp
|
|
|
|
mv netbsd.tmp.gz ${.TARGET}
|
|
|
|
KERNELS+= netbsd.${kernel}.gz
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
all: ${KERNELS}
|
|
|
|
|
|
|
|
release:
|
|
|
|
-mkdir -p ${RELEASEDIR}/binary/kernel
|
|
|
|
cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel
|
|
|
|
|
|
|
|
clean cleandir distclean:
|
|
|
|
rm -f *.core ${KERNELS}
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.include <bsd.obj.mk>
|
|
|
|
.include <bsd.subdir.mk>
|