Makefile 1.43 KB
#!gmake

ifndef SIMTOOLS
SIMTOOLS = ..
endif

include $(SIMTOOLS)/makedefs

default: 	simos-$(CPU)

simos-SGI:
	(cd mipsy; $(MAKE))
ifndef NO_EMBRA
	(cd embra; $(MAKE))
endif
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))

simos-SGIN32:
	(cd mipsy; $(MAKE))
ifndef NO_EMBRA
	(cd embra; $(MAKE))
endif
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))

simos-SGIM4:
	(cd mipsy; $(MAKE))
ifndef NO_EMBRA
	(cd embra; $(MAKE))
endif
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))

simos-SUN:
	(cd mipsy; $(MAKE))
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))

simos-ALPHA:
	(cd mipsy; $(MAKE))
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))

simos-X86:
	(cd mipsy; $(MAKE))
ifeq ($(CPUSIM),mxs)
	(cd mxs; $(MAKE))
endif
	(cd simos; $(MAKE))
	(cd simbb; $(MAKE))

simos64:
	(cd mipsy; $(MAKE) simos64 )
ifndef NO_EMBRA
	(cd embra; $(MAKE) simos64)
endif
	(cd simos; $(MAKE) simos64)

#DO NOT "make solo" in the solo dir.  Just "make", and let the makefile do the
#rest.
solo-mipsy:   
	(cd mipsy; $(MAKE) solo)
	(cd solo; $(MAKE))

clean:
	(cd mipsy; $(MAKE) clean)
	(cd embra; $(MAKE) clean)
	(cd simos; $(MAKE) clean)
	(cd simbb; $(MAKE) clean)
	@if [ -d mxs ] ; then cd mxs; $(MAKE) clean; fi

clobber:
	(cd mipsy; $(MAKE) clobber)
	(cd embra; $(MAKE) clobber)
	(cd simos; $(MAKE) clobber)
	(cd simbb; $(MAKE) clobber)
	@if [ -d mxs ] ; then cd mxs; $(MAKE) clobber; fi