-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (44 loc) · 1.02 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
CC = gcc
FLAGS = -Wall -Wextra -Werror
LIBFT = libft.a
NAME = push_swap
SRC = push_ft_push_swap.c \
push_ft_push_swap_sub.c \
push_ft_push_swap_sub_two.c \
push_operations.c \
push_operations_two.c \
push_my_sort.c \
push_my_sort_sub.c \
push_quick_sort.c \
push_quick_sort_sub.c \
push_small_sort.c \
push_small_sort_sub.c \
push_just_swap.c \
push_bas_pile.c \
push_bubble_sort.c \
push_bubble_sort_two.c \
push_bubble_sort_three.c \
TWO = checker
SRCTWO = check_ft_checker.c \
check_ft_checker_two.c \
check_validation_module.c \
check_output_module.c \
check_operations.c \
check_operations_two.c \
get_next_line.c \
all: $(LIBFT) $(NAME) $(TWO)
$(LIBFT):
make -C libft/
$(NAME):
@echo "building binary file"
@$(CC) $(FLAGS) $(SRC) -o $(NAME) -I -lft $(LIBFT)
$(TWO):
@echo "building checker binary file"
@$(CC) $(FLAGS) $(SRCTWO) -o $(TWO) -I -lft $(LIBFT)
clean:
@make clean -C libft/
fclean: clean
@echo "delete $(NAME) $(TWO)"
@rm -f $(NAME) $(TWO)
@make fclean -C libft/
re: fclean all