Makefile.bootprogs revision 1.5
11.5Smatt# $NetBSD: Makefile.bootprogs,v 1.5 2013/08/21 07:08:30 matt 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.1SuweLIBCRTBEGIN=	# nothing
201.1SuweLIBCRTEND=	# nothing
211.1SuweLIBC=		# nothing
221.1Suwe
231.1Suwe.PATH:	${.CURDIR}/..
241.1Suwe
251.2SnonakaCOPTS=		-m4-nofpu -Os -ffreestanding
261.1Suwe
271.1SuweLDFLAGS+=	-N
281.1SuweCFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes
291.1SuweCPPFLAGS+=	-nostdinc -D_STANDALONE
301.1SuweCPPFLAGS+=	-DSH4
311.1SuweCPPFLAGS+=	-I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
321.1Suwe
331.1Suwe### find out what to use for libsa
341.1SuweSA_AS= library
351.1Suwe.include "${S}/lib/libsa/Makefile.inc"
361.1SuweLIBSA= ${SALIB}
371.1SuweCPPFLAGS+=	-I$(SADIR)
381.1Suwe
391.1Suwe### find out what to use for libkern
401.1SuweKERN_AS= library
411.1Suwe.include "${S}/lib/libkern/Makefile.inc"
421.1SuweLIBKERN= ${KERNLIB}
431.1Suwe
441.1Suwe### find out what to use for libz
451.1SuweZ_AS= library
461.1Suwe.include "${S}/lib/libz/Makefile.inc"
471.1SuweLIBZ= ${ZLIB}
481.1Suwe
491.4Sdhollandcleandir distclean: .WAIT cleanlibdir
501.1Suwe
511.1Suwecleanlibdir:
521.1Suwe	-rm -rf lib
53