Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.3.10.1
      1  1.3.10.1  gehenna #	$NetBSD: Makefile,v 1.3.10.1 2002/07/17 01:41:56 gehenna Exp $
      2       1.1  thorpej 
      3       1.1  thorpej PROG=	boot
      4       1.1  thorpej 
      5  1.3.10.1  gehenna # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
      6  1.3.10.1  gehenna # and it's already stripped since it's a copy of the stripped ELF one.
      7  1.3.10.1  gehenna #
      8  1.3.10.1  gehenna STRIPFLAG=
      9  1.3.10.1  gehenna 
     10       1.2  thorpej SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c disk.c
     11       1.1  thorpej 
     12       1.3  thorpej ${PROG}: ${PROG}.elf
     13  1.3.10.1  gehenna 	${ELF2ECOFF} ${PROG}.elf ${PROG}
     14       1.3  thorpej 	@${SIZE} ${PROG}
     15       1.3  thorpej 
     16       1.3  thorpej # XXX Temporary hack to install the ELF verision, too.
     17       1.3  thorpej FILES+=		${PROG}.elf
     18       1.3  thorpej CLEANFILES+=	${PROG}.elf
     19       1.3  thorpej 
     20       1.3  thorpej CLEANFILES+=	${PROG}.map
     21       1.3  thorpej 
     22       1.1  thorpej .include "../Makefile.booters"
     23       1.3  thorpej 
     24       1.3  thorpej ${PROG}.elf: ${OBJS} ${LIBS}
     25       1.3  thorpej 	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     26       1.3  thorpej 	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
     27       1.3  thorpej 	@${STRIP} -s ${PROG}.elf
     28       1.3  thorpej 	@${SIZE} ${PROG}.elf
     29