Something went wrong. Try again.
42 project to recreate printf
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152# **************************************************************************** ## ## ::: :::::::: ## Makefile :+: :+: :+: ## +:+ +:+ +:+ ## By: jkrishna <jkrishna@student.42.fr> +#+ +:+ +#+ ## +#+#+#+#+#+ +#+ ## Created: 2026/05/07 12:41:02 by jkrishna #+# #+# ## Updated: 2026/06/05 13:50:54 by jkrishna ### ########.fr ## ## **************************************************************************** #
NAME = libftprintf.a
CFLAGS = -Wall -Wextra -WerrorCC = cc
SRC = ft_printf.c \ ft_channel.c \ ft_cprintf.c \ ft_sprintf.c \ ft_pprintf.c \ ft_uprintf.c \ ft_diprintf.c \ ft_xprintf.c \ ft_cxprintf.c \ ft_percprintf.c
OBJ = $(SRC:.c=.o)
AR = arARFLAGS = rcs
all: $(NAME)
$(NAME): $(OBJ) $(AR) $(ARFLAGS) $@ $(OBJ)
%.o: %.c $(CC) $(CFLAGS) -c $< -o $@
clean: rm -f *.o
fclean: clean rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re