Fix metal roughness texture on streaked metal material
[opengl.git] / Makefile
index 05d7b83b50de1502dd68b1599b187a9ffb611d72..42ebf39a4decb5882ac181c406f8193a24f2628b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
 all: bin/main
 
+CXX_FLAGS := -g --std=c++17
+
 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 $@