Makefile revision 1.15
1#	$NetBSD: Makefile,v 1.15 2009/12/14 00:46:14 matt Exp $
2
3
4# Don't strip the ECOFF'ed version on install -- strip gets confused by that,
5# and it's already stripped since it's a copy of the stripped ELF one.
6#
7STRIPFLAG=
8
9SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
10	getopt.c disk.c
11
12PROG=	aoutboot
13${PROG}: ip2xboot ip3xboot
14.if ${MACHINE_ARCH} == "mipseb"
15	${OBJCOPY} --impure -O ecoff-bigmips \
16		-R .pdr -R .mdebug.nabi32 R .mdebug.abi32 \
17		-R .comment -R .ident \
18		ip2xboot ${.TARGET}
19.else
20	touch ${.TARGET}
21.endif
22
23# XXX Temporary hack to install the ELF version, too.
24FILES+=		ip2xboot ip3xboot
25CLEANFILES+=	ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
26
27CLEANFILES+=	ip2xboot.map ip3xboot.map
28
29.include "../Makefile.booters"
30
31ip3xboot: ${OBJS} ${LIBS}
32	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
33	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
34	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
35	@${SIZE} ${.TARGET}
36
37ip2xboot: ${OBJS} ${LIBS}
38	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
39	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
40	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
41	@${SIZE} ${.TARGET}
42
43cleandir distclean: cleanlibdir
44cleanlibdir:
45	-rm -rf lib
46