aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1728dd6..26df249 100644
--- a/Makefile
+++ b/Makefile
@@ -10,10 +10,13 @@ INCLUDE = header.h
all: $(NAME)
-$(NAME): $(OBJ) $(INCLUDE)
+debug: CCFLAGS += -g -fsanitize=address
+debug: re
+
+$(NAME): $(OBJ)
$(CC) $(CCFLAGS) -o $@ $(OBJ)
-%.o: %.c
+%.o: %.c $(INCLUDE)
$(CC) $(CCFLAGS) -c -o $@ $<
clean: