aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/makefile26
-rw-r--r--templates/advance_game/makefile24
-rw-r--r--templates/basic_game/makefile24
-rw-r--r--templates/basic_test/makefile24
-rw-r--r--templates/simple_game/makefile24
-rw-r--r--templates/standard_game/makefile24
6 files changed, 91 insertions, 55 deletions
diff --git a/examples/makefile b/examples/makefile
index 23931c98..f432c783 100644
--- a/examples/makefile
+++ b/examples/makefile
@@ -79,16 +79,22 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
- INCLUDES = -I. -I../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../external/glfw3/include
-# GLEW - Not required any more, replaced by GLAD
- #INCLUDES += -I../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../external/openal_soft/include
+ INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I. -I../src -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../external/openal_soft/include
+ endif
endif
# define library paths containing required libs
diff --git a/templates/advance_game/makefile b/templates/advance_game/makefile
index 975fb4c5..ed50d646 100644
--- a/templates/advance_game/makefile
+++ b/templates/advance_game/makefile
@@ -83,15 +83,21 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../../external/glfw3/include
-# GLEW - Not required any more, replaced by GLAD
- #INCLUDES += -I../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../../external/openal_soft/include
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../../external/openal_soft/include
+ endif
endif
# define library paths containing required libs
diff --git a/templates/basic_game/makefile b/templates/basic_game/makefile
index 41d9379e..ccca5bd1 100644
--- a/templates/basic_game/makefile
+++ b/templates/basic_game/makefile
@@ -83,15 +83,21 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../../external/glfw3/include
-# GLEW
- INCLUDES += -I../../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../../external/openal_soft/include
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../../external/openal_soft/include
+ endif
endif
# define library paths containing required libs
diff --git a/templates/basic_test/makefile b/templates/basic_test/makefile
index 5654b224..112920a0 100644
--- a/templates/basic_test/makefile
+++ b/templates/basic_test/makefile
@@ -82,15 +82,21 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../../external/glfw3/include
-# GLEW
- INCLUDES += -I../../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../../external/openal_soft/include
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../../external/openal_soft/include
+ endif
endif
# define library paths containing required libs
diff --git a/templates/simple_game/makefile b/templates/simple_game/makefile
index c94389a4..cc193442 100644
--- a/templates/simple_game/makefile
+++ b/templates/simple_game/makefile
@@ -83,15 +83,21 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../../external/glfw3/include
-# GLEW
- INCLUDES += -I../../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../../external/openal_soft/include
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../../external/openal_soft/include
+ endif
endif
# define library paths containing required libs
diff --git a/templates/standard_game/makefile b/templates/standard_game/makefile
index ca4ed475..d70c90e4 100644
--- a/templates/standard_game/makefile
+++ b/templates/standard_game/makefile
@@ -83,15 +83,21 @@ endif
# define any directories containing required header files
ifeq ($(PLATFORM),PLATFORM_RPI)
INCLUDES = -I. -I../../src -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads
-else
- INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
-# external libraries headers
-# GLFW3
- INCLUDES += -I../../external/glfw3/include
-# GLEW
- INCLUDES += -I../../external/glew/include
-# OpenAL Soft
- INCLUDES += -I../../external/openal_soft/include
+endif
+ifeq ($(PLATFORM),PLATFORM_DESKTOP)
+ # add standard directories for GNU/Linux
+ ifeq ($(PLATFORM_OS),LINUX)
+ INCLUDES = -I/usr/local/include/raylib/
+ else
+ INCLUDES = -I. -I../../src -IC:/raylib/raylib/src
+ # external libraries headers
+ # GLFW3
+ INCLUDES += -I../../external/glfw3/include
+ # GLEW - Not required any more, replaced by GLAD
+ #INCLUDES += -I../external/glew/include
+ # OpenAL Soft
+ INCLUDES += -I../../external/openal_soft/include
+ endif
endif
# define library paths containing required libs