This commit is contained in:
Angel Ortigosa Perez
2025-11-15 11:12:17 +01:00
commit 0cc70e4eb5
4 changed files with 265 additions and 0 deletions

28
Makefile Normal file
View File

@@ -0,0 +1,28 @@
CC = cc
CFLAGS = -Wall -Wextra -Werror
SRCS = get_next_line.c get_next_line_utils.c
OBJS = $(SRCS:.c=.o)
NAME = get_next_line.a
all: $(NAME)
$(NAME): $(OBJS)
ar rcs $(NAME) $(OBJS)
ranlib $(NAME)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re