-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 1.36 KB
/
Makefile
File metadata and controls
48 lines (34 loc) · 1.36 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
CC = gcc
CFLAGS = -Wall -ansi -pedantic -g
OBJ = main.o box.o printer.o setup.o validator.o playerStruct.o mapStruct.o carStruct.o carMovement.o movement.o terminal.o linkedList.o carCollide.o
EXEC = traffic
$(EXEC) : $(OBJ)
$(CC) $(OBJ) -o $(EXEC)
main.o : main.c setup.h validator.h
$(CC) -c main.c $(CFLAGS)
printer.o : printer.c printer.h mapStruct.h carCollide.h
$(CC) -c printer.c $(CFLAGS)
box.o : box.c box.h mapStruct.h carStruct.h playerStruct.h
$(CC) -c box.c $(CFLAGS)
setup.o : setup.c setup.h box.h printer.h mapStruct.h carStruct.h playerStruct.h movement.h
$(CC) -c setup.c $(CFLAGS)
validator.o: validator.c
$(CC) -c validator.c $(CFLAGS)
playerStruct.o: playerStruct.c playerStruct.h
$(CC) -c playerStruct.c $(CFLAGS)
mapStruct.o: mapStruct.c
$(CC) -c mapStruct.c $(CFLAGS)
carStruct.o: carStruct.c carStruct.h
$(CC) -c carStruct.c $(CFLAGS)
carMovement.o: carMovement.c carMovement.h carStruct.h mapStruct.h
$(CC) -c carMovement.c $(CFLAGS)
movement.o: movement.c movement.h terminal.h carStruct.h playerStruct.h mapStruct.h carMovement.h printer.h linkedList.h carCollide.h
$(CC) -c movement.c $(CFLAGS)
terminal.o: terminal.c terminal.h
$(CC) -c terminal.c $(CFLAGS)
linkedList.o: linkedList.c linkedList.h
$(CC) -c linkedList.c $(CFLAGS)
carCollide.o: carCollide.c carCollide.h
$(CC) -c carCollide.c $(CFLAGS)
clean:
rm -f $(EXEC) $(OBJ)