# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
# accessors -- they don't actually dereference the resulting pointer,
# just use it for type-checking.
CWARNFLAGS+= ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}
LINKS+= ${BINDIR}/ofwboot ${BINDIR}/ofwboot.net
NOMAN= # defined
STRIPFLAG=
BINMODE= 444
NEWVERSWHAT= "OpenFirmware Boot"
#
# Elf64 defaults to 1MB
#
# We may get address conflicts with other bootloaders, say
# Sun's ufsboot, so we'll pick a reasonably empty address.
#
RELOC= 100000
### find out what to use for libkern
KERN_AS= library
include "${S}/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
### find out what to use for libz
Z_AS= library
include "${S}/lib/libz/Makefile.inc"
LIBZ= ${ZLIB}
### find out what to use for libsa
SA_AS= library
SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_USE_CREAD=yes
SAMISCCPPFLAGS+= -DCOMPAT_SOLARIS_UFS
include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}