CHARMC=../../../bin/charmc $(OPTS)

all: jacobi3D maxReduce

jacobi3D: jacobi3D.C
	$(CHARMC) -language bluegene -o jacobi3D jacobi3D.C

maxReduce: maxReduce.C
	$(CHARMC) -language bluegene -o maxReduce maxReduce.C

test: jacobi3D maxReduce
	./charmrun ./jacobi3D +p2  3 3 3 2 10
	./charmrun ./maxReduce +p2 +cth3 +wth10

clean:
	rm -f core *.cpm.h
	rm -f TAGS *.o
	rm -f jacobi3D maxReduce
	rm -f conv-host charmrun
