Makefile.booters revision 1.11
11.11Ssekiya# $NetBSD: Makefile.booters,v 1.11 2003/11/11 06:47:00 sekiya 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.2Sthorpej.PHONY: machine-links 171.2Sthorpejbeforedepend: machine-links 181.2Sthorpej# ${MACHINE} then ${MACHINE_ARCH} 191.2Sthorpejmachine-links: 201.2Sthorpej -rm -f machine && \ 211.2Sthorpej ln -s $S/arch/${MACHINE}/include machine 221.2Sthorpej -rm -f mips && \ 231.2Sthorpej ln -s $S/arch/mips/include mips 241.2SthorpejCLEANFILES+= machine mips 251.1Sthorpej 261.2Sthorpejrealall: machine-links ${PROG} 271.1Sthorpej 281.1Sthorpej.PATH: ${.CURDIR}/../common 291.7SthorpejAFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls 301.1SthorpejCPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} 311.1Sthorpej# compiler flags for smallest code size 321.11SsekiyaCFLAGS= -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024 331.1SthorpejLDBUG= -T $S/arch/mips/conf/stand.ldscript 341.10SlukemNETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh 351.1SthorpejCPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' 361.6Sthorpej 371.6SthorpejCPPFLAGS+= -Dsgimips 381.1Sthorpej 391.1Sthorpej# PROG set by parent. 401.5StvNOMAN= # defined 411.2Sthorpej 421.3Ssoren# We load the kernel at 420K in from the start of RAM to give the boot 431.2Sthorpej# loader plenty of breathing room. Load the boot loader starting at 441.2Sthorpej# the second page of RAM. 451.8Spooka# A warm thank-you to SGI for making load addresses different :) 461.2SthorpejLOAD_ADDRESS?= 0x88002000 471.8SpookaLOAD_ADDRESS_IP32?= 0x80002000 481.2Sthorpej 491.2Sthorpej# if there is a 'version' file, add rule for vers.c and add it to SRCS 501.2Sthorpej# and CLEANFILES 511.2Sthorpej.if exists(version) 521.2Sthorpej.PHONY: vers.c 531.2Sthorpejvers.c: ${.CURDIR}/version 541.10Slukem ${HOST_SH} ${S}/conf/newvers_stand.sh -N ${.CURDIR}/version "sgimips" 551.2Sthorpej 561.1SthorpejSRCS+= vers.c 571.1SthorpejCLEANFILES+= vers.c 581.2Sthorpej.endif 591.1Sthorpej 601.1Sthorpej### find out what to use for libkern 611.1SthorpejKERN_AS= library 621.1Sthorpej.include "${S}/lib/libkern/Makefile.inc" 631.1SthorpejLIBKERN= ${KERNLIB} 641.1Sthorpej 651.1Sthorpej### find out what to use for libz 661.1SthorpejZ_AS= library 671.1Sthorpej.include "${S}/lib/libz/Makefile.inc" 681.1SthorpejLIBZ= ${ZLIB} 691.1Sthorpej 701.1Sthorpej### find out what to use for libsa 711.1SthorpejSA_AS= library 721.1SthorpejSAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes 731.1Sthorpej# for now: 741.1SthorpejSAMISCMAKEFLAGS+=SA_INCLUDE_NET=no 751.1Sthorpej.include "${S}/lib/libsa/Makefile.inc" 761.1SthorpejLIBSA= ${SALIB} 771.1Sthorpej 781.1SthorpejLIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} 791.1Sthorpej 801.1Sthorpej.include <bsd.prog.mk> 81