-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (49 loc) · 1.78 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: gmiyakaw <gmiyakaw@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/16 13:10:06 by gmiyakaw #+# #+# #
# Updated: 2023/03/27 12:53:13 by gmiyakaw ### ########.fr #
# #
# **************************************************************************** #
#
#To use MiniLibX func-
# tions, you'll need to
# link your software with
# the MiniLibX library,
# and several system
# frameworks:
#
# -lmlx -framework OpenGL
# -framework AppKit
#
# You may also need to
# specify the path to the
# MiniLibX library, using
# the -L flag.
#
NAME = fractol
OBJ = $(SRC:.c=.o)
NAMELIB = libftfractol.a
LIB = libft/libft.a
LINK = -lmlx -framework OpenGL -framework AppKit -L ./minilibx_opengl_20191021
SRC = fractol.c fractol_utils.c mandelbrot.c inits.c color.c \
render.c julia.c events.c
CC = gcc
CFLAGS = -Wall -Werror -Wextra
COMP = $(CC) $(CFLAGS) $(LIB) $(LINK)
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
$(MAKE) bonus -C ./libft
$(COMP) $(OBJ) -o $(NAME)
clean:
$(RM) $(OBJ)
$(MAKE) fclean -C ./libft
fclean: clean
$(RM) $(NAME)
$(MAKE) fclean -C ./libft
re: fclean all