Makefile.inc revision 1.19
1# $NetBSD: Makefile.inc,v 1.19 2002/12/02 13:31:22 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 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 f in ofwboot.net 57 cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/netboot 58.endfor 59.for f in ofwboot bootblk 60 cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/misc 61.endfor 62.for f in installboot 63 cp -p $(DESTDIR)/usr/sbin/$f $(RELEASEDIR)/installation/misc 64.endfor 65 66 # compute checksums 67.for dir in ${MD_INSTALLATION_DIRS} 68 ${MAKESUMS} -t ${RELEASEDIR}/${dir} '*' 69.endfor 70