-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 2.2 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
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[1;35m \n\
▄████████ ▄██████▄ ▄█ ▄██████▄ ███▄▄▄▄ ▄██████▄ \n\
███ ███ ███ ███ ███ ███ ███ ███▀▀▀██▄ ███ ███ \n\
███ █▀ ███ ███ ███ ███ ███ ███ ███ ███ █▀ \n\
███ ███ ███ ███ ███ ███ ███ ███ ▄███ \n\
███████████ ███ ███ ███ ███ ███ ███ ███ ▀▀███ ████▄ \n\
███ ███ ███ ███ ███ ███ ███ ███ ███ ███ \n\
▄█ ███ ███ ███ ███▌ ▄ ███ ███ ███ ███ ███ ███ \n\
▄████████▀ ▀██████▀ █████ ███████▄▄██ ▀██████▀ ▀█ █▀ ████████▀ \n\
\033[0m"
%.o:%.c
@$(CC) $(CFLAGS) -c $^ -o $@
clean:
@rm -f $(OBJS)
fclean: clean
@rm -f $(NAME)
re: fclean all