aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
index fe3ff205..c9081b2e 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -33,6 +33,9 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
RAYLIB_PATH ?= /home/pi/raylib
endif
+# Use external GLFW library instead of rglfw module
+USE_EXTERNAL_GLFW ?= FALSE
+
# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
RAYLIB_LIBTYPE ?= STATIC
@@ -235,6 +238,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# On XWindow requires also below libraries
LDLIBS += -lX11 -lXrandr -lXinerama -lXi -lXxf86vm -lXcursor
endif
+ ifeq ($(USE_EXTERNAL_GLFW),TRUE)
+ LDLIBS += -lglfw
+ endif
endif
ifeq ($(PLATFORM),PLATFORM_RPI)
# Libraries for Raspberry Pi compiling