-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
40 lines (28 loc) · 1.09 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
40
CC = gcc
CFLAGS = -Wall -ansi -pedantic
OBJ = maze.o initialMaze.o terminal.o buildMaze.o winCondition.o loseCondition.o printMaze.o movement.o linkedList.o snakeMovement.o
EXEC = maze
$(EXEC) : $(OBJ)
$(CC) $(OBJ) -o $(EXEC)
maze.o : maze.c initialMaze.h terminal.h buildMaze.h winCondition.h loseCondition.h printMaze.h movement.h snakeMovement.h linkedList.h
$(CC) $(CFLAGS) maze.c -c
initialMaze.o : initialMaze.c initialMaze.h
$(CC) $(CFLAGS) initialMaze.c -c
terminal.o : terminal.c terminal.h
$(CC) $(CFLAGS) terminal.c -c
buildMaze.o : buildMaze.c buildMaze.h
$(CC) $(CFLAGS) buildMaze.c -c
winCondition.o : winCondition.c winCondition.h
$(CC) $(CFLAGS) winCondition.c -c
loseCondition.o : loseCondition.c loseCondition.h
$(CC) $(CFLAGS) loseCondition.c -c
printMaze.o : printMaze.c printMaze.h
$(CC) $(CFLAGS) printMaze.c -c
movement.o : movement.c movement.h
$(CC) $(CFLAGS) movement.c -c
snakeMovement.o : snakeMovement.c snakeMovement.h
$(CC) $(CFLAGS) snakeMovement.c -c
linkedList.o : linkedList.c linkedList.h
$(CC) $(CFLAGS) linkedList.c -c
clean :
rm -f $(EXEC) $(OBJ)