some fixes

This commit is contained in:
David Gailleton
2025-11-09 19:09:56 +01:00
parent d75e58d763
commit 6e5f588613
5 changed files with 61 additions and 26 deletions

View File

@@ -45,13 +45,27 @@ SRC = ft_isalpha.c \
ft_putendl_fd.c \
ft_putnbr_fd.c
OBJ_DIR = objs
BONUS_SRC = ft_lstnew.c \
ft_lstadd_front.c \
ft_lstsize.c \
ft_lstlast.c \
ft_lstadd_back.c \
ft_lstdelone.c \
ft_lstclear.c \
ft_lstiter.c \
ft_lstmap.c
OBJ = $(patsubst %, $(OBJ_DIR)/%o, $(SRC:.c=.))
OBJ = $(SRC:.c=.o)
BONUS_OBJ = $(BONUS_SRC:.c=.o)
all: $(NAME)
bonus: $(OBJ) $(BONUS_OBJ)
$(AR) $(ARFLAGS) $(NAME) $(OBJ) $(BONUS_OBJ)
ranlib $(NAME)
$(NAME): $(OBJ)
$(AR) $(ARFLAGS) $(NAME) $(OBJ)
ranlib $(NAME)