-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
+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
+ 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 $@