aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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