2000-04-16 05:44:36 +04:00
|
|
|
# $NetBSD: Makefile,v 1.3 2000/04/16 01:44:36 matt Exp $
|
1999-03-06 19:36:04 +03:00
|
|
|
|
|
|
|
S= ${.CURDIR}/../../../../
|
|
|
|
|
|
|
|
PROG= xxboot
|
|
|
|
LINKS= ${BINDIR}/xxboot ${BINDIR}/raboot
|
|
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/rdboot
|
|
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/sdboot
|
|
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/hpboot
|
|
|
|
|
|
|
|
SRCS= start.s bootxx.c romread.s urem.s udiv.s str.s
|
|
|
|
|
|
|
|
STRIPFLAG=
|
1999-10-23 18:40:38 +04:00
|
|
|
CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
|
|
|
|
-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
|
|
|
|
-DLIBSA_SINGLE_FILESYSTEM=ufs
|
1999-03-06 19:36:04 +03:00
|
|
|
BINDIR= /usr/mdec
|
|
|
|
NOMAN= 1
|
|
|
|
|
|
|
|
SA_AS= library
|
|
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
|
|
LIBSA= ${SALIB}
|
|
|
|
|
|
|
|
${PROG}: ${OBJS} ${LIBSA}
|
2000-04-16 05:44:36 +04:00
|
|
|
ld -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA}
|
|
|
|
objcopy -O binary ${PROG}.out ${PROG}
|
1999-03-06 19:36:04 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|