diff options
author | Loïc Hoguin <[email protected]> | 2017-03-20 10:23:29 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-03-20 10:23:29 +0100 |
commit | 3d3a8dcdc9a2f45888059e69587dd07c45aa856a (patch) | |
tree | adec3e31a300bc38d6ba35dfb03459aea6a5a9b9 | |
parent | d096ccefa1e342c6cefd5104425bbc24c71af516 (diff) | |
download | esdl2-3d3a8dcdc9a2f45888059e69587dd07c45aa856a.tar.gz esdl2-3d3a8dcdc9a2f45888059e69587dd07c45aa856a.tar.bz2 esdl2-3d3a8dcdc9a2f45888059e69587dd07c45aa856a.zip |
Add cppcheck and scan-build to the Makefile
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 9 |
2 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,5 @@ .erlang.mk +.esdl2.plt c_src/env.mk c_src/*.o ebin @@ -30,6 +30,15 @@ ifeq ($(PLATFORM),msys2) CFLAGS += -I"$(C_SRC_DIR)/compat/" endif +check:: cppcheck scan-build + +cppcheck: + cppcheck -f --quiet --error-exitcode=2 --enable=all --inconclusive --std=posix -I/usr/include/SDL2 c_src/ + +scan-build: + make clean + scan-build make + bullet_engine:: all erlc -o examples/bullet_engine examples/bullet_engine/*.erl cd examples/bullet_engine && ./start.sh |