1 # $NetBSD: Makefile.boot,v 1.2 2009/04/21 15:17:58 tsutsui Exp $
6 VERSIONFILE?= ${.CURDIR}/../version
8 SRCS= boot.S boot2.c bootinfo.c conf.c devopen.c monitor.c
9 SRCS+= delay.c getsecs.c
11 SRCS+= biosdisk.c biosdisk_ll.c
12 SRCS+= scifcons.c cons.c prf.c
17 LDFLAGS+= -e boot_start
20 CPPFLAGS= -DSUPPORT_FFSv1
21 CPPFLAGS+= -DSUPPORT_FFSv2
22 CPPFLAGS+= -DSUPPORT_DOSFS
23 CPPFLAGS+= -DSUPPORT_USTARFS
24 CPPFLAGS+= -DDBMONITOR
27 SAMISCMAKEFLAGS+="SA_USE_CREAD=yes"
28 SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
30 .include "../Makefile.bootprogs"
32 LIBLIST= ${LIBSA} ${LIBZ} ${LIBKERN}
34 CLEANFILES+= ${PROG}.sym ${PROG}.map vers.c
36 vers.c: ${VERSIONFILE} ${SOURCES} ${.CURDIR}/../Makefile.boot
37 ${HOST_SH} ${S}/conf/newvers_stand.sh ${VERSIONFILE} ${MACHINE} ${NEWVERSWHAT}
39 ${PROG}: ${OBJS} ${LIBLIST}
40 ${LD} -o ${PROG}.sym ${LDFLAGS} -Ttext ${SECONDARY_LOAD_ADDRESS} \
41 -Map ${PROG}.map -cref ${OBJS} ${LIBLIST}
42 ${OBJCOPY} -O binary ${PROG}.sym ${PROG}
44 .include <bsd.prog.mk>