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