61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# $NetBSD: Makefile.buildboot,v 1.15 2000/10/31 23:21:47 pk Exp $
|
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc
|
|
|
|
COMMONSOURCE= srt0.S promdev.c dvma.c promlib.c
|
|
|
|
SRCS= ${COMMONSOURCE} ${PROGSOURCE}
|
|
MKMAN= no
|
|
BINMODE= 444
|
|
|
|
#
|
|
# The relocation address for `boot' must leave enough free memory below
|
|
# it to load a kernel at address 0x4000. On the other hand, on some
|
|
# machines, the PROM uses memory in the upper portion of the first 4MB
|
|
# segment, depending on the actual memory bank configuration probably.
|
|
# Our boot program must stear clear of that as well.
|
|
#
|
|
# Relocating `boot' at 0x388000 seems to provide a working compromise
|
|
# on the machines tested so far.
|
|
#
|
|
RELOC_DEFAULT?= 388000
|
|
RELOCS= $(RELOC_DEFAULT)
|
|
#RELOCS+= 200000 400000 700000 # additional link addresses
|
|
|
|
# `bootxx' is linked at a different address to circumvent i-cache
|
|
# flushing issues on Hypersparcs
|
|
RELOC_BOOTXX= 300000
|
|
|
|
CPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE
|
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
|
CFLAGS= -O2
|
|
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
|
|
|
|
### find out what to use for libkern
|
|
KERN_AS= library
|
|
.include "${S}/lib/libkern/Makefile.inc"
|
|
LIBKERN= ${KERNLIB}
|
|
|
|
.ifdef INCLUDE_LIBZ
|
|
### find out what to use for libz
|
|
Z_AS= library
|
|
.include "${S}/lib/libz/Makefile.inc"
|
|
LIBZ= ${ZLIB}
|
|
.endif
|
|
|
|
### find out what to use for libsa
|
|
SA_AS= library
|
|
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
LIBSA= ${SALIB}
|
|
|
|
.if !make(obj)
|
|
.BEGIN:
|
|
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
|
|
.NOPATH: machine
|
|
CLEANFILES+= machine
|
|
.endif
|