lstadd_front ecrite avec main

This commit is contained in:
Hugo LAMY
2019-11-20 17:05:09 +01:00
parent bf6caf8019
commit 04a5228457
4 changed files with 9 additions and 9 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
.Makefile.swn Normal file

Binary file not shown.

View File

@@ -11,7 +11,7 @@ VPATH = srcs/part1/ \
IDIR = includes
_DEP = libft.h \
libonnus.h
libonus.h
DEPS = $(_DEP:%.h=$(IDIR)/%.h)
CFLAGS = -I$(IDIR)
@@ -52,14 +52,14 @@ SRCS = ft_memset.c \
ft_putendl_fd.c \
ft_putnbr_fd.c \
ODIR = ./builds
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
ODIR = ./builds
OBJS = $(SRCS:%.c=$(ODIR)/%.o)
SRCB = ft_lstnew.c \ #fonction un peu changee
ft_lstadd.c \ #ft_lstadd_front.c
lstsize \ #a creer
lstlast \ #a creer
lstadd_back \ #a creer
ft_lstsize \ #a creer
ft_lstlast \ #a creer
ft_lstadd_back \ #a creer
ft_lstdelone.c \ #fonction un peu changee
ft_lstdel.c \ #lstclear et un peu changee
ft_lstiter.c \ #fonction un peu changee
@@ -98,7 +98,7 @@ SRCB = ft_lstnew.c \ #fonction un peu changee
ft_arraymap.c \
ft_strmultisplit.c
OBJB = $(SRCB:%.c=$(ODIR)/%.o)
OBJB = $(SRCB:%.c=$(ODIR)/%.o)
# - - - - - - - - - - - #
@@ -115,7 +115,7 @@ $(NAME): $(OBJS) $(DEPS)
ar -rc $@ $(OBJS)
@ranlib $@
bonnus: $(OBJB)
bonus: $(OBJB)
ar rc $(NAME) $(OBJB)
@ranlib $(NAME)
@@ -130,7 +130,7 @@ fclean: clean
re: fclean all
.PHONY: bonnus clean fclean re all
.PHONY: bonus clean fclean re all