commit ac53ee631124de8c0ced40f02b1945c20cd25dc1 parent f548544e6341d0413a29f057ad88c4981149f7e7 Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Aug 22 19:00:20 +0200 I discovered brew link! Clean up OS X CXXFLAGS/LDFLAGS Diffstat:
Makefile | | | 7 | ++----- |
diff --git a/Makefile b/Makefile @@ -7,17 +7,14 @@ PPOBJS = pp.o stb_image.o stb_image_write.o WARNINGS = -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-write-strings -Wno-char-subscripts CXXFLAGS += -std=c++11 -O2 -pthread -ggdb3 $(WARNINGS) -DGL_GLEXT_PROTOTYPES -DGLFW_INCLUDE_NONE +LDFLAGS += -lm # OS detection ifneq ($(shell uname -s),Darwin) CXXFLAGS += -fPIC LDFLAGS += -lGL -lGLEW -lglfw -ldl else - # 8) - CXXFLAGS += -I/usr/local/Cellar/glfw3/3.1.1/include - CXXFLAGS += -I/usr/local/Cellar/glm/0.9.6.3/include - LDFLAGS += -lm -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework CoreVideo - LDFLAGS += -L/usr/local/Cellar/glfw3/3.1.1/lib -lglfw3 + LDFLAGS += -framework OpenGL -lglfw3 endif picky: WARNINGS += -Wunused-parameter -Wunused-function -Wwrite-strings