42_cube3D/libftx/gnl/Makefile
Etienne Rey-bethbeder ab4e7e7034 ça compile maintenant
2023-06-01 13:49:12 +02:00

40 lines
1.2 KiB
Makefile

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