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