-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
58 lines (46 loc) · 1.76 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
57
58
# ********** WARNING **********
# THIS MAKEFILE IS NOT A PART OF THE OFFICIAL INSTALLATION PROCESS ONLY DEVEL
# define our project director
PROJDIR = $(realpath $(CURDIR))
SRCDIR = $(PROJDIR)/modules
SRC = $(shell find $(PROJDIR)/src -name '*.c')
VG = valgrind
VGFLAGS = --leak-check=full --show-leak-kinds=all --track-origins=yes --tool=memcheck
TMEM = $(PROJDIR)/tests/misc/t_memleak.cpp
TMEMBIN = t_memleak
# testing memory
test-gtest:
${CXX} ${TMEM} ${GTFLAGS} -o ${TMEMBIN}
./${TMEMBIN}
# test memory leaks of generated module binaries
test-leaks:
${VG} ${VGFLAGS} ./${TMEMBIN}
clean-misc:
cd pygpmp && rm -rf */*.cpp */*.so
rm -rf build/ dist/ pygpmp.egg-info/
find . -name "__pycache__" -type d -exec rm -r "{}" \;
rm -rf __pycache__
openGPMP-docs:
mkdir -p docs/analysis
mkdir -p docs/testing
doxygen
cd docs/analysis && \
cppcheck --xml --xml-version=2 --enable=all --suppress=missingIncludeSystem \
../../include/ ../../modules/ 2>analysis.xml && \
cppcheck-htmlreport --source-dir=. --title=openGPMP --file=analysis.xml --report-dir=.
genhtml .coverage/lcov.info --legend --output-directory docs/testing
#cp -r docs/analysis docs/doxygen/html
docs-analysis:
mkdir -p docs/analysis
#mkdir -p docs/doxygen/html/testing
cd docs/analysis && \
cppcheck --xml --xml-version=2 --enable=all --suppress=missingIncludeSystem \
../../include/ ../../modules/ 2>analysis.xml && \
cppcheck-htmlreport --source-dir=. --title=openGPMP --file=analysis.xml --report-dir=.
#genhtml .coverage/lcov.info --legend --output-directory docs/doxygen/html/testing
#cp -r docs/analysis docs/doxygen/html
docs-testing:
mkdir -p docs/testing
genhtml .coverage/lcov.info --legend --output-directory docs/testing
clean-docs:
rm -rf docs/doxygen