Makefile.booters revision 1.15
11.15Stsutsui# $NetBSD: Makefile.booters,v 1.15 2008/03/28 16:41:37 tsutsui Exp $ 21.10Slukem 31.10Slukem.include <bsd.sys.mk> # for HOST_SH 41.1Sthorpej 51.1Sthorpej# $S must correspond to the top of the 'sys' tree 61.1SthorpejS= ${.CURDIR}/../../../.. 71.1Sthorpej 81.2SthorpejBINMODE?= 444 91.9Ssimonb 101.9Ssimonb# XXX SHOULD NOT NEED TO DEFINE THESE! 111.9SsimonbLIBCRT0= 121.9SsimonbLIBC= 131.9SsimonbLIBCRTBEGIN= 141.9SsimonbLIBCRTEND= 151.2Sthorpej 161.12Ssekiyarealall: ${PROG} 171.1Sthorpej 181.1Sthorpej.PATH: ${.CURDIR}/../common 191.7SthorpejAFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls 201.1SthorpejCPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} 211.1Sthorpej# compiler flags for smallest code size 221.11SsekiyaCFLAGS= -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024 231.15StsutsuiCFLAGS+= -Wall -Werror 241.15StsutsuiCFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 251.15StsutsuiCFLAGS+= -Wno-pointer-sign 261.1SthorpejLDBUG= -T $S/arch/mips/conf/stand.ldscript 271.10SlukemNETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh 281.1SthorpejCPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 291.6Sthorpej 301.6SthorpejCPPFLAGS+= -Dsgimips 311.1Sthorpej 321.1Sthorpej# PROG set by parent. 331.5StvNOMAN= # defined 341.2Sthorpej 351.3Ssoren# We load the kernel at 420K in from the start of RAM to give the boot 361.2Sthorpej# loader plenty of breathing room. Load the boot loader starting at 371.2Sthorpej# the second page of RAM. 381.8Spooka# A warm thank-you to SGI for making load addresses different :) 391.2SthorpejLOAD_ADDRESS?= 0x88002000 401.8SpookaLOAD_ADDRESS_IP32?= 0x80002000 411.2Sthorpej 421.2Sthorpej# if there is a 'version' file, add rule for vers.c and add it to SRCS 431.2Sthorpej# and CLEANFILES 441.2Sthorpej.if exists(version) 451.2Sthorpej.PHONY: vers.c 461.2Sthorpejvers.c: ${.CURDIR}/version 471.14Stsutsui ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version "sgimips" 481.2Sthorpej 491.1SthorpejSRCS+= vers.c 501.1SthorpejCLEANFILES+= vers.c 511.2Sthorpej.endif 521.1Sthorpej 531.1Sthorpej### find out what to use for libkern 541.1SthorpejKERN_AS= library 551.1Sthorpej.include "${S}/lib/libkern/Makefile.inc" 561.1SthorpejLIBKERN= ${KERNLIB} 571.1Sthorpej 581.1Sthorpej### find out what to use for libz 591.1SthorpejZ_AS= library 601.1Sthorpej.include "${S}/lib/libz/Makefile.inc" 611.1SthorpejLIBZ= ${ZLIB} 621.1Sthorpej 631.1Sthorpej### find out what to use for libsa 641.1SthorpejSA_AS= library 651.1SthorpejSAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes 661.1Sthorpej# for now: 671.1SthorpejSAMISCMAKEFLAGS+=SA_INCLUDE_NET=no 681.1Sthorpej.include "${S}/lib/libsa/Makefile.inc" 691.1SthorpejLIBSA= ${SALIB} 701.12Ssekiya 711.12Ssekiya.if !make(obj) && !make(clean) && !make(cleandir) 721.12Ssekiya.BEGIN: 731.12Ssekiya @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 741.12Ssekiya @([ -h mips ] || ln -s ${S}/arch/mips/include mips) 751.12Ssekiya.NOPATH: machine mips 761.12Ssekiya.endif 771.12SsekiyaCLEANFILES+= machine mips 781.12Ssekiya 791.1Sthorpej 801.1SthorpejLIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 811.1Sthorpej 821.1Sthorpej.include <bsd.prog.mk> 83