Updated ccls and make options.

This commit is contained in:
Ulysse Cura 2026-08-13 19:04:16 +02:00
parent b74b0e357b
commit 02b87270bb
6 changed files with 21 additions and 15 deletions

11
.ccls
View File

@ -1,10 +1 @@
gcc
# Headers
-Isrc/components/headers
-ISDL3_Core/src/headers
#-INCurses_Core/src/headers
-Iassets/asset_builder/src/headers
# Macros
-DASSET_FILE_NAME="$(make print-ASSET_OUTPUT)"
-DDEBUG=2
gcc

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
.ccls-cache
.vscode/ccls-cache
build

@ -1 +1 @@
Subproject commit 35e2f241c18d248cc98f450d5c570b3b98dea6d4
Subproject commit c71af2e8036c0e8dbed88f986df448b065d93f9b

View File

@ -0,0 +1,6 @@
gcc
# Headers
-Iassets/asset_builder/src/headers
# Macros
-DDEBUG=2

7
src/.ccls Normal file
View File

@ -0,0 +1,7 @@
gcc
# Headers
-Isrc/components/headers
-ISDL3_Core/src/headers
# Macros
-DDEBUG=2

View File

@ -15,8 +15,10 @@ SOURCES := \
SRC_CC = gcc
ifeq ($(RELEASE), 1)
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-enum -Wcast-align \
-Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 \
@ -24,13 +26,13 @@ SRC_CFLAGS = --std=c17 --pedantic -O0 -g -DDEBUG=2 \
-Wcast-qual -Wshadow -Wunreachable-code -Wlogical-op \
-Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls \
-Wold-style-definition # DEVELOPEMENT
SRC_LDFLAGS = -O1
endif
SRC_INCLUDE_DIRS = $(SOURCE_DIR)/components/headers $(CORE_DIR)/headers
SRC_INCLUDE_DIRS := $(addprefix -I, $(SRC_INCLUDE_DIRS))
SRC_LDFLAGS =
# Deduce objects
SOURCE_OBJECTS = $(SOURCES:%.c=$(BUILD_DIR)/$(SOURCE_DIR)/%.o)