-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (44 loc) · 1.61 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: schaaban <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/29 12:02:10 by schaaban #+# #+# #
# Updated: 2017/12/16 17:37:32 by msabwat ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
LIB_P = ./libft
FLAGS = -Wall -Wextra -Werror
SRCS = get_one_line.c \
main.c \
read_file.c \
checker.c \
tetri.c \
tools1.c \
tools2.c \
solve.c \
ft_atoi_base.c \
map.c \
ft_sqrt.c \
ft_free.c \
ft_itoa_base.c
OBJS = $(SRCS:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
@echo "FILLIT - Exe creation"
@gcc $(FLAGS) -L$(LIB_P) -lft $(OBJS) -o $(NAME)
$(OBJS): $(SRCS)
@$(MAKE) -C $(LIB_P)
@gcc $(FLAGS) -c $(SRCS)
clean:
@echo "FILLIT - Cleaning objects"
@rm -Rf $(OBJS)
@$(MAKE) -C $(LIB_P) clean
fclean: clean
@echo "FILLIT - Full clean (objects + exe)"
@rm -Rf $(NAME)
@$(MAKE) -C $(LIB_P) fclean
re: fclean all