X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=Makefile;h=05d7b83b50de1502dd68b1599b187a9ffb611d72;hp=5b601185d8717f206089863f83c82f8a859d2337;hb=d381f617bef400fc157edf782008cafb018ed594;hpb=b64cd5a5ec09e6f051583371045ef7080c69b776 diff --git a/Makefile b/Makefile index 5b60118..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 -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 $@