No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / alpha / stand / ustarboot / Makefile
blob71f4c2f62fab0966fc3ec2418e4a1da70a290f8d
1 # $NetBSD: Makefile,v 1.6 2001/09/22 03:34:18 tv Exp $
3 PROG = ustarboot
5 SRCS = start.S boot.c blkdev.c prom.c prom_disp.S OSFpal.c
6 SRCS+= prom_swpal.S booted_dev.c
8 BOOT_RELOC = ${UNIFIED_LOAD_ADDRESS}
10 CPPFLAGS += ${UNIFIED_CPPFLAGS} \
11 -DBOOT_TYPE_NAME='"ustar"' \
12 -DLIBSA_SINGLE_DEVICE=blkdev \
13 -D"blkdevioctl(x,y,z)=EINVAL" \
14 -DLIBSA_SINGLE_FILESYSTEM=ustarfs \
15 -DNO_LOAD_NOTE
17 CLEANFILES+= ${PROG}.sym
19 ${PROG}: ${PROG}.sym
20 @echo creating ${PROG} from ${PROG}.sym...
21 @${OBJCOPY} --output-target=binary ${PROG}.sym ${PROG}
22 @chmod 644 ${PROG}
23 @ls -l ${PROG}
24 @${CHECKSIZE_CMD} ${PROG}.sym ${PROG} ${UNIFIED_MAX_LOAD} \
25 ${UNIFIED_MAX_TOTAL} || (rm -f ${PROG} ; false)
27 SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=yes
28 .include "../Makefile.bootprogs"
30 ${PROG}.sym: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
31 ${LD} -Ttext ${BOOT_RELOC} -N -e start -o ${PROG}.sym \
32 ${OBJS} ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
33 ${SIZE} ${PROG}.sym