-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
52 lines (41 loc) · 1.09 KB
/
makefile
File metadata and controls
52 lines (41 loc) · 1.09 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
default: fast
todo:
(cd docs; make)
compile:
[ -d build ] || mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Release -DGTEST=FALSE ..; make -j8)
release:
rm -rf build
mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Release -DGTEST=FALSE ..; make -j8)
.PHONY: build
build:
rm -rf build
mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Debug -DGTEST=FALSE ..; scan-build -V make -j8)
run:
[ -d build ] || mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Debug -DGTEST=FALSE ..; make -j8)
build/bin/minecraft
fast:
[ -d build ] || mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Release -DGTEST=FALSE ..; make -j8)
build/bin/minecraft
.PHONY: test
test:
[ -d build ] || mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Debug -DGTEST=TRUE ..; make -j8)
build/bin/test
time:
[ -d build ] || mkdir build
(cd build; cmake -DCMAKE_BUILD_TYPE=Release -DGTEST=TRUE ..; make -j8)
build/bin/test
gdb: build
gdb -q -ex run --args build/bin/minecraft
clean:
rm -rf build
.PHONY: profile
profile:
valgrind --tool=callgrind build/bin/minecraft
kcachegrind callgrind.out.*
rm -f callgrind.out.*