45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2000/07/03 04:24:13 matt Exp $
|
|
|
|
S= ${.CURDIR}/../../../..
|
|
|
|
PROG= xxboot
|
|
LINKS= ${BINDIR}/xxboot ${BINDIR}/raboot
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/rdboot
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/sdboot
|
|
LINKS+= ${BINDIR}/xxboot ${BINDIR}/hpboot
|
|
WARNS?= 1
|
|
|
|
SRCS= start.s bootxx.c romread.s urem.s udiv.s str.s
|
|
|
|
STRIPFLAG=
|
|
CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
|
|
-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
|
|
-DLIBSA_NO_COMPAT_UFS \
|
|
-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \
|
|
-DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK
|
|
BINDIR= /usr/mdec
|
|
NOMAN= 1
|
|
|
|
CFLAGS= -Os
|
|
|
|
SA_AS= library
|
|
.include "${S}/lib/libsa/Makefile.inc"
|
|
LIBSA= ${SALIB}
|
|
|
|
KERN_AS=library
|
|
.include "${S}/lib/libkern/Makefile.inc"
|
|
LIBKERN=${KERNLIB}
|
|
|
|
.BEGIN:
|
|
@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
|
|
@[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
|
|
.NOPATH: machine ${MACHINE_ARCH}
|
|
CLEANFILES+= machine ${MACHINE_ARCH}
|
|
|
|
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
|
|
${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
|
|
${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN}
|
|
${OBJCOPY} -O binary ${PROG}.out ${PROG}
|
|
|
|
.include <bsd.prog.mk>
|