X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=Makefile;h=05d7b83b50de1502dd68b1599b187a9ffb611d72;hp=acf1a243435be1d6bfdaae43ab1ba5ea8e738549;hb=d381f617bef400fc157edf782008cafb018ed594;hpb=37cba564a96018a5500e942498d4e48c0ebe73ed diff --git a/Makefile b/Makefile index acf1a24..05d7b83 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ -all: main +all: bin/main -main: - clang++ -g --std=c++11 *.cpp -L/usr/local/lib -lassimp -framework OpenGL -framework glut -framework CoreGraphics -framework CoreFoundation -lglew -o bin/main +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 \ + -I/usr/local/include -L/usr/local/lib \ + -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 $@