-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (31 loc) · 890 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
40
41
42
43
buildDir := build
libDir := lib
testDir := test
include makefiles/tools.mk
include makefiles/utils.mk
include makefiles/production.mk
include makefiles/test.mk
start: all
@./$(buildDir)/main
all: $(buildDir)/main
clean:
rm -rf $(buildDir)
cleanlib:
rm -rf $(libDir)
test: $(buildDir)/testmain
@echo -e "\nRunning unit-tests..."
@./$(buildDir)/testmain
qa: memcheck lint
memcheck: $(buildDir)/testmain
valgrind --leak-check=yes $(buildDir)/testmain --gtest_brief=1
lint:
@echo -e "\nRunning linter..."
$(CLANG-TIDY) --header-filter='.*' $(sources) -- -Iinclude
cppcheck:
@echo -e "\nRunning cppcheck..."
cppcheck --enable=all $(sources)
coverage: $(buildDir)/coverageFilt.info
@lcov --summary $(lcovConfig) $<
coverageHtml: $(buildDir)/coverageFilt.info
@genhtml $< -o $(buildDir) -q $(lcovConfig)
@echo HTML report has been generated, see $(buildDir)/index.html