-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
39 lines (27 loc) · 1.3 KB
/
makefile
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
FLAGS = -ansi -Wall -Wextra -Werror -pedantic-errors
LIBS = -lm
all: cluster
clean:
rm -rf *.o cluster
cluster: stack.o spmat.o BHatMatrix.o linkedList.o graph.o algorithm3.o algorithm2.o algorithm4.o errorHandler.o main.o
gcc stack.o spmat.o BHatMatrix.o linkedList.o graph.o algorithm3.o algorithm2.o algorithm4.o errorHandler.o main.o -o cluster $(LIBS)
stack.o: stack.c stack.h graph.h errorHandler.h
gcc $(FLAGS) -c stack.c
spmat.o: spmat.c spmat.h linkedList.h graph.h errorHandler.h
gcc $(FLAGS) -c spmat.c
linkedList.o: linkedList.c linkedList.h graph.h errorHandler.h
gcc $(FLAGS) -c linkedList.c
graph.o: graph.c graph.h errorHandler.h
gcc $(FLAGS) -c graph.c
BHatMatrix.o: BHatMatrix.c BHatMatrix.h algorithm2.h graph.h spmat.h linkedList.h errorHandler.h
gcc $(FLAGS) -c BHatMatrix.c
errorHandler.o: errorHandler.c errorHandler.h
gcc $(FLAGS) -c errorHandler.c
algorithm2.o: algorithm2.c algorithm2.h graph.h BHatMatrix.h errorHandler.h
gcc $(FLAGS) -c algorithm2.c
algorithm3.o: algorithm3.c algorithm3.h algorithm2.h algorithm4.h graph.h spmat.h BHatMatrix.h stack.h errorHandler.h
gcc $(FLAGS) -c algorithm3.c
algorithm4.o: algorithm4.c algorithm4.h graph.h BHatMatrix.h errorHandler.h
gcc $(FLAGS) -c algorithm4.c
main.o: main.c algorithm3.h graph.h errorHandler.h
gcc $(FLAGS) -c main.c