1 # $NetBSD: Makefile,v 1.17.2.3 2004/09/21 13:23:40 skrll Exp $
3 S
= ${.CURDIR
}/..
/..
/..
/..
8 LINKS
= ${BINDIR}/xxboot
${BINDIR}/raboot
9 LINKS
+= ${BINDIR}/xxboot
${BINDIR}/rdboot
10 LINKS
+= ${BINDIR}/xxboot
${BINDIR}/sdboot
11 LINKS
+= ${BINDIR}/xxboot
${BINDIR}/hpboot
13 SRCS
= start.S bootxx.c romread.S str.S
16 CPPFLAGS
+=-D_STANDALONE
-DLIBSA_NO_FD_CHECKING
-DLIBSA_NO_RAW_ACCESS \
17 -DLIBSA_NO_TWIDDLE
-DLIBSA_SINGLE_DEVICE
=rom \
18 -DLIBSA_NO_COMPAT_UFS \
19 -DLIBSA_NO_FS_SYMLINK
-DLIBSA_NO_FS_CLOSE \
20 -DLIBSA_NO_FS_WRITE
-DLIBSA_NO_FS_SEEK \
21 -DNEED_UFS
-DNEED_CD9660
22 # Use small daddr_t to avoid code bloat
23 CPPFLAGS
+=-D__daddr_t
=int32_t
30 .
include "${S}/lib/libsa/Makefile.inc"
34 .
include "${S}/lib/libkern/Makefile.inc"
37 CLEANFILES
+= ${PROG}.out
39 ${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
40 ${LD} -N
-Ttext
100000 -o
${PROG}.out
${OBJS} ${LIBSA} ${LIBKERN}
42 ${OBJCOPY} -O binary
${PROG}.out
${PROG}
44 .
include <bsd.prog.mk
>