Makefile.bootprogs revision 1.2
11.2Snonaka# $NetBSD: Makefile.bootprogs,v 1.2 2009/04/13 12:54:45 nonaka 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.2Snonaka.include <bsd.klinks.mk>
331.1Suwe
341.1Suwelib:
351.1Suwe.ifdef LIBOBJ
361.1Suwe	-rm -f $@
371.1Suwe	ln -s ${LIBOBJ}/lib .
381.1Suwe	[ -d ${LIBOBJ}/lib ] || mkdir ${LIBOBJ}/lib
391.1Suwe.else
401.1Suwe	mkdir lib
411.1Suwe.endif
421.1Suwe
431.1Suwe### find out what to use for libsa
441.1SuweSA_AS= library
451.1Suwe.include "${S}/lib/libsa/Makefile.inc"
461.1SuweLIBSA= ${SALIB}
471.1SuweCPPFLAGS+=	-I$(SADIR)
481.1Suwe
491.1Suwe### find out what to use for libkern
501.1SuweKERN_AS= library
511.1Suwe.include "${S}/lib/libkern/Makefile.inc"
521.1SuweLIBKERN= ${KERNLIB}
531.1Suwe
541.1Suwe### find out what to use for libz
551.1SuweZ_AS= library
561.1Suwe.include "${S}/lib/libz/Makefile.inc"
571.1SuweLIBZ= ${ZLIB}
581.1Suwe
591.1Suwerealdepend realall: lib
601.1Suwe
611.1Suwecleandir distclean: cleanlibdir
621.1Suwe
631.1Suwecleanlibdir:
641.1Suwe	-rm -rf lib
65