42_solong/libftx/gnl/Makefile

40 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2022-12-22 11:54:17 -05:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/14 15:49:18 by cchauvet #+# #+# #
2023-01-06 13:37:36 -05:00
# Updated: 2023/01/05 19:22:40 by cchauvet ### ########.fr #
2022-12-22 11:54:17 -05:00
# #
# **************************************************************************** #
2023-01-06 13:37:36 -05:00
SRCS = get_next_line.c
2022-12-22 11:54:17 -05:00
OBJS = ${SRCS:.c=.o}
NAME = get_next_line.a
2023-01-05 13:04:29 -05:00
CFLAGS = -Wall -Werror -Wextra -g
2022-12-22 11:54:17 -05: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 bonus clean fclean re