1 1.9 gwr # $NetBSD: Makefile.inc,v 1.9 1999/05/21 04:02:02 gwr Exp $ 2 1.1 gwr # 3 1.1 gwr # etc.sun3/Makefile.inc -- sun3-specific etc Makefile targets 4 1.1 gwr # 5 1.3 gwr 6 1.9 gwr BIN3+= etc.sun3/ttyaction 7 1.9 gwr 8 1.9 gwr # These are put in ${RELEASEDIR} by "make release" in distrib/sun3 9 1.9 gwr # after it builds and patches in the installation ramdisk image. 10 1.9 gwr RAMDISK_KERNELS= \ 11 1.9 gwr RAMDISK RAMDISK3X 12 1.9 gwr 13 1.9 gwr # These are just built and copied to the release area. 14 1.9 gwr OTHER_KERNELS= \ 15 1.9 gwr GENERIC GENERIC3X \ 16 1.9 gwr INSTALL INSTALL3X \ 17 1.9 gwr DISKLESS DISKLESS3X 18 1.9 gwr 19 1.9 gwr ALL_KERNELS = $(RAMDISK_KERNELS) $(OTHER_KERNELS) 20 1.9 gwr 21 1.9 gwr # Build all the kernels, then copy all but ramdisk kernels 22 1.9 gwr # to the release area. Those are done by snap_md_post. 23 1.9 gwr snap_kern: 24 1.9 gwr .for configfile in ${ALL_KERNELS} 25 1.9 gwr cd ${KERNCONFDIR} && config \ 26 1.9 gwr -b ${KERNOBJDIR}/${configfile} -s ${KERNSRCDIR} ${configfile} 27 1.9 gwr .ifndef UPDATE 28 1.9 gwr cd ${KERNOBJDIR}/${configfile} && ${MAKE} clean 29 1.9 gwr .endif 30 1.9 gwr cd ${KERNOBJDIR}/${configfile} && ${MAKE} depend && ${MAKE} ${_J} 31 1.9 gwr .endfor # EXTRA_KERNELS 32 1.9 gwr .for configfile in ${OTHER_KERNELS} 33 1.9 gwr cd ${KERNOBJDIR}/${configfile} && gzip -c -9 < netbsd > \ 34 1.9 gwr ${RELEASEDIR}/binary/kernel/$${kernel}.${configfile}.gz 35 1.9 gwr .endfor # EXTRA_KERNELS 36 1.9 gwr 37 1.9 gwr # Build the ramdisk image and patch it into the ramdisk kernels. 38 1.9 gwr # Build the miniroot, etc. and copy all to the release area. 39 1.9 gwr snap_md_post: 40 1.9 gwr .ifndef UPDATE 41 1.9 gwr cd ${.CURDIR}/../distrib/sun3 && ${MAKE} clean 42 1.9 gwr .endif 43 1.9 gwr cd ${.CURDIR}/../distrib/sun3 && \ 44 1.9 gwr ${MAKE} depend && ${MAKE} ${_J} && ${MAKE} release 45 1.8 cjs 46