No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / sbmips / stand / boot / Makefile
blob914edc6062d6d7cdf8d8c519b6d7937baa7d6824
1 # $NetBSD: Makefile,v 1.29 2000/07/21 21:25:18 jdolecek Exp $
3 PROG = boot
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
17 ${PROG}: ${PROG}.sym
18 @echo creating ${PROG} from ${PROG}.sym...
19 @${OBJCOPY} --output-target=binary -R .reginfo ${PROG}.sym ${PROG}
20 @chmod 644 ${PROG}
21 @ls -l ${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}
31 ${SIZE} ${PROG}.sym