X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=Makefile;h=cb78344514155804e65d13214e5f5dd82442a9d8;hp=5b601185d8717f206089863f83c82f8a859d2337;hb=d2a4cfcd292f5bc422a025d43855e5f4f21fb161;hpb=b64cd5a5ec09e6f051583371045ef7080c69b776 diff --git a/Makefile b/Makefile index 5b60118..cb78344 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,16 @@ -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.h + clang++ -g -march=native -Wall -I/usr/local/include -c $< -o $@ +%.o: %.cpp + clang++ $(CXX_FLAGS) -I/usr/local/include -c $< -o $@