move debug flags to new variable, move address sanitizer flags to debug flags
This commit is contained in:
parent
1aace4baa9
commit
56a7a98ed9
5
Makefile
5
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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user