Home | History | Annotate | Line # | Download | only in boot
Makefile revision 1.13.4.2
      1  1.13.4.2     yamt #	$NetBSD: Makefile,v 1.13.4.2 2010/03/11 15:02:55 yamt 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.13.4.2     yamt PROG=	aoutboot
     13       1.8   sekiya ${PROG}: ip2xboot ip3xboot
     14  1.13.4.2     yamt .if ${MACHINE_ARCH} == "mipseb"
     15       1.9   sekiya 	${OBJCOPY} --impure -O ecoff-bigmips \
     16  1.13.4.2     yamt 		-R .pdr -R .mdebug.nabi32 -R .mdebug.abi32 \
     17  1.13.4.2     yamt 		-R .comment -R .ident \
     18  1.13.4.2     yamt 		ip2xboot ${.TARGET}
     19  1.13.4.2     yamt .else
     20  1.13.4.2     yamt 	touch ${.TARGET}
     21  1.13.4.2     yamt .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.13.4.2     yamt 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.13.4.2     yamt 	${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.13.4.2     yamt 	${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.13.4.1     yamt 
     43  1.13.4.1     yamt cleandir distclean: cleanlibdir
     44  1.13.4.1     yamt cleanlibdir:
     45  1.13.4.1     yamt 	-rm -rf lib
     46