xref: /netbsd-src/sys/arch/sgimips/stand/boot/Makefile (revision d9ac053afa92f3d7a493f791e10558f738234217)
1#	$NetBSD: Makefile,v 1.12 2005/12/11 12:18:58 christos 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 ip3xboot
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 ip3xboot ${OBJS} ${LIBS}
29	@${STRIP} -s ip3xboot
30	@${SIZE} ip3xboot
31
32ip2xboot: ${OBJS} ${LIBS}
33	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
34	    -e start -o ip2xboot ${OBJS} ${LIBS}
35	@${STRIP} -s ip2xboot
36	@${SIZE} ip2xboot
37