-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 2.12 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ael-bekk <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/02/04 11:09:41 by ael-bekk #+# #+# #
# Updated: 2022/02/07 16:38:14 by ael-bekk ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
Yellow='\033[0;33m'
NONE='\033[0m'
SRCS = files/main.c \
inc/get_next_line/get_next_line.c inc/get_next_line/get_next_line_utils.c \
inc/libft/ft_split.c inc/libft/ft_strlen.c inc/libft/ft_strnstr.c inc/libft/ft_putstr_fd.c \
inc/libft/ft_itoa.c inc/libft/ft_calloc.c inc/libft/ft_bzero.c inc/libft/ft_strlcat.c inc/libft/ft_memset.c\
files/valid_map_1.c files/valid_map_2.c files/free.c files/error_map.c \
files/display.c files/init_struct.c files/init_paths.c files/moves.c files/init_list.c files/door_op_cl.c \
files/header.c files/init_enemy.c files/init_from_beggin.c \
files/init_imag.c files/attack.c files/frames.c files/frames_2.c \
files/move_enemy_1.c files/move_enemy_2.c files/move_enemy_3.c files/move_enemy_4.c files/hooks.c files/hooks_2.c \
files/mlx_functions.c files/win_game.c
FLGS = gcc -Wextra -Wall -Werror
RM = rm -f
all: $(NAME) $(SRCS)
$(NAME): $(SRCS)
@$(FLGS) -lmlx -framework OpenGL -framework AppKit $(SRCS) -o $(NAME)
@echo "\033[0;32mso_long is ready"
play: all
@echo $(YELLOW)" - Playing all maps... \n"$(NONE)
@./$(NAME) maps/map_0.ber
@./$(NAME) maps/map_1.ber
@./$(NAME) maps/map_2.ber
clean:
@$(RM) $(NAME)
fclean: clean
re: fclean all
.PHONY: all clean fclean re