2023-04-26 07:02:44 -04:00
|
|
|
# **************************************************************************** #
|
|
|
|
# #
|
|
|
|
# ::: :::::::: #
|
|
|
|
# Makefile :+: :+: :+: #
|
|
|
|
# +:+ +:+ +:+ #
|
|
|
|
# By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ #
|
|
|
|
# +#+#+#+#+#+ +#+ #
|
|
|
|
# Created: 2022/12/14 15:49:18 by cchauvet #+# #+# #
|
2023-06-01 07:49:12 -04:00
|
|
|
# Updated: 2023/06/01 13:23:51 by erey-bet ### ########.fr #
|
2023-04-26 07:02:44 -04:00
|
|
|
# #
|
|
|
|
# **************************************************************************** #
|
|
|
|
|
|
|
|
SRCS = get_next_line.c
|
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
NAME = get_next_line.a
|
|
|
|
|
2023-06-01 07:49:12 -04:00
|
|
|
CFLAGS = -fPIE -Wall -Werror -Wextra -g
|
2023-04-26 07:02:44 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|