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