Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.3.2.2
      1 #	$NetBSD: Makefile,v 1.3.2.2 2002/01/10 19:48:33 thorpej Exp $
      2 
      3 PROG=	boot
      4 
      5 SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
      6 
      7 ${PROG}: ${PROG}.elf
      8 	${OBJCOPY} -O ecoff-bigmips ${PROG}.elf ${PROG}
      9 	@${SIZE} ${PROG}
     10 
     11 # XXX Temporary hack to install the ELF verision, too.
     12 FILES+=		${PROG}.elf
     13 CLEANFILES+=	${PROG}.elf
     14 
     15 CLEANFILES+=	${PROG}.map
     16 
     17 .include "../Makefile.booters"
     18 
     19 ${PROG}.elf: ${OBJS} ${LIBS}
     20 	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     21 	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
     22 	@${STRIP} -s ${PROG}.elf
     23 	@${SIZE} ${PROG}.elf
     24