Updated ccls and make options.
This commit is contained in:
parent
b74b0e357b
commit
02b87270bb
11
.ccls
11
.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
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
.ccls-cache
|
||||
.vscode/ccls-cache
|
||||
build
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 35e2f241c18d248cc98f450d5c570b3b98dea6d4
|
||||
Subproject commit c71af2e8036c0e8dbed88f986df448b065d93f9b
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
gcc
|
||||
# Headers
|
||||
-Iassets/asset_builder/src/headers
|
||||
|
||||
# Macros
|
||||
-DDEBUG=2
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
gcc
|
||||
# Headers
|
||||
-Isrc/components/headers
|
||||
-ISDL3_Core/src/headers
|
||||
|
||||
# Macros
|
||||
-DDEBUG=2
|
||||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue