Update the makefile

This commit is contained in:
Raphaël 2023-12-27 18:34:24 +01:00 committed by GitHub
parent c51ed294c1
commit 67738d4d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
# By: rparodi <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2023/11/13 19:10:24 by rparodi ### ########.fr #
# Updated: 2023/12/27 18:32:57 by raphael ### ########.fr #
# #
# **************************************************************************** #
@ -27,6 +27,9 @@ RED = \033[0;31m
GOLD = \033[38;5;220m
END = \033[0m
all: header $(NAME)
@printf '\n$(GREY) Compilation$(END)$(GREEN) Done$(END)\n'
header:
@clear
@printf '\n$(GOLD) ******* ***** ******* $(END)\n'
@ -50,9 +53,6 @@ $(NAME): $(OBJ) $(OBJBonus)
@printf '$(GREY) Compiling $(END)$(GREEN)$<$(END)\n'
@$(CC) -I. -o $@ -c $? $(CFLAGS)
all: header $(NAME)
@printf '\n$(GREY) Compilation$(END)$(GREEN) Done$(END)\n'
bonus: $(OBJ) $(OBJBonus)
@printf '$(GREY) Compiling $(END)$(GOLD)$(NAME)$(END)\n'
@ar rc $(NAME) $(OBJ) $(OBJBonus)