1 1.22 rin # $NetBSD: Makefile,v 1.22 2024/06/29 08:06:56 rin 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.22 rin 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.21 christos ${MIPS_ELF2ECOFF} ip2xboot ${.TARGET} 16 1.15 matt .else 17 1.15 matt touch ${.TARGET} 18 1.15 matt .endif 19 1.3 thorpej 20 1.9 sekiya # XXX Temporary hack to install the ELF version, too. 21 1.8 sekiya FILES+= ip2xboot ip3xboot 22 1.13 tsutsui CLEANFILES+= ip2xboot ip2xboot.elf ip3xboot ip3xboot.elf 23 1.3 thorpej 24 1.15 matt CLEANFILES+= ip2xboot.map ip3xboot.map 25 1.3 thorpej 26 1.1 thorpej .include "../Makefile.booters" 27 1.5 pooka 28 1.8 sekiya ip3xboot: ${OBJS} ${LIBS} 29 1.18 matt ${_MKTARGET_LINK} 30 1.15 matt ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP32} ${LDBUG} \ 31 1.19 matt -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 32 1.13 tsutsui @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 33 1.13 tsutsui @${SIZE} ${.TARGET} 34 1.8 sekiya 35 1.8 sekiya ip2xboot: ${OBJS} ${LIBS} 36 1.18 matt ${_MKTARGET_LINK} 37 1.15 matt ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 38 1.19 matt -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 39 1.13 tsutsui @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 40 1.13 tsutsui @${SIZE} ${.TARGET} 41 1.14 tsutsui 42 1.17 dholland cleandir distclean: .WAIT cleanlibdir 43 1.14 tsutsui cleanlibdir: 44 1.14 tsutsui -rm -rf lib 45