-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
73 lines (62 loc) · 2.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#******************************************************************************#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yfuks <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/02/27 23:02:19 by yfuks #+# #+# #
# Updated: 2015/03/04 17:28:06 by yfuks ### ########.fr #
# #
#******************************************************************************#
NAME = game_2048
SRC = sources/main.c \
sources/number.c \
sources/mouvement.c \
sources/square.c \
sources/end.c \
sources/tools.c \
sources/save.c \
libft/libft.a \
sources/power.c \
sources/color.c \
sources/draw.c \
sources/square_nb_row.c \
sources/square_nb_column.c \
sources/total_score.c \
sources/redraw.c \
sources/init.c \
sources/init_numbers.c \
sources/draw_win_square.c \
sources/draw_loose_square.c \
sources/reset.c \
sources/mouv_up.c \
sources/mouv_down.c \
sources/mouv_left.c \
sources/mouv_right.c \
sources/menu.c \
sources/get_player_name.c \
sources/get_score.c \
sources/put_credits.c \
sources/what_power.c
HEAD = -I ./includes
OBJ = $(SRC:.c=.o)
FLAGS = -Wall -Wextra -Werror
LIB = -lncurses
all : $(NAME)
$(NAME) :
@make -C ./libft
@echo "Compile..."
@gcc $(FLAGS) $(SRC) $(HEAD) $(LIB) -o $(NAME)
@echo "Done !"
clean :
@make -C ./libft clean
@echo "Remove .o..."
@/bin/rm -f $(OBJ)
@echo "Done !"
fclean : clean
@make -C ./libft fclean
@echo "Remove exe..."
@/bin/rm -f $(NAME)
@echo "Done !"
re : fclean all