Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.13
      1  1.13  tsutsui #	$NetBSD: Makefile,v 1.13 2008/02/23 05:42:51 tsutsui Exp $
      2   1.1  thorpej 
      3   1.8   sekiya PROG=	aoutboot
      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.6   sekiya SRCS=	start.S boot.c bootinfo.c conf.c devopen.c putchar.c getchar.c \
     11   1.6   sekiya 	getopt.c disk.c
     12   1.1  thorpej 
     13   1.8   sekiya ${PROG}: ip2xboot ip3xboot
     14   1.9   sekiya 	${OBJCOPY} --impure -O ecoff-bigmips \
     15   1.9   sekiya 		-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
     16   1.9   sekiya 		ip2xboot aoutboot
     17   1.3  thorpej 
     18   1.9   sekiya # XXX Temporary hack to install the ELF version, too.
     19   1.8   sekiya FILES+=		ip2xboot ip3xboot
     20  1.13  tsutsui CLEANFILES+=	ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf
     21   1.3  thorpej 
     22   1.8   sekiya CLEANFILES+=	boot.map
     23   1.3  thorpej 
     24   1.1  thorpej .include "../Makefile.booters"
     25   1.5    pooka 
     26   1.8   sekiya ip3xboot: ${OBJS} ${LIBS}
     27  1.10  tsutsui 	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
     28  1.13  tsutsui 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     29  1.13  tsutsui 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     30  1.13  tsutsui 	@${SIZE} ${.TARGET}
     31   1.8   sekiya 
     32   1.8   sekiya ip2xboot: ${OBJS} ${LIBS}
     33  1.11  tsutsui 	${LD} -Map boot.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     34  1.13  tsutsui 	    -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     35  1.13  tsutsui 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     36  1.13  tsutsui 	@${SIZE} ${.TARGET}
     37