File: makefile

package info (click to toggle)
spooles 2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,012 kB
  • sloc: ansic: 146,834; csh: 3,615; makefile: 2,040; perl: 74
file content (73 lines) | stat: -rw-r--r-- 2,379 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
include ../../Make.inc
 
#-----------------------------------------------------------------------
#
#  set suffix rule *.c --> *.o
#
.c.o : 
	$(PURIFY) $(CC) -c $(CFLAGS) $(MPI_INCLUDE_DIR) $<
#

#-----------------------------------------------------------------------

LIBS = ../src/spoolesMPI.a ../../spooles.a $(MPI_LIBS) -lm

DRIVERS = allInOneMPI patchAndGoMPI testGridMPI testIV_allgather \
          testIVL_allgather testIVL_alltoall testSplitDenseMtx \
          testSplitInpMtx testSymbFac testGather testMMM \
          testIVL_Bcast testGraph_Bcast \
          testScatterDenseMtx testScatterInpMtx
 
libs :
	cd ../src ; make spoolesMPI.a 

drivers : ${DRIVERS}
 
clean :
	- rm -f *.a *.o ${DRIVERS}
 
allInOneMPI : allInOneMPI.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
patchAndGoMPI : patchAndGoMPI.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testGather : testGather.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testGraph_Bcast : testGraph_Bcast.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testGridMPI : testGridMPI.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testMMM : testMMM.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testScatterDenseMtx : testScatterDenseMtx.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} 
 
testScatterInpMtx : testScatterInpMtx.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} 
 
testSymbFac : testSymbFac.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ ${LIBS} 
 
testSplitDenseMtx : testSplitDenseMtx.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testSplitInpMtx : testSplitInpMtx.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS} 
 
testIV_allgather : testIV_allgather.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
 
testIVL_allgather : testIVL_allgather.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
 
testIVL_alltoall : testIVL_alltoall.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}
 
testIVL_Bcast : testIVL_Bcast.o libs ../../spooles.a
	${PURIFY} ${CC} $@.o -o $@ $(PURIFY_GCC_VERSION) ${LIBS}