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