diff --git a/.ccls b/.ccls index b562f00..b08d5af 100644 --- a/.ccls +++ b/.ccls @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4239b68..005bc75 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -.ccls-cache +.vscode/ccls-cache build diff --git a/SDL3_Core b/SDL3_Core index 35e2f24..c71af2e 160000 --- a/SDL3_Core +++ b/SDL3_Core @@ -1 +1 @@ -Subproject commit 35e2f241c18d248cc98f450d5c570b3b98dea6d4 +Subproject commit c71af2e8036c0e8dbed88f986df448b065d93f9b diff --git a/assets/asset_builder/src/.ccls b/assets/asset_builder/src/.ccls new file mode 100644 index 0000000..7385139 --- /dev/null +++ b/assets/asset_builder/src/.ccls @@ -0,0 +1,6 @@ +gcc +# Headers +-Iassets/asset_builder/src/headers + +# Macros +-DDEBUG=2 diff --git a/src/.ccls b/src/.ccls new file mode 100644 index 0000000..699750e --- /dev/null +++ b/src/.ccls @@ -0,0 +1,7 @@ +gcc +# Headers +-Isrc/components/headers +-ISDL3_Core/src/headers + +# Macros +-DDEBUG=2 diff --git a/src/Makefile b/src/Makefile index 15c70b5..52a6ecc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)