-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (55 loc) · 1.86 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: home <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2020/02/07 02:00:29 by kmira #+# #+# #
# Updated: 2020/10/24 17:24:10 by home ### ########.fr #
# #
# **************************************************************************** #
NAME = kmira.filler
FLAGS = -Wall -Wextra -Werror
INCS = -I includes
LIBFT = srcs/libft/libft.a
FILES = \
free_context \
heatmap_color \
heatmap_display \
heatmap \
initialize_game \
main \
piece_place \
piece_get \
stdin_ptr_move \
update_game_state \
verify_piece \
SRCS = $(addsuffix .c, $(addprefix srcs/, $(FILES)))
OBJS = $(addsuffix .o, $(FILES))
all: $(LIBFT) $(OBJS)
gcc -o $(NAME) $(FLAGS) $(LIBFT) $(OBJS)
$(OBJS):
gcc -c $(FLAGS) $(INCS) $(SRCS)
$(LIBFT):
make -C srcs/libft/
clean:
rm -f $(OBJS)
make clean -C srcs/libft/
fclean: clean
rm -f $(NAME)
# make fclean -C srcs/libft/
re: fclean all
quick: re
make clean
mv $(NAME) resource/players/
save: fclean
git add .
git commit -m "$(MSG)"
git push
git push https://github.com/MrColour/filler.git
play:
./filler_vm -f resources/maps/map00 -p1 ./$(NAME) > /dev/null
hard:
./filler_vm -p1 ./kmira.filler -p2 resources/players/hcao.filler -f resources//maps/map01 > /dev/null
.PHONY: all clean fclean re quick save