-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (61 loc) · 2.67 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: etexier <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/11/06 11:32:12 by etexier #+# #+# #
# Updated: 2020/01/06 16:54:21 by etexier ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror -g -g3 -I./libft/includes -I.
LDFLAGS = -lft -L./libft
AR = ar rc
RM = rm -f
OBJS = *.o
NAME = fillit
all: ${NAME}
fillit: fillit.o get_next_line.o fillit_utils1.o fillit_utils2.o fillit_utils3.o fillit_utils4.o tetrino_lst.o tetrino_bound.o tetrino_print.o tetrino_world.o resolve_iter.o resolve_iter2.o
$(CC) $(CFLAGS) ${LDFLAGS} -o ${NAME} \
fillit.o \
get_next_line.o \
fillit_utils1.o \
fillit_utils2.o \
fillit_utils3.o \
fillit_utils4.o \
tetrino_lst.o \
tetrino_bound.o \
tetrino_print.o \
tetrino_world.o \
resolve_iter.o \
resolve_iter2.o ${LDFLAGS}
fillit.o: fillit.c fillit.h get_next_line.h
$(CC) $(CFLAGS) -c fillit.c -o fillit.o
get_next_line.o: get_next_line.c get_next_line.h
$(CC) $(CFLAGS) -c get_next_line.c -o get_next_line.o
fillit_utils1.o: fillit_utils1.c fillit.h
$(CC) $(CFLAGS) -c fillit_utils1.c -o fillit_utils1.o
fillit_utils2.o: fillit.h fillit_utils2.c
$(CC) $(CFLAGS) -c fillit_utils2.c -o fillit_utils2.o
fillit_utils3.o: fillit.h fillit_utils3.c
$(CC) $(CFLAGS) -c fillit_utils3.c -o fillit_utils3.o
fillit_utils4.o: fillit.h fillit_utils4.c
$(CC) $(CFLAGS) -c fillit_utils4.c -o fillit_utils4.o
tetrino_lst.o: fillit.h tetrino_lst.c
$(CC) $(CFLAGS) -c tetrino_lst.c -o tetrino_lst.o
tetrino_bound.o: fillit.h tetrino_bound.c
$(CC) $(CFLAGS) -c tetrino_bound.c -o tetrino_bound.o
tetrino_print.o: fillit.h tetrino_print.c
$(CC) $(CFLAGS) -c tetrino_print.c -o tetrino_print.o
tetrino_world.o: fillit.h tetrino_world.c
$(CC) $(CFLAGS) -c tetrino_world.c -o tetrino_world.o
gbox.o: fillit.h gbox.c
$(CC) $(CFLAGS) -c gbox.c -o gbox.o
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean re