-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (48 loc) · 1.73 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: eguajard <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/02 10:38:16 by eguajard #+# #+# #
# Updated: 2017/12/05 19:26:27 by eguajard ### ########.fr #
# Updated: 2017/11/22 16:46:09 by rgaia ### ########.fr #
# #
# **************************************************************************** #
NAME = fillit
COMPILA = gcc -Wall -Wextra -Werror -c
T_COMPILA = gcc -Wall -Wextra -Werror -g -c
CFILES = fillit.c \
valid_integration.c \
valid_read_and_split.c \
valid_shape.c \
tetrimino.c \
tetrimino_utils.c \
solve.c \
solve_utils.c \
output.c \
TEST_FILES = test.c \
valid_integration.c \
valid_read_and_split.c \
valid_shape.c \
tetrimino.c \
tetrimino_utils.c \
solve.c \
solve_utils.c \
output.c \
OFILES = *.o
TEST = $(T_COMPILA) $(TEST_FILES)
RUN = $(COMPILA) $(CFILES)
all: $(NAME)
$(NAME):
@cd libft && make
$(RUN)
gcc $(LINK_FLAGS) $(OFILES) libft/libft.a -o $(NAME)
clean:
@cd libft && make clean
@/bin/rm -f $(OFILES)
fclean: clean
@cd libft && make fclean
@/bin/rm -f $(NAME)
re: fclean all