diff --git a/.gitignore b/.gitignore index 2fdbb60..299b317 100644 --- a/.gitignore +++ b/.gitignore @@ -71,7 +71,7 @@ tests/issue-97.gltf tests/issue-261.gltf # unignore -!./Makefile +!/Makefile !examples/build-gltf/Makefile !examples/raytrace/cornellbox_suzanne.obj !tests/Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ba27550 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ + +# Use this for strict compilation check(will work on clang 3.8+) +#EXTRA_CXXFLAGS := -fsanitize=address -Wall -Werror -Weverything -Wno-c++11-long-long -Wno-c++98-compat + +# With draco +# EXTRA_CXXFLAGS := -I../draco/src/ -I../draco/build -DTINYGLTF_ENABLE_DRACO -L../draco/build +# EXTRA_LINKFLAGS := -L../draco/build/ -ldracodec -ldraco + +all: + clang++ $(EXTRA_CXXFLAGS) -std=c++11 -g -O0 -o loader_example loader_example.cc $(EXTRA_LINKFLAGS) + +lint: + deps/cpplint.py tiny_gltf.h