|
|
@ -87,6 +87,8 @@ USE_EXTERNAL_GLFW ?= FALSE |
|
|
|
# WARNING: Library is not included in raylib, it MUST be configured by users
|
|
|
|
SDL_INCLUDE_PATH ?= $(RAYLIB_SRC_PATH)/external/SDL2/include |
|
|
|
SDL_LIBRARY_PATH ?= $(RAYLIB_SRC_PATH)/external/SDL2/lib |
|
|
|
SDL_LIBRARIES ?= -lSDL2 -lSDL2main |
|
|
|
|
|
|
|
|
|
|
|
# Use Wayland display server protocol on Linux desktop (by default it uses X11 windowing system)
|
|
|
|
# NOTE: This variable is only used for PLATFORM_OS: LINUX
|
|
|
@ -415,12 +417,12 @@ endif |
|
|
|
ifeq ($(TARGET_PLATFORM),PLATFORM_DESKTOP_SDL) |
|
|
|
ifeq ($(PLATFORM_OS),WINDOWS) |
|
|
|
# Libraries for Windows desktop compilation |
|
|
|
LDLIBS = -lraylib -lSDL2 -lSDL2main -lopengl32 -lgdi32 |
|
|
|
LDLIBS = -lraylib $(SDL_LIBRARIES) -lopengl32 -lgdi32 |
|
|
|
endif |
|
|
|
ifeq ($(PLATFORM_OS),LINUX) |
|
|
|
# Libraries for Debian GNU/Linux desktop compiling |
|
|
|
# NOTE: Required packages: libegl1-mesa-dev |
|
|
|
LDLIBS = -lraylib -lSDL2 -lSDL2main -lGL -lm -lpthread -ldl -lrt |
|
|
|
LDLIBS = -lraylib $(SDL_LIBRARIES) -lGL -lm -lpthread -ldl -lrt |
|
|
|
|
|
|
|
# On X11 requires also below libraries |
|
|
|
LDLIBS += -lX11 |
|
|
|