X-Git-Url: https://git.lukelau.me/?a=blobdiff_plain;f=Makefile;h=746d160584088107116e62c65202aa0d154e8bcc;hb=refs%2Fheads%2Fanim;hp=98f6c27a9400483d0295fd7443136da27943e7cb;hpb=be8759aec179d6d7bed58732134673870c596b4f;p=opengl.git diff --git a/Makefile b/Makefile index 98f6c27..746d160 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ -all: main +all: bin/main -main: - clang++ -g --std=c++17 *.cpp *.mm -L../assimp/lib -lassimp -I../assimp/include -framework OpenGL -framework glut -framework CoreGraphics -framework CoreFoundation -framework Cocoa -framework ImageIO -lglew -o bin/main +CXX_FLAGS := -g --std=c++17 -march=native -Wall + +bin/main: model.o material.o image.o skybox.o program.o ik.o main.o util.o ui.o blendshapes.o mode/animationMode.o + clang++ $(CXX_FLAGS) $^ \ + -I/usr/local/include -L/usr/local/lib \ + -lassimp \ + -framework Cocoa \ + -framework OpenGL -framework glut -framework CoreGraphics -framework CoreFoundation -framework ImageIO -lglew -o $@ ctags *.cpp + +ui.o: ui.mm ui.hpp + clang++ -g -march=native -Wall -I/usr/local/include -c $< -o $@ +%.o: %.cpp + clang++ $(CXX_FLAGS) -I/usr/local/include -c $< -o $@