aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-13 12:50:44 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-13 12:50:44 +0200
commit82981d4b0d04c0d52020a209c8322fa0eed012f7 (patch)
tree04129bbcdeb62387509551b6f446f2b3897b5a54 /Makefile
parent57a3b88e09a014c76aba338d6eca04be8bcb85bc (diff)
downloadft_printf-82981d4b0d04c0d52020a209c8322fa0eed012f7.tar.gz
ft_printf-82981d4b0d04c0d52020a209c8322fa0eed012f7.tar.bz2
ft_printf-82981d4b0d04c0d52020a209c8322fa0eed012f7.zip
Added precision
For integral numbers, min width For strings, max len
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: