-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (29 loc) · 1.37 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rriyas <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/06/17 17:34:44 by rriyas #+# #+# #
# Updated: 2022/06/18 17:51:46 by rriyas ### ########.fr #
# #
# **************************************************************************** #
NAME = fractol
CC = gcc
RM = rm -f
SRCS = events.c fractal_utils.c fractal.c parse.c main.c
OBJS = ${SRCS:.c=.o}
LIB = minilibx_opengl_20191021/libmlx.a
CFLAGS = -Wall -Wextra -Werror
$(NAME): ${OBJS} ${LIB}
${CC} ${CFLAGS} -I minilibx_opengl_20191021/ $(OBJS) -L minilibx_opengl_20191021/ -lmlx -framework OpenGL -framework AppKit -o $(NAME)
${LIB}:
make -C minilibx_opengl_20191021/
all: $(NAME)
clean:
@${RM} ${OBJS}
fclean: clean
${RM} fractol
re: fclean all
.PHONY: all clean fclean re