change Makefile and add day 2

This commit is contained in:
2025-12-03 17:04:21 +01:00
parent bc0d448f75
commit 786310898d
133 changed files with 2983 additions and 10 deletions

42
2025/2/libft/gnl/Makefile Executable file
View File

@ -0,0 +1,42 @@
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tomoron <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/04 08:03:00 by tomoron #+# #+# #
# Updated: 2024/10/28 23:09:14 by tomoron ### ########.fr #
# #
# **************************************************************************** #
NAME = gnl.a
CC = cc
SRCS = get_next_line_bonus.c\
get_next_line_utils_bonus.c
OBJS = $(SRCS:.c=.o)
FLAGS = -Wall -Wextra -Werror
$(NAME): $(OBJS)
ar rcs $(NAME) $(OBJS)
.c.o:
$(CC) $(FLAGS) -c $< -o $@
all: $(NAME)
bonus: all
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: bonus clean all re fclean