-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
86 lines (74 loc) · 3.24 KB
/
Makefile
File metadata and controls
86 lines (74 loc) · 3.24 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dporhomo <dporhomo@student.42prague.com +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2026/02/02 22:26:29 by dporhomo #+# #+# #
# Updated: 2026/02/05 18:13:58 by dporhomo ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
BONUS_NAME = checker
CC = cc
CFLAGS = -Wall -Wextra -Werror -Iincludes
RM = rm -f
# Mandatory Sources
SRCS = srcs/push_swap/ft_add_back.c \
srcs/push_swap/ft_check_dup.c \
srcs/push_swap/ft_check_sorted.c \
srcs/push_swap/ft_error.c \
srcs/push_swap/ft_free.c \
srcs/push_swap/ft_process.c \
srcs/push_swap/ft_rotate_apply.c \
srcs/push_swap/ft_rotate_cases.c \
srcs/push_swap/ft_sort.c \
srcs/push_swap/ft_split.c \
srcs/push_swap/ft_stack_new.c \
srcs/push_swap/ft_utils.c \
srcs/push_swap/lst_utils.c \
srcs/push_swap/lst_utils2.c \
srcs/push_swap/operations1.c \
srcs/push_swap/operations2.c \
srcs/push_swap/operations3.c \
srcs/push_swap/operations_utils_ab.c \
srcs/push_swap/operations_utils_ba.c \
srcs/push_swap/push_swap.c
# Bonus Sources
BONUS_SRCS = srcs/checker/checker.c \
srcs/checker/get_next_line.c \
srcs/checker/get_next_line_utils.c \
srcs/push_swap/ft_add_back.c \
srcs/push_swap/ft_check_dup.c \
srcs/push_swap/ft_check_sorted.c \
srcs/push_swap/ft_error.c \
srcs/push_swap/ft_free.c \
srcs/push_swap/ft_process.c \
srcs/push_swap/ft_rotate_apply.c \
srcs/push_swap/ft_rotate_cases.c \
srcs/push_swap/ft_sort.c \
srcs/push_swap/ft_split.c \
srcs/push_swap/ft_stack_new.c \
srcs/push_swap/ft_utils.c \
srcs/push_swap/lst_utils.c \
srcs/push_swap/lst_utils2.c \
srcs/push_swap/operations1.c \
srcs/push_swap/operations2.c \
srcs/push_swap/operations3.c \
srcs/push_swap/operations_utils_ab.c \
srcs/push_swap/operations_utils_ba.c
OBJ = $(SRCS:.c=.o)
BONUS_OBJ = $(BONUS_SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o $(NAME)
bonus: $(BONUS_NAME)
$(BONUS_NAME): $(BONUS_OBJ)
$(CC) $(CFLAGS) $(BONUS_OBJ) -o $(BONUS_NAME)
clean:
$(RM) $(OBJ) $(BONUS_OBJ)
fclean: clean
$(RM) $(NAME) $(BONUS_NAME)
re: fclean all
.PHONY: all clean fclean re bonus