readd toplevel makefile

This commit is contained in:
Kh4n 2022-09-17 15:39:28 -05:00
parent 387fd61b83
commit a778c089d1
2 changed files with 14 additions and 1 deletions

2
.gitignore vendored
View File

@ -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

13
Makefile Normal file
View File

@ -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