-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (27 loc) · 1.13 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
# auxiliary variables
PROJECT_DIR=/home/satan/repos/championship-standings
SRC_DIR=$(PROJECT_DIR)/src
TEST_DIR=$(PROJECT_DIR)/test
# variables defined as described in the MakeileWorker.mk
CPPUTEST_HOME=/home/satan/Downloads/cpputest
INCLUDE_DIRS=$(SRC_DIR) $(CPPUTEST_HOME)/include $(TEST_DIR)
SRC_DIRS=$(SRC_DIR)
TEST_SRC_DIRS = $(TEST_DIR) $(TEST_DIR)/addGame $(TEST_DIR)/addGame $(TEST_DIR)/editGame $(TEST_DIR)/removeGame $(TEST_DIR)/getGameResult $(TEST_DIR)/teamPosition
TEST_TARGET=out
CPPUTEST_USE_GCOV=Y
GCOV_ARGS=-b
# run MakefileWorker.mk with the variables defined here
include $(CPPUTEST_HOME)/build/MakefileWorker.mk
# removes some compilation flags
CPPUTEST_WARNINGFLAGS:=$(filter-out -Werror,$(CPPUTEST_WARNINGFLAGS)) # warning as error
CPPUTEST_WARNINGFLAGS:=$(filter-out -Wshadow,$(CPPUTEST_WARNINGFLAGS)) # shadowing of fields
# adds some other warnings
CPPUTEST_WARNINGFLAGS+=-Wunused-result
lcov: gcov FORCE
mkdir -p lcov
lcov -o lcov/lcovResults.info -c -d . --rc lcov_branch_coverage=1
genhtml -o lcov/htmlResults lcov/lcovResults.info --rc genhtml_branch_coverage=1
cleanall: realclean
rm -rf lib
rm -rf lcov
FORCE: ;