-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
62 lines (52 loc) · 3.13 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aymoulou <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/02 18:32:41 by aymoulou #+# #+# #
# Updated: 2022/01/09 16:13:30 by aymoulou ### ########.fr #
# #
# **************************************************************************** #
NAME = so_long
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCS = ./utils/ft_join_strings.c \
./utils/ft_itoa.c \
./utils/ft_get_map.c \
./utils/ft_movement.c \
./utils/ft_split.c \
./utils/ft_put_image.c \
./utils/ft_put_text.c \
./get_next_line/get_next_line_utils.c \
./get_next_line/get_next_line.c \
./utils/ft_check_file_is_valid.c \
./utils/ft_check_map_utils.c \
./utils/ft_check_map.c \
./utils/ft_animation.c \
./utils/ft_animation_utils.c \
./utils/ft_exit_door.c \
so_long.c
all: $(NAME)
OBJS = $(SRCS:.c=.o)
$(NAME) : $(OBJS)
@$(CC) -lmlx -framework OpenGL -framework AppKit $^ -o $@
@echo "\[\033[4;35m \n\
▄████████ ▄██████▄ ▄█ ▄██████▄ ███▄▄▄▄ ▄██████▄ \n\
███ ███ ███ ███ ███ ███ ███ ███▀▀▀██▄ ███ ███ \n\
███ █▀ ███ ███ ███ ███ ███ ███ ███ ███ █▀ \n\
███ ███ ███ ███ ███ ███ ███ ███ ▄███ \n\
███████████ ███ ███ ███ ███ ███ ███ ███ ▀▀███ ████▄ \n\
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ \n\
▄█ ███ ███ ███ ███▌ ▄ ███ ███ ███ ███ ███ ███ \n\
▄████████▀ ▀██████▀ █████ ███████▄▄██ ▀██████▀ ▀█ █▀ ████████▀ \n\
\033[0m"
@echo " \033[44mBy: Ayoub0x1"
%.o:%.c
@$(CC) $(CFLAGS) -c $^ -o $@
clean:
@rm -f $(OBJS)
fclean: clean
@rm -f $(NAME)
re: fclean all