1# $NetBSD: Makefile,v 1.4 2002/07/12 13:04:03 rafal Exp $ 2 3PROG= boot 4 5# Don't strip the ECOFF'ed version on install -- strip gets confused by that, 6# and it's already stripped since it's a copy of the stripped ELF one. 7# 8STRIPFLAG= 9 10SRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c 11 12${PROG}: ${PROG}.elf 13 ${ELF2ECOFF} ${PROG}.elf ${PROG} 14 @${SIZE} ${PROG} 15 16# XXX Temporary hack to install the ELF verision, too. 17FILES+= ${PROG}.elf 18CLEANFILES+= ${PROG}.elf 19 20CLEANFILES+= ${PROG}.map 21 22.include "../Makefile.booters" 23 24${PROG}.elf: ${OBJS} ${LIBS} 25 ${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 26 -e start -o ${PROG}.elf ${OBJS} ${LIBS} 27 @${STRIP} -s ${PROG}.elf 28 @${SIZE} ${PROG}.elf 29