summaryrefslogtreecommitdiffhomepage
path: root/examples/Makefile
diff options
context:
space:
mode:
authorubkp <[email protected]>2023-08-14 16:55:13 -0300
committerGitHub <[email protected]>2023-08-14 21:55:13 +0200
commite0afb8942e0536b92e7da21ca177c804f698ebff (patch)
tree35f95a2bdfbdcc3983d5bacf8caf85f8c1a98738 /examples/Makefile
parent7a1c0d2547e836224277b85fe540447a05cd93a7 (diff)
downloadraylib-e0afb8942e0536b92e7da21ca177c804f698ebff.tar.gz
raylib-e0afb8942e0536b92e7da21ca177c804f698ebff.zip
Fix examples/others/rlgl_standalone.c compilation issue (#3242)
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/Makefile b/examples/Makefile
index ff509894..9d0b7341 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -261,6 +261,11 @@ ifeq ($(PLATFORM),PLATFORM_DRM)
INCLUDE_PATHS += -I/usr/include/libdrm
endif
+# Include GLFW required for examples/others/rlgl_standalone.c
+ifeq ($(USE_EXTERNAL_GLFW),FALSE)
+all others: INCLUDE_PATHS += -I$(RAYLIB_PATH)/src/external/glfw/include
+endif
+
# Define library paths containing required libs: LDFLAGS
#------------------------------------------------------------------------------------------------
LDFLAGS = -L. -L$(RAYLIB_RELEASE_PATH) -L$(RAYLIB_PATH)/src