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