-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (49 loc) · 2.07 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mzabalza <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/19 22:17:20 by mzabalza #+# #+# #
# Updated: 2017/11/27 20:24:36 by mzabalza ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
SRC = fillits/srcs/ft_main.c\
fillits/srcs/ft_createfile.c\
fillits/srcs/ft_structadd.c\
fillits/srcs/ft_structnew.c\
fillits/srcs/ft_check_min_square.c\
fillits/srcs/ft_patern_new.c\
fillits/srcs/ft_big_mom.c\
fillits/srcs/ft_check_free.c\
fillits/srcs/ft_currentcord.c\
fillits/srcs/ft_add_piece.c\
fillits/srcs/ft_patern_add.c\
fillits/srcs/ft_patern_xcalc.c\
fillits/srcs/ft_checktet.c\
fillits/srcs/ft_checkpos.c\
fillits/srcs/ft_get_free_pos.c\
fillits/srcs/ft_checkerrors.c\
OBJ = $(patsubst srcs/%.c,./%.o,$(SRC))
all: $(NAME)
$(NAME): $(OBJ)
@$(MAKE) -C libft
@gcc -Wall -Werror -Wextra $(OBJ) -L libft/ -lft -I./fillits/includes -o $(NAME)
@printf '\033[4m'
@printf '\033[32m[ ✔ ] %s\n\033[0m' "fillit is done !"
./%.o: fillits/srcs/%.c
@gcc -Wall -Wextra -Werror -I./fillits/includes -c $< -o $@
@printf '\033[0m[ ✔ ] %s\n\033[0m' "$<"
clean:
@$(MAKE) -C libft clean
@/bin/rm -rf *.o
@printf '\033[31m[ ✔ ] %s\n\033[0m' "Clean"
fclean: clean
@$(MAKE) -C libft fclean
@/bin/rm -f $(NAME)
@printf '\033[31m[ ✔ ] %s\n\033[0m' "Fclean"
re: fclean
make
.PHONY: clean fclean re all