Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.16.2.1
      1 #	$NetBSD: Makefile,v 1.16.2.1 2010/08/17 06:45:12 uebayasi Exp $
      2 
      3 
      4 # Don't strip the ECOFF'ed version on install -- strip gets confused by that,
      5 # and it's already stripped since it's a copy of the stripped ELF one.
      6 #
      7 STRIPFLAG=
      8 
      9 SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
     10 	getopt.c disk.c
     11 
     12 PROG=	aoutboot
     13 ${PROG}: ip2xboot ip3xboot
     14 .if ${MACHINE_ARCH} == "mipseb"
     15 	${OBJCOPY} --impure -O ecoff-bigmips \
     16 		-R .pdr -R .mdebug.nabi32 -R .mdebug.abi32 \
     17 		-R .comment -R .ident \
     18 		ip2xboot ${.TARGET}
     19 .else
     20 	touch ${.TARGET}
     21 .endif
     22 
     23 # XXX Temporary hack to install the ELF version, too.
     24 FILES+=		ip2xboot ip3xboot
     25 CLEANFILES+=	ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
     26 
     27 CLEANFILES+=	ip2xboot.map ip3xboot.map
     28 
     29 .include "../Makefile.booters"
     30 
     31 ip3xboot: ${OBJS} ${LIBS}
     32 	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
     33 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     34 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     35 	@${SIZE} ${.TARGET}
     36 
     37 ip2xboot: ${OBJS} ${LIBS}
     38 	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     39 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     40 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     41 	@${SIZE} ${.TARGET}
     42 
     43 cleandir distclean: .WAIT cleanlibdir
     44 cleanlibdir:
     45 	-rm -rf lib
     46