Makefile revision 1.4
11.4Srafal#	$NetBSD: Makefile,v 1.4 2002/07/12 13:04:03 rafal Exp $
21.1Sthorpej
31.1SthorpejPROG=	boot
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.2SthorpejSRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
111.1Sthorpej
121.3Sthorpej${PROG}: ${PROG}.elf
131.4Srafal	${ELF2ECOFF} ${PROG}.elf ${PROG}
141.3Sthorpej	@${SIZE} ${PROG}
151.3Sthorpej
161.3Sthorpej# XXX Temporary hack to install the ELF verision, too.
171.3SthorpejFILES+=		${PROG}.elf
181.3SthorpejCLEANFILES+=	${PROG}.elf
191.3Sthorpej
201.3SthorpejCLEANFILES+=	${PROG}.map
211.3Sthorpej
221.1Sthorpej.include "../Makefile.booters"
231.3Sthorpej
241.3Sthorpej${PROG}.elf: ${OBJS} ${LIBS}
251.3Sthorpej	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
261.3Sthorpej	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
271.3Sthorpej	@${STRIP} -s ${PROG}.elf
281.3Sthorpej	@${SIZE} ${PROG}.elf
29