xref: /netbsd/sys/arch/sgimips/stand/boot/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.3 2001/11/22 00:58:08 thorpej Exp $
2
3PROG=	boot
4
5SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
6
7${PROG}: ${PROG}.elf
8	${OBJCOPY} -O ecoff-bigmips ${PROG}.elf ${PROG}
9	@${SIZE} ${PROG}
10
11# XXX Temporary hack to install the ELF verision, too.
12FILES+=		${PROG}.elf
13CLEANFILES+=	${PROG}.elf
14
15CLEANFILES+=	${PROG}.map
16
17.include "../Makefile.booters"
18
19${PROG}.elf: ${OBJS} ${LIBS}
20	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
21	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
22	@${STRIP} -s ${PROG}.elf
23	@${SIZE} ${PROG}.elf
24