-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (42 loc) · 1.45 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: lburkins <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/02/01 12:00:18 by lburkins #+# #+# #
# Updated: 2024/03/07 13:57:06 by lburkins ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
CFILES = push_swap.c \
create_a.c \
sort_stack.c \
stack_utils.c \
check_valid.c \
error_handling.c \
rotate.c \
rev_rotate.c \
swap.c \
push.c \
move.c \
init_nodes_a.c \
init_nodes_b.c
OFILES = $(CFILES:.c=.o)
CFLAGS = -Wall -Wextra -Werror
LIBFT = libft/libft.a
all: $(NAME)
$(NAME): $(OFILES)
cd libft && make all
cc $(CFLAGS) $(OFILES) $(LIBFT) -o $(NAME)
libft:
make -C libft
clean:
rm -f $(OFILES)
cd libft && make clean
fclean: clean
rm -f $(NAME)
cd libft && make fclean
re: fclean all
.PHONY: all clean fclean re