Makefile.bootprogs revision 1.4
11.4Sdholland# $NetBSD: Makefile.bootprogs,v 1.4 2010/05/27 06:58:14 dholland Exp $ 21.1Suwe 31.1SuweS= ${.CURDIR}/../../../../.. 41.1Suwe 51.1SuweNOMAN= # defined 61.1Suwe 71.1SuweBINDIR= /usr/mdec 81.1SuweBINMODE= 0444 91.1Suwe 101.1SuwePRIMARY_LOAD_ADDRESS?=0x8c201000 111.1SuweSECONDARY_LOAD_ADDRESS?=0x8ff00000 121.1Suwe 131.1Suwe.include <bsd.own.mk> 141.1Suwe 151.1SuweSTRIPFLAG= # override 161.1Suwe 171.1SuweLIBCRT0= # nothing 181.1SuweLIBCRTBEGIN= # nothing 191.1SuweLIBCRTEND= # nothing 201.1SuweLIBC= # nothing 211.1Suwe 221.1Suwe.PATH: ${.CURDIR}/.. 231.1Suwe 241.2SnonakaCOPTS= -m4-nofpu -Os -ffreestanding 251.1Suwe 261.1SuweLDFLAGS+= -N 271.1SuweCFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes 281.1SuweCPPFLAGS+= -nostdinc -D_STANDALONE 291.1SuweCPPFLAGS+= -DSH4 301.1SuweCPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S} 311.1Suwe 321.3Stsutsui.if !make(obj) && !make(clean) && !make(cleandir) 331.3Stsutsui.BEGIN: 341.3Stsutsui -rm -f machine && \ 351.3Stsutsui ln -s ${S}/arch/${MACHINE}/include machine 361.3Stsutsui -rm -f ${MACHINE_CPU} && \ 371.3Stsutsui ln -s ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU} 381.1Suwe.ifdef LIBOBJ 391.3Stsutsui -rm -f lib && ln -s ${LIBOBJ}/lib lib 401.3Stsutsui mkdir -p ${LIBOBJ}/lib 411.3Stsutsui.endif 421.1Suwe.endif 431.1Suwe 441.1Suwe### find out what to use for libsa 451.1SuweSA_AS= library 461.1Suwe.include "${S}/lib/libsa/Makefile.inc" 471.1SuweLIBSA= ${SALIB} 481.1SuweCPPFLAGS+= -I$(SADIR) 491.1Suwe 501.1Suwe### find out what to use for libkern 511.1SuweKERN_AS= library 521.1Suwe.include "${S}/lib/libkern/Makefile.inc" 531.1SuweLIBKERN= ${KERNLIB} 541.1Suwe 551.1Suwe### find out what to use for libz 561.1SuweZ_AS= library 571.1Suwe.include "${S}/lib/libz/Makefile.inc" 581.1SuweLIBZ= ${ZLIB} 591.1Suwe 601.4Sdhollandcleandir distclean: .WAIT cleanlibdir 611.1Suwe 621.1Suwecleanlibdir: 631.1Suwe -rm -rf lib 64