-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 1.52 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bbetz <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/03/14 19:46:58 by bbetz #+# #+# #
# Updated: 2016/06/06 23:44:30 by bbetz ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
CFLAG = -Wall -Werror -Wextra
EXTRA_FLAGS = -lmlx -framework OpenGL -framework AppKit
INC = ./include/ \
SRC = ./sources/main.c \
./sources/divers.c \
./sources/draw_fract.c \
./sources/key_events.c \
./sources/mandelbrot.c \
./sources/write_pixel.c \
./sources/julia.c \
./sources/mouse_events.c \
./sources/fractale3.c \
LIB = libft/libft.a
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME):
@make -C libft
@$(CC) -I $(INC) $(LIB) $(EXTRA_FLAGS) $(SRC) -o $(NAME)
clean:
@make clean -C libft
@/bin/rm -f $(OBJ)
fclean: clean
@make fclean -C libft
@/bin/rm -f $(NAME)
re: fclean all