update make test target to match current arglist
[charm.git] / examples / charm++ / ckdirect / stencil3d / Makefile
1 OPTS    = -O3
2 CHARMC  = ../../../../bin/charmc $(OPTS)
3 SRC     = ../../../../src
4
5 OBJS = stencil3d.o
6
7 all: stencil3d-ckdirect stencil3d-msg
8
9 stencil3d-ckdirect: stencil3d-ckdirect.o
10         $(CHARMC) -language charm++ -o stencil3d-ckdirect stencil3d-ckdirect.o
11
12 stencil3d-msg: stencil3d-msg.o
13         $(CHARMC) -language charm++ -o stencil3d-msg stencil3d-msg.o
14
15 stencil3d.decl.h: stencil3d.ci
16         $(CHARMC)  stencil3d.ci
17
18 clean:
19         rm -f *.decl.h *.def.h conv-host *.o stencil3d charmrun stencil3d-ckdirect stencil3d-msg
20
21 stencil3d-ckdirect.o: stencil3d.C stencil3d.decl.h
22         $(CHARMC) -o stencil3d-ckdirect.o -DUSE_CKDIRECT stencil3d.C 
23
24 stencil3d-msg.o: stencil3d.C stencil3d.decl.h
25         $(CHARMC) -o stencil3d-msg.o -DUSE_MESSAGES stencil3d.C 
26
27 # these test values are for sanity checking.  Wider and larger favors RDMA
28 test: all
29         ./charmrun stencil3d-msg +p4 20 10 100 2 2 2 10 $(TESTOPTS)
30         ./charmrun stencil3d-ckdirect +p4 20 10 100 2 2 2 10 $(TESTOPTS)