CHARMC=../../../bin/charmc
all: cifiles sdagfiles pgm

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

sdagfiles:
	$(CHARMC) test.sdag

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

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

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

clean:
	rm -rf conv-host pgm *.o test.sdag.h test.sdag.C *.decl.h *.def.h
