Update Makefile

This commit is contained in:
Ray
2025-08-19 10:36:56 +02:00
parent a338b9694c
commit cf1217f5c1

View File

@@ -35,7 +35,7 @@ PROJECT_BUILD_PATH ?= .
PROJECT_SOURCE_FILES ?= rexm.c PROJECT_SOURCE_FILES ?= rexm.c
# raylib library variables # raylib library variables
RAYLIB_SRC_PATH ?= C:\raylib\raylib\src RAYLIB_SRC_PATH ?= ..\..\src
RAYLIB_INCLUDE_PATH ?= $(RAYLIB_SRC_PATH) RAYLIB_INCLUDE_PATH ?= $(RAYLIB_SRC_PATH)
RAYLIB_LIB_PATH ?= $(RAYLIB_SRC_PATH) RAYLIB_LIB_PATH ?= $(RAYLIB_SRC_PATH)
@@ -205,7 +205,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
LDFLAGS += $(PROJECT_NAME).rc.data LDFLAGS += $(PROJECT_NAME).rc.data
# -Wl,--subsystem,windows hides the console window # -Wl,--subsystem,windows hides the console window
ifeq ($(BUILD_MODE), RELEASE) ifeq ($(BUILD_MODE), RELEASE)
LDFLAGS += -Wl,--subsystem,windows #LDFLAGS += -Wl,--subsystem,windows
endif endif
endif endif
ifeq ($(PLATFORM_OS),BSD) ifeq ($(PLATFORM_OS),BSD)
@@ -264,9 +264,9 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
ifeq ($(PLATFORM_OS),WINDOWS) ifeq ($(PLATFORM_OS),WINDOWS)
# Libraries for Windows desktop compilation # Libraries for Windows desktop compilation
# NOTE: WinMM library required to set high-res timer resolution # NOTE: WinMM library required to set high-res timer resolution
LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm -lcomdlg32 -lole32 LDLIBS = -lraylib -lopengl32 -lgdi32 -lwinmm
# Required for physac examples # Required for physac examples
LDLIBS += -static -lpthread #LDLIBS += -static -lpthread
endif endif
ifeq ($(PLATFORM_OS),LINUX) ifeq ($(PLATFORM_OS),LINUX)
# Libraries for Debian GNU/Linux desktop compiling # Libraries for Debian GNU/Linux desktop compiling