-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (49 loc) · 1.41 KB
/
Makefile
File metadata and controls
53 lines (49 loc) · 1.41 KB
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
FLAGS = -ansi -Wall -Wextra -Werror -pedantic-errors
LIBS = -lm
all: cluster
linuxClean:
rm -rf *.o
rm cluster
winClean:
del *.o
del cluster.exe
cluster: cluster.o MatrixAndVectorOps.o input.o modularity.o Algorithms.o MathHelpers.o eigen.o sparse.o spmat.o List.o
gcc cluster.o MatrixAndVectorOps.o input.o modularity.o Algorithms.o MathHelpers.o eigen.o sparse.o spmat.o List.o -o cluster $(LIBS)
cluster.o: cluster.c
gcc $(FLAGS) -c cluster.c
MatrixAndVectorOps: MatrixAndVectorOps.o
gcc MatrixAndVectorOps.o -o MatrixAndVectorOps $(LIBS)
MatrixAndVectorOps.o: MatrixAndVectorOps.c
gcc $(FLAGS) -c MatrixAndVectorOps.c
input: input.o
gcc input.o -o input $(LIBS)
input.o: input.c
gcc $(FLAGS) -c input.c
modularity: modularity.o
gcc modularity.o -o modularity $(LIBS)
modularity.o: modularity.c
gcc $(FLAGS) -c modularity.c
Algorithms: Algorithms.o
gcc Algorithms.o -o Algorithms $(LIBS)
Algorithms.o: Algorithms.c
gcc $(FLAGS) -c Algorithms.c
MathHelpers: MathHelpers.o
gcc MathHelpers.o -o MathHelpers $(LIBS)
MathHelpers.o: MathHelpers.c
gcc $(FLAGS) -c MathHelpers.c
eigen: eigen.o
gcc eigen.o -o eigen $(LIBS)
eigen.o: eigen.c
gcc $(FLAGS) -c eigen.c
sparse: sparse.o
gcc sparse.o -o sparse $(LIBS)
sparse.o: sparse.c
gcc $(FLAGS) -c sparse.c
spmat: spmat.o
gcc spmat.o -o spmat $(LIBS)
spmat.o: spmat.c
gcc $(FLAGS) -c spmat.c
List: List.o
gcc List.o -o List $(LIBS)
List.o: List.c
gcc $(FLAGS) -c List.c