From 84409d8d3fa8bd9bae28b3523aa6d0c0b3a68406 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Wed, 9 Oct 2019 17:00:48 +0200 Subject: Small update --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3689094..fe48717 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,11 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2019/10/08 15:45:53 by cacharle #+# #+# # -# Updated: 2019/10/09 08:56:04 by cacharle ### ########.fr # +# Updated: 2019/10/09 15:48:10 by cacharle ### ########.fr # # # # **************************************************************************** # -LIB = ar rc +LIB = ar rcs RM = rm -f CC = gcc @@ -47,12 +47,14 @@ bonus: $(OBJ) $(BONUSOBJ) $(INCLUDE) $(BONUSINCLUDE) $(CC) $(CCFLAGS) -c -o $@ $< clean: - rm -f $(OBJ) $(BONUSOBJ) + $(RM) $(OBJ) $(BONUSOBJ) fclean: clean - rm -f $(NAME) + $(RM) $(NAME) re: fclean all -so: $(OBJ) libft.h - $(CC) -shared -fPIC -Wl,-soname,libft.so -o libft.so $(OBJ) +rebonus: fclean bonus + +so: $(OBJ) $(BONUSOBJ) $(INCLUDE) + $(CC) -shared -fPIC -Wl,-soname,libft.so -o libft.so $(OBJ) $(BONUSOBJ) -- cgit