Makefile 906 Bytes
#!gmake

ifndef SIMTOOLS
SIMTOOLS = ../../..
endif

include $(SIMTOOLS)/makedefs

ifeq ($(CPU),SUN)
default:        simos-sun
clean:		clean-sun
endif
ifeq ($(CPU),SGI)
default:        simos
clean:		clean-sgi
endif
ifeq ($(CPU),SGIN32)
default:        simos-sgin32
clean:		clean-sgi
endif

simos: simos-dir
	($(MAKE) -f ../Makefile.ALL -C SGI SIMOS=1 SIM_ARCH=MIPS32)

simos-sgin32: simos-dir
	($(MAKE) -f ../Makefile.ALL -C SGI SIMOS=1 SIM_ARCH=MIPS64)

simos-sun: simos-sun-dir
	($(MAKE) -f ../Makefile.ALL -C SUN SIMOS=1 SIM_ARCH=SUN)

simos-alpha: simos-alpha-dir
	($(MAKE) -f ../Makefile.ALL -C ALPHA SIMOS=1 SIM_ARCH=ALPHA)


simos-dir:
	@if [ -d SGI ] ; then true; else mkdir SGI; fi

simos-sun-dir:
	@if [ -d SUN ] ; then true; else mkdir SUN; fi

simos-alpha-dir:
	@if [ -d ALPHA ] ; then true; else mkdir ALPHA; fi

clean-sgi:
	rm -rf core SGI rmtaccess

clean-sun:
	rm -rf core SUN rmtaccess-sun