#
# To install type:   make 'BINDIR=~/bin'
# To test quickly type:  make test 'MAKEARGS= CFLAGS=-g'
#
SHELL = /bin/sh

BINDIR =. 
SIZEARGS=64
#
# Other possibilities
#BINDIR=$(HOME)/bin
#BINDIR=/usr/local/bin

install:
	(cd Fhp7_msite; make install 'BINDIR=$(BINDIR)' $(MAKEARGS))
	(cd Fhp6_msite; make install 'BINDIR=$(BINDIR)' $(MAKEARGS))
	(cd Fhp6_simp; make install 'BINDIR=$(BINDIR)' $(MAKEARGS))
	(cd ilg; make install 'BINDIR=$(BINDIR)' $(MAKEARGS))
	(cd processing; make install 'BINDIR=$(BINDIR)' $(MAKEARGS))


speed:
	(cd speedtest; make clean all $(MAKEARGS))

clean:
	(cd Fhp7_msite; make clean)
	(cd Fhp6_msite; make clean)
	(cd Fhp6_simp; make clean)
	(cd ilg; make clean)
	(cd processing; make clean)
	(cd speedtest; make clean)
	(cd testdir; make clean)
	rm -f *~ \#*\# tmp*

test:
	(cd testdir; test.s Fhp7_msite $(MAKEARGS) $(SIZEARGS); test.s Fhp6_msite $(MAKEARGS) $(SIZEARGS); test.s Fhp6_simp $(MAKEARGS) $(SIZEARGS); test.s ilg $(MAKEARGS) $(SIZEARGS))
