1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
42-2nd-piscine/BSQ/Makefile

50 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2023-08-03 23:16:27 +02:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: axdubois <axdubois@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/08/02 19:37:01 by axdubois #+# #+# #
# Updated: 2023/08/02 19:37:06 by axdubois ### ########.fr #
# #
# **************************************************************************** #
NAME = bsq
CC = clang
SRCS = srcs/Display-c/write.c \
srcs/parsing-c/parsing.c \
srcs/utils-c/free.c \
srcs/utils-c/utils.c \
srcs/parsing-c/charobj.c \
srcs/main.c \
srcs/parsing-c/fst_line.c \
srcs/algo/algo.c \
srcs/algo/controller.c \
srcs/parsing-c/map_error.c
OBJS = $(SRCS:.c=.o)
FLAGS = -Wall -Wextra -Werror
$(NAME): $(OBJS)
$(CC) $(FLAGS) -o $(NAME) $(OBJS)
.c.o:
$(CC) $(FLAGS) -c $< -o $@
all: $(NAME)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: clean all re fclean