Makefile revision 1.17
11.17Sdholland#	$NetBSD: Makefile,v 1.17 2010/05/27 06:58:15 dholland 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.6Ssekiya	getopt.c disk.c
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.15Smatt	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
331.13Stsutsui	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
341.13Stsutsui	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
351.13Stsutsui	@${SIZE} ${.TARGET}
361.8Ssekiya
371.8Ssekiyaip2xboot: ${OBJS} ${LIBS}
381.15Smatt	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
391.13Stsutsui	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
401.13Stsutsui	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
411.13Stsutsui	@${SIZE} ${.TARGET}
421.14Stsutsui
431.17Sdhollandcleandir distclean: .WAIT cleanlibdir
441.14Stsutsuicleanlibdir:
451.14Stsutsui	-rm -rf lib
46