1# $NetBSD: Makefile,v 1.14 2009/03/15 15:20:13 tsutsui Exp $ 2 3PROG= aoutboot 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 \ 11 getopt.c disk.c 12 13${PROG}: ip2xboot ip3xboot 14 ${OBJCOPY} --impure -O ecoff-bigmips \ 15 -R .pdr -R .mdebug.abi32 -R .comment -R .ident \ 16 ip2xboot aoutboot 17 18# XXX Temporary hack to install the ELF version, too. 19FILES+= ip2xboot ip3xboot 20CLEANFILES+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf 21 22CLEANFILES+= boot.map 23 24.include "../Makefile.booters" 25 26ip3xboot: ${OBJS} ${LIBS} 27 ${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \ 28 -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 29 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 30 @${SIZE} ${.TARGET} 31 32ip2xboot: ${OBJS} ${LIBS} 33 ${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 34 -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 35 @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 36 @${SIZE} ${.TARGET} 37 38cleandir distclean: cleanlibdir 39cleanlibdir: 40 -rm -rf lib 41