Erased mentions of bonus from Makefile and libft.h as it is no longer needed.
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Aug 2023 08:08:00 +0000 (10:08 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 24 Aug 2023 08:08:00 +0000 (10:08 +0200)
Makefile
libft.h

index 3f514456670365db167c9cc0d3656bd7e433746d..982546fa007f5ab9a15c88c5de4d844ab307b2e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,11 +8,7 @@ INCDIR = .
 SRCDIR = .
 # SOURCES = $(addprefix $(SRCDIR)/, ft_putchar.c ft_putstr.c ft_strcmp.c ft_strlen.c ft_swap.c)
 SOURCES = $(shell find $(SRCDIR) -name "*.c")
-BONUS = $(shell find $(SRCDIR) -name "*lst*.c")
-TEMP := $(SOURCES)
-SOURCES = $(filter-out $(BONUS), $(TEMP))
 OBJECTS = $(SOURCES:.c=.o)
-BONUS_OBJECTS = $(BONUS:.c=.o)
 
 NAME = libft.a
 
@@ -32,7 +28,3 @@ fclean : clean
 
 re : fclean
        $(MAKE) all
-
-#bonus : CFLAGS += -DBONUS
-bonus : $(OBJECTS) $(BONUS_OBJECTS)
-       $(AR) rcs $(NAME) $(OBJECTS) $(BONUS_OBJECTS)
diff --git a/libft.h b/libft.h
index 9008b3fa076f7b1a1a4642800e19e13bd3492b62..61cc5cbb49840c3a4ceb263beb54489a6ce77ac9 100644 (file)
--- a/libft.h
+++ b/libft.h
@@ -62,8 +62,6 @@ void  ft_putstr_fd(char *s, int fd);
 void   ft_putendl_fd(char *s, int fd);
 void   ft_putnbr_fd(int n, int fd);
 
-//# ifdef BONUS
-
 typedef struct s_list
 {
        void                    *content;
@@ -80,6 +78,4 @@ void  ft_lstclear(t_list **lst, void (*del)(void *));
 void   ft_lstiter(t_list *lst, void (*f)(void *));
 t_list *ft_lstmap(t_list *lst, void *(*f)(void *), void (*del)(void *));
 
-//# endif
-
 #endif