-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 1.34 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: sgaudin <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/05/03 09:51:13 by sgaudin #+# #+# #
# Updated: 2016/05/13 13:59:14 by sgaudin ### ########.fr #
# #
#******************************************************************************#
NAME = fractol
L = lib_draw_img/
CC = gcc -Wall -Wextra -Werror
CC_FLAGS = -lmlx -framework OpenGL -framework AppKit
SRC = src/main.c src/mandelbrot.c src/key_hook.c src/mouse_hook.c \
src/julia.c src/burning_ship.c src/motion_hook.c
LIBD_SRC = $(L)put_pixel_img.c
all: $(NAME)
$(NAME):
make -C libft/
$(CC) $(CC_FLAGS) $(SRC) $(LIBD_SRC) -o $(NAME) -I./includes -L./libft/ -lft
clean:
make -C libft/ clean
fclean:
make -C libft/ fclean
rm -rf $(NAME)
re: fclean all