summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDominik Kaiser2024-04-29 16:26:37 +0200
committerDominik Kaiser2024-04-29 16:26:37 +0200
commit44f49e00f6362c559ee575cc96bb46ffe56bf08c (patch)
treee48732771414f3357813fff4df8f2ba82fbf04bf /Makefile
parent358e300bc148d2a223e1cfa2a3c49da6c0ba968c (diff)
downloadlibft-44f49e00f6362c559ee575cc96bb46ffe56bf08c.tar.gz
libft-44f49e00f6362c559ee575cc96bb46ffe56bf08c.zip
Remove bonus rule to keep libft from relinking
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
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