Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 2002/12/23 19:31:25 pooka Exp $
2
3PROG=	boot
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 disk.c
11
12${PROG}: ${PROG}.elf ${PROG}.ip32
13	${ELF2ECOFF} ${PROG}.elf ${PROG}
14	@${SIZE} ${PROG}
15
16# XXX Temporary hack to install the ELF verision, too.
17FILES+=		${PROG}.elf ${PROG}.ip32
18CLEANFILES+=	${PROG}.elf ${PROG}.ip32
19
20CLEANFILES+=	${PROG}.map
21
22.include "../Makefile.booters"
23
24${PROG}.ip32: ${OBJS} ${LIBS}
25	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
26	    -e start -o ${PROG}.ip32 ${OBJS} ${LIBS}
27	@${STRIP} -s ${PROG}.ip32
28	@${SIZE} ${PROG}.ip32
29
30${PROG}.elf: ${OBJS} ${LIBS}
31	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
32	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
33	@${STRIP} -s ${PROG}.elf
34	@${SIZE} ${PROG}.elf
35