11.6Stsutsui# $NetBSD: Makefile.bootprogs,v 1.6 2014/01/12 15:26:29 tsutsui 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.5Smatt.include <bsd.klinks.mk>
151.1Suwe
161.1SuweSTRIPFLAG=	# override
171.1Suwe
181.1SuweLIBCRT0=	# nothing
191.6StsutsuiLIBCRTI=	# nothing
201.1SuweLIBCRTBEGIN=	# nothing
211.1SuweLIBCRTEND=	# nothing
221.1SuweLIBC=		# nothing
231.1Suwe
241.1Suwe.PATH:	${.CURDIR}/..
251.1Suwe
261.2SnonakaCOPTS=		-m4-nofpu -Os -ffreestanding
271.1Suwe
281.1SuweLDFLAGS+=	-N
291.1SuweCFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes
301.1SuweCPPFLAGS+=	-nostdinc -D_STANDALONE
311.1SuweCPPFLAGS+=	-DSH4
321.1SuweCPPFLAGS+=	-I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
331.1Suwe
341.1Suwe### find out what to use for libsa
351.1SuweSA_AS= library
361.1Suwe.include "${S}/lib/libsa/Makefile.inc"
371.1SuweLIBSA= ${SALIB}
381.1SuweCPPFLAGS+=	-I$(SADIR)
391.1Suwe
401.1Suwe### find out what to use for libkern
411.1SuweKERN_AS= library
421.1Suwe.include "${S}/lib/libkern/Makefile.inc"
431.1SuweLIBKERN= ${KERNLIB}
441.1Suwe
451.1Suwe### find out what to use for libz
461.1SuweZ_AS= library
471.1Suwe.include "${S}/lib/libz/Makefile.inc"
481.1SuweLIBZ= ${ZLIB}
491.1Suwe
501.4Sdhollandcleandir distclean: .WAIT cleanlibdir
511.1Suwe
521.1Suwecleanlibdir:
531.1Suwe	-rm -rf lib
54