Makefile.booters revision 1.21
11.21Smatt# $NetBSD: Makefile.booters,v 1.21 2011/02/26 16:26:58 matt 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.20Smatt.PATH.S: ${S}/dev/arcbios 241.7SthorpejAFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls 251.1SthorpejCPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} 261.1Sthorpej# compiler flags for smallest code size 271.11SsekiyaCFLAGS= -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024 281.17Smatt.if ${MACHINE_ARCH} == "mips64eb" 291.21SmattAFLAGS+= -mips3 -mabi=32 301.21SmattCFLAGS+= -mips3 -mabi=32 311.17Smatt.endif 321.17SmattCWARNFLAGS+= -Wall -Werror 331.17SmattCWARNFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 341.17SmattCWARNFLAGS+= -Wno-pointer-sign 351.1SthorpejLDBUG= -T $S/arch/mips/conf/stand.ldscript 361.10SlukemNETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh 371.1SthorpejCPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 381.6Sthorpej 391.6SthorpejCPPFLAGS+= -Dsgimips 401.1Sthorpej 411.20Smatt.include "${S}/dev/arcbios/Makefile.inc" 421.20Smatt 431.3Ssoren# We load the kernel at 420K in from the start of RAM to give the boot 441.2Sthorpej# loader plenty of breathing room. Load the boot loader starting at 451.2Sthorpej# the second page of RAM. 461.8Spooka# A warm thank-you to SGI for making load addresses different :) 471.2SthorpejLOAD_ADDRESS?= 0x88002000 481.8SpookaLOAD_ADDRESS_IP32?= 0x80002000 491.2Sthorpej 501.2Sthorpej# if there is a 'version' file, add rule for vers.c and add it to SRCS 511.2Sthorpej# and CLEANFILES 521.2Sthorpej.if exists(version) 531.2Sthorpej.PHONY: vers.c 541.2Sthorpejvers.c: ${.CURDIR}/version 551.18Sjoerg ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \ 561.18Sjoerg ${.CURDIR}/version "sgimips" 571.2Sthorpej 581.1SthorpejSRCS+= vers.c 591.1SthorpejCLEANFILES+= vers.c 601.2Sthorpej.endif 611.1Sthorpej 621.1Sthorpej### find out what to use for libkern 631.1SthorpejKERN_AS= library 641.1Sthorpej.include "${S}/lib/libkern/Makefile.inc" 651.1SthorpejLIBKERN= ${KERNLIB} 661.1Sthorpej 671.1Sthorpej### find out what to use for libz 681.1SthorpejZ_AS= library 691.1Sthorpej.include "${S}/lib/libz/Makefile.inc" 701.1SthorpejLIBZ= ${ZLIB} 711.1Sthorpej 721.1Sthorpej### find out what to use for libsa 731.1SthorpejSA_AS= library 741.1SthorpejSAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes 751.1Sthorpej# for now: 761.1SthorpejSAMISCMAKEFLAGS+=SA_INCLUDE_NET=no 771.1Sthorpej.include "${S}/lib/libsa/Makefile.inc" 781.1SthorpejLIBSA= ${SALIB} 791.12Ssekiya 801.1Sthorpej 811.1SthorpejLIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 821.1Sthorpej 831.16Stsutsui.include <bsd.klinks.mk> 841.1Sthorpej.include <bsd.prog.mk> 85