CHARMC=../../../bin/charmc $(OPTS)
all: cifiles pgm

cifiles:
	$(CHARMC) main.ci
	$(CHARMC) test.ci

pgm: main.o test.o
	$(CHARMC) -o pgm main.o test.o  -language charm++

main.o: main.C main.h
	$(CHARMC) -c main.C 

test.o: test.C test.h
	$(CHARMC) -c test.C 

clean:
	rm -rf conv-host pgm *.o *.decl.h *.def.h charmrun

test: cifiles pgm
	./charmrun +p2 ./pgm
