From: Dominik Kaiser Date: Mon, 29 Apr 2024 14:26:37 +0000 (+0200) Subject: Remove bonus rule to keep libft from relinking X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=44f49e00f6362c559ee575cc96bb46ffe56bf08c;p=42%2Flibft.git Remove bonus rule to keep libft from relinking --- diff --git a/Makefile b/Makefile index 7bab267..4cddb3c 100644 --- a/Makefile +++ b/Makefile @@ -60,8 +60,8 @@ BONUS_OBJ = $(BONUS_SRC:.c=.o) all: $(NAME) -$(NAME): $(OBJ_FILES) - ar rcs $(NAME) $(OBJ_FILES) +$(NAME): $(OBJ_FILES) $(BONUS_OBJ) + ar rcs $(NAME) $(OBJ_FILES) $(BONUS_OBJ) clean: rm -f $(OBJ_FILES) $(BONUS_OBJ) @@ -71,5 +71,4 @@ fclean: clean re: fclean all -bonus: $(BONUS_OBJ) - ar rcs $(NAME) $(BONUS_OBJ) +.PHONY: all clean fclean re