]> git.dkaiser.de - 42/libft.git/commitdiff
Remove bonus rule to keep libft from relinking
authorDominik Kaiser <dkaiser@2-D-9.42heilbronn.de>
Mon, 29 Apr 2024 14:26:37 +0000 (16:26 +0200)
committerDominik Kaiser <dkaiser@2-D-9.42heilbronn.de>
Mon, 29 Apr 2024 14:26:37 +0000 (16:26 +0200)
Makefile

index 7bab2675ec516def56a05d0442b74357e1178d97..4cddb3cb6c9e818eec904f19b4fdbc3123e473de 100644 (file)
--- 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