-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·48 lines (35 loc) · 1.63 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abadidi < abadidi@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/29 18:43:24 by abadidi #+# #+# #
# Updated: 2022/02/23 10:14:24 by abadidi ### ########.fr #
# #
# **************************************************************************** #
NAME = push_swap
NAME2 = checker
SRCS = ft_check.c ft_sort_bis.c ft_utils_bis.c ft_operations.c ft_sort_quater.c \
ft_operations_bis.c ft_sort_tiers.c ft_print.c ft_tools.c ft_sort.c ft_utils.c checker_help_checker.c
SRC2 = checker_checker.c checks_checker.c operations_checker.c \
checker_help_bis_checker.c checker_help_checker.c operations_bis_checker.c utils_checker.c ft_utils.c
FLAGS = -Wall -Wextra -Werror -c
OBJS = $(SRCS:.c=.o)
OBJS2 = $(SRC2:.c=.o)
INC = push_swap.h
CC = gcc
all: $(NAME)
bonus: $(NAME2)
$(NAME): $(SRCS) $(INC)
@$(CC) $(FLAGS) $(SRCS)
@$(CC) $(OBJS) -o $(NAME)
$(NAME2): $(SRC2) $(INC)
@$(CC) $(FLAGS) $(SRC2)
@$(CC) $(OBJS2) -o $(NAME2)
clean:
rm -rf $(OBJS) $(OBJS2)
fclean: clean
rm -rf $(NAME) $(NAME2)
re: fclean all