Makefile.booters revision 1.9
1# $NetBSD: Makefile.booters,v 1.9 2003/10/08 01:40:23 simonb Exp $ 2 3# $S must correspond to the top of the 'sys' tree 4S= ${.CURDIR}/../../../.. 5 6BINMODE?= 444 7 8# XXX SHOULD NOT NEED TO DEFINE THESE! 9LIBCRT0= 10LIBC= 11LIBCRTBEGIN= 12LIBCRTEND= 13 14.PHONY: machine-links 15beforedepend: machine-links 16# ${MACHINE} then ${MACHINE_ARCH} 17machine-links: 18 -rm -f machine && \ 19 ln -s $S/arch/${MACHINE}/include machine 20 -rm -f mips && \ 21 ln -s $S/arch/mips/include mips 22CLEANFILES+= machine mips 23 24realall: machine-links ${PROG} 25 26.PATH: ${.CURDIR}/../common 27AFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls 28# -I${.CURDIR}/../.. done by Makefile.inc 29#CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -DHEAP_VARIABLE -I${.OBJDIR} -I${S} 30CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} 31# compiler flags for smallest code size 32CFLAGS= -ffreestanding -Os -g -mmemcpy -mno-abicalls -msoft-float -G 128 33LDBUG= -T $S/arch/mips/conf/stand.ldscript 34NETBSD_VERS!= sh ${.CURDIR}/../../../../conf/osrelease.sh 35CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 36 37CPPFLAGS+= -Dsgimips 38 39# PROG set by parent. 40NOMAN= # defined 41 42# We load the kernel at 420K in from the start of RAM to give the boot 43# loader plenty of breathing room. Load the boot loader starting at 44# the second page of RAM. 45# A warm thank-you to SGI for making load addresses different :) 46LOAD_ADDRESS?= 0x88002000 47LOAD_ADDRESS_IP32?= 0x80002000 48 49# if there is a 'version' file, add rule for vers.c and add it to SRCS 50# and CLEANFILES 51.if exists(version) 52.PHONY: vers.c 53vers.c: ${.CURDIR}/version 54 sh ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "sgimips" 55 56SRCS+= vers.c 57CLEANFILES+= vers.c 58.endif 59 60### find out what to use for libkern 61KERN_AS= library 62.include "${S}/lib/libkern/Makefile.inc" 63LIBKERN= ${KERNLIB} 64 65### find out what to use for libz 66Z_AS= library 67.include "${S}/lib/libz/Makefile.inc" 68LIBZ= ${ZLIB} 69 70### find out what to use for libsa 71SA_AS= library 72SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes 73# for now: 74SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no 75.include "${S}/lib/libsa/Makefile.inc" 76LIBSA= ${SALIB} 77 78LIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 79 80.include <bsd.prog.mk> 81