forked from GepardGraphics/gepard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (43 loc) · 1.12 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
56
.PHONY: all
all: release
.PHONY: release
release: build_dir.release
cd build/release/ && cmake -DCMAKE_BUILD_TYPE=Release $(OPTIONS) ../../ && make
.PHONY: debug
debug: build_dir.debug
cd build/debug/ && cmake -DCMAKE_BUILD_TYPE=Debug $(OPTIONS) ../../ && make
.PHONY: gepard
gepard: build_dir.release
cd build/release/ && cmake -DCMAKE_BUILD_TAPE=Release $(OPTIONS) ../../ && make gepard
.PHONY: gepard.debug
gepard.debug: build_dir.debug
cd build/debug/ && cmake -DCMAKE_BUILD_TYPE=Debug $(OPTIONS) ../../ && make gepard
.PHONY: cppcheck
cppcheck:
cppcheck src
cppcheck examples
.PHONY: cppcheck-all
cppcheck-all:
cppcheck --enable=all src
cppcheck --enable=all examples
.PHONY: build_dir.release
build_dir.release:
mkdir -p build/release/
.PHONY: build_dir.debug
build_dir.debug:
mkdir -p build/debug/
.PHONY: run-test
run-test: release
cd build/release/ && ./bin/unit
.PHONY: run-test.debug
run-test.debug: debug
cd build/debug/ && ./bin/unit
.PHONY: clean
release.clean:
cd build/release/ && make clean
.PHONY: clean.debug
debug.clean:
cd build/debug/ && make clean
.PHONY: distclean
distclean:
rm -rf build/