2000-08-28 23:10:31 +04:00
|
|
|
# $NetBSD: Makefile.buildboot,v 1.13 2000/08/28 19:10:31 pk Exp $
|
1997-06-01 07:39:03 +04:00
|
|
|
|
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
|
1999-02-15 21:52:12 +03:00
|
|
|
.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc
|
1997-06-01 07:39:03 +04:00
|
|
|
|
1999-02-15 21:52:12 +03:00
|
|
|
COMMONSOURCE= srt0.S promdev.c dvma.c promlib.c
|
1997-06-01 07:39:03 +04:00
|
|
|
|
|
|
|
SRCS= ${COMMONSOURCE} ${PROGSOURCE}
|
1999-02-13 05:54:17 +03:00
|
|
|
MKMAN= no
|
1997-06-01 07:39:03 +04:00
|
|
|
BINMODE= 444
|
|
|
|
|
2000-08-28 23:10:31 +04:00
|
|
|
RELOCS= 200000 3E0000 400000 700000
|
|
|
|
# Note: a `RELOC' value of 0x3E0000 seems to work on most machines
|
|
|
|
RELOC_DEFAULT?= 3E0000
|
2000-02-21 18:07:32 +03:00
|
|
|
# `bootxx' is linked at a different address to circumvent i-cache
|
|
|
|
# flushing issues on Hypersparcs
|
2000-08-28 23:10:31 +04:00
|
|
|
RELOC_BOOTXX= 3F8000
|
1997-06-01 07:39:03 +04:00
|
|
|
|
2000-02-21 18:13:11 +03:00
|
|
|
CPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE
|
1997-06-01 07:39:03 +04:00
|
|
|
|
1999-02-15 22:31:34 +03:00
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
|
1997-06-01 07:39:03 +04:00
|
|
|
CFLAGS= -O2
|
1999-02-15 21:52:12 +03:00
|
|
|
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
|
1997-06-01 07:39:03 +04:00
|
|
|
|
|
|
|
### 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
|
1999-04-28 19:22:25 +04:00
|
|
|
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
|
1997-06-01 07:39:03 +04:00
|
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
|
|
LIBSA= ${SALIB}
|
1999-02-15 22:31:34 +03:00
|
|
|
|
1999-11-25 16:27:30 +03:00
|
|
|
.if !make(obj)
|
1999-02-15 22:31:34 +03:00
|
|
|
.BEGIN:
|
|
|
|
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
|
2000-01-23 20:04:03 +03:00
|
|
|
.NOPATH: machine
|
|
|
|
CLEANFILES+= machine
|
1999-11-25 16:27:30 +03:00
|
|
|
.endif
|