847fa00b188321a8916e996cf70fe4bb9bb495a4
[charm.git] / tests / charm++ / pingpong / Makefile
1 SRC=../../../src
2 CHARMC=../../../bin/charmc $(OPTS)
3
4 OBJS = pingpong.o
5
6 all:    pgm
7
8 pgm: $(OBJS)
9         $(CHARMC) -language charm++ -o pgm $(OBJS)
10
11 cifiles: pingpong.ci
12         $(CHARMC)  pingpong.ci
13         touch cifiles
14
15 clean:
16         rm -f *.decl.h *.def.h conv-host *.o pgm charmrun cifiles pgm.exe pgm.pdb pgm.ilk
17
18 pingpong.o: pingpong.C cifiles
19         $(CHARMC) -I$(SRC)/conv-core pingpong.C
20
21 test: all
22         @echo "Intra-processor Pingpong.."
23         ./charmrun ./pgm +p1 $(TESTOPTS)
24         @echo "Inter-processor Pingpong.."
25         ./charmrun ./pgm +p2 $(TESTOPTS)
26
27 bgtest: all
28         @echo "Intra-processor Pingpong.."
29         ./charmrun ./pgm +p1 +x1 +y1 +z1
30         @echo "Inter-processor Pingpong.."
31         ./charmrun ./pgm +p2 +x2 +y1 +z1
32