1include ../../Make.inc
2
3#-----------------------------------------------------------------------
4#
5#  set suffix rule *.c --> *.o
6#
7.c.o :
8	$(PURIFY) $(CC) -c $(CFLAGS) $(MPI_INCLUDE_DIR) $<
9#
10
11#-----------------------------------------------------------------------
12
13LIBS = ../src/spoolesMPI.a ../../spooles.a $(MPI_LIBS) -lm
14
15DRIVERS = allInOneMPI patchAndGoMPI testGridMPI testIV_allgather \
16          testIVL_allgather testIVL_alltoall testSplitDenseMtx \
17          testSplitInpMtx testSymbFac testGather testMMM \
18          testIVL_Bcast testGraph_Bcast \
19          testScatterDenseMtx testScatterInpMtx
20
21libs :
22	cd ../src ; make spoolesMPI.a
23
24drivers : ${DRIVERS}
25
26clean :
27	- rm -f *.a *.o ${DRIVERS}
28
29allInOneMPI : allInOneMPI.o libs ../../spooles.a
30	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
31
32patchAndGoMPI : patchAndGoMPI.o libs ../../spooles.a
33	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
34
35testGather : testGather.o libs ../../spooles.a
36	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
37
38testGraph_Bcast : testGraph_Bcast.o libs ../../spooles.a
39	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
40
41testGridMPI : testGridMPI.o libs ../../spooles.a
42	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
43
44testMMM : testMMM.o libs ../../spooles.a
45	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
46
47testScatterDenseMtx : testScatterDenseMtx.o libs ../../spooles.a
48	${PURIFY} ${CC} $@.o -o $@ ${LIBS}
49
50testScatterInpMtx : testScatterInpMtx.o libs ../../spooles.a
51	${PURIFY} ${CC} $@.o -o $@ ${LIBS}
52
53testSymbFac : testSymbFac.o libs ../../spooles.a
54	${PURIFY} ${CC} $@.o -o $@ ${LIBS}
55
56testSplitDenseMtx : testSplitDenseMtx.o libs ../../spooles.a
57	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
58
59testSplitInpMtx : testSplitInpMtx.o libs ../../spooles.a
60	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
61
62testIV_allgather : testIV_allgather.o libs ../../spooles.a
63	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
64
65testIVL_allgather : testIVL_allgather.o libs ../../spooles.a
66	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
67
68testIVL_alltoall : testIVL_alltoall.o libs ../../spooles.a
69	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
70
71testIVL_Bcast : testIVL_Bcast.o libs ../../spooles.a
72	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
73
74