2001-11-22 03:58:07 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2001/11/22 00:58:08 thorpej Exp $
|
2001-11-21 22:09:06 +03:00
|
|
|
|
|
|
|
PROG= boot
|
|
|
|
|
2001-11-22 02:33:17 +03:00
|
|
|
SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
|
2001-11-21 22:09:06 +03:00
|
|
|
|
2001-11-22 03:58:07 +03:00
|
|
|
${PROG}: ${PROG}.elf
|
|
|
|
${OBJCOPY} -O ecoff-bigmips ${PROG}.elf ${PROG}
|
|
|
|
@${SIZE} ${PROG}
|
|
|
|
|
|
|
|
# XXX Temporary hack to install the ELF verision, too.
|
|
|
|
FILES+= ${PROG}.elf
|
|
|
|
CLEANFILES+= ${PROG}.elf
|
|
|
|
|
|
|
|
CLEANFILES+= ${PROG}.map
|
|
|
|
|
2001-11-21 22:09:06 +03:00
|
|
|
.include "../Makefile.booters"
|
2001-11-22 03:58:07 +03:00
|
|
|
|
|
|
|
${PROG}.elf: ${OBJS} ${LIBS}
|
|
|
|
${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
|
|
|
|
-e start -o ${PROG}.elf ${OBJS} ${LIBS}
|
|
|
|
@${STRIP} -s ${PROG}.elf
|
|
|
|
@${SIZE} ${PROG}.elf
|