-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (58 loc) · 2.55 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: zrabhi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/04/09 10:28:47 by zrabhi #+# #+# #
# Updated: 2022/04/09 10:29:00 by zrabhi ### ########.fr #
# #
# **************************************************************************** #
GREEN=\033[32m
YELLOW=\033[33m
GRAY=\033[2;37m
CURSIVE=\033[3m
RED =\033[0;31m
BLUE =\033[0;34m
SRC = events.c main.c mandelbrot.c burning-ship.c ft_my_put_pixel.c ft_utils.c julia.c ft_draw.c ft_check.c
OBJ = $(SRC:.c=.o)
MAIN = main.c
printf = ft_printf
printfheader = &(ft_printf)
CC = gcc
mlx_flags = -lmlx -framework OpenGL -framework AppKit -Ofast
GCC_FLAGS = -Wall -Wextra -Werror
HEADER = fractol.h
AR = ar r
NAME = fractol.a
ECX = fractol
all: $(NAME)
# $(NAME): $(OBJ)
# $(AR) $(NAME) $(OBJ)
%.o: %.c
@$(CC) $(GCC_FLAGS) -c $<
$(NAME) : $(OBJ)
@$(CC) $(GCC_FLAGS) $(mlx_flags) -o $(ECX) $(OBJ)
@echo ""
@echo " $(BLUE)Wᴇʟᴄᴏᴍᴇ ᴛᴏ ᴍʏ$(NONE)\n"
@sleep 0.8
@echo " $(RED)▒█▀▀▀ ▒█▀▀█ ░█▀▀█ ▒█▀▀█ ▀▀█▀▀ ▒█▀▀▀█ ▒█░░░$(NONE) "
@sleep 0.8
@echo " $(RED)▒█▀▀▀ ▒█▄▄▀ ▒█▄▄█ ▒█░░░ ░▒█░░ ▒█░░▒█ ▒█░░░$(NONE) "
@sleep 0.8
@echo " $(RED)▒█░░░ ▒█░▒█ ▒█░▒█ ▒█▄▄█ ░▒█░░ ▒█▄▄▄█ ▒█▄▄█$(NONE) \n"
@sleep 1
@echo " $(RED)𝔸𝕣𝕖 𝕪𝕠𝕦 𝕣𝕖𝕒𝕕𝕪❕$(NONE)"
@sleep 1
@echo ""
@echo " $(GRAY)To use this program, simply start the fractol file and put the name of the fractol you want to see!$(NONE)\n"
@echo " $(GRAY)How to use:$(NONE)\n"
@echo " $(RED) > for mandelbrote : ./fractol -m$(NONE)"
@echo " $(RED) > for julia : ./fractol -j$(NONE)"
@echo " $(RED) > for burningship : ./fractol -b$(NONE)\n"
clean:
@rm -f $(OBJ)
fclean:
@rm -f $(OBJ) $(NAME) $(ECX)
re: fclean all