Update the Makefile

This commit is contained in:
Raphaël 2023-12-23 17:37:26 +01:00 committed by GitHub
parent 353c59c2ae
commit aae064f40b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 20 deletions

View file

@ -6,7 +6,7 @@
# By: rparodi <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/12 11:05:05 by rparodi #+# #+# #
# Updated: 2023/12/14 18:16:54 by raphael ### ########.fr #
# Updated: 2023/12/23 17:35:10 by raphael ### ########.fr #
# #
# **************************************************************************** #
@ -26,39 +26,39 @@ 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'
@printf '\n\n'
@printf '$(GOLD) ******* ***** ******* $(END)\n'
@printf '$(GOLD) ****** *** ******* $(END)\n'
@printf '$(GOLD) ******* ******* $(END)\n'
@printf '$(GOLD) ****** ******* $(END)\n'
@printf '$(GOLD) ******* ******* $(END)\n'
@printf '$(GOLD) ******************** ******* * $(END)\n'
@printf '$(GOLD) ******************** ******* *** $(END)\n'
@printf '$(GOLD) ******* ******* ****** $(END)\n'
@printf '$(GOLD) ******* $(END)\n'
@printf '$(GOLD) ******* $(END)\n\n'
@printf '$(GREY) Made by rparodi$(END)\n\n\n'
$(NAME): $(OBJ) $(OBJLibft)
@echo -e '$(GREY) Compiling $(END)$(GOLD)$(NAME)$(END)'
@printf '$(GREY) Compiling $(END)$(GOLD)$(NAME)$(END)\n'
@ar rc $(NAME) $(OBJ) $(OBJLibft)
@ranlib $(NAME)
%.o: %.c
@echo -e '$(GREY) Compiling $(END)$(GREEN)$<$(END)'
@printf '$(GREY) Compiling $(END)$(GREEN)$<$(END)\n'
@$(CC) -I. -o $@ -c $? $(CFLAGS)
all: header $(NAME)
@echo -e '\n$(GREY) Compilation $(GREEN)Done'
@printf '\n$(GREY) Compilation $(GREEN)Done\n'
dev: all bonus clean
clean:
@echo -e '$(GREY) Removing $(END)$(RED)Object$(END)'
@printf '$(GREY) Removing $(END)$(RED)Object$(END)\n'
@$(RM) $(OBJ) $(OBJLibft)
fclean: clean
@echo -e '$(GREY) Removing $(END)$(RED)Program$(END)'
@printf '$(GREY) Removing $(END)$(RED)Program$(END)\n'
@$(RM) $(NAME)
re: fclean all

BIN
libft/ft_strdup.o Normal file

Binary file not shown.

BIN
libft/ft_strlcpy.o Normal file

Binary file not shown.

BIN
libft/ft_strlen.o Normal file

Binary file not shown.

BIN
libftprintf.a Normal file

Binary file not shown.

BIN
src/ft_printf.o Normal file

Binary file not shown.

View file

@ -6,7 +6,7 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/16 12:13:14 by rparodi #+# #+# */
/* Updated: 2023/11/16 12:14:35 by rparodi ### ########.fr */
/* Updated: 2023/12/23 17:33:46 by raphael ### ########.fr */
/* */
/* ************************************************************************** */
@ -47,7 +47,7 @@ void ft_putnbr_base(\
{
if (nbr != 0)
ft_putstr("0x", ret_value);
if (nbr == 0)
else if (nbr == 0)
{
ft_putstr("(nil)", ret_value);
return ;

BIN
src/ft_put.o Normal file

Binary file not shown.