Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / landisk / stand / boot / Makefile.boot
blob5fa71129adc85204e23e75517cc2aa6637bd00e7
1 # $NetBSD: Makefile.boot,v 1.2 2009/04/21 15:17:58 tsutsui Exp $
3 PROG?=          boot
5 NEWVERSWHAT?=   "Boot"
6 VERSIONFILE?=   ${.CURDIR}/../version
8 SRCS=   boot.S boot2.c bootinfo.c conf.c devopen.c monitor.c
9 SRCS+=  delay.c getsecs.c
10 SRCS+=  bios.S
11 SRCS+=  biosdisk.c biosdisk_ll.c
12 SRCS+=  scifcons.c cons.c prf.c
13 .if !make(depend)
14 SRCS+=  vers.c
15 .endif
17 LDFLAGS+=       -e boot_start
19 CFLAGS=
20 CPPFLAGS=       -DSUPPORT_FFSv1
21 CPPFLAGS+=      -DSUPPORT_FFSv2
22 CPPFLAGS+=      -DSUPPORT_DOSFS
23 CPPFLAGS+=      -DSUPPORT_USTARFS
24 CPPFLAGS+=      -DDBMONITOR
25 #CPPFLAGS+=     -DDEBUG
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>