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