-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (45 loc) · 1.24 KB
/
Makefile
File metadata and controls
66 lines (45 loc) · 1.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
export CC=ccache gcc
export CFLAGS=-g -O2 -flto -Wall -Wno-override-init-side-effects -fsanitize=bounds,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/macro.o build/malloc1.o build/malloc2.o build/reflect.o build/set.o build/slog.o build/stream1.o build/task.o build/vector.o build/vm.o
all: clean build/test build/benchmark
build/test: tests.c $(CHAPTERS)
$(CC) $(CFLAGS) tests.c $(CHAPTERS) -o build/test
valgrind build/test
build/benchmark: 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/macro.o:
$(MAKE) -C macro
build/malloc1.o:
$(MAKE) -C malloc1
build/malloc2.o:
$(MAKE) -C malloc2
build/reflect.o:
$(MAKE) -C reflect
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
build/vm.o:
$(MAKE) -C vm
clean:
rm -f build/*