From 8f3e1c37b67ae18ece6140e497e48139c43f8253 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 8 Oct 2019 20:01:35 +0200 Subject: Added Makefile, ft_printf template --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ad9d94d --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC = gcc +CCFLAGS = -Wall -Wextra #-Werror + +RM = rm -f + +NAME = ft_printf +SRC = ft_printf.c +OBJ = $(SRC:.c=.o) +INCLUDE = ft_printf.h + +all: $(NAME) + +$(NAME): $(OBJ) $(INCLUDE) + $(CC) $(CCFLAGS) -o $@ $(OBJ) + +%.o: %.c + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: + $(RM) $(OBJ) + +fclean: clean + $(RM) $(OBJ) + +re: fclean all -- cgit