-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (35 loc) · 822 Bytes
/
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
build/level:
rsync -rupE level build/
rsync -rupE sounds build/
.PHONY: format
format:
find . -regex '.*\.\(cpp\|hpp\|cu\|c\|h\)' -exec clang-format -style=file -i {} \;
.PHONY: build
build:
mkdir -p build
rsync -rupE level build/
rsync -rupE sounds build/
cd build && \
cmake .. && \
make -j${nproc}
.PHONY: debug
debug:
mkdir -p build
rsync -rupE level build/
rsync -rupE sounds build/
cp /le
cd build && \
cmake -DCMAKE_BUILD_TYPE=debug .. && \
make -j${nproc}
.PHONY: clean
clean:
rm -rf build
.PHONY: memcheck
memcheck:
mkdir -p build
rsync -rupE level build/
rsync -rupE sounds build/
cd build && \
cmake -DCMAKE_BUILD_TYPE=debug .. && \
make -j${nproc}
valgrind --leak-check=full --show-reachable=no --show-leak-kinds=all --track-origins=yes --log-file="valgrindReport" ./build/bricks