-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rlechapt <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/01/07 16:26:27 by rlechapt #+# #+# #
# Updated: 2015/03/03 11:00:32 by rlechapt ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
SRC = \
fractol.c \
mlx_settings.c \
image.c \
mandelbrot.c \
julia.c \
mandelbar.c
OBJ = $(SRC:%.c=%.o)
all: libs $(NAME)
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) -L./libft -lft -L/usr/lib -lmlx -framework OpenGL -framework AppKit
libs:
make -C ./libft
%.o: %.c fractol.h
$(CC) -c -Wall -Wextra -Werror $<
clean:
@make clean -C ./libft
@rm -f $(OBJ)
fclean: clean
@make fclean -C ./libft
@rm -f $(NAME)
re: fclean all