Makefile.booters revision 1.19
11.19Sjoerg# $NetBSD: Makefile.booters,v 1.19 2011/01/24 19:26:16 joerg Exp $ 21.19Sjoerg 31.19Sjoerg# PROG set by parent. 41.19SjoergNOMAN= # defined 51.10Slukem 61.18Sjoerg.include <bsd.own.mk> 71.10Slukem.include <bsd.sys.mk> # for HOST_SH 81.1Sthorpej 91.1Sthorpej# $S must correspond to the top of the 'sys' tree 101.1SthorpejS= ${.CURDIR}/../../../.. 111.1Sthorpej 121.2SthorpejBINMODE?= 444 131.9Ssimonb 141.9Ssimonb# XXX SHOULD NOT NEED TO DEFINE THESE! 151.9SsimonbLIBCRT0= 161.9SsimonbLIBC= 171.9SsimonbLIBCRTBEGIN= 181.9SsimonbLIBCRTEND= 191.2Sthorpej 201.12Ssekiyarealall: ${PROG} 211.1Sthorpej 221.1Sthorpej.PATH: ${.CURDIR}/../common 231.7SthorpejAFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls 241.1SthorpejCPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} 251.1Sthorpej# compiler flags for smallest code size 261.11SsekiyaCFLAGS= -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024 271.17Smatt.if ${MACHINE_ARCH} == "mips64eb" 281.17SmattCPUFLAGS+= -mabi=n32 291.17SmattLDFLAGS+= -mabi=n32 301.17Smatt.endif 311.17SmattCWARNFLAGS+= -Wall -Werror 321.17SmattCWARNFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 331.17SmattCWARNFLAGS+= -Wno-pointer-sign 341.1SthorpejLDBUG= -T $S/arch/mips/conf/stand.ldscript 351.10SlukemNETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh 361.1SthorpejCPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 371.6Sthorpej 381.6SthorpejCPPFLAGS+= -Dsgimips 391.1Sthorpej 401.3Ssoren# We load the kernel at 420K in from the start of RAM to give the boot 411.2Sthorpej# loader plenty of breathing room. Load the boot loader starting at 421.2Sthorpej# the second page of RAM. 431.8Spooka# A warm thank-you to SGI for making load addresses different :) 441.2SthorpejLOAD_ADDRESS?= 0x88002000 451.8SpookaLOAD_ADDRESS_IP32?= 0x80002000 461.2Sthorpej 471.2Sthorpej# if there is a 'version' file, add rule for vers.c and add it to SRCS 481.2Sthorpej# and CLEANFILES 491.2Sthorpej.if exists(version) 501.2Sthorpej.PHONY: vers.c 511.2Sthorpejvers.c: ${.CURDIR}/version 521.18Sjoerg ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \ 531.18Sjoerg ${.CURDIR}/version "sgimips" 541.2Sthorpej 551.1SthorpejSRCS+= vers.c 561.1SthorpejCLEANFILES+= vers.c 571.2Sthorpej.endif 581.1Sthorpej 591.1Sthorpej### find out what to use for libkern 601.1SthorpejKERN_AS= library 611.1Sthorpej.include "${S}/lib/libkern/Makefile.inc" 621.1SthorpejLIBKERN= ${KERNLIB} 631.1Sthorpej 641.1Sthorpej### find out what to use for libz 651.1SthorpejZ_AS= library 661.1Sthorpej.include "${S}/lib/libz/Makefile.inc" 671.1SthorpejLIBZ= ${ZLIB} 681.1Sthorpej 691.1Sthorpej### find out what to use for libsa 701.1SthorpejSA_AS= library 711.1SthorpejSAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes 721.1Sthorpej# for now: 731.1SthorpejSAMISCMAKEFLAGS+=SA_INCLUDE_NET=no 741.1Sthorpej.include "${S}/lib/libsa/Makefile.inc" 751.1SthorpejLIBSA= ${SALIB} 761.12Ssekiya 771.1Sthorpej 781.1SthorpejLIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 791.1Sthorpej 801.16Stsutsui.include <bsd.klinks.mk> 811.1Sthorpej.include <bsd.prog.mk> 82