Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.5
      1  1.5    pooka #	$NetBSD: Makefile,v 1.5 2002/12/23 19:31:25 pooka Exp $
      2  1.1  thorpej 
      3  1.1  thorpej PROG=	boot
      4  1.1  thorpej 
      5  1.4    rafal # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
      6  1.4    rafal # and it's already stripped since it's a copy of the stripped ELF one.
      7  1.4    rafal #
      8  1.4    rafal STRIPFLAG=
      9  1.4    rafal 
     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.5    pooka ${PROG}: ${PROG}.elf ${PROG}.ip32
     13  1.4    rafal 	${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.5    pooka FILES+=		${PROG}.elf ${PROG}.ip32
     18  1.5    pooka CLEANFILES+=	${PROG}.elf ${PROG}.ip32
     19  1.3  thorpej 
     20  1.3  thorpej CLEANFILES+=	${PROG}.map
     21  1.3  thorpej 
     22  1.1  thorpej .include "../Makefile.booters"
     23  1.5    pooka 
     24  1.5    pooka ${PROG}.ip32: ${OBJS} ${LIBS}
     25  1.5    pooka 	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
     26  1.5    pooka 	    -e start -o ${PROG}.ip32 ${OBJS} ${LIBS}
     27  1.5    pooka 	@${STRIP} -s ${PROG}.ip32
     28  1.5    pooka 	@${SIZE} ${PROG}.ip32
     29  1.3  thorpej 
     30  1.3  thorpej ${PROG}.elf: ${OBJS} ${LIBS}
     31  1.3  thorpej 	${LD} -Map ${PROG}.map -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     32  1.3  thorpej 	    -e start -o ${PROG}.elf ${OBJS} ${LIBS}
     33  1.3  thorpej 	@${STRIP} -s ${PROG}.elf
     34  1.3  thorpej 	@${SIZE} ${PROG}.elf
     35