X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=Makefile;h=05d7b83b50de1502dd68b1599b187a9ffb611d72;hp=30f1503e7edb9276f774c390e9444c871329ab67;hb=d381f617bef400fc157edf782008cafb018ed594;hpb=c44e69ec78367fb2957324026894aef970f2481a diff --git a/Makefile b/Makefile index 30f1503..05d7b83 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ -all: main +all: bin/main -main: - clang++ -g --std=c++17 *.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 $@