-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (63 loc) · 2.08 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: zmahmoud <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/06/08 11:17:30 by zmahmoud #+# #+# #
# Updated: 2022/06/12 10:10:01 by zmahmoud ### ########.fr #
# #
# **************************************************************************** #
SRCS =functions/ft_checker.c\
functions/positions.c\
functions/sort_helper.c\
functions/ft_helper.c\
functions/sort.c\
functions/stack_helper.c\
functions/split_helper.c\
functions/init.c\
operations/operations_p.c\
operations/operations_s.c\
operations/operations_r.c\
push_swap.c\
LIBFT =libft/ft_atoi.c\
libft/ft_isdigit.c\
libft/ft_lstadd_back.c\
libft/ft_lstadd_front.c\
libft/ft_lstlast.c\
libft/ft_lstnew.c\
libft/ft_strcmp.c\
libft/ft_lstsize.c\
libft/ft_substr.c\
libft/ft_memcpy.c\
libft/ft_strlcpy.c\
libft/ft_split.c\
libft/ft_strdup.c\
libft/ft_strlen.c\
libft/ft_strjoin.c\
BNS =functions/ft_checker.c\
functions/split_helper.c\
functions/ft_helper.c\
bonus/get_next_line.c\
bonus/bonus_helper.c\
operations/operations_p.c\
operations/operations_s.c\
operations/operations_r.c\
operations/operations_rr.c\
checker.c\
FLAGS = -Wall -Wextra -Werror
NAME = push_swap
NAMEBNS = checker
OBJS = $(subst .c,.o,$(SRCS))
OBJSBNS = $(subst .c,.o,$(BNS))
$(NAME): $(OBJS)
gcc $(SRCS) $(LIBFT) $(FLAGS) -o $(NAME)
all : $(NAME) bonus
bonus: $(OBJSBNS)
gcc $(BNS) $(LIBFT) $(FLAGS) -o $(NAMEBNS)
clean:
rm -f $(OBJS) $(OBJSBNS)
fclean: clean
rm -f $(NAME) $(NAMEBNS)
re: fclean all