-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.44 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: dskrypny <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/07/07 14:30:48 by dskrypny #+# #+# #
# Updated: 2018/07/22 22:05:35 by dskrypny ### ########.fr #
# #
# **************************************************************************** #
NAME = game_2048
SOURCE = main.c \
map.c \
move_up.c \
move_down.c \
move_left.c \
move_right.c \
name.c \
numbers.c \
result.c \
window_init.c \
FLAGS = -Wall -Wextra -Werror
LIB = libft/libft.a
all: $(NAME)
$(NAME):
@make -C libft/
@gcc $(FLAGS) $(SOURCE) -o $(NAME) $(LIB) -lncurses
@echo "2048 compiled"
clean:
@rm -rf *.o
@make clean -C libft/
@echo "objects cleaned"
fclean: clean
@rm -rf $(NAME)
@make fclean -C libft/
@echo "all cleaned"
re: fclean all
gic:
cp *.c ~/rush_2048
cp header.h ~/rush_2048
cp Makefile ~/rush_2048