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

OBJS = hello.o

all:	hello

hello: $(OBJS)
	$(CHARMC) -language charm++ -o hello $(OBJS)

hello.decl.h: hello.ci
	$(CHARMC)  hello.ci

clean:
	rm -f *.decl.h *.def.h conv-host *.o hello charmrun

hello.o: hello.C hello.decl.h
	$(CHARMC) -c hello.C

test: hello
	$(CHARMC) -language charm++ -o hello $(OBJS) -memory default
	./hello
	$(CHARMC) -language charm++ -o hello $(OBJS) -memory os
	./hello
	$(CHARMC) -language charm++ -o hello $(OBJS) -memory gnu
	./hello
	$(CHARMC) -language charm++ -o hello $(OBJS) -memory gnuold
	./hello
	$(CHARMC) -language charm++ -o hello $(OBJS) -memory isomalloc
	./hello

