Makefile.inc revision 1.24
1# $NetBSD: Makefile.inc,v 1.24 2003/03/08 00:22:30 lukem Exp $ 2# 3# etc.sparc64/Makefile.inc -- sparc64-specific etc Makefile targets 4# 5# Specify whether or not to build 32-bit libs. 6MK32BITLIBS?=no 7 8KERNEL_SETS= GENERIC 9 10BUILD_KERNELS+= INSTALL 11 12MD_INSTALLATION_DIRS= installation/miniroot \ 13 installation/netboot \ 14 installation/misc 15INSTALLATION_DIRS+= ${MD_INSTALLATION_DIRS} 16 17# Used by 32 bit lib/csu, lib, gnu/lib & libexec/ld.elf_so 18LIBDIR=/usr/lib/32 19BINDIR=/usr/libexec/32 20SPARC32_ENV=MACHINE=sparc MACHINE_ARCH=sparc 21SPARC32=COPTS=-m32 LD="ld -m elf32_sparc" AS="as -32" \ 22 LIBDIR=${LIBDIR} BINDIR=${BINDIR} \ 23 SHLIB_LDSTARTFILE=${DESTDIR}${LIBDIR}/crtbeginS.o \ 24 SHLIB_LDENDFILE=${DESTDIR}${LIBDIR}/crtendS.o 25 26.if ${MACHINE_ARCH} == "sparc64" && ${MACHINE} == "sparc64" && \ 27 ${MK32BITLIBS} == "yes" 28 29 # build 32 bit programs 30.for _s64dir in lib/csu lib gnu/lib libexec/ld_elf.so 31.if ${MKOBJDIRS} != "no" 32 (cd ${NETBSDSRCDIR}/${_s64dir} && \ 33 ${SPARC32_ENV} ${MAKE} ${SPARC32} ${_M} obj) 34.endif 35.ifndef UPDATE 36 (cd ${NETBSDSRCDIR}/${_s64dir} && ${MAKE} cleandir 37.endif 38 (cd ${NETBSDSRCDIR}/${_s64dir} && \ 39 ${SPARC32_ENV} ${MAKE} ${SPARC32} ${_M} ${_J} MKSHARE=no dependall \ 40 && ${SPARC32_ENV} ${MAKE} ${SPARC32} ${_M} MKSHARE=no install) 41.endfor 42.endif # MACHINE_ARCH==sparc64 && MACHINE==sparc && MK32BITLIBS==yes 43 44# 45# Install miniroot images and auxiliary scripts to the release tree 46# 47snap_md_post: 48.if exists($(XSRCDIR)/xc/Imakefile) 49 # build X11 50.ifndef XSRC_DONE 51 (cd $(XSRCDIR); $(MAKE) release) 52.endif 53.endif 54 55 # install boot image and installation scripts in netboot directory 56.for file in ofwboot.net 57 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${DESTDIR}/usr/mdec/${file} \ 58 ${RELEASEDIR}/${MACHINE}/installation/netboot 59.endfor 60.for file in ofwboot bootblk 61 ${HOST_INSTALL_FILE} -m ${NONBINMODE} ${DESTDIR}/usr/mdec/${file} \ 62 ${RELEASEDIR}/${MACHINE}/installation/misc 63.endfor 64.for file in installboot 65 ${HOST_INSTALL_FILE} -m ${BINMODE} ${DESTDIR}/usr/sbin/${file} \ 66 ${RELEASEDIR}/${MACHINE}/installation/misc 67.endfor 68 69 # compute checksums 70.for dir in ${MD_INSTALLATION_DIRS} 71 ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/${dir} '*' 72.endfor 73 74ISOBOOTFILEDIR!=cd ${.CURDIR}/../distrib/${MACHINE}/bootfs && ${PRINTOBJDIR} 75ISOBOOTFILE?= ${ISOBOOTFILEDIR}/boot.fs 76 77iso-image-md-post: 78 SUNLABEL=${SUNLABEL:Q} sh ${NETBSDSRCDIR}/distrib/common/sunbootcd.sh \ 79 ${CDROM.image} - - - - ${ISOBOOTFILE} 80