X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=Makefile;h=2225d1914b3cccb7596068546a2b95d28225c104;hb=b65e36b22384a138e04ac9a49cbce9878e5e3366;hp=05d7b83b50de1502dd68b1599b187a9ffb611d72;hpb=d381f617bef400fc157edf782008cafb018ed594;p=opengl.git diff --git a/Makefile b/Makefile index 05d7b83..2225d19 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ all: bin/main +CXX_FLAGS := -g --std=c++17 -Wall + bin/main: model.o material.o image.o skybox.o program.o main.cpp - clang++ -g --std=c++17 $^ -I../assimp/include -L../assimp/lib -lassimp \ + clang++ $(CXX_FLAGS) $^ \ -I/usr/local/include -L/usr/local/lib \ + -lassimp \ -framework OpenGL -framework glut -framework CoreGraphics -framework CoreFoundation -framework ImageIO -lglew -o $@ ctags *.cpp %.o: %.cpp - clang++ -g --std=c++17 -I/usr/local/include -c $< -o $@ + clang++ $(CXX_FLAGS) -I/usr/local/include -c $< -o $@