projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix skybox images not using the right data layout
[opengl.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 05d7b83b50de1502dd68b1599b187a9ffb611d72..42ebf39a4decb5882ac181c406f8193a24f2628b 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,10
+1,13
@@
all: bin/main
all: bin/main
+CXX_FLAGS := -g --std=c++17
+
bin/main: model.o material.o image.o skybox.o program.o main.cpp
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 \
-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
-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 $@