-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 1.31 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yait-iaz <yait-iaz@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/10 17:13:21 by yait-iaz #+# #+# #
# Updated: 2022/01/11 20:22:57 by yait-iaz ### ########.fr #
# #
# **************************************************************************** #
SRCS = main.c extra_mlx.c hook_hundle.c mandelbrot.c color.c utils.c fractol.c Julia.c Burning_Ship.c
OBJS = $(SRCS:.c=.o)
NAME = fractol
HEADER = fract.h
CC = gcc
FLAGS = -Wall -Wextra -Werror -O3
MLX_FLAG = -lm -lmlx -framework OpenGL -framework AppKit
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(MLX_FLAG) $(FLAGS) $(OBJS) -o $(NAME)
bonus : all
%.o : %.c
$(CC) $(FLAGS) -c $<
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all