Files
GridEscape/get_next_line/Makefile
T
HexPloR 4dfc0cd7ec oui
2024-06-24 00:02:52 +02:00

26 lines
336 B
Makefile
Executable File

NAME = get_next_line.a
CC = cc
CFLAGS = -Wall -Wextra -Werror
SRC = get_next_line.c get_next_line_utils.c
OBJ = $(SRC:.c=.o)
RM = rm -f
$(NAME): $(OBJ)
@ar rcs $(NAME) $(OBJ)
$(OBJ): $(SRC)
@$(CC) $(CFLAGS) -c $(SRC)
all: $(NAME)
clean:
@$(RM) $(OBJ)
fclean: clean
@$(RM) $(NAME)
re: fclean all
.PHONY : all clean fclean re