mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-28 22:18:30 +00:00
Support DEBUG library building
This commit is contained in:
@@ -48,6 +48,8 @@ RAYLIB_VERSION = 1.9.2
|
|||||||
RAYLIB_API_VERSION = 1
|
RAYLIB_API_VERSION = 1
|
||||||
# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
|
# Library type used for raylib: STATIC (.a) or SHARED (.so/.dll)
|
||||||
RAYLIB_LIBTYPE ?= STATIC
|
RAYLIB_LIBTYPE ?= STATIC
|
||||||
|
# Build mode for library: DEBUG or RELEASE
|
||||||
|
RAYLIB_BUILD_MODE ?= RELEASE
|
||||||
|
|
||||||
# Included raylib audio module on compilation
|
# Included raylib audio module on compilation
|
||||||
# NOTE: Some programs like tools could not require audio support
|
# NOTE: Some programs like tools could not require audio support
|
||||||
@@ -262,6 +264,10 @@ endif
|
|||||||
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
|
# -Werror=pointer-arith catch unportable code that does direct arithmetic on void pointers
|
||||||
CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces -Werror=pointer-arith
|
CFLAGS += -O1 -Wall -std=c99 -D_DEFAULT_SOURCE -fgnu89-inline -Wno-missing-braces -Werror=pointer-arith
|
||||||
|
|
||||||
|
ifeq ($(RAYLIB_BUILD_MODE), DEBUG)
|
||||||
|
CFLAGS += -g
|
||||||
|
endif
|
||||||
|
|
||||||
# Additional flags for compiler (if desired)
|
# Additional flags for compiler (if desired)
|
||||||
#CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
#CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes
|
||||||
ifeq ($(PLATFORM),PLATFORM_WEB)
|
ifeq ($(PLATFORM),PLATFORM_WEB)
|
||||||
|
Reference in New Issue
Block a user