Added RELEASE var.

This commit is contained in:
Ulysse Cura 2026-07-22 18:16:17 +02:00
parent 1821d20923
commit 911bdd7999
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,9 @@ CORE_SOURCES := \
# Compiler and flags
CORE_CC = gcc
#CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(ASSET_OUTPUT)\" $(shell pkg-config --cflags ncurses) # RELEASE
ifeq ($(RELEASE), 1)
CORE_CFLAGS = --std=c17 --pedantic -O3 -DASSET_FILE_NAME=\"$(ASSET_OUTPUT)\" $(shell pkg-config --cflags ncurses) # RELEASE
else
CORE_CFLAGS = --std=c17 --pedantic -O1 -g -DASSET_FILE_NAME=\"$(ASSET_OUTPUT)\" $(shell pkg-config --cflags ncurses) \
-Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \
-Wformat=2 -Wswitch-default -Wswitch-enum -Wcast-align \
@ -17,6 +19,7 @@ CORE_CFLAGS = --std=c17 --pedantic -O1 -g -DASSET_FILE_NAME=\"$(ASSET_OUTPUT)\"
-Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op \
-Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \
-Wold-style-definition # DEVELOPEMENT
endif
CORE_INCLUDE_DIRS = $(CORE_DIR)/headers
CORE_INCLUDE_DIRS := $(addprefix -I, $(CORE_INCLUDE_DIRS))