aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-04 21:01:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-05 03:08:14 +0100
commita3ea830c6ecebcfe85356d10fb5263f45ea01956 (patch)
tree9fca944b27d2aefe0d0ef1b2b589576a063d5b2f /Makefile
parent6ebaad27d92a5bb47fdf9618df12d3b4120f664e (diff)
downloadft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.tar.gz
ft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.tar.bz2
ft_printf_test-a3ea830c6ecebcfe85356d10fb5263f45ea01956.zip
Added iteractive mode and check with gcc -Wformat the generated test
before creating it
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7a8f2a4..6faf210 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
FT_PRINTF_PATH = ../ft_printf
CC = gcc
-CCFLAGS = -Wall -Wextra -Wno-format
+CCFLAGS = -Wall -Wextra
LDFLAGS = -L$(FT_PRINTF_PATH) -lftprintf
NAME = ft_printf_test
@@ -25,12 +25,15 @@ quiet: all
no_clear: all
./$(NAME) | $(PYTHON) prettier.py --no-clear
+interactive: all
+ ./$(NAME) | $(PYTHON) prettier.py --interactive
+
raw: all
./$(NAME)
all: $(NAME)
-$(NAME): ft_printf_all $(OBJ)
+$(NAME): ft_printf_all $(OBJ) header.h tests/tests.h
$(CC) $(LDFLAGS) $(CCFLAGS) -o $@ $(OBJ)
%.o: %.c