aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-05-17 00:10:28 +0200
committerRay <raysan5@gmail.com>2016-05-17 00:10:28 +0200
commitd84f922372622276caab0764ae209decc39a8bdb (patch)
tree66ae60eb7034a732506fe9034f9feb91800f652c /examples
parente060944b34f11978392f5c24282c95781caae63e (diff)
parentf575935ace109149277a57f6216c5df1b94eeac9 (diff)
downloadraylib-d84f922372622276caab0764ae209decc39a8bdb.tar.gz
raylib-d84f922372622276caab0764ae209decc39a8bdb.zip
Merge pull request #114 from cHemingway/osx-fixes
Fix building examples on OSX
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 74335fe8..534adee8 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -85,6 +85,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# add standard directories for GNU/Linux
ifeq ($(PLATFORM_OS),LINUX)
INCLUDES = -I. -I../src -I/usr/local/include/raylib/
+ else ifeq ($(PLATFORM_OS),OSX)
+ INCLUDES = -I. -I../src
else
INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
# external libraries headers
@@ -103,6 +105,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# add standard directories for GNU/Linux
ifeq ($(PLATFORM_OS),LINUX)
LFLAGS = -L. -L../../src
+ else ifeq ($(PLATFORM_OS),OSX)
+ LFLAGS = -L. -L../src
else
LFLAGS = -L. -L../../src -LC:/raylib/raylib/src
# external libraries to link with
@@ -129,7 +133,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# libraries for OS X 10.9 desktop compiling
# requires the following packages:
# libglfw3-dev libopenal-dev libegl1-mesa-dev
- LIBS = -lraylib -lglfw -framework OpenGL -framework OpenAl -framework Cocoa
+ LIBS = -lraylib -lglfw3 -framework OpenGL -framework OpenAl -framework Cocoa
else
# libraries for Windows desktop compiling
# NOTE: GLFW3 and OpenAL Soft libraries should be installed