Makefile.buildboot revision 1.14
11.14Spk#	$NetBSD: Makefile.buildboot,v 1.14 2000/10/20 11:21:08 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.14Spk# Note: relocating `boot' at 0x3C8000 seems to work on most machines
141.14SpkRELOC_DEFAULT?=	3C8000
151.14SpkRELOCS=		$(RELOC_DEFAULT)
161.14Spk#RELOCS+=	200000 400000 700000		# additional link addresses
171.14Spk
181.11Spk# `bootxx' is linked at a different address to circumvent i-cache
191.11Spk# flushing issues on Hypersparcs
201.14SpkRELOC_BOOTXX=	300000
211.1Smrg
221.12SpkCPPFLAGS+=	-D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE
231.1Smrg
241.5SpkCPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
251.1SmrgCFLAGS=		-O2
261.4SpkCFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes
271.1Smrg
281.1Smrg### find out what to use for libkern
291.1SmrgKERN_AS=	library
301.1Smrg.include "${S}/lib/libkern/Makefile.inc"
311.1SmrgLIBKERN=	${KERNLIB}
321.1Smrg
331.1Smrg.ifdef INCLUDE_LIBZ
341.1Smrg### find out what to use for libz
351.1SmrgZ_AS=		library
361.1Smrg.include "${S}/lib/libz/Makefile.inc"
371.1SmrgLIBZ=		${ZLIB}
381.1Smrg.endif
391.1Smrg
401.1Smrg### find out what to use for libsa
411.1SmrgSA_AS=		library
421.6SchristosSAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
431.1Smrg.include "${S}/lib/libsa/Makefile.inc"
441.1SmrgLIBSA=		${SALIB}
451.5Spk
461.8Spk.if !make(obj)
471.5Spk.BEGIN:
481.5Spk	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
491.9Smycroft.NOPATH: machine
501.9SmycroftCLEANFILES+= machine
511.8Spk.endif
52