From 56a7a98ed902f5c48bd63530f6118a36f4e47ff6 Mon Sep 17 00:00:00 2001 From: Akos Horvath Date: Sun, 17 Sep 2023 15:18:13 +0200 Subject: [PATCH] move debug flags to new variable, move address sanitizer flags to debug flags --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d07cc27..a0dffdc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CC=gcc EXT=.c -FLAGS=-O0 -g -fsanitize=undefined -fsanitize=address +FLAGS=-O0 -g +DEBUG_FLAGS=-DDEBUG -fsanitize=undefined -fsanitize=address DEPFLAGS=-MD -MP LIBS=$(shell pkg-config --libs xcb x11 xinerama) EXEC_NAME=wm @@ -26,7 +27,7 @@ $(OBJDIR)/%.o: $(SRCDIR)/%$(EXT) $(CC) $(FLAGS) $(DEPFLAGS) -c -o $@ $< debug_flag: - $(eval FLAGS+=-DDEBUG) + $(eval FLAGS+=$(DEBUG_FLAGS)) filter: $(eval OBJS=$(filter-out obj/tests.o, $(OBJS)))