1 # $NetBSD: Makefile,v 1.29 2000/07/21 21:25:18 jdolecek Exp $
5 SRCS
= start.S boot.c blkdev.c cfe.c cfe_api.c
6 SRCS
+= filesystem.c booted_dev.c
8 BOOT_RELOC
= ${SECONDARY_LOAD_ADDRESS}
10 CPPFLAGS
+= ${SECONDARY_CPPFLAGS} \
11 -DBOOT_TYPE_NAME
='"Secondary"' \
12 -DLIBSA_SINGLE_DEVICE
=blkdev \
13 -D
"blkdevioctl(x,y,z)=EINVAL"
15 CLEANFILES
+= ${PROG}.sym
18 @echo creating
${PROG} from
${PROG}.sym...
19 @
${OBJCOPY} --output-target
=binary
-R .reginfo
${PROG}.sym
${PROG}
22 @
${CHECKSIZE_CMD} ${PROG}.sym
${PROG} ${SECONDARY_MAX_LOAD} \
23 ${SECONDARY_MAX_TOTAL} ||
(rm -f
${PROG} ; false
)
25 SAMISCMAKEFLAGS
= SA_INCLUDE_NET
=no SA_USE_CREAD
=yes
26 .
include "../Makefile.bootprogs"
28 ${PROG}.sym
: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
29 ${LD} -Ttext
${BOOT_RELOC} -N
-e start
-o
${PROG}.sym \
30 ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}