NAME = libft.a SRCS = is/ft_isalpha.c is/ft_isdigit.c is/ft_isascii.c is/ft_isprint.c \ is/ft_isalnum.c SRCS += str/ft_strlen.c str/ft_strlcpy.c str/ft_strlcat.c str/ft_strchr.c \ str/ft_strrchr.c str/ft_strncmp.c str/ft_strnstr.c str/ft_strdup.c \ str/ft_substr.c str/ft_strjoin.c str/ft_strtrim.c str/ft_split.c \ str/ft_strrev.c str/ft_strmapi.c str/ft_striteri.c SRCS += conv/ft_toupper.c conv/ft_tolower.c conv/ft_atoi.c conv/ft_itoa.c \ conv/ft_itox.c conv/ft_utoa.c SRCS += mem/ft_bzero.c mem/ft_memset.c mem/ft_memchr.c mem/ft_memcpy.c \ mem/ft_memcmp.c mem/ft_memmove.c mem/ft_calloc.c SRCS += put/ft_putchar_fd.c put/ft_putnbr_fd.c put/ft_putendl_fd.c put/ft_putstr_fd.c SRCS += nbr/ft_nbrlen.c SRCS += lst/ft_lstsize.c lst/ft_lstnew.c lst/ft_lstlast.c \ lst/ft_lstadd_back.c lst/ft_lstadd_front.c lst/ft_lstdelone.c \ lst/ft_lstclear.c lst/ft_lstiter.c lst/ft_lstmap.c OBJS = $(SRCS:.c=.o) CC = gcc AR = ar -rcs RM = rm -rf CFLAGS = -Wall -Wextra -Werror .c.o: ${CC} ${CFLAGS} -c $< -o ${<:.c=.o} all : $(NAME) $(NAME): $(OBJS) ${AR} ${NAME} ${OBJS} clean: ${RM} ${OBJS} ${RM} ${OBJS_BONUS} fclean: clean ${RM} ${NAME} re: fclean all rebonus: fclean bonus .PHONY: all bonus re rebonus clean fclean