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

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

sdagfiles:
	$(CHARMC) test.sdag

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

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 test.sdag.h test.sdag.C *.decl.h *.def.h charmrun
