From 925989f7e7af67d965e2b501a51068acfe449ab0 Mon Sep 17 00:00:00 2001 From: yctct Date: Wed, 28 Jan 2026 12:43:28 +0100 Subject: Add all files, first commit --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e269455 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC = cc +CFLAGS = -Wall -Werror -Wextra -g +SRCS = ft_printf.c ft_putnbr.c ft_putstr.c ft_putchar.c ft_putunsigned.c ft_puthexlower.c ft_puthexupper.c ft_checkpadd.c +OBJS = $(SRCS:.c=.o) +NAME = libftprintf.a +DEPS = ft_printf.h + +%.o : %.c $(DEPS) + $(CC) -c -o $@ $< $(CFLAGS) + +$(NAME) : $(OBJS) + ar rcs $(NAME) $(OBJS) + +all: $(NAME) + +.PHONY: clean fclean re + +clean: + rm -f *.o +fclean: clean + rm -f $(NAME) +re: fclean all -- cgit v1.2.3