# TOOPS global makefile
# mjk 12 10 95

# Select make-Program 
# You may want to change this to gmake to use the GNU maker.
# If you want to change this, you'll also have to change it in
# "makefile.incl".
MAKER = make
#MAKER = gmake

all:
	$(MAKER) toops MYTARGET=$@
	$(MAKER) tutorial MYTARGET=$@ 
	$(MAKER) samples MYTARGET=$@ 

clean:
	$(MAKER) toops MYTARGET=$@ 
	$(MAKER) tutorial MYTARGET=$@ 
	$(MAKER) samples MYTARGET=$@ 

distclean:
	$(MAKER) toops MYTARGET=$@ 
	$(MAKER) tutorial MYTARGET=$@ 
	$(MAKER) samples MYTARGET=$@ 

unixdist:
	$(MAKER) toops MYTARGET=$@
	$(MAKER) tutorial MYTARGET=$@
	$(MAKER) samples MYTARGET=$@

toops:	
	cd source; $(MAKER) $(MYTARGET) 
	cd utility/source; $(MAKER) $(MYTARGET)

tutorial: toops
	cd tutorial/tut1; $(MAKER) $(MYTARGET)
	cd tutorial/tut2; $(MAKER) $(MYTARGET)
	cd tutorial/tut3; $(MAKER) $(MYTARGET)

samples: toops
	cd samples/simpprot; $(MAKER) $(MYTARGET)
	cd samples/abprot; $(MAKER) $(MYTARGET)

