diff --git a/Makefile b/Makefile index 516b556..eecd968 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2023/11/16 15:14:07 by rparodi ### ########.fr # +# Updated: 2023/11/24 16:24:21 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -19,28 +19,48 @@ SRC = ./src/ft_printf.c ./src/ft_put.c OBJ = $(SRC:.c=.o) OBJLibft = $(LIBFT:.c=.o) +GREEN = \033[32m +GREY = \033[0;90m +RED = \033[0;31m +GOLD = \033[38;5;220m +END = \033[0m + +header: + @echo -e '\n\n' + @echo -e '$(GOLD) ******* ***** ******* $(END)' + @echo -e '$(GOLD) ****** *** ******* $(END)' + @echo -e '$(GOLD) ******* ******* $(END)' + @echo -e '$(GOLD) ****** ******* $(END)' + @echo -e '$(GOLD) ******* ******* $(END)' + @echo -e '$(GOLD) ******************** ******* * $(END)' + @echo -e '$(GOLD) ******************** ******* *** $(END)' + @echo -e '$(GOLD) ******* ******* ****** $(END)' + @echo -e '$(GOLD) ******* $(END)' + @echo -e '$(GOLD) ******* $(END)\n' + @echo -e '$(GREY) Made by rparodi$(END)\n\n' + $(NAME): $(OBJ) $(OBJLibft) - ar rc $(NAME) $(OBJ) $(OBJLibft) - ranlib $(NAME) + @echo -e '$(GREY) Compiling $(END)$(GOLD)$(NAME)$(END)' + @ar rc $(NAME) $(OBJ) $(OBJLibft) + @ranlib $(NAME) %.o: %.c - $(CC) -I. -o $@ -c $? $(CFLAGS) - -all: $(NAME) - -bonus: $(OBJ) $(OBJLibft) - ar rc $(NAME) $(OBJ) $(OBJLibft) - ranlib $(NAME) + @echo -e '$(GREY) Compiling $(END)$(GREEN)$<$(END)' + @$(CC) -I. -o $@ -c $? $(CFLAGS) +all: header $(NAME) + @echo -e '\n$(GREY) Compilation $(GREEN)Done' dev: all bonus clean clean: - $(RM) $(OBJ) $(OBJLibft) + @echo -e '$(GREY) Removing $(END)$(RED)Object$(END)' + @$(RM) $(OBJ) $(OBJLibft) fclean: clean - $(RM) $(NAME) + @echo -e '$(GREY) Removing $(END)$(RED)Program$(END)' + @$(RM) $(NAME) -re: fclean all bonus +re: fclean all -.PHONY: clean clean +.PHONY: all bonus clean fclean re dev header