-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (25 loc) · 747 Bytes
/
Makefile
File metadata and controls
40 lines (25 loc) · 747 Bytes
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
# COMP2521 - Week 5 Lab
# !!! DO NOT MODIFY THIS FILE !!!
CC = clang
CFLAGS = -Wall -Wvla -Werror -gdwarf-4
########################################################################
.PHONY: asan msan nosan
asan: CFLAGS += -fsanitize=address,leak,undefined
asan: all
msan: CFLAGS += -fsanitize=memory,undefined -fsanitize-memory-track-origins
msan: all
nosan: all
########################################################################
COMMON = Fb.o List.o Map.o Queue.o
.PHONY: all
all: runFb
runFb: runFb.o $(COMMON)
$(CC) $(CFLAGS) -o runFb runFb.o $(COMMON)
runFb.o: runFb.c Fb.h List.h
Fb.o: Fb.c Fb.h List.h Map.h Queue.h
List.o: List.c List.h
Map.o: Map.c Map.h
Queue.o: Queue.c Queue.h
.PHONY: clean
clean:
rm -f *.o runFb