From: Lukas Jiriste Date: Thu, 24 Aug 2023 08:08:00 +0000 (+0200) Subject: Erased mentions of bonus from Makefile and libft.h as it is no longer needed. X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=dfb54cd7656374d27934b0db58b5977d03a47c1c;p=Libft.git Erased mentions of bonus from Makefile and libft.h as it is no longer needed. --- diff --git a/Makefile b/Makefile index 3f51445..982546f 100644 --- 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 9008b3f..61cc5cb 100644 --- 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