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