xref: /netbsd-src/sys/arch/landisk/stand/Makefile.bootprogs (revision 8c436a9898268d0741505551551697b73d50c258)
1*8c436a98Stsutsui# $NetBSD: Makefile.bootprogs,v 1.6 2014/01/12 15:26:29 tsutsui Exp $
21fd097bfSuwe
31fd097bfSuweS=		${.CURDIR}/../../../../..
41fd097bfSuwe
51fd097bfSuweNOMAN=		# defined
61fd097bfSuwe
71fd097bfSuweBINDIR=		/usr/mdec
81fd097bfSuweBINMODE=	0444
91fd097bfSuwe
101fd097bfSuwePRIMARY_LOAD_ADDRESS?=0x8c201000
111fd097bfSuweSECONDARY_LOAD_ADDRESS?=0x8ff00000
121fd097bfSuwe
131fd097bfSuwe.include <bsd.own.mk>
14a6b3901fSmatt.include <bsd.klinks.mk>
151fd097bfSuwe
161fd097bfSuweSTRIPFLAG=	# override
171fd097bfSuwe
181fd097bfSuweLIBCRT0=	# nothing
19*8c436a98StsutsuiLIBCRTI=	# nothing
201fd097bfSuweLIBCRTBEGIN=	# nothing
211fd097bfSuweLIBCRTEND=	# nothing
221fd097bfSuweLIBC=		# nothing
231fd097bfSuwe
241fd097bfSuwe.PATH:	${.CURDIR}/..
251fd097bfSuwe
2688856a8dSnonakaCOPTS=		-m4-nofpu -Os -ffreestanding
271fd097bfSuwe
281fd097bfSuweLDFLAGS+=	-N
291fd097bfSuweCFLAGS+=	-Wall -Wmissing-prototypes -Wstrict-prototypes
301fd097bfSuweCPPFLAGS+=	-nostdinc -D_STANDALONE
311fd097bfSuweCPPFLAGS+=	-DSH4
321fd097bfSuweCPPFLAGS+=	-I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
331fd097bfSuwe
341fd097bfSuwe### find out what to use for libsa
351fd097bfSuweSA_AS= library
361fd097bfSuwe.include "${S}/lib/libsa/Makefile.inc"
371fd097bfSuweLIBSA= ${SALIB}
381fd097bfSuweCPPFLAGS+=	-I$(SADIR)
391fd097bfSuwe
401fd097bfSuwe### find out what to use for libkern
411fd097bfSuweKERN_AS= library
421fd097bfSuwe.include "${S}/lib/libkern/Makefile.inc"
431fd097bfSuweLIBKERN= ${KERNLIB}
441fd097bfSuwe
451fd097bfSuwe### find out what to use for libz
461fd097bfSuweZ_AS= library
471fd097bfSuwe.include "${S}/lib/libz/Makefile.inc"
481fd097bfSuweLIBZ= ${ZLIB}
491fd097bfSuwe
505ef6a33bSdhollandcleandir distclean: .WAIT cleanlibdir
511fd097bfSuwe
521fd097bfSuwecleanlibdir:
531fd097bfSuwe	-rm -rf lib
54