Makefile 561 Bytes
#!gmake

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

include $(SIMTOOLS)/makedefs

ifeq ($(CPU),SGI)
default:        simos
else
default:        simos-sun
endif

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

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

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

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

ifeq ($(CPU),SGI)
clean:        clean-sgi
else
clean:        clean-sun
endif

clean-sgi:
	rm -rf core  SGI 

clean-sun:
	rm -rf core  SUN