-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (37 loc) · 1.46 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ikgonzal <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/30 16:00:53 by ikgonzal #+# #+# #
# Updated: 2021/12/13 18:05:13 by ikgonzal ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
FLAGS = -Wall -Wextra -Werror
SRC = ft_free_map.c \
ft_check_ber.c \
ft_fill_p2.c \
ft_move_player.c \
ft_hook.c \
main.c \
get_next_line.c \
get_next_line_utils.c \
ft_strlen.c \
ft_check_errors.c \
ft_so_long_utils.c \
ft_fill_map.c
all : $(NAME)
$(NAME) : $(SRC)
$(CC) $(FLAGS) $(SRC) -Lmlx -lmlx -framework OpenGL -framework AppKit -o $(NAME)
@ echo "so_long compiled 🐒"
clean:
@ rm -rf so_long
fclean: clean
@rm -rf so_long
@rm -rf so_long.dSYM
@ echo "so_long cleaned 🧤"
re: fclean all
.PHONY : all clean fclean re