Home | History | Annotate | Line # | Download | only in ramdisk-kernel
Makefile revision 1.2
      1  1.2  matt #	$NetBSD: Makefile,v 1.2 2001/03/04 20:33:03 matt Exp $
      2  1.1  matt 
      3  1.1  matt TOP=		${.CURDIR}/..
      4  1.1  matt 
      5  1.1  matt .include "${TOP}/Makefile.inc"
      6  1.2  matt .include <bsd.own.mk>
      7  1.1  matt .include <bsd.kernobj.mk>
      8  1.1  matt 
      9  1.1  matt MDEC=		${DESTDIR}/usr/mdec
     10  1.1  matt STRIP?=		strip
     11  1.1  matt 
     12  1.2  matt RAMDISK!=	cd ${.CURDIR}/../ramdisk/ && ${PRINTOBJDIR}
     13  1.1  matt 
     14  1.1  matt .for kernel in INSTALL
     15  1.1  matt netbsd.${kernel}.gz: .NOTMAIN ${KERNOBJDIR}/${kernel}/netbsd ${RAMDISK}
     16  1.1  matt 	cp ${KERNOBJDIR}/${kernel}/netbsd netbsd.tmp
     17  1.2  matt 	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}/ramdisk.fs
     18  1.1  matt 	${STRIP} netbsd.tmp
     19  1.1  matt 	gzip -9 netbsd.tmp
     20  1.1  matt 	mv netbsd.tmp.gz ${.TARGET}
     21  1.1  matt KERNELS+=	netbsd.${kernel}.gz
     22  1.1  matt .endfor
     23  1.1  matt 
     24  1.1  matt all: ${KERNELS}
     25  1.1  matt 
     26  1.1  matt release:
     27  1.1  matt 	-mkdir -p ${RELEASEDIR}/binary/kernel
     28  1.1  matt 	cp -p ${KERNELS} ${RELEASEDIR}/binary/kernel
     29  1.1  matt 
     30  1.1  matt clean cleandir distclean:
     31  1.1  matt 	rm -f *.core ${KERNELS}
     32  1.1  matt 
     33  1.1  matt .include <bsd.own.mk>
     34  1.1  matt .include <bsd.obj.mk>
     35  1.1  matt .include <bsd.subdir.mk>
     36