Makefile.buildboot revision 1.13
1#	$NetBSD: Makefile.buildboot,v 1.13 2000/08/28 19:10:31 pk Exp $
2
3S=	${.CURDIR}/../../../..
4
5.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc
6
7COMMONSOURCE=	srt0.S promdev.c dvma.c promlib.c
8
9SRCS=		${COMMONSOURCE} ${PROGSOURCE}
10MKMAN=		no
11BINMODE=	444
12
13RELOCS=		200000 3E0000 400000 700000
14# Note: a `RELOC' value of 0x3E0000 seems to work on most machines
15RELOC_DEFAULT?=	3E0000
16# `bootxx' is linked at a different address to circumvent i-cache
17# flushing issues on Hypersparcs
18RELOC_BOOTXX=	3F8000
19
20CPPFLAGS+=	-D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE
21
22CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
23CFLAGS=		-O2
24CFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes
25
26### find out what to use for libkern
27KERN_AS=	library
28.include "${S}/lib/libkern/Makefile.inc"
29LIBKERN=	${KERNLIB}
30
31.ifdef INCLUDE_LIBZ
32### find out what to use for libz
33Z_AS=		library
34.include "${S}/lib/libz/Makefile.inc"
35LIBZ=		${ZLIB}
36.endif
37
38### find out what to use for libsa
39SA_AS=		library
40SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
41.include "${S}/lib/libsa/Makefile.inc"
42LIBSA=		${SALIB}
43
44.if !make(obj)
45.BEGIN:
46	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
47.NOPATH: machine
48CLEANFILES+= machine
49.endif
50