diff options
| author | Ray <raysan5@gmail.com> | 2018-01-25 10:07:51 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2018-01-25 10:07:51 +0100 |
| commit | c2ec88f93015f688905a0a35b64cc7c29daef223 (patch) | |
| tree | 0bac874f8957d76667c12f16d521714167f5f166 /src | |
| parent | 2dcaddc81ca2918dc6b474ed703ede2b04d1e61e (diff) | |
| download | raylib-c2ec88f93015f688905a0a35b64cc7c29daef223.tar.gz raylib-c2ec88f93015f688905a0a35b64cc7c29daef223.zip | |
Support DEBUG library building
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index f27ec575..c88aa6dd 100644 --- a/src/Makefile +++ b/src/Makefile @@ -48,6 +48,8 @@ RAYLIB_VERSION = 1.9.2 RAYLIB_API_VERSION = 1 # Library type used for raylib: STATIC (.a) or SHARED (.so/.dll) RAYLIB_LIBTYPE ?= STATIC +# Build mode for library: DEBUG or RELEASE +RAYLIB_BUILD_MODE ?= RELEASE # Included raylib audio module on compilation # 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 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) #CFLAGS += -Wextra -Wmissing-prototypes -Wstrict-prototypes ifeq ($(PLATFORM),PLATFORM_WEB) |
