1 1.1 tsutsui # $NetBSD: Makefile,v 1.1 2019/01/12 16:44:47 tsutsui Exp $ 2 1.1 tsutsui 3 1.1 tsutsui # Silicon Graphics "IRIS" series MIPS processors machine. 4 1.1 tsutsui STRIPFLAG= 5 1.1 tsutsui # If you try to use ARCBIOS(Indy or Indigo R4000) machine, Please comment it out! 6 1.1 tsutsui # Be sure to edit /sgimips/stand/common/iris_machdep.h! 7 1.1 tsutsui PRE_ARCS= yes 8 1.1 tsutsui 9 1.1 tsutsui .if defined(PRE_ARCS) 10 1.1 tsutsui SRCS= iris_start.S 11 1.1 tsutsui .else 12 1.1 tsutsui SRCS= start.S arcbios_calls.S 13 1.1 tsutsui .endif 14 1.1 tsutsui 15 1.1 tsutsui SRCS+= iris_boot.c 16 1.1 tsutsui SRCS+= bootinfo.c 17 1.1 tsutsui SRCS+= iris_prf.c iris_cons.c iris_zs.c 18 1.1 tsutsui SRCS+= iris_parse.c 19 1.1 tsutsui SRCS+= iris_autoconf.c iris_scsi.c 20 1.1 tsutsui SRCS+= iris_disk.c 21 1.1 tsutsui SRCS+= iris_scsictl.c 22 1.1 tsutsui SRCS+= iris_conf.c 23 1.1 tsutsui SRCS+= iris_devopen.c 24 1.1 tsutsui 25 1.1 tsutsui PROG= irisboot 26 1.1 tsutsui ${PROG}: ip12boot 27 1.1 tsutsui .if ${MACHINE_ARCH} == "mipseb" 28 1.1 tsutsui cp ip12boot ip12boot.tmp 29 1.1 tsutsui ${MIPS_ELF2ECOFF} ip12boot.tmp ${.TARGET} 30 1.1 tsutsui .else 31 1.1 tsutsui touch ${.TARGET} 32 1.1 tsutsui .endif 33 1.1 tsutsui 34 1.1 tsutsui # XXX Temporary hack to install the ELF version, too. 35 1.1 tsutsui FILES+= ip12boot 36 1.1 tsutsui CLEANFILES+= ip12boot ip12boot.elf 37 1.1 tsutsui 38 1.1 tsutsui CLEANFILES+= ip12boot.map 39 1.1 tsutsui 40 1.1 tsutsui CLEANFILES+= ip12boot.tmp 41 1.1 tsutsui 42 1.1 tsutsui .include "../Makefile.booters" 43 1.1 tsutsui 44 1.1 tsutsui ip12boot: ${OBJS} ${LIBS} 45 1.1 tsutsui ${_MKTARGET_LINK} 46 1.1 tsutsui .if defined(PRE_ARCS) 47 1.1 tsutsui ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS_IP12} ${LDBUG} \ 48 1.1 tsutsui -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 49 1.1 tsutsui .else 50 1.1 tsutsui ${LD} -Map ${.TARGET}.map -N -x -Ttext ${LOAD_ADDRESS} ${LDBUG} \ 51 1.1 tsutsui -m elf32btsmip -e start -o ${.TARGET}.elf ${OBJS} ${LIBS} 52 1.1 tsutsui .endif 53 1.1 tsutsui @${STRIP} -s ${.TARGET}.elf -o ${.TARGET} 54 1.1 tsutsui @${SIZE} ${.TARGET} 55 1.1 tsutsui 56 1.1 tsutsui cleandir distclean: .WAIT cleanlibdir 57 1.1 tsutsui cleanlibdir: 58 1.1 tsutsui -rm -rf lib 59