Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.12.70.1
      1 #	$NetBSD: Makefile,v 1.12.70.1 2008/03/24 07:15:04 keiichi Exp $
      2 
      3 PROG=	aoutboot
      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 \
     11 	getopt.c disk.c
     12 
     13 ${PROG}: ip2xboot ip3xboot
     14 	${OBJCOPY} --impure -O ecoff-bigmips \
     15 		-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
     16 		ip2xboot aoutboot
     17 
     18 # XXX Temporary hack to install the ELF version, too.
     19 FILES+=		ip2xboot ip3xboot
     20 CLEANFILES+=	ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
     21 
     22 CLEANFILES+=	boot.map
     23 
     24 .include "../Makefile.booters"
     25 
     26 ip3xboot: ${OBJS} ${LIBS}
     27 	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
     28 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     29 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     30 	@${SIZE} ${.TARGET}
     31 
     32 ip2xboot: ${OBJS} ${LIBS}
     33 	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     34 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     35 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     36 	@${SIZE} ${.TARGET}
     37