47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $NetBSD: Makefile.buildboot,v 1.7 1999/06/12 12:49:24 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\
|
|
-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}
|
|
|
|
.BEGIN:
|
|
@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
|