all:
	$(CXX) -fprofile-arcs -ftest-coverage -fPIC main.cpp -o testcase

run: txt xml html

txt:
	./testcase
	../../../scripts/gcovr -d --branch --fail-under-branch 100.0 -o coverage.txt

xml:
	./testcase
	../../../scripts/gcovr -d --fail-under-branch 100.0 -x -o coverage.xml

html:
	./testcase
	../../../scripts/gcovr -d --fail-under-branch 100.0 --html --html-details -o coverage.html

clean:
	rm -f testcase
	rm -f *.gc*
	rm -f coverage.txt coverage.xml coverage*.html
