1 # $NetBSD: Makefile.inc,v 1.4 1999/04/27 04:36:25 simonb Exp $ 2 # 3 # etc.pmax/Makefile.inc -- pmax-specific etc Makefile targets 4 # 5 6 # Set this for any kernels beyond GENERIC you want to include 7 # in the distribution. 8 #EXTRA_KERNELS+= 9 10 # Set this for any kernels beyond GENERIC and ${EXTRA_KERNELS} you 11 # need to build to make installation tools/media. 12 BUILD_KERNELS+=INSTALL RAMDISK 13 14 # Add any extra release directories to be made 15 INSTALLATION_DIRS+=installation/diskimage installation/netboot 16 17 # location of the source diskimage 18 DISKIMAGE_DIR!= cd ${.CURDIR}/../distrib/pmax/instkernel && ${MAKE} -s print-objdir 19 DISKIMAGE= ${DISKIMAGE_DIR}/diskimage.gz 20 21 # location of the source netboot diskimage tar file 22 DISKIMAGE_TAR_DIR!= cd ${.CURDIR}/../distrib/pmax/ramdisk && ${MAKE} -s print-objdir 23 DISKIMAGE_TAR= ${DISKIMAGE_TAR_DIR}/diskimage.tgz 24 25 # location of the ramdisk install kernel 26 INSTALLKERN_DIR!= cd ${.CURDIR}/../distrib/pmax/instkernel && ${MAKE} -s print-objdir 27 INSTALLKERN= ${INSTALLKERN_DIR}/netbsd.gz 28 INSTALLKERNNAME= install.gz 29 30 # location and name of the stripped down NFS install kernel 31 NFSCONF= INSTALL 32 NFSKERNNAME= nfsnetbsd 33 # We don't know about ${KERNOBJDIR} yet ... 34 NFSKERNDIR= ${.CURDIR:C/[^\/]+$//}sys/arch/${MACHINE}/compile/${NFSCONF} 35 NFSKERN= ${NFSKERNDIR}/${NFSKERNNAME} 36 37 snap_md_post: ${DISKIMAGE} ${DISKIMAGE_TAR} ${INSTALLKERN} 38 ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 39 -m ${BINMODE} ${NFSKERN}.ecoff \ 40 ${RELEASEDIR}/binary/kernel/${NFSKERNNAME} 41 gzip -9 ${RELEASEDIR}/binary/kernel/${NFSKERNNAME} 42 ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 43 -m ${BINMODE} ${INSTALLKERN} \ 44 ${RELEASEDIR}/binary/kernel/${INSTALLKERNNAME} 45 ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 46 -m ${NONBINMODE} ${DISKIMAGE} \ 47 ${RELEASEDIR}/installation/diskimage 48 ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} -o root -g wheel \ 49 -m ${NONBINMODE} ${DISKIMAGE_TAR} \ 50 ${RELEASEDIR}/installation/netboot 51 52 ${DISKIMAGE} ${DISKIMAGE_TAR} ${INSTALLKERN}: 53 cd ${.CURDIR}/../distrib/pmax && ${MAKE} ${_J} 54