aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-15 14:15:25 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-15 15:01:35 +0200
commitbebdb6929703ebdf9d3f65f19fd29780ac39cab3 (patch)
tree158ced4ccae46cd537ec22e57cb361e1d3e1ebf5 /Makefile
parentf23592ea0c122a0da2723d4253c47ca227529f79 (diff)
downloadlibft-bebdb6929703ebdf9d3f65f19fd29780ac39cab3.tar.gz
libft-bebdb6929703ebdf9d3f65f19fd29780ac39cab3.tar.bz2
libft-bebdb6929703ebdf9d3f65f19fd29780ac39cab3.zip
Removed libft_bonus.h
bonus rule in Makefile remove guard close in libft.h to declare t_list struct and ft_lst* prototypes. Fixed ft_lstclear with recursion.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fe48717..d71c8a1 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/08 15:45:53 by cacharle #+# #+# #
-# Updated: 2019/10/09 15:48:10 by cacharle ### ########.fr #
+# Updated: 2019/10/15 14:02:08 by cacharle ### ########.fr #
# #
# **************************************************************************** #
@@ -33,14 +33,14 @@ BONUSSRC = ft_lstadd_back_bonus.c ft_lstadd_front_bonus.c ft_lstclear_bonus.c \
ft_lstdelone_bonus.c ft_lstiter_bonus.c ft_lstlast_bonus.c \
ft_lstmap_bonus.c ft_lstnew_bonus.c ft_lstsize_bonus.c
BONUSOBJ = $(BONUSSRC:.c=.o)
-BONUSINCLUDE = libft_bonus.h
all: $(NAME)
$(NAME): $(OBJ) $(INCLUDE)
$(LIB) $(NAME) $(OBJ)
-bonus: $(OBJ) $(BONUSOBJ) $(INCLUDE) $(BONUSINCLUDE)
+bonus: CCFLAGS += -D LIBFT_BONUS
+bonus: $(OBJ) $(BONUSOBJ) $(INCLUDE)
$(LIB) $(NAME) $(OBJ) $(BONUSOBJ)
%.o: %.c