Makefile revision 1.19
11.19Smatt# $NetBSD: Makefile,v 1.19 2011/02/26 16:26:58 matt Exp $ 21.1Sthorpej 31.1Sthorpej 41.4Srafal# Don't strip the ECOFF'ed version on install -- strip gets confused by that, 51.4Srafal# and it's already stripped since it's a copy of the stripped ELF one. 61.4Srafal# 71.4SrafalSTRIPFLAG= 81.4Srafal 91.6SsekiyaSRCS= start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \ 101.18Smatt getopt.c disk.c arcbios_calls.S 111.1Sthorpej 121.15SmattPROG= aoutboot 131.8Ssekiya${PROG}: ip2xboot ip3xboot 141.15Smatt.if ${MACHINE_ARCH} == "mipseb" 151.9Ssekiya ${OBJCOPY} --impure -O ecoff-bigmips \ 161.16Smatt -R .pdr -R .mdebug.nabi32 -R .mdebug.abi32 \ 171.15Smatt -R .comment -R .ident \ 181.15Smatt ip2xboot ${.TARGET} 191.15Smatt.else 201.15Smatt touch ${.TARGET} 211.15Smatt.endif 221.3Sthorpej 231.9Ssekiya# XXX Temporary hack to install the ELF version, too. 241.8SsekiyaFILES+= ip2xboot ip3xboot 251.13StsutsuiCLEANFILES+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf 261.3Sthorpej 271.15SmattCLEANFILES+= ip2xboot.map ip3xboot.map 281.3Sthorpej 291.1Sthorpej.include "../Makefile.booters" 301.5Spooka 311.8Ssekiyaip3xboot: ${OBJS} ${LIBS} 321.18Smatt ${_MKTARGET_LINK} 331.15Smatt ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \ 341.19Smatt -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 351.13Stsutsui @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 361.13Stsutsui @${SIZE} ${.TARGET} 371.8Ssekiya 381.8Ssekiyaip2xboot: ${OBJS} ${LIBS} 391.18Smatt ${_MKTARGET_LINK} 401.15Smatt ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 411.19Smatt -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 421.13Stsutsui @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 431.13Stsutsui @${SIZE} ${.TARGET} 441.14Stsutsui 451.17Sdhollandcleandir distclean: .WAIT cleanlibdir 461.14Stsutsuicleanlibdir: 471.14Stsutsui -rm -rf lib 48