Example: add OS X specific include and library paths to Makefile

This commit is contained in:
Alex 2016-05-21 01:50:35 +08:00
parent 2e975a3bd8
commit 45bbe7d6bb
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ LIBS = -lglfw3 -lopengl32 -lm -lGLU32 -lGLEW32
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LIBS = -lglfw3 -framework OpenGL -lm -lGLEW
LIBS = -lglfw3 -framework OpenGL -lm -lGLEW -L/usr/local/lib
CFLAGS += -I/usr/local/include
else
LIBS = -lglfw -lGL -lm -lGLU -lGLEW
endif