No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / alpha / stand / boot / Makefile
blob30d602fd2e20b2fabcec7ed011bec60f94e19ebc
1 # $NetBSD: Makefile,v 1.30 2000/09/26 05:13:36 simonb Exp $
3 PROG = boot
5 SRCS = start.S boot.c blkdev.c prom.c prom_disp.S OSFpal.c
6 SRCS+= filesystem.c prom_swpal.S booted_dev.c
8 # XXX for debugging primary and secondary together
9 # SRCS+= putstr.c putulong.c
11 BOOT_RELOC = ${SECONDARY_LOAD_ADDRESS}
13 CPPFLAGS += ${SECONDARY_CPPFLAGS} \
14 -DBOOT_TYPE_NAME='"Secondary"' \
15 -DBOOTXX_RAID1_SUPPORT \
16 -DLIBSA_SINGLE_DEVICE=blkdev \
17 -D"blkdevioctl(x,y,z)=EINVAL"
19 CLEANFILES+= ${PROG}.sym
21 ${PROG}: ${PROG}.sym
22 @echo creating ${PROG} from ${PROG}.sym...
23 @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
24 @chmod 644 ${PROG}
25 @ls -l ${PROG}
26 @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${SECONDARY_MAX_LOAD} \
27 ${SECONDARY_MAX_TOTAL} || (rm -f ${PROG} ; false)
29 SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=yes
30 .include "../Makefile.bootprogs"
32 ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
33 ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
34 ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
35 ${SIZE} ${PROG}.sym