1 # $NetBSD: Makefile,v 1.6 2001/09/22 03:34:18 tv Exp $
5 SRCS
= start.S boot.c blkdev.c prom.c prom_disp.S OSFpal.c
6 SRCS
+= prom_swpal.S booted_dev.c
8 BOOT_RELOC
= ${UNIFIED_LOAD_ADDRESS}
10 CPPFLAGS
+= ${UNIFIED_CPPFLAGS} \
11 -DBOOT_TYPE_NAME
='"ustar"' \
12 -DLIBSA_SINGLE_DEVICE
=blkdev \
13 -D
"blkdevioctl(x,y,z)=EINVAL" \
14 -DLIBSA_SINGLE_FILESYSTEM
=ustarfs \
17 CLEANFILES
+= ${PROG}.sym
20 @echo creating
${PROG} from
${PROG}.sym...
21 @
${OBJCOPY} --output-target
=binary
${PROG}.sym
${PROG}
24 @
${CHECKSIZE_CMD} ${PROG}.sym
${PROG} ${UNIFIED_MAX_LOAD} \
25 ${UNIFIED_MAX_TOTAL} ||
(rm -f
${PROG} ; false
)
27 SAMISCMAKEFLAGS
= SA_INCLUDE_NET
=no SA_USE_CREAD
=yes
28 .
include "../Makefile.bootprogs"
30 ${PROG}.sym
: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
31 ${LD} -Ttext
${BOOT_RELOC} -N
-e start
-o
${PROG}.sym \
32 ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}