Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.16.4.2
      1  1.16.4.2    rmind #	$NetBSD: Makefile,v 1.16.4.2 2011/03/05 20:51:56 rmind 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.16.4.2    rmind 	getopt.c disk.c arcbios_calls.S
     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.16.4.2    rmind 	${_MKTARGET_LINK}
     33      1.15     matt 	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \
     34  1.16.4.2    rmind 	    -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     35      1.13  tsutsui 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     36      1.13  tsutsui 	@${SIZE} ${.TARGET}
     37       1.8   sekiya 
     38       1.8   sekiya ip2xboot: ${OBJS} ${LIBS}
     39  1.16.4.2    rmind 	${_MKTARGET_LINK}
     40      1.15     matt 	${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \
     41  1.16.4.2    rmind 	    -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS}
     42      1.13  tsutsui 	@${STRIP} -s ${.TARGET}.elf -o ${.TARGET}
     43      1.13  tsutsui 	@${SIZE} ${.TARGET}
     44      1.14  tsutsui 
     45  1.16.4.1    rmind cleandir distclean: .WAIT cleanlibdir
     46      1.14  tsutsui cleanlibdir:
     47      1.14  tsutsui 	-rm -rf lib
     48