add asan build rule to Makefile
This commit is contained in:
parent
c9aef90130
commit
9b8bdbf850
6
Makefile
6
Makefile
@ -2,6 +2,7 @@
|
|||||||
CPPC = g++
|
CPPC = g++
|
||||||
CPPC_FLAGS = -std=c++23 -s -O3 -lncursesw -lcurl -lmenuw -lpanel -Wall -Wextra -Wno-write-strings
|
CPPC_FLAGS = -std=c++23 -s -O3 -lncursesw -lcurl -lmenuw -lpanel -Wall -Wextra -Wno-write-strings
|
||||||
DEBUG_FLAGS = -ggdb -std=c++23 -lncursesw -lcurl -lmenuw -lpanel -Wall -Wextra -Wno-write-strings
|
DEBUG_FLAGS = -ggdb -std=c++23 -lncursesw -lcurl -lmenuw -lpanel -Wall -Wextra -Wno-write-strings
|
||||||
|
DEBUG_ASANITIZE = -fsanitize=address -ggdb -fno-omit-frame-pointer -std=c++23 -lncursesw -lcurl -lmenuw -lpanel -Wall -Wextra -Wno-write-strings
|
||||||
|
|
||||||
|
|
||||||
SRC_PATH := src
|
SRC_PATH := src
|
||||||
@ -19,6 +20,9 @@ all: make-build-dir $(BIN_PATH)/bakatui
|
|||||||
debug: CPPC_FLAGS = $(DEBUG_FLAGS)
|
debug: CPPC_FLAGS = $(DEBUG_FLAGS)
|
||||||
debug: make-build-dir $(BIN_PATH)/bakatui
|
debug: make-build-dir $(BIN_PATH)/bakatui
|
||||||
|
|
||||||
|
asan: CPPC_FLAGS = $(DEBUG_ASANITIZE)
|
||||||
|
asan: make-build-dir $(BIN_PATH)/bakatui
|
||||||
|
|
||||||
|
|
||||||
make-build-dir:
|
make-build-dir:
|
||||||
mkdir -p $(OBJ_PATH)
|
mkdir -p $(OBJ_PATH)
|
||||||
@ -39,4 +43,4 @@ install:
|
|||||||
clean:
|
clean:
|
||||||
rm -fr build
|
rm -fr build
|
||||||
|
|
||||||
.PHONY: all clean install debug
|
.PHONY: all clean install debug asan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user