From dccd81af186bb6402ad111016e168d52a0b0b49b Mon Sep 17 00:00:00 2001 From: Alexey Fedoseev Date: Wed, 10 Apr 2024 23:17:28 +0300 Subject: [PATCH] ASAN make target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e4429e..e1a8461 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,10 @@ TEST_SOURCES := test.c LIB_OBJECTS := $(patsubst %.c, %.o, $(LIB_SOURCES)) TEST_OBJECTS := $(patsubst %.c, %.o, $(TEST_SOURCES)) -ifeq ($(DEBUG), 1) +ifeq ($(DEBUG), yes) + CFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion -fPIC -g3 -D__DEBUG_ + LFLAGS := +else ifeq ($(DEBUG), asan) CFLAGS := -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion -fsanitize=address -fPIC -g3 -D__DEBUG_ LFLAGS := -fsanitize=address -static-libasan else