|
@@ -63,14 +63,6 @@ RAYLIB_BUILD_MODE ?= RELEASE
|
|
# NOTE: Some programs like tools could not require audio support
|
|
# NOTE: Some programs like tools could not require audio support
|
|
INCLUDE_AUDIO_MODULE ?= TRUE
|
|
INCLUDE_AUDIO_MODULE ?= TRUE
|
|
|
|
|
|
-# Use OpenAL Soft backend for audio
|
|
|
|
-USE_OPENAL_BACKEND ?= FALSE
|
|
|
|
-
|
|
|
|
-# OpenAL Soft audio backend forced on HTML5 and OSX (see below)
|
|
|
|
-ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
|
|
- USE_OPENAL_BACKEND = TRUE
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
# Use external GLFW library instead of rglfw module
|
|
# Use external GLFW library instead of rglfw module
|
|
# TODO: Review usage of examples on Linux.
|
|
# TODO: Review usage of examples on Linux.
|
|
USE_EXTERNAL_GLFW ?= FALSE
|
|
USE_EXTERNAL_GLFW ?= FALSE
|
|
@@ -154,13 +146,6 @@ endif
|
|
# RAYLIB_PATH ?= /home/pi/raylib
|
|
# RAYLIB_PATH ?= /home/pi/raylib
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-# Force OpenAL Soft audio backend for OSX platform
|
|
|
|
-# NOTE 1: mini_al library does not support CoreAudio yet
|
|
|
|
-# NOTE 2: Required OpenAL libraries should be available on OSX
|
|
|
|
-ifeq ($(PLATFORM_OS),OSX)
|
|
|
|
- USE_OPENAL_BACKEND = TRUE
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
|
# Emscripten required variables
|
|
# Emscripten required variables
|
|
EMSDK_PATH = C:/emsdk
|
|
EMSDK_PATH = C:/emsdk
|
|
@@ -343,11 +328,6 @@ ifeq ($(RAYLIB_LIBTYPE),SHARED)
|
|
CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED
|
|
CFLAGS += -fPIC -DBUILD_LIBTYPE_SHARED
|
|
endif
|
|
endif
|
|
|
|
|
|
-# Use OpenAL Soft backend instead of mini_al
|
|
|
|
-ifeq ($(USE_OPENAL_BACKEND),TRUE)
|
|
|
|
- CFLAGS += -DUSE_OPENAL_BACKEND
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
# Use Wayland display on Linux desktop
|
|
# Use Wayland display on Linux desktop
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
ifeq ($(PLATFORM_OS), LINUX)
|
|
ifeq ($(PLATFORM_OS), LINUX)
|
|
@@ -359,7 +339,7 @@ endif
|
|
|
|
|
|
# Define include paths for required headers
|
|
# Define include paths for required headers
|
|
# NOTE: Several external required libraries (stb and others)
|
|
# NOTE: Several external required libraries (stb and others)
|
|
-INCLUDE_PATHS = -I. -Iexternal -Iexternal/glfw/include
|
|
|
|
|
|
+INCLUDE_PATHS = -I. -Iexternal/glfw/include
|
|
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
|
ifeq ($(PLATFORM_OS),BSD)
|
|
ifeq ($(PLATFORM_OS),BSD)
|
|
@@ -426,9 +406,7 @@ endif
|
|
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
|
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
|
OBJS += audio.o
|
|
OBJS += audio.o
|
|
OBJS += stb_vorbis.o
|
|
OBJS += stb_vorbis.o
|
|
- ifeq ($(USE_OPENAL_BACKEND),FALSE)
|
|
|
|
- OBJS += mini_al.o
|
|
|
|
- endif
|
|
|
|
|
|
+ OBJS += mini_al.o
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|
|
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|