Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.3.10.1
      1 #	$NetBSD: Makefile,v 1.3.10.1 2002/07/17 01:41:56 gehenna Exp $
      2 
      3 PROG=	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 #
      8 STRIPFLAG=
      9 
     10 SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
     11 
     12 ${PROG}: ${PROG}.elf
     13 	${ELF2ECOFF} ${PROG}.elf ${PROG}
     14 	@${SIZE} ${PROG}
     15 
     16 # XXX Temporary hack to install the ELF verision, too.
     17 FILES+=		${PROG}.elf
     18 CLEANFILES+=	${PROG}.elf
     19 
     20 CLEANFILES+=	${PROG}.map
     21 
     22 .include "../Makefile.booters"
     23 
     24 ${PROG}.elf: ${OBJS} ${LIBS}
     25 	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     26 	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
     27 	@${STRIP} -s ${PROG}.elf
     28 	@${SIZE} ${PROG}.elf
     29