2023-01-31 08:40:15 -05:00
|
|
|
# **************************************************************************** #
|
|
|
|
# #
|
|
|
|
# ::: :::::::: #
|
|
|
|
# Makefile :+: :+: :+: #
|
|
|
|
# +:+ +:+ +:+ #
|
|
|
|
# By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ #
|
|
|
|
# +#+#+#+#+#+ +#+ #
|
|
|
|
# Created: 2022/12/14 15:49:18 by cchauvet #+# #+# #
|
|
|
|
# Updated: 2023/01/05 19:22:40 by cchauvet ### ########.fr #
|
|
|
|
# #
|
|
|
|
# **************************************************************************** #
|
|
|
|
|
|
|
|
SRCS = get_next_line.c
|
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
NAME = get_next_line.a
|
|
|
|
|
|
|
|
CFLAGS = -Wall -Werror -Wextra -g
|
|
|
|
|
|
|
|
CC = clang
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
all: $(NAME)
|
|
|
|
|
|
|
|
$(NAME): $(OBJS)
|
|
|
|
ar -rc $(NAME) $(OBJS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) $(BOBJS)
|
|
|
|
|
|
|
|
fclean: clean
|
|
|
|
rm -f $(NAME)
|
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
2023-02-23 12:03:22 -05:00
|
|
|
.PHONY: all clean fclean re
|