Archived
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.
push_swap/Makefile

63 lines
1.7 KiB
Makefile
Raw Normal View History

2024-02-12 15:27:29 +01:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
2024-02-22 13:38:34 +01:00
# Updated: 2024/02/22 11:51:16 by adjoly ### ########.fr #
2024-02-12 15:27:29 +01:00
# #
# **************************************************************************** #
NAME = push_swap
CC = cc
SRCS = main.c \
2024-02-22 11:05:04 +01:00
algo.c \
2024-02-22 13:38:34 +01:00
median.c \
2024-02-22 11:05:04 +01:00
check_error.c \
print_stack.c \
2024-02-12 15:27:29 +01:00
parsing.c \
stack/ft_stackadd_back.c \
stack/ft_stackadd_front.c \
stack/ft_stackdelone.c \
stack/ft_stackclear.c \
stack/ft_stacknew.c \
stack/ft_stacklast.c \
stack/ft_stacksize.c \
operations/ft_swapstack.c \
operations/ft_pushstack.c \
2024-02-14 11:41:57 +01:00
operations/ft_rotatestack.c \
operations/ft_reverserotate.c \
2024-02-12 15:27:29 +01:00
OBJS = $(SRCS:.c=.o)
FLAGS = -Werror -Wall -Wextra -g
HEADERS = so_long.h
LIB = libft/libft.a \
$(NAME): $(OBJS)
make -C libft
$(CC) $(FLAGS) $(OBJS) $(LIB) -o $(NAME)
%.o: %.c
$(CC) $(FLAGS) -I $(HEADERS) $< -c -o $@
all: $(NAME)
clean:
make -C libft clean
rm -f $(OBJS)
fclean: clean
make -C libft fclean
rm -f $(NAME)
re: fclean all
.PHONY: clean all re fclean