#
# This makefile is a master for making the two-dimensional black hole
# code on the following architectures:
#
#          cray
#          convex
#          sun
#          rs6000
#          
#

# If your HDF libraries are not in your default search path, define the 
# path to the libraries in the following line.  Do not include the library
# file name, only the path of the directory containing the library.
HDFPATH= /usr/local/lib

# List of supported systems

SYSTEMS=	cray convex rs6000 sun


default:
	@if test -z "$(MAKE)"; then\
	        if test -z "$(SYSTEM)";\
	        then make ERROR;\
	        else make $(SYSTEM) MAKE="make";\
	        fi;\
	else\
	        if test -z "$(SYSTEM)";\
	        then $(MAKE) ERROR;\
	        else $(MAKE) $(SYSTEM) goober;\
	        fi;\
	fi

goober:

ERROR:
	@echo
	@echo\
 'Must type "make <system>", where <system> is one of the following:'
	@echo
	@echo  "        $(SYSTEMS)"
	@echo
	@echo\
 'Otherwise set the shell variable SYSTEM to one of these and just type "make".'
	@echo

cray:
	make -f make.cray HDFPATH=$(HDFPATH)

convex:
	make -f make.cvx HDFPATH=$(HDFPATH)

rs6000:
	make -f make.rs6k HDFPATH=$(HDFPATH)

sun:
	make -f make.sun HDFPATH=$(HDFPATH)
