Makefile.buildboot revision 1.11
11.11Spk#	$NetBSD: Makefile.buildboot,v 1.11 2000/02/21 15:07:32 pk Exp $
21.1Smrg
31.1SmrgS=	${.CURDIR}/../../../..
41.1Smrg
51.4Spk.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc
61.1Smrg
71.4SpkCOMMONSOURCE=	srt0.S promdev.c dvma.c promlib.c
81.1Smrg
91.1SmrgSRCS=		${COMMONSOURCE} ${PROGSOURCE}
101.3SlukemMKMAN=		no
111.1SmrgBINMODE=	444
121.1Smrg
131.11SpkRELOCS=		200000 300000 400000 700000
141.11Spk# Note: a `RELOC' value of 0x300000 seems to work on most machines
151.11SpkRELOC_DEFAULT?=	300000
161.11Spk# `bootxx' is linked at a different address to circumvent i-cache
171.11Spk# flushing issues on Hypersparcs
181.11SpkRELOC_BOOTXX=	340000
191.1Smrg
201.10SpkCPPFLAGS+=	-D_STANDALONE -DSUN4 -DSUN4C -DSUN_BOOTPARAMS -DHEAP_VARIABLE
211.1Smrg
221.5SpkCPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
231.1SmrgCFLAGS=		-O2
241.4SpkCFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes
251.1Smrg
261.1Smrg### find out what to use for libkern
271.1SmrgKERN_AS=	library
281.1Smrg.include "${S}/lib/libkern/Makefile.inc"
291.1SmrgLIBKERN=	${KERNLIB}
301.1Smrg
311.1Smrg.ifdef INCLUDE_LIBZ
321.1Smrg### find out what to use for libz
331.1SmrgZ_AS=		library
341.1Smrg.include "${S}/lib/libz/Makefile.inc"
351.1SmrgLIBZ=		${ZLIB}
361.1Smrg.endif
371.1Smrg
381.1Smrg### find out what to use for libsa
391.1SmrgSA_AS=		library
401.6SchristosSAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
411.1Smrg.include "${S}/lib/libsa/Makefile.inc"
421.1SmrgLIBSA=		${SALIB}
431.5Spk
441.8Spk.if !make(obj)
451.5Spk.BEGIN:
461.5Spk	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
471.9Smycroft.NOPATH: machine
481.9SmycroftCLEANFILES+= machine
491.8Spk.endif
50