Makefile revision 1.14
11.14Stsutsui#	$NetBSD: Makefile,v 1.14 2009/03/15 15:20:13 tsutsui Exp $
21.1Sthorpej
31.8SsekiyaPROG=	aoutboot
41.1Sthorpej
51.4Srafal# Don't strip the ECOFF'ed version on install -- strip gets confused by that,
61.4Srafal# and it's already stripped since it's a copy of the stripped ELF one.
71.4Srafal#
81.4SrafalSTRIPFLAG=
91.4Srafal
101.6SsekiyaSRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
111.6Ssekiya	getopt.c disk.c
121.1Sthorpej
131.8Ssekiya${PROG}: ip2xboot ip3xboot
141.9Ssekiya	${OBJCOPY} --impure -O ecoff-bigmips \
151.9Ssekiya		-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
161.9Ssekiya		ip2xboot aoutboot
171.3Sthorpej
181.9Ssekiya# XXX Temporary hack to install the ELF version, too.
191.8SsekiyaFILES+=		ip2xboot ip3xboot
201.13StsutsuiCLEANFILES+=	ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
211.3Sthorpej
221.8SsekiyaCLEANFILES+=	boot.map
231.3Sthorpej
241.1Sthorpej.include "../Makefile.booters"
251.5Spooka
261.8Ssekiyaip3xboot: ${OBJS} ${LIBS}
271.10Stsutsui	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
281.13Stsutsui	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
291.13Stsutsui	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
301.13Stsutsui	@${SIZE} ${.TARGET}
311.8Ssekiya
321.8Ssekiyaip2xboot: ${OBJS} ${LIBS}
331.11Stsutsui	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
341.13Stsutsui	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
351.13Stsutsui	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
361.13Stsutsui	@${SIZE} ${.TARGET}
371.14Stsutsui
381.14Stsutsuicleandir distclean: cleanlibdir
391.14Stsutsuicleanlibdir:
401.14Stsutsui	-rm -rf lib
41