summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8759efa..1fdbab6 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,20 @@ SRC_FILES = ft_atoi.c \
ft_tolower.c \
ft_toupper.c \
+
OBJ_FILES = $(SRC_FILES:.c=.o)
+BONUS_SRC = ft_lstnew_bonus.c \
+ ft_lstadd_front_bonus.c \
+ ft_lstsize_bonus.c \
+ ft_lstlast_bonus.c \
+ ft_lstadd_back_bonus.c \
+ ft_lstdelone_bonus.c \
+ ft_lstclear_bonus.c \
+ ft_lstiter_bonus.c \
+ ft_lstmap_bonus.c
+
+BONUS_OBJ = $(BONUS_SRC:.c=.o)
all: $(NAME)
@@ -49,6 +61,9 @@ clean:
rm -f $(OBJ_FILES)
fclean: clean
- -rm -f $(NAME)
+ rm -f $(NAME)
re: fclean all
+
+bonus: $(BONUS_OBJ)
+ ar rcs $(NAME) $(BONUS_OBJ)