# **************************************************************************** # # # # ::: :::::::: # # Makefile :+: :+: :+: # # +:+ +:+ +:+ # # By: kcolin +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/10/14 13:43:59 by kcolin #+# #+# # # Updated: 2024/10/21 14:49:31 by kcolin ### ########.fr # # # # **************************************************************************** # NAME = libft.a CFLAGS = -Wall -Wextra -Werror -ggdb SOURCES = ft_isalpha.c \ ft_isdigit.c \ ft_isalnum.c \ ft_isascii.c \ ft_isprint.c \ ft_strlen.c \ ft_memset.c \ ft_bzero.c \ ft_memcpy.c \ ft_memmove.c \ ft_strlcpy.c \ ft_strlcat.c \ ft_toupper.c \ ft_tolower.c \ ft_strchr.c \ ft_strrchr.c \ ft_strncmp.c \ ft_memchr.c \ ft_memcmp.c \ ft_strnstr.c \ ft_atoi.c \ ft_calloc.c \ ft_strdup.c \ ft_substr.c \ ft_strjoin.c \ ft_strtrim.c \ ft_split.c \ ft_itoa.c \ ft_strmapi.c \ ft_striteri.c \ ft_putchar_fd.c \ ft_putstr_fd.c \ ft_putendl_fd.c \ ft_putnbr_fd.c OBJECTS = $(SOURCES:.c=.o) BONUS_SOURCES = ft_lstnew_bonus.c \ ft_lstadd_front_bonus.c \ ft_lstsize_bonus.c \ ft_lstlast_bonus.c \ ft_lstadd_back_bonus.c \ ft_lstdelone_bonus.c BONUS_OBJECTS = $(BONUS_SOURCES:.c=.o) .PHONY: all all: $(NAME) $(NAME): $(OBJECTS) ar rcs libft.a $(OBJECTS) bonus: $(OBJECTS) $(BONUS_OBJECTS) ar rcs libft.a $(OBJECTS) $(BONUS_OBJECTS) .PHONY: fclean fclean: clean rm -f libft.a .PHONY: clean clean: rm -f $(OBJECTS) .PHONY: re re: +make fclean +make all