-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 1.33 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: deleusis <deleusis@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/02/23 18:02:42 by deleusis #+# #+# #
# Updated: 2022/03/03 18:03:54 by deleusis ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
LIST = so_long.c read_map.c \
get_next_line.c get_next_line_utils.c \
init_image.c check_all_map.c check_all_map2.c move_player.c \
move_enemy.c utils.c utils2.c \
OBJ = $(patsubst %.c,%.o,$(LIST))
.PHONY : all clean fclean re
all : $(NAME)
$(NAME) : $(OBJ)
$(CC) $(OBJ) -lmlx -framework OpenGL -framework AppKit -o $(NAME)
%.o : %.c so_long.h
$(CC) -Imlx -c $< -o $@
clean :
@rm -f $(OBJ)
fclean : clean
@rm -f $(NAME)
re : fclean all