-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
94 lines (85 loc) · 5.03 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kromain <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/04/27 15:05:07 by kromain #+# #+# #
# Updated: 2017/04/28 14:28:58 by kromain ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
SRCS = \
main.c \
create.c \
handlers.c \
coordinates.c \
types.c \
coloring1.c \
coloring2.c \
hooks1.c \
hooks2.c \
modify.c
all: $(NAME)
$(NAME): lib mlx
@echo "\033[01;36mCompiling...\033[0m"
@echo "\033[01;36m_______ ______ _______ _______ _______ _____\033[0m"
@echo "\033[01;36m|______ |_____/ |_____| | | | | |\033[0m"
@echo "\033[01;36m| | \_ | | |_____ | |_____| |_____\033[0m"
@echo "\033[01;36m *"
@echo " "
@echo " ** "
@echo " ****** * "
@echo " ******** "
@echo " ***** "
@echo " *************** * "
@echo " *********************** *** "
@echo " * **************************** "
@echo " ******************************** "
@echo " ********************************* *"
@echo " ************************************ "
@echo " ** ****** ************************************ "
@echo " ************* ************************************ "
@echo " *************** *********************************** "
@echo " ****************************************************** "
@echo " ************************************************************************ "
@echo " ****************************************************** "
@echo " *************** *********************************** "
@echo " ************* ************************************ "
@echo " ** ****** ************************************ "
@echo " ************************************ "
@echo " ********************************* *"
@echo " ******************************** "
@echo " * **************************** "
@echo " *********************** *** "
@echo " *************** * "
@echo " ***** "
@echo " ******** "
@echo " ****** * "
@echo " ** "
@echo " "
@echo " * \033[0m"
@cd src && clang -Wall -Wextra -Werror -c $(SRCS) -g
cd src && clang $(SRCS:.c=.o) -g -L../minilibx -lmlx -framework OpenGL -framework Appkit -L../libft -lft -o $(NAME)
mv src/fractol .
@echo "\033[01;39mFinished making Fractol. Available Makefile commands:\033[0m"
@echo "\033[01;39m - make\033[0m"
@echo "\033[01;39m - make clean\033[0m"
@echo "\033[01;39m - make fclean\033[0m"
@echo "\033[01;39m - make re\033[0m"
lib:
@cd libft && make
mlx:
@cd minilibx && make
clean:
@cd libft && make clean
@cd minilibx && make clean
@echo "\033[01;39mCleaning Fractol...\033[0m"
@cd src && /bin/rm -f $(SRCS:.c=.o)
fclean: clean
@cd libft && make fclean
@echo "\033[01;31mRemoved Archived Minilibx\033[0m"
@/bin/rm -f $(NAME)
@echo "\033[01;31mRemoved Compiled Fractol\033[0m"
re: fclean all