summaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-08-17 20:38:06 +0200
committerraysan5 <[email protected]>2020-08-17 20:38:06 +0200
commit2d0811d94c23c3e5884222b275988d33b5888b85 (patch)
tree9c4481a44b326c7c35605cacfbc5f7f3f22a3c1f /src/Makefile
parentc32ae480afd196d88acdfdb52d5261a61e0deb08 (diff)
downloadraylib-2d0811d94c23c3e5884222b275988d33b5888b85.tar.gz
raylib-2d0811d94c23c3e5884222b275988d33b5888b85.zip
Update Makefile
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/Makefile b/src/Makefile
index 65b400e4..c32a7f6b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,16 +42,15 @@
.PHONY: all clean install uninstall
# Define required raylib variables
-RAYLIB_VERSION = 3.0.0
-RAYLIB_API_VERSION = 300
+RAYLIB_VERSION = 3.1.0
+RAYLIB_API_VERSION = 310
-# See below for alternatives.
-RAYLIB_PATH = ..
-
-# Define default options
+# Define raylib source code path
+RAYLIB_SRC_PATH ?= ../src
-# One of PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
-PLATFORM ?= PLATFORM_DESKTOP
+# Define output directory for compiled library, defaults to src directory
+# NOTE: If externally provided, make sure directory exists
+RAYLIB_RELEASE_PATH ?= $(RAYLIB_SRC_PATH)
# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
RAYLIB_LIBTYPE ?= STATIC
@@ -59,6 +58,10 @@ RAYLIB_LIBTYPE ?= STATIC
# Build mode for library: DEBUG or RELEASE
RAYLIB_BUILD_MODE ?= RELEASE
+# Define raylib platform
+# Options: PLATFORM_DESKTOP, PLATFORM_RPI, PLATFORM_ANDROID, PLATFORM_WEB
+PLATFORM ?= PLATFORM_DESKTOP
+
# Include raylib modules on compilation
# NOTE: Some programs like tools could not require those modules
RAYLIB_MODULE_AUDIO ?= TRUE
@@ -66,8 +69,8 @@ RAYLIB_MODULE_MODELS ?= TRUE
RAYLIB_MODULE_RAYGUI ?= FALSE
RAYLIB_MODULE_PHYSAC ?= FALSE
-RAYLIB_MODULE_RAYGUI_PATH ?= .
-RAYLIB_MODULE_PHYSAC_PATH ?= .
+RAYLIB_MODULE_RAYGUI_PATH ?= $(RAYLIB_SRC_PATH)/../../raygui/src
+RAYLIB_MODULE_PHYSAC_PATH ?= $(RAYLIB_SRC_PATH)
# Use external GLFW library instead of rglfw module
# TODO: Review usage of examples on Linux.
@@ -135,13 +138,13 @@ ifeq ($(PLATFORM),PLATFORM_RPI)
endif
endif
-# RAYLIB_PATH adjustment for different platforms.
+# RAYLIB_SRC_PATH adjustment for different platforms.
# If using GNU make, we can get the full path to the top of the tree. Windows? BSD?
# Required for ldconfig or other tools that do not perform path expansion.
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),LINUX)
- RAYLIB_PREFIX ?= ..
- RAYLIB_PATH = $(realpath $(RAYLIB_PREFIX))
+ RAYLIB_PREFIX ?= ..
+ RAYLIB_SRC_PATH = $(realpath $(RAYLIB_PREFIX))
endif
endif
@@ -186,13 +189,6 @@ ifeq ($(PLATFORM),PLATFORM_ANDROID)
endif
endif
-# Define raylib source code path
-RAYLIB_SRC_PATH ?= $(RAYLIB_PATH)/src
-
-# Define output directory for compiled library, defaults to src directory
-# NOTE: If externally provided, make sure directory exists
-RAYLIB_RELEASE_PATH ?= $(RAYLIB_PATH)/src
-
# Define raylib graphics api depending on selected platform
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
# By default use OpenGL 3.3 on desktop platforms