Corrected makefile options.

This commit is contained in:
Ulysse Cura 2026-08-16 23:31:40 +02:00
parent 93c76a992c
commit c44f6b9842
3 changed files with 7 additions and 5 deletions

@ -1 +1 @@
Subproject commit 009d463a65bd478add7a6cb9c226f5efad6d4aa3
Subproject commit 513b8d1f3720c536f66d70ea0fa31a9e81df633b

View File

@ -9,6 +9,8 @@ ASSET_BUILDER_SOURCES := \
ASSET_BUILDER_CC = gcc
ifeq ($(RELEASE), 1)
ASSET_BUILDER_CFLAGS = --std=c17 --pedantic -O3 $(shell pkg-config --cflags libpng json-c) # RELEASE
ASSET_BUILDER_LDFLAGS = -O3 $(shell pkg-config --libs libpng json-c)
else
ASSET_BUILDER_CFLAGS = --std=c17 --pedantic -O1 -DDEBUG=1 -g $(shell pkg-config --cflags libpng json-c) \
-Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \
@ -18,13 +20,13 @@ ASSET_BUILDER_CFLAGS = --std=c17 --pedantic -O1 -DDEBUG=1 -g $(shell pkg-config
-Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op \
-Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \
-Wold-style-definition # DEVELOPEMENT
ASSET_BUILDER_LDFLAGS = -O1 $(shell pkg-config --libs libpng json-c)
endif
ASSET_BUILDER_INCLUDE_DIRS = $(ASSET_BUILDER_DIR)/headers $(SOURCE_DIR)/components/headers
ASSET_BUILDER_INCLUDE_DIRS := $(addprefix -I, $(ASSET_BUILDER_INCLUDE_DIRS))
ASSET_BUILDER_LDFLAGS = $(shell pkg-config --libs libpng json-c)
# Deduce objects
ASSET_BUILDER_OBJECTS = $(ASSET_BUILDER_SOURCES:%.c=$(BUILD_DIR)/$(ASSET_BUILDER_DIR)/%.o)

View File

@ -18,7 +18,7 @@ SRC_CFLAGS = --std=c17 --pedantic -O3 # RELEASE
SRC_LDFLAGS = -O3
else
SRC_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 \
SRC_CFLAGS = --std=c17 --pedantic -O1 -g -DDEBUG=2 \
-Wall -Wno-missing-braces -Wextra -Wno-missing-field-initializers \
-Wformat=2 -Wswitch-default -Wswitch -Wcast-align \
-Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \
@ -27,7 +27,7 @@ SRC_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 \
-Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \
-Wold-style-definition # DEVELOPEMENT
SRC_LDFLAGS = -O0
SRC_LDFLAGS = -O1
endif
SRC_INCLUDE_DIRS = $(SOURCE_DIR)/components/headers $(CORE_DIR)/headers