aboutsummaryrefslogtreecommitdiff
path: root/examples/makefile
diff options
context:
space:
mode:
authorLelixSuper <emanuele98@openmailbox.org>2016-03-12 19:08:54 +0100
committerLelixSuper <emanuele98@openmailbox.org>2016-03-12 19:08:54 +0100
commitea8363a3b0c87629d027e4aad13654e5cf6b2fe9 (patch)
tree06c61ca1405e9293004b2f8aef43aeb996014603 /examples/makefile
parentc5931c75c64bfcc582ca7ed646ca5cdd0b876fbb (diff)
downloadraylib-ea8363a3b0c87629d027e4aad13654e5cf6b2fe9.tar.gz
raylib-ea8363a3b0c87629d027e4aad13654e5cf6b2fe9.zip
Update "libraries" and "includes" section
I've cleaned the GNU/Linux compilation, now you can compile without useless parameters.
Diffstat (limited to 'examples/makefile')
-rw-r--r--examples/makefile28
1 files changed, 17 insertions, 11 deletions
diff --git a/examples/makefile b/examples/makefile
index f432c783..beaecfe2 100644
--- a/examples/makefile
+++ b/examples/makefile
@@ -99,17 +99,23 @@ endif
# define library paths containing required libs
ifeq ($(PLATFORM),PLATFORM_RPI)
- LFLAGS = -L. -L../src -L/opt/vc/lib
-else
- LFLAGS = -L. -L../src
-# external libraries to link with
-# GLFW3
- LFLAGS += -L../external/glfw3/lib/$(LIBPATH)
- ifneq ($(PLATFORM_OS),OSX)
- # OpenAL Soft
- LFLAGS += -L../external/openal_soft/lib/$(LIBPATH)
- # GLEW - Not required any more, replaced by GLAD
- #LFLAGS += -L../external/glew/lib/$(LIBPATH)
+ LFLAGS = -L. -L../../src -L/opt/vc/lib
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ LFLAGS = -L. -L../../src
+ else
+ LFLAGS = -L. -L../../src -LC:/raylib/raylib/src
+ # external libraries to link with
+ # GLFW3
+ LFLAGS += -L../../external/glfw3/lib/$(LIBPATH)
+ ifneq ($(PLATFORM_OS),OSX)
+ # OpenAL Soft
+ LFLAGS += -L../../external/openal_soft/lib/$(LIBPATH)
+ # GLEW: Not used, replaced by GLAD
+ #LFLAGS += -L../../external/glew/lib/$(LIBPATH)
+ endif
endif
endif