Debian Codegraph @

Makefile

raw
1 default:
2 g++ -O3 -Wall -Wextra -Werror -std=c++11 -o mustache tests.cpp
3 ./mustache
4
5 mac:
6 clang++ -O3 -Wall -Wextra -Werror -std=c++11 -stdlib=libc++ -o mustache tests.cpp
7 ./mustache
8
9 mac14:
10 clang++ -O3 -Wall -Wextra -Werror -std=c++14 -stdlib=libc++ -o mustache14 tests.cpp
11 ./mustache14
12
13 clang:
14 clang++ -O3 -Wall -Wextra -Werror -std=c++11 -o mustache tests.cpp
15
16 # https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html
17 coverage:
18 g++ -std=c++11 -coverage -O0 -o mustache tests.cpp
19 ./mustache
20 gcov -l tests.cpp
21 # We only want coverage for mustache.hpp and tests.cpp, so delete all the other *.gcov files
22 find . -type f -name 'tests.cpp*.gcov' ! -name 'tests.cpp.gcov' ! -name 'tests.cpp##mustache.hpp.gcov' -delete
23
24 xcode:
25 mkdir -p build_xcode
26 cd build_xcode && cmake -GXcode ..
27 open build_xcode/*.xcodeproj
28
29 clean:
30 rm -rf mustache mustache14 build build_xcode
31 rm -rf *.gcov *.gcda *.gcno # coverage artifacts