-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (45 loc) · 1.72 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tbottini <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/01/15 18:09:49 by yberramd #+# #+# #
# Updated: 2019/03/10 16:03:18 by tbottini ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
CFLAGS = -Wall -Wextra -Werror
INCLUDE = -I include
LIB = libft/libft.a -L /usr/local/lib/ -lmlx\
-framework OpenGL \
-framework AppKit -lm
SRCS = src/fractol.c \
src/parseur.c \
src/input.c \
src/julia.c \
src/mandelbrot.c \
src/burningship.c \
src/tricolor.c \
src/vector2_value.c \
src/mlx_data_get.c \
OBJS = $(SRCS:.c=.o)
all : $(NAME)
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
$(NAME) : include/libft.h include/fractol.h $(OBJS)
@make -C libft/
@$(CC) $(CFLAGS) $(LIB) -o $(NAME) $(OBJS)
@echo "Compilation" $(NAME) "Terminee"
clean :
@make clean -C libft
@rm -rf $(OBJS)
fclean : clean
@make fclean -C libft
@rm -rf $(NAME)
start : all
$(shell ./$(NAME) mandelbrot)
re : fclean all
.PHONY: all clean flcean re start