-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
55 lines (38 loc) · 1.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export CC=ccache gcc
export CFLAGS=-g -O0 -Wall -fsanitize=undefined -I. -lm
export LDFLAGS=
CHAPTERS=build/chrono.o build/dsl.o build/dynamic.o build/error.o build/fix.o build/list.o build/malloc1.o build/malloc2.o build/set.o build/slog.o build/stream1.o build/task.o build/vector.o
build/test: clean tests.c $(CHAPTERS)
$(CC) $(CFLAGS) tests.c $(CHAPTERS) -o build/test
valgrind build/test
build/benchmark: clean benchmarks.c $(CHAPTERS)
$(CC) $(CFLAGS) benchmarks.c $(CHAPTERS) -o build/benchmark
build/benchmark
build/dsl.o:
$(MAKE) -C dsl
build/dynamic.o:
$(MAKE) -C dynamic
build/error.o:
$(MAKE) -C error
build/fix.o:
$(MAKE) -C fix
build/list.o:
$(MAKE) -C list
build/malloc1.o:
$(MAKE) -C malloc1
build/malloc2.o:
$(MAKE) -C malloc2
build/set.o:
$(MAKE) -C set
build/slog.o:
$(MAKE) -C slog
build/stream1.o:
$(MAKE) -C stream1
build/task.o:
$(MAKE) -C task
build/chrono.o:
$(MAKE) -C chrono
build/vector.o:
$(MAKE) -C vector
clean:
rm -f build/*