2000-01-23 20:04:03 +03:00
|
|
|
# $NetBSD: Makefile.buildboot,v 1.9 2000/01/23 17:04:10 mycroft 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
|
|
|
|
|
|
|
|
RELOC_SUN4= 0x240000
|
|
|
|
RELOC_SUN4C= 0x340000
|
|
|
|
RELOC_SUN4M= 0x440000
|
|
|
|
|
|
|
|
# Note: a `RELOC' value of 0x340000 seems to work on most machines
|
|
|
|
RELOC?= ${RELOC_SUN4C}
|
|
|
|
|
1999-06-12 16:49:24 +04:00
|
|
|
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS\
|
|
|
|
-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
|