fixed "all"
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 2 Oct 2007 06:46:24 +0000 (06:46 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 2 Oct 2007 06:46:24 +0000 (06:46 +0000)
examples/ampi/creduce/Makefile

index 62da4fdb8dfa7c6560880c0b58101481087999c4..ef32e1fb008170c4d4fb70bce19183e06fc5c713 100644 (file)
@@ -1,8 +1,10 @@
 CHARMC=../../../bin/charmc $(OPTS)
 
-all: ampi
+all: pgm
 
-ampi: test.C
+ampi: clean pgm
+
+pgm: test.C
        $(CHARMC) -c test.C
        $(CHARMC) -o pgm test.o -language ampi
 
@@ -12,7 +14,7 @@ mpi: test.C
 clean:
        rm -f *.o *.mod pgm *~ conv-host charmrun
 
-test: ampi
+test: pgm
        ./charmrun ./pgm +p1 +vp1
        ./charmrun ./pgm +p1 +vp2
        ./charmrun ./pgm +p1 +vp4