NetBSD/sys/arch/sparc/stand/Makefile.buildboot
1999-02-15 19:31:34 +00:00

45 lines
1.0 KiB
Makefile

# $NetBSD: Makefile.buildboot,v 1.5 1999/02/15 19:31:34 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
RELOC_SUN4= 0x240000
RELOC_SUN4C= 0x340000
RELOC_SUN4M= 0x440000
# Note: a `RELOC' value of 0x340000 seems to work on most machines
RELOC?= ${RELOC_SUN4C}
CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
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
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
.BEGIN:
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)