[BACK]Return to Makefile.inc CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc / etc.sparc64

Annotation of src/etc/etc.sparc64/Makefile.inc, Revision 1.32

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

CVSweb <webmaster@jp.NetBSD.org>